CN106502510B - Icon and the adaptation processing method at interface, device - Google Patents
Icon and the adaptation processing method at interface, device Download PDFInfo
- Publication number
- CN106502510B CN106502510B CN201610957925.4A CN201610957925A CN106502510B CN 106502510 B CN106502510 B CN 106502510B CN 201610957925 A CN201610957925 A CN 201610957925A CN 106502510 B CN106502510 B CN 106502510B
- Authority
- CN
- China
- Prior art keywords
- icon
- color
- interface
- parameter
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Image Processing (AREA)
Abstract
The invention discloses the automatic adaptation processing method and its device of a kind of icon and interface, which includes: the selected operational order in response to user to icon any on interface, obtains the regular shape of the icon;All icons that current interface is shown are handled according to the regular shape, to generate the icon of uniform shapes rule;Dividing current interface as unit of interface size shared by single icon of arranging is multiple unit areas, obtain the color rule in constituent parts region, it successively handles according to the color rule the icon being correspondingly arranged in constituent parts region is located at, so that the color of icon and interface color bleeding.In addition, the present invention also provides a kind of portable mobile termianls for executing the processing method.According to technical solutions according to the invention arrangement icon, not only the shape of icon is consistent, and all icons can be adapted to interface color, thus the present invention has beautification human-computer interaction interface, the effect of intuitive display, to improve user experience.
Description
Technical field
The present invention relates to technical field of mobile terminals, handle more particularly, to a kind of icon and the automatic adaptation at interface
Method, apparatus.
Background technique
As application-development technologies develop, mobile terminal is more and more intelligent, and more user's selections pass through network
The application program oneself liked is downloaded, consequent is the confusion of interface icon after having downloaded many programs, many users
It oneself will go to manually adjust these icons, process is very cumbersome, reduces user experience.Additionally, due to the color and use of icon
The background color that family is liked is uncoordinated, and leading to interface unsightly is also an important factor for influencing user experience.
Automatic adaptation processing method about icon and interface has many examples at present.One of which, which discloses, passes through identification
The method that the icon of same color is arranged on the same page is achieved the effect that quickly to arrange and coordinate by Icon Color,
Its step includes: each application program image target color parameter value obtained on interface;Joined according to application program image target color
Numerical value carries out color classification, obtains colour type;According to application program image target colour type, at the interface of mobile terminal by pre-
If color sequences show application icon.
The above method is icon of being arranged using color value, although can quickly arrange, the interface for arranging out might not
Beauty, Icon Color and interface color degrees of fusion are poor, and user needs prolonged habit that can remember picture mark position.
Summary of the invention
In view of the above problems, the invention proposes the automatic adaptation processing method and its device of a kind of icon and interface,
Interface color and consumer taste have been taken into account, user experience is improved.
In a first aspect, including the following steps: the present invention provides the adaptation processing method of a kind of icon and interface
In response to user to the selected operational order of icon any on interface, the regular shape of the icon is obtained, by user
The icon chosen is as reference, rather than by user's successively setup parameter, therefore user can be allowed according to the intuitive effect to icon
Fruit is selected, and this method has the characteristics that intuitive, convenient.
All icons that current interface is shown are handled according to the regular shape, to generate uniform shapes rule
Icon then, to meet requirement of the user to icon shape feature.
Dividing current interface as unit of interface size shared by single icon of arranging is multiple unit areas, obtains each list
The color rule in position region is successively handled according to the color rule the icon being correspondingly arranged in constituent parts region is located at, so that
The color and interface color bleeding of icon.In the present embodiment, divided as unit of interface size shared by single icon of arranging
Current interface is the method for subregion sampling to handled respectively each unit area, relative to whole sampling, is had fast
Victory samples accurate feature.
With reference to first aspect, in one embodiment of first aspect present invention, the regular shape, which includes at least, to be used
In phenogram target shape, size, rotation, filter, scaling parameter.
With reference to first aspect, in second embodiment of first aspect present invention, the regular shape further includes described
The mask parameters of icon.In the present embodiment, whether the icon that detection user is chosen has used masking-out effect, to be covered
Version parameter.
Second embodiment with reference to first aspect, in the third embodiment of first aspect present invention, in the figure
Mark calls respective function to obtain corresponding masking-out information from the server where the icon using in the case where masking-out.
Third embodiment with reference to first aspect, in the 4th embodiment of first aspect present invention, when the figure
Then further include following steps when mark is using masking-out:
Based on the masking-out information, drawing function is called to draw masking-out;
It covers on all icons in the masking-out to interface.It, will if the icon that user chooses is designed with masking-out
Other icons also do same masking-out covering treatment, to reach the ideal effect of user.
With reference to first aspect, in the 5th embodiment of first aspect present invention, the color rule, which includes at least, to be used
In phenogram target tone, brightness, the parameter of saturation degree.
With reference to first aspect, in the 6th embodiment of first aspect present invention, the color for obtaining constituent parts region
Color rule, specifically comprises the following steps:
Obtain the color parameter of all pixels point in the unit area;
The average value of the color parameter of all pixels point in unit of account region, to be set as corresponding in the unit area
The parameter preset for the icon set.
The 6th embodiment with reference to first aspect, in the 7th embodiment of first aspect present invention, further includes:
The color of the icon of corresponding setting in each unit area is set according to the parameter preset.The parameter preset
Be as to the sampling of each unit area, it is average after obtained from, therefore the color of icon can and interface fusion.
With reference to first aspect, in the 8th embodiment of first aspect present invention, the color for obtaining constituent parts region
Color rule, specifically comprises the following steps:
Obtain the color parameter of all pixels point in unit area;
The number of the consistent pixel of color parameter is counted, and using the color parameter of the largest number of pixels as the list
The parameter preset of the icon of corresponding setting in the region of position.
The 8th embodiment with reference to first aspect, in the 9th embodiment of first aspect present invention, further includes:
The color of the icon of corresponding setting in each unit area is set according to the parameter preset.The parameter preset
It is the color parameter for taking the largest number of pixels, the largest number of pixels have the representative of the unit area color rule
Property, therefore icon can be good with interface fusion.
With reference to first aspect, in ten embodiments of first aspect present invention, the color for obtaining constituent parts region
Rule specifically comprises the following steps:
Obtain the color parameter of all pixels point in unit area;
The number for counting the consistent pixel of color parameter calculates the number and is located at the pixel for pre-seting number or more
Color parameter average value, using the parameter preset as set icon in the correspondence unit area.
The tenth embodiment with reference to first aspect, in the tenth one embodiment of first aspect present invention, further includes:
The corresponding icon arranged in each unit area is set according to the parameter preset in each unit area
Color.In the present embodiment, it will average after the less color parameter removal of accounting and obtain parameter preset, therefore icon
It can be more preferable with interface fusion.
With reference to first aspect, in the 12nd embodiment of first aspect present invention, further includes:
When being handled according to the regular shape all icons that current interface is shown, characterized according to icon
Function arrange icon.The function arrangement icon characterized according to icon is conducive to the position that user remembers icon when in use.
With reference to first aspect, in the 13rd embodiment of first aspect present invention, further includes:
When handling according to the regular shape all icons that current interface is shown, single icon institute is detected
The interfacial area accounted for calls the machine interactive function interface to remind user to add newly when its unit area is higher than preset area
Interface is to be large enough to hold all icons.When the icon chosen according to user carries out typesetting, when the occupied unit area of icon
When higher than preset area, when on interface all icons can not be accommodated, to user reminding to improve user experience.
Second aspect, the present invention provides the adaptation processing device of a kind of icon and interface, the adaptations of the icon and interface
Processing unit has the function of realizing the adaptation processing method behavior of icon and interface in above-mentioned first aspect.The function can be with
By hardware realization, corresponding software realization can also be executed by hardware.The hardware or software include it is one or more with
The corresponding module of above-mentioned function.Including following module:
First acquisition module obtains the icon for the selected operational order in response to user to icon any on interface
Regular shape;The icon that user is chosen can allow user according to right as reference, rather than by user's successively setup parameter
The visual effect of icon is selected, and this method has the characteristics that intuitive, convenient.
Processing module, all icons for showing to current interface are handled according to the regular shape, thus
The icon for generating uniform shapes rule, to meet requirement of the user to icon shape feature.
Second obtains module, is multiple for dividing current interface as unit of interface size shared by single icon of arranging
Unit area obtains the color rule in constituent parts region, is correspondingly arranged according to the color rule to being located in constituent parts region
Icon is successively handled, so that the color of icon and interface color bleeding.In the present embodiment, with the boundary shared by single icon that arranges
Face size is that unit divides current interface, is the method for subregion sampling to handled respectively each unit area, relative to
Whole sampling, has fast, samples accurate feature.
In conjunction with second aspect, in one embodiment of second aspect of the present invention, the regular shape, which includes at least, to be used
In phenogram target shape, size, rotation, filter, scaling parameter.
In conjunction with second aspect, in second embodiment of second aspect of the present invention, the regular shape further includes described
The mask parameters of icon.In the present embodiment, whether the icon that detection user is chosen has used masking-out effect, to be covered
Version parameter.
In conjunction with second embodiment of second aspect, in the third embodiment of second aspect of the present invention, in the figure
Mark calls respective function to obtain corresponding masking-out information from the server where the icon using in the case where masking-out.
In conjunction with the third embodiment of second aspect, in the 4th embodiment of second aspect of the present invention, when the figure
Then further include such as lower unit when mark is using masking-out:
Drawing unit calls drawing function to draw masking-out for being based on the masking-out information;
Capping unit, for covering all icons in the masking-out to interface.If the icon that user chooses has
Masking-out design, then also do same masking-out covering treatment for other icons, to reach the ideal effect of user.
In conjunction with second aspect, in the 5th embodiment of second aspect of the present invention, the color rule, which includes at least, to be used
In phenogram target tone, brightness, the parameter of saturation degree.
In conjunction with second aspect, in the 6th embodiment of second aspect of the present invention, the second acquisition module further includes
Such as lower unit:
First color acquiring unit, for obtaining the color parameter of all pixels point in the unit area;
First parameter acquiring unit, for the average value of the color parameter of all pixels point in unit of account region, to make
For the parameter preset of the icon of corresponding setting in the unit area.
In conjunction with the 6th embodiment of second aspect, in the 7th embodiment of second aspect of the present invention, described second
Obtaining module further includes such as lower unit:
First setting unit, for the icon of corresponding setting in each unit area to be arranged according to the parameter preset
Color.The parameter preset be as to the sampling of each unit area, it is average after obtained from, therefore the color of icon can be with
Interface fusion.
In conjunction with second aspect, in the 8th embodiment of second aspect of the present invention, the second acquisition module further includes
Such as lower unit:
Second color acquiring unit, for obtaining the color parameter of all pixels point in unit area;
Second parameter acquiring unit, for counting the number of the consistent pixel of color parameter, and by the largest number of pictures
Parameter preset of the color parameter of vegetarian refreshments as the icon of corresponding setting in the unit area.
In conjunction with the 8th embodiment of second aspect, in the 9th embodiment of second aspect of the present invention, described second
Obtaining module further includes such as lower unit:
Second setting unit, for the icon of corresponding setting in each unit area to be arranged according to the parameter preset
Color.The parameter preset is the color parameter for taking the largest number of pixels, and the largest number of pixels have the unit area
The representativeness of domain color rule, therefore icon can be good with interface fusion.
In conjunction with second aspect, in the tenth embodiment of second aspect of the present invention, the second acquisition module further includes
Such as lower unit:
Third color acquiring unit, for obtaining the color parameter of all pixels point in unit area;
Third parameter acquiring unit calculates the number and is located at for counting the number of the consistent pixel of color parameter
The average value for pre-seting the color parameter of the pixel of number or more, using as in the correspondence unit area set icon it is pre-
Setting parameter.
In conjunction with the tenth embodiment of second aspect, in the tenth one embodiment of second aspect of the present invention, described
Two acquisition modules further include such as lower unit:
Third setting unit, for institute in each unit area to be arranged according to the parameter preset in each unit area
The color of the corresponding icon of arrangement.In the present embodiment, it will average and obtain after the less color parameter removal of accounting
Parameter preset, therefore icon can be more preferable with interface fusion.
In conjunction with second aspect, in the 12nd embodiment of second aspect of the present invention, further includes:
When being handled according to the regular shape all icons that current interface is shown, characterized according to icon
Function arrange icon.The function arrangement icon characterized according to icon is conducive to the position that user remembers icon when in use.
In conjunction with second aspect, in the 13rd embodiment of second aspect of the present invention, further includes:
When handling according to the regular shape all icons that current interface is shown, single icon institute is detected
The interfacial area accounted for calls the machine interactive function interface to remind user to add newly when its unit area is higher than preset area
Interface is to be large enough to hold all icons.When the icon chosen according to user carries out typesetting, when the occupied unit area of icon
When higher than preset area, when on interface all icons can not be accommodated, to user reminding to improve user experience.
The third aspect, the present invention also provides a kind of portable mobile termianls, comprising:
Touch-sensitive display, for perceiving operational order and showing corresponding interface according to the instruction;
Memory, for storing the program for the adaptation processing method for supporting R-T unit to execute above-mentioned icon and interface;
Communication interface, for above-mentioned icon and the adaptation processing device at interface and other equipment or communication;
One or more processors, for executing the program stored in the memory;
One or more application program, wherein one or more of application programs are stored in the memory and quilt
Be configured to be executed by one or more of processors, one or more of programs be configurable for executing above-mentioned icon and
The method of the adaptation processing at interface.
It include processor and storage in the structure of the adaptation processing device at icon and interface in a possible design
Device, the memory are used to store the program for supporting R-T unit to execute the above method, the processor is configured to for holding
The program stored in the row memory.The icon and the adaptation processing device at interface can also include communication interface, be used for
Icon and the adaptation processing device at interface and other equipment or communication.
Fourth aspect, the embodiment of the invention provides a kind of computer storage mediums, for being stored as above-mentioned icon and boundary
Computer software instructions used in the adaptation processing device in face, it includes for executing the adaptation that above-mentioned aspect is icon and interface
Program designed by processing unit.
Compared with the existing technology, user can arbitrarily select an icon and on interface with the regular shape of icon work
Arrange other all icons, relative to the mode of pad parameter one by one, what this method can intuitively be observed in user are removed for reference
In the case of allow user to make a choice, so that the step of eliminating preview, has the characteristics of easy operation.And the present invention also provides
The integration program of icon and interface color, all icons are arranged according to the regular shape of icon selected by user on to interface
Afterwards, interface is split as unit of present invention interface size shared by the single icon, then from multiple unit areas by
One sampling is corresponded to according to the color rule in each unit area to obtain the color rule of each unit area
The icon of setting is successively handled, so that the color of icon and interface color bleeding.In the solution of the present invention, taken by subregion
The mode of sample obtains interface color rule, can extract color rule representative in single region, has simple, fast
Prompt feature.According to technical solutions according to the invention arrangement icon, not only the shape of icon is consistent, and all icons can
It is adapted to interface color, there is beautification human-computer interaction interface, the effect of intuitive display, to improve user experience.
The aspects of the invention or other aspects can more straightforwards in the following description.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows the adaptation processing method flow chart at icon according to an embodiment of the invention and interface.
Fig. 2 shows according to an embodiment of the invention when icon uses masking-out to the flow chart of icon processing.
Fig. 3 shows according to an embodiment of the invention for obtaining the flow chart of the color rule in constituent parts region.
Fig. 4 shows in accordance with another embodiment of the present invention for obtaining the process of the color rule in constituent parts region
Figure.
Fig. 5 shows in accordance with another embodiment of the present invention for obtaining the process of the color rule in constituent parts region
Figure.
Fig. 6 shows in accordance with another embodiment of the present invention for obtaining the process of the color rule in constituent parts region
Figure.
Fig. 7 shows in accordance with another embodiment of the present invention for obtaining the process of the color rule in constituent parts region
Figure.
Fig. 8 shows in accordance with another embodiment of the present invention for obtaining the process of the color rule in constituent parts region
Figure.
Fig. 9 shows the adaptation processing device block diagram at icon according to an embodiment of the invention and interface.
Figure 10 show it is according to an embodiment of the invention when the icon is using masking-out to the processing block diagram of masking-out.
Figure 11 shows according to an embodiment of the invention second and obtains module frame chart.
Figure 12 shows in accordance with another embodiment of the present invention second and obtains module frame chart.
Figure 13 shows in accordance with another embodiment of the present invention second and obtains module frame chart.
Figure 14 shows in accordance with another embodiment of the present invention second and obtains module frame chart.
Figure 15 shows in accordance with another embodiment of the present invention second and obtains module frame chart.
Figure 16 shows in accordance with another embodiment of the present invention second and obtains module frame chart.
Figure 17 shows a kind of composition block diagrams of portable mobile termianl according to an embodiment of the invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to
Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its
Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number
It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can
To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not
Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Explanation of nouns involved in the present invention is as follows:
Regular shape, regular shape of the present invention refer to total summary of characterization icon face shaping, the shape rule
Then include at least for phenogram target shape, size, rotation, filter, scaling parameter.By obtaining these ginsengs of icon
Number can obtain shape, size, selection, the consistent icon of filter.
Interface, interface of the present invention refer to human-computer interaction interface, including mobile phone interface, computer interface, POS machine circle
Face, cash dispenser interface etc., it may be said that it is all to have display screen, it can show the interfaces of several icons all described in the present invention
Interface within.
Drawing function, using the generation of preset drawing function and theme icon sizes, the consistent grey mask of shape, such as
The default setColor function using in Paint class shears icon, and function header is setColor (int color), uses
Drafting color can be set in the function, and color indicates that the color value includes transparency parameter and RGB color using color value
Parameter.
Color rule, color rule are to characterize some parameters, including coloration, tone, saturation degree etc. of icon color, are passed through
The color that icon can be arranged in these parameters is set.
Color parameter, color parameter are the parameters of specific characterization color rule, are gone by these specific color parameters
Icon is configured.
Present invention is mainly applied to mobile terminal, the terminal can be include mobile phone, tablet computer, PDA (Personal
Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer etc. it is any eventually
End equipment.Multiple icons can be placed in the terminal that these contain interactive interface, on interactive interface to use for selection by the user,
And with the continuous enhancement of hardware facility, software function diversified development, a variety of icons placed on interface inevitably have dim eyesight
Confused feeling, user need a kind of efficiently method arrangement icon.
First embodiment of the invention provides the adaptation processing method of a kind of icon and interface, as shown in Figure 1, including such as
Lower step:
S101 obtains the regular shape of the icon in response to user to the selected operational order of icon any on interface.One
As, multiple shapes, icon or control of different sizes are shown on interface, when user selects one of icon, system
Meeting automatic identification is selected the parameter of the regular shape of icon.In the present embodiment, icon that user is chosen as reference, without
It is that successively setup parameter, this method can allow user to be selected according to the visual effect to icon by user, this method tool
There have the characteristics that be intuitive, convenient.
S102 handles all icons that current interface is shown according to the regular shape, to generate unification
The icon of regular shape;After system obtains the parameter of selected icon from the icon that user selects automatically, system can generate one
The parameter list of series characterization icon shape rule, so that the icon of uniform shapes rule is generated, to meet user to icon shape
The requirement of feature.
S103, dividing current interface as unit of interface size shared by single icon of arranging is multiple unit areas, is obtained
The color rule for taking constituent parts region is successively located according to the color rule to the icon being correspondingly arranged in constituent parts region is located at
Reason, so that the color of icon and interface color bleeding.It in the present embodiment, is single with interface size shared by single icon of arranging
Segmentation current interface in position is the method for subregion sampling to handled respectively each unit area, relative to whole sampling,
With quick, accurate feature is sampled.
Further, the regular shape, which includes at least, is used for phenogram target shape, size, rotation, filter, pantograph ratio
The parameter of example.In the present embodiment, after obtaining the icon that user is chosen, by modifying icon parameter, such as modification icon
Figure layer relevant parameter can change the shape of icon, size etc., as android:layout_width can change icon
Width, the android:layout_height of control can change the height of icon control.
Further, the regular shape further includes the mask parameters of the icon.In the present embodiment, user institute is detected
Whether the icon chosen has used masking-out effect, to obtain mask parameters.It tests whether the icon uses masking-out, needs to survey
Whether examination has figure layer on the icon, if there is figure layer, has put on masking-out with regard to explanatory diagram.
Further, in the case where the icon uses masking-out, the service where respective function from the icon is called
Corresponding masking-out information is obtained in device.When obtaining icon parameter, the parameters such as size, shape, rotation, filter are obtained, such as in journey
The other parts of sequence can obtain the occurrence of progress variable progress and icon width variable height, by defining one
Variable top is the height that float top=(height/100.0f) * progress obtains icon according to its definition statement, i.e.,
The value of top.
Further, when the icon uses masking-out, as shown in Fig. 2, then further including following steps:
S201, the masking-out information call drawing function to draw masking-out;In an embodiment of the invention, Paint is utilized
Class, which is drawn, generates a canvas painting canvas, then will using the setColor class of Paint in the altitude range being previously detected
Canvas painting canvas is depicted as the mask color for the icon that user is chosen, and then by calling the Andriod source code of open source, answers
With Paint class, for example, it is default can be to mask using setXfermode (new (PorterDuff.Mode.DST_IN)) function
It is cut and is cut into shape used in the chosen icon of user, such as face can be set with AvoidXfermode subclass
Color and tolerance force Paint to draw within its scope;For another example PixelXorXfermode subclass can be existing in covering
When color, using pixel-wise XOR operation;For another example PorterDuffXfermode subclass is a kind of translative mode, can be made using it
With image synthesize 16 Porter-Duff rule any one come control Paint how with existing canvas painting canvas figure
Picture interacts, such as interacts with canvas grey mask painting canvas.
S202 is covered on all icons in the masking-out to interface.If the icon that user chooses is designed with masking-out,
Other icons are also then done into same masking-out covering treatment, to reach the ideal effect of user.
Further, the color rule, which includes at least, is used for phenogram target tone, brightness, the parameter of saturation degree.This
It is understood that color available hues, saturation degree and brightness describe, these three parameters represent people's by technical staff in field
Direct feel, colourama seen by person are nearly all the resultant effects of these three characteristics, these three are the three elements of color.Institute
State color rule including at least phenogram target tone, brightness, saturation degree parameter, so as to according to these three parameter settings
The color of icon.
In one embodiment of the invention, the color rule for obtaining constituent parts region, as shown in figure 3, it is specific
Include the following steps:
S301 obtains the color parameter of all pixels point in the unit area;In one embodiment of the invention, lead to
It crosses and interface is divided into several unit areas, it is then separately sampled to each unit area, wherein sampling is by each
Pixel sampling is realized.By obtaining the color parameter of each pixel in the unit area, the available unit area
Middle color rule.
S302, the average value of the color parameter of all pixels point in unit of account region, using as institute in the unit area
The parameter preset for the icon being correspondingly arranged.In an embodiment of the present invention, the color of all pixels point is joined in unit of account region
Several average value, which refers to, calculates average value to three parameters of characterization color rule respectively, that is, calculates separately tone, brightness, saturation
The average value of degree, then using the average value of three parameters as parameter preset, all icons in set interface.
In one embodiment of the invention, as shown in figure 4, further including following steps:
The color of the icon of corresponding setting in each unit area is arranged according to the parameter preset by S303.It is described pre-
Setting parameter be as to the sampling of each unit area, it is average after obtained from, therefore the color of icon can and interface fusion.It is logical
The drafting for calling system function to may be implemented to icon is crossed, such as in Andriod system, by calling painting canvas to realize to icon
Drafting, first create a paintbrush object, then icon matrices are drawn by drawing function drawBitmap, are passed through
MColorMatrix.set be arranged color matrix, by setColorFilter be arranged paintbrush filter, and etc. generate it is specific
The icon of color.
In one embodiment of the invention, the color rule for obtaining constituent parts region, as shown in figure 5, specific packet
Include following steps:
S401 obtains the color parameter of all pixels point in unit area;In one embodiment of the invention, pass through by
Interface is divided into several unit areas, then separately sampled to each unit area, wherein sampling is by each pixel
Point sampling is realized.By obtaining the color parameter of each pixel in the unit area, color in the available unit area
Color rule.
S402 counts the number of the consistent pixel of color parameter, and the color parameter of the largest number of pixels is made
For the parameter preset of the icon of corresponding setting in the unit area.In an embodiment of the present invention, by the largest number of pixels
Parameter preset of the color parameter of point as the icon of corresponding setting in the unit area, i.e., respectively by the largest number of pixels
The tone of color parameter of point, brightness, saturation degree average value go that other icons are arranged as parameter preset.
Further, as shown in Figure 6, further includes:
The color of the icon of corresponding setting in each unit area is arranged according to the parameter preset by S403.It is described pre-
Setting parameter is the color parameter for taking the largest number of pixels, and the largest number of pixels have the unit area color rule
Representativeness, therefore icon can be good with interface fusion.It may be implemented the drafting to icon by calling system function, such as
In Andriod system, by calling painting canvas to realize the drafting to icon, a paintbrush object is created first, then by drawing
Function drawBitmap draws icon matrices, and color matrix is arranged by mColorMatrix.set, passes through
SetColorFilter be arranged paintbrush filter, and etc. generate particular color icon.
In one embodiment of the invention, the color rule for obtaining constituent parts region, as shown in fig. 7, specific packet
Include following steps:
S501 obtains the color parameter of all pixels point in unit area;In one embodiment of the invention, pass through by
Interface is divided into several unit areas, then separately sampled to each unit area, wherein sampling is by each pixel
Point sampling is realized.By obtaining the color parameter of each pixel in the unit area, color in the available unit area
Color rule.
S502, count the consistent pixel of color parameter number, calculate the number be located at pre-set number or more
The average value of the color parameter of pixel, using the parameter preset as set icon in the correspondence unit area.In this implementation
In example, when the number is located under the color parameter for the pixel for pre-seting number or more, then this color parameter is in the unit
Do not have representativeness in region, the parameter preset calculated and ignoring these color parameters is more representative.For example,
In one embodiment, preset value number is 10, and the pixel that color parameter is 0,0,0 in the unit area only has 3, then
This 0,0,0 will be ignored.
Further, as shown in Figure 8, further includes:
S503, be arranged according to the parameter preset in each unit area arranged in each unit area it is corresponding
The color of icon.In the present embodiment, it will average after the less color parameter removal of accounting and obtain parameter preset, therefore
Icon can be more preferable with interface fusion.The drafting to icon may be implemented by calling system function, such as in Andriod system
In system, by calling painting canvas to realize the drafting to icon, a paintbrush object is created first, then by drawing function
DrawBitmap draws icon matrices, and color matrix is arranged by mColorMatrix.set, passes through
SetColorFilter be arranged paintbrush filter and etc. generate particular color icon.
Preferably, when being handled according to the regular shape all icons that current interface is shown, according to figure
It marks characterized function and arranges icon.Such as be arranged together the icon " Taobao " of characterization shopping, " Jingdone district " etc., according to icon
The function arrangement icon characterized is conducive to the position that user remembers icon when in use, facilitates user's use.
Preferably, when handling according to the regular shape all icons that current interface is shown, detection is single
Interfacial area shared by a icon calls the machine interactive function interface to remind use when its unit area is higher than preset area
New interface is added to be large enough to hold all icons in family.When the icon chosen according to user carries out typesetting, when icon is occupied
When unit area is higher than preset area, when on interface all icons can not be accommodated, to user reminding to improve user experience.
In a second embodiment of the present invention, the present invention provides the adaptation processing devices of a kind of icon and interface, should
Icon and the adaptation processing device at interface have the adaptation processing method for realizing icon and interface in above-mentioned one embodiment
The function of behavior.The function can also execute corresponding software realization by hardware realization by hardware.The hardware
Or software includes one or more modules corresponding with above-mentioned function.As shown in figure 9, including following module:
First acquisition module 101 obtains the figure for the selected operational order in response to user to icon any on interface
Target regular shape;Generally, multiple shapes, icon or control of different sizes are shown on interface, when user selects wherein
When one icon, first obtains the parameter that the meeting automatic identification of module 101 is selected the regular shape of icon.It, will in the present embodiment
The icon that user chooses is as reference, rather than successively setup parameter, this method can allow user according to icon by user
Visual effect is selected, and this method has the characteristics that intuitive, convenient.
Processing module 102, all icons for showing to current interface are handled according to the regular shape, from
And the icon of uniform shapes rule is generated, to meet requirement of the user to icon shape feature.When first obtain module 101 from
Automatically after the parameter for obtaining selected icon in the icon of user's selection, processing module 102 can generate a series of characterization icon shapes
The parameter list of rule, so that the icon of uniform shapes rule is generated, to meet requirement of the user to icon shape feature.
Second obtains module 103, is for dividing current interface as unit of interface size shared by single icon of arranging
Multiple unit areas obtain the color rule in constituent parts region, set according to the color rule to correspondence in constituent parts region is located at
The icon set successively is handled, so that the color of icon and interface color bleeding.In the present embodiment, to arrange shared by single icon
Interface size be that unit divides current interface, be the method for subregion sampling to handled respectively each unit area, by
Second obtains the sampling of 103 subregion of module, relative to whole sampling, has fast, samples accurate feature.
Further, the regular shape, which includes at least, is used for phenogram target shape, size, rotation, filter, pantograph ratio
The parameter of example.In the present embodiment, after obtaining the icon that user is chosen, by modifying icon parameter, such as modification icon
Figure layer relevant parameter can change the shape of icon, size etc., as android:layout_width can change icon
Width, android:layout_height can change the height of icon.
Further, the regular shape further includes the mask parameters of the icon.In the present embodiment, user institute is detected
Whether the icon chosen has used masking-out effect, to obtain mask parameters.It tests whether the icon uses masking-out, needs to survey
Whether examination has figure layer on the icon, if there is figure layer, has put on masking-out with regard to explanatory diagram.
Further, in the case where the icon uses masking-out, the service where respective function from the icon is called
Corresponding masking-out information is obtained in device.When obtaining icon parameter, the parameters such as size, shape, rotation, filter are obtained, such as in journey
The other parts of sequence can obtain the occurrence of progress variable progress and icon width variable height, by defining one
Variable top is the height that float top=(height/100.0f) * progress obtains icon according to its definition statement, i.e.,
The value of top.
Further, then further include such as lower unit as shown in Figure 10 when the icon uses masking-out:
Drawing unit 201 calls drawing function to draw masking-out for being based on the masking-out information;In a reality of the invention
It applies in example, drawing unit 201 is drawn using Paint class and generates a canvas painting canvas, then in the height model being previously detected
The mask color that canvas painting canvas is depicted as the icon that user is chosen by the interior setColor class using Paint is enclosed, is then led to
The Andriod source code for calling open source is crossed, using Paint class, for example (,) it is default using setXfermode (new
(PorterDuff.Mode.DST_IN)) function can cut mask and is cut into used in the chosen icon of user
Shape, such as color and tolerance can be set with AvoidXfermode subclass, force Paint to draw within its scope;Again
As PixelXorXfermode subclass can be when covering existing color, using pixel-wise XOR operation;For another example
PorterDuffXfermode subclass is a kind of translative mode, and 16 Porter-Duff of image synthesis can be used using it
Any one of rule controls how Paint interacts with existing canvas painting canvas image, for example, with canvas grey
Mask painting canvas interacts.
Capping unit 202, for covering all icons in the masking-out to interface.If the icon tool that user chooses
There is masking-out design, other icons are then also done same masking-out covering treatment by capping unit 202, so that it is ideal to reach user
Effect.
Preferably, the color rule, which includes at least, is used for phenogram target tone, brightness, the parameter of saturation degree.Ability
It is understood that color available hues, saturation degree and brightness describe, these three parameters represent the straight of people by technical staff in domain
Perception is by colourama seen by person is nearly all the resultant effect of these three characteristics, these three are the three elements of color.It is described
Color rule include at least phenogram target tone, brightness, saturation degree parameter, so as to according to these three parameter setting figures
Target color.
In one embodiment of the invention, as shown in figure 11, the second acquisition module 103 further includes such as lower unit:
First color acquiring unit 301, for obtaining the color parameter of all pixels point in the unit area;In this hair
In bright one embodiment, the first color acquiring unit 301 is by being divided into several unit areas for interface, then to each
Unit area is separately sampled, wherein sampling is realized by sampling to each pixel.It is every in the unit area by obtaining
The color parameter of a pixel, color rule in the available unit area.
First parameter acquiring unit 302, for the average value of the color parameter of all pixels point in unit of account region, with
Parameter preset as the icon of corresponding setting in the unit area.In an embodiment of the present invention, the first parameter obtains single
The average value of the color parameter of all pixels point refers to respectively to three ginsengs of characterization color rule in first 302 unit of account regions
Number calculate average values, that is, calculate separately tone, brightness, saturation degree average value, then using the average value of three parameters as in advance
Setting parameter, all icons in set interface.
Further, as shown in figure 12, the second acquisition module 103 further includes such as lower unit:
First setting unit 303, for the figure of corresponding setting in each unit area to be arranged according to the parameter preset
Target color.The parameter preset be as to the sampling of each unit area, it is average after obtained from, therefore the color energy of icon
Enough and interface fusion.The drafting to icon may be implemented by calling system function, such as in Andriod system, first is set
Unit 303 is set by calling painting canvas to realize the drafting to icon, a paintbrush object is created first, then by drawing function
DrawBitmap draws icon matrices, and color matrix is arranged by mColorMatrix.set, passes through
SetColorFilter be arranged paintbrush filter, and etc. generate particular color icon.
In another embodiment of the present invention, the second acquisition module 103 further includes such as lower unit:
Second color acquiring unit 401, for obtaining the color parameter of all pixels point in unit area;Of the invention
In one embodiment, the second color acquiring unit 401 is by being divided into several unit areas for interface, then to each unit
Region is separately sampled, wherein sampling is realized by sampling to each pixel.By obtaining each picture in the unit area
The color parameter of vegetarian refreshments, color rule in the available unit area.
Second parameter acquiring unit 402, for counting the number of the consistent pixel of color parameter, and will be the largest number of
Parameter preset of the color parameter of pixel as the icon of corresponding setting in the unit area.In the embodiment of the present invention
In, the second parameter acquiring unit 402 is using the color parameter of the largest number of pixels as corresponding setting in the unit area
Icon parameter preset, i.e., respectively by the tone of the color parameter of the largest number of pixels, brightness, saturation degree average value
It goes that other icons are arranged as parameter preset.
Further, as shown in figure 14, the second acquisition module further includes such as lower unit:
Second setting unit 403, for the figure of corresponding setting in each unit area to be arranged according to the parameter preset
Target color.The parameter preset is the color parameter for taking the largest number of pixels, and the largest number of pixels have the list
The representativeness of position regional color rule, therefore icon can be good with interface fusion.Second setting unit 403 passes through calling system
The drafting to icon may be implemented in function, such as in Andriod system, first by calling painting canvas to realize the drafting to icon
A paintbrush object is first created, then icon matrices are drawn by drawing function drawBitmap, are passed through
MColorMatrix.set be arranged color matrix, by setColorFilter be arranged paintbrush filter, and etc. generate it is specific
The icon of color.
In another embodiment of the present invention, as shown in figure 15, the second acquisition module 103 further includes as placed an order
Member:
Third color acquiring unit 501, for obtaining the color parameter of all pixels point in unit area;Of the invention
In one embodiment, third color acquiring unit 501 is by being divided into several unit areas for interface, then to each unit
Region is separately sampled, wherein sampling is realized by sampling to each pixel.By obtaining each picture in the unit area
The color parameter of vegetarian refreshments, color rule in the available unit area.
Third parameter acquiring unit 502 calculates a numerical digit for counting the number of the consistent pixel of color parameter
In the average value of the color parameter for the pixel for pre-seting number or more, using as set icon in the correspondence unit area
Parameter preset.In the present embodiment, when the number be located at pre-set number or more pixel color parameter under, then it is this
Color parameter does not have representativeness in the unit area, and third parameter acquiring unit 502 is and ignoring these color parameters
The parameter preset calculated is more representative.For example, in one embodiment, preset value number is 10, and the unit area
The pixel that color parameter is 0,0,0 in domain only has 3, then this 0,0,0 will be ignored.
Further, as shown in figure 16, the second acquisition module further includes such as lower unit:
Third setting unit 503, for each unit area to be arranged according to the parameter preset in each unit area
The color of interior arranged corresponding icon.In the present embodiment, will accounting it is less color parameter removal after average and
Parameter preset is obtained, therefore icon can be more preferable with interface fusion.Third setting unit 503 can be with by calling system function
The drafting to icon is realized, such as in Andriod system, by calling painting canvas to realize the drafting to icon, first newly-built one
A paintbrush object, then draws icon matrices by drawing function drawBitmap, passes through mColorMatrix.set
Be arranged color matrix, by setColorFilter be arranged paintbrush filter, and etc. generate particular color icon.
Preferably, when being handled according to the regular shape all icons that current interface is shown, according to figure
It marks characterized function and arranges icon.The function arrangement icon characterized according to icon is conducive to user and remembers icon when in use
Position.Such as be arranged together the icon " Taobao " of characterization shopping, " Jingdone district " etc., it is arranged according to the function that icon is characterized
Icon is conducive to the position that user remembers icon when in use, facilitates user's use.
Preferably, when handling according to the regular shape all icons that current interface is shown, detection is single
Interfacial area shared by a icon calls the machine interactive function interface to remind use when its unit area is higher than preset area
New interface is added to be large enough to hold all icons in family.When the icon chosen according to user carries out typesetting, when icon is occupied
When unit area is higher than preset area, when on interface all icons can not be accommodated, to user reminding to improve user experience.
The embodiment of the invention also provides a kind of Portable movable terminals, as shown in figure 17, for ease of description, only show
Go out part related to the embodiment of the present invention, it is disclosed by specific technical details, please refer to present invention method part.
The terminal can be include any terminal device such as mobile phone, tablet computer, PDA, POS, vehicle-mounted computer, be by mobile phone of terminal
Example:
Figure 17 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure
17, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1710, memory 1720, input unit 1730, display unit
1740, sensor 1750, voicefrequency circuit 1760, Wireless Fidelity (wireless fidelity, WiFi) module 1770, processor
The components such as 1780 and power supply 1790.It will be understood by those skilled in the art that handset structure shown in Figure 17 is not constituted pair
The restriction of mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
It is specifically introduced below with reference to each component parts of the Figure 17 to mobile phone:
RF circuit 1710 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 1780;In addition, the data for designing uplink are sent to base station.In general, RF circuit
1710 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuit 1710 can also be logical with network and other equipment by wireless communication
Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication
System of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access
(Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution,
LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1720 can be used for storing software program and module, and processor 1780 is stored in memory by operation
1720 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1720 can be led
It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone
Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1720 may include high random access storage
Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid
State memory device.
Input unit 1730 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 1730 may include touch panel 1731 and other inputs
Equipment 1732.Touch panel 1731, also referred to as touch screen collect touch operation (such as the user of user on it or nearby
Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1731 or near touch panel 1731
Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1731 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 1780, and order that processor 1780 is sent can be received and executed.In addition,
Touch panel 1731 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface
Plate 1731, input unit 1730 can also include other input equipments 1732.Specifically, other input equipments 1732 may include
But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more.
Display unit 1740 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1740 may include display panel 1741, optionally, can use liquid crystal display (Liquid
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 1741.Further, touch panel 1731 can cover display panel 1741, when touch panel 1731 detects
After arriving touch operation on it or nearby, processor 1780 is sent to determine the type of touch event, is followed by subsequent processing device
1780 provide corresponding visual output according to the type of touch event on display panel 1741.Although in Figure 17, touch surface
Plate 1731 and display panel 1741 are the input and input function for realizing mobile phone as two independent components, but certain
In embodiment, can be integrated by touch panel 1731 and display panel 1741 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1750, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel 1741, proximity sensor can close display panel when mobile phone is moved in one's ear
1741 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1760, loudspeaker 1761, microphone 1762 can provide the audio interface between user and mobile phone.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 1761, be converted by loudspeaker 1761 by circuit 1760
For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1762, by voicefrequency circuit 1760
Audio data is converted to after reception, then by after the processing of audio data output processor 1780, through RF circuit 1710 to be sent to ratio
Such as another mobile phone, or audio data is exported to memory 1720 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1770
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 17 shows
WiFi module 1770, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 1780 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1720, and calls and be stored in memory 1720
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor
1780 may include one or more processing units;Preferably, processor 1780 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1780.
Mobile phone further includes the power supply 1790 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply
Management system and processor 1780 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 1780 included by the terminal is also with the following functions:
In response to user to the selected operational order of icon any on interface, the regular shape of the icon is obtained;
All icons that current interface is shown are handled according to the regular shape, to generate uniform shapes rule
Icon then;
Dividing current interface as unit of interface size shared by single icon of arranging is multiple unit areas, obtains each list
The color rule in position region is successively handled according to the color rule the icon being correspondingly arranged in constituent parts region is located at, so that
The color and interface color bleeding of icon.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can store in a kind of computer readable storage medium, on
Stating the storage medium mentioned can be read-only memory, disk or CD etc..
In conclusion technical solution provided by the present invention is as described below:
The adaptation processing method of A1, a kind of icon and interface, include the following steps:
In response to user to the selected operational order of icon any on interface, the regular shape of the icon is obtained;
All icons that current interface is shown are handled according to the regular shape, to generate uniform shapes rule
Icon then;
Dividing current interface as unit of interface size shared by single icon of arranging is multiple unit areas, obtains each list
The color rule in position region is successively handled according to the color rule the icon being correspondingly arranged in constituent parts region is located at, so that
The color and interface color bleeding of icon.
A2, the processing method according to claim A1, the regular shape, which includes at least, is used for phenogram target shape
Shape, size, rotation, filter, scaling parameter.
A3, the processing method according to claim A1, the regular shape further include the mask parameters of the icon.
A4, the processing method according to claim A3 call corresponding letter in the case where the icon uses masking-out
Number obtains corresponding masking-out information from the server where the icon.
A5, the processing method according to claim A4 then further include walking as follows when the icon uses masking-out
It is rapid:
Based on the masking-out information, drawing function is called to draw masking-out;
It covers on all icons in the masking-out to interface.
A6, the processing method according to claim A1, the color rule, which includes at least, is used for phenogram target color
It adjusts, brightness, the parameter of saturation degree.
A7, the processing method according to claim A1, the color rule for obtaining constituent parts region are specific to wrap
Include following steps:
Obtain the color parameter of all pixels point in the unit area;
The average value of the color parameter of all pixels point in unit of account region, to be set as corresponding in the unit area
The parameter preset for the icon set.
A8, the processing method according to claim A7, further includes:
The color of the icon of corresponding setting in each unit area is set according to the parameter preset.
A9, the processing method according to claim A1, the color rule for obtaining constituent parts region, specifically include
Following steps:
Obtain the color parameter of all pixels point in unit area;
The number of the consistent pixel of color parameter is counted, and using the color parameter of the largest number of pixels as the list
The parameter preset of the icon of corresponding setting in the region of position.
A10, the processing method according to claim A9, further includes:
The color of the icon of corresponding setting in each unit area is set according to the parameter preset.
A11, the processing method according to claim A1, the color rule for obtaining constituent parts region are specific to wrap
Include following steps:
Obtain the color parameter of all pixels point in unit area;
The number for counting the consistent pixel of color parameter calculates the number and is located at the pixel for pre-seting number or more
Color parameter average value, using the parameter preset as set icon in the correspondence unit area.
A12, the processing method according to claim A11, further includes:
The corresponding icon arranged in each unit area is set according to the parameter preset in each unit area
Color.
A13, the processing method according to claim A1, further includes:
When being handled according to the regular shape all icons that current interface is shown, characterized according to icon
Function arrange icon.
A14, the processing method according to claim A1, further includes:
When handling according to the regular shape all icons that current interface is shown, single icon institute is detected
The interfacial area accounted for calls the machine interactive function interface to remind user to add newly when its unit area is higher than preset area
Interface is to be large enough to hold all icons.
The adaptation processing device of B15, a kind of icon and interface, including following module:
First acquisition module obtains the icon for the selected operational order in response to user to icon any on interface
Regular shape;
Processing module, all icons for showing to current interface are handled according to the regular shape, thus
Generate the icon of uniform shapes rule;
Second obtains module, is multiple for dividing current interface as unit of interface size shared by single icon of arranging
Unit area obtains the color rule in constituent parts region, is correspondingly arranged according to the color rule to being located in constituent parts region
Icon is successively handled, so that the color of icon and interface color bleeding.
B16, the processing unit according to claim B15, the regular shape, which includes at least, is used for phenogram target
Shape, size, rotation, filter, scaling parameter.
B17, the processing unit according to claim B15, the regular shape further include the masking-out ginseng of the icon
Number.
B18, the processing unit according to claim B17 are called corresponding in the case where the icon uses masking-out
Function obtains corresponding masking-out information from the server where the icon.
B19, the processing unit according to claim B18 then further include as placed an order when the icon uses masking-out
Member:
Drawing unit calls drawing function to draw masking-out for being based on the masking-out information;
Capping unit, for covering all icons in the masking-out to interface.
B20, the processing unit according to claim B15, the color rule, which includes at least, is used for phenogram target
Tone, brightness, the parameter of saturation degree.
B21, the processing unit according to claim B15, the second acquisition module further includes such as lower unit:
First color acquiring unit, for obtaining the color parameter of all pixels point in the unit area;
First parameter acquiring unit, for the average value of the color parameter of all pixels point in unit of account region, to make
For the parameter preset of the icon of corresponding setting in the unit area.
B22, the processing unit according to claim B21, the second acquisition module further includes such as lower unit:
First setting unit, for the icon of corresponding setting in each unit area to be arranged according to the parameter preset
Color.
B23, the processing unit according to claim B15, the second acquisition module further includes such as lower unit:
Second color acquiring unit, for obtaining the color parameter of all pixels point in unit area;
Second parameter acquiring unit, for counting the number of the consistent pixel of color parameter, and by the largest number of pictures
Parameter preset of the color parameter of vegetarian refreshments as the icon of corresponding setting in the unit area.
B24, the processing unit according to claim B23, the second acquisition module further includes such as lower unit:
Second setting unit, for the icon of corresponding setting in each unit area to be arranged according to the parameter preset
Color.
B25, the processing unit according to claim B15, the second acquisition module further includes such as lower unit:
Third color acquiring unit, for obtaining the color parameter of all pixels point in unit area;
Third parameter acquiring unit calculates the number and is located at for counting the number of the consistent pixel of color parameter
The average value for pre-seting the color parameter of the pixel of number or more, using as in the correspondence unit area set icon it is pre-
Setting parameter.
B26, the processing unit according to claim B25, the second acquisition module further includes such as lower unit:
Third setting unit, for institute in each unit area to be arranged according to the parameter preset in each unit area
The color of the corresponding icon of arrangement.
B27, the processing unit according to claim B15, further includes:
When being handled according to the regular shape all icons that current interface is shown, characterized according to icon
Function arrange icon.
B28, the processing unit according to claim B15, further includes:
When handling according to the regular shape all icons that current interface is shown, single icon institute is detected
The interfacial area accounted for calls the machine interactive function interface to remind user to add newly when its unit area is higher than preset area
Interface is to be large enough to hold all icons.
C29, a kind of portable mobile termianl, comprising:
Touch-sensitive display, for perceiving operational order and showing corresponding interface according to the instruction;
Memory, for storing the program for the adaptation processing method for supporting R-T unit to execute above-mentioned icon and interface;
Communication interface, for above-mentioned icon and the adaptation processing device at interface and other equipment or communication;
One or more processors, for executing the program stored in the memory;
One or more application program, wherein one or more of application programs are stored in the memory and quilt
It is configured to be executed by one or more of processors, one or more of programs are configurable for executing and be wanted according to right
Seek the described in any item methods of A1 to A14.
A kind of Portable movable terminal provided by the present invention is described in detail above, for the one of this field
As technical staff, thought according to an embodiment of the present invention, there will be changes in the specific implementation manner and application range, comprehensive
Upper described, the contents of this specification are not to be construed as limiting the invention.
Claims (29)
1. the adaptation processing method of a kind of icon and interface, which comprises the steps of:
In response to user to the selected operational order of icon any on interface, the regular shape of the icon is obtained;
All icons that current interface is shown are handled according to the regular shape, to generate uniform shapes rule
Icon;
Dividing current interface as unit of interface size shared by single icon of arranging is multiple unit areas, obtains constituent parts area
The color rule in domain is successively handled the icon being correspondingly arranged in constituent parts region is located at according to the color rule, so that icon
Color and interface color bleeding.
2. processing method according to claim 1, which is characterized in that the regular shape is included at least for characterizing icon
Shape, size, rotation, filter and scaling parameter.
3. processing method according to claim 1, which is characterized in that the regular shape further includes the masking-out of the icon
Parameter.
4. processing method according to claim 3, which is characterized in that in the case where the icon uses masking-out, call
Respective function obtains corresponding masking-out information from the server where the icon.
5. processing method according to claim 4, which is characterized in that when the icon use masking-out when, then further include as
Lower step:
Based on the masking-out information, drawing function is called to draw masking-out;
It covers on all icons in the masking-out to interface.
6. processing method according to claim 1, which is characterized in that the color rule is included at least for characterizing icon
Tone, brightness, the parameter of saturation degree.
7. processing method according to claim 1, which is characterized in that the color rule for obtaining constituent parts region,
Specifically comprise the following steps:
Obtain the color parameter of all pixels point in the unit area;
The average value of the color parameter of all pixels point in unit of account region, using as corresponding setting in the unit area
The parameter preset of icon.
8. processing method according to claim 7, which is characterized in that further include:
The color of the icon of corresponding setting in each unit area is set according to the parameter preset.
9. processing method according to claim 1, which is characterized in that the color rule for obtaining constituent parts region, tool
Body includes the following steps:
Obtain the color parameter of all pixels point in unit area;
The number of the consistent pixel of color parameter is counted, and using the color parameter of the largest number of pixels as the unit area
The parameter preset of the icon of corresponding setting in domain.
10. processing method according to claim 9, which is characterized in that further include:
The color of the icon of corresponding setting in each unit area is set according to the parameter preset.
11. processing method according to claim 1, which is characterized in that the color rule for obtaining constituent parts region, tool
Body includes the following steps:
Obtain the color parameter of all pixels point in unit area;
The number for counting the consistent pixel of color parameter calculates the number and is located at the color for pre-seting the pixel of number or more
The average value of colour parameter, using the parameter preset as set icon in the correspondence unit area.
12. processing method according to claim 11, which is characterized in that further include:
The color for the corresponding icon arranged in each unit area is set according to the parameter preset in each unit area
It is color.
13. processing method according to claim 1, which is characterized in that further include:
When being handled according to the regular shape all icons that current interface is shown, the function that is characterized according to icon
Icon can be arranged.
14. processing method according to claim 1, which is characterized in that further include:
When being handled according to the regular shape all icons that current interface is shown, detect shared by single icon
Interfacial area calls the machine interactive function interface to remind user to add new interface when its unit area is higher than preset area
To be large enough to hold all icons.
15. the adaptation processing device of a kind of icon and interface, which is characterized in that including following module:
First acquisition module obtains the shape of the icon for the selected operational order in response to user to icon any on interface
Shape rule;
Processing module, all icons for showing to current interface are handled according to the regular shape, to generate
The icon of uniform shapes rule;
Second obtains module, is multiple units for dividing current interface as unit of interface size shared by single icon of arranging
Region obtains the color rule in constituent parts region, according to the color rule to the icon being correspondingly arranged in constituent parts region
It successively handles, so that the color of icon and interface color bleeding.
16. processing unit according to claim 15, which is characterized in that the regular shape, which includes at least, is used for phenogram
Target shape, size, rotation, filter and scaling parameter.
17. processing unit according to claim 15, which is characterized in that the regular shape further includes the illiteracy of the icon
Version parameter.
18. processing unit according to claim 17, which is characterized in that in the case where the icon uses masking-out, adjust
Corresponding masking-out information is obtained from the server where the icon with respective function.
19. processing unit according to claim 18, which is characterized in that when the icon uses masking-out, then further include
Such as lower unit:
Drawing unit calls drawing function to draw masking-out for being based on the masking-out information;
Capping unit, for covering all icons in the masking-out to interface.
20. processing unit according to claim 15, which is characterized in that the color rule, which includes at least, is used for phenogram
Target tone, brightness, the parameter of saturation degree.
21. processing unit according to claim 15, which is characterized in that the second acquisition module further includes as placed an order
Member:
First color acquiring unit, for obtaining the color parameter of all pixels point in the unit area;
First parameter acquiring unit, for the average value of the color parameter of all pixels point in unit of account region, using as this
The parameter preset of the icon of corresponding setting in unit area.
22. processing unit according to claim 21, which is characterized in that the second acquisition module further includes as placed an order
Member:
First setting unit, for the color of the icon of corresponding setting in each unit area to be arranged according to the parameter preset
It is color.
23. processing unit according to claim 15, which is characterized in that the second acquisition module further includes as placed an order
Member:
Second color acquiring unit, for obtaining the color parameter of all pixels point in unit area;
Second parameter acquiring unit, for counting the number of the consistent pixel of color parameter, and by the largest number of pixels
Parameter preset of the color parameter as the icon of corresponding setting in the unit area.
24. processing unit according to claim 23, which is characterized in that the second acquisition module further includes as placed an order
Member:
Second setting unit, for the color of the icon of corresponding setting in each unit area to be arranged according to the parameter preset
It is color.
25. processing unit according to claim 15, which is characterized in that the second acquisition module further includes as placed an order
Member:
Third color acquiring unit, for obtaining the color parameter of all pixels point in unit area;
Third parameter acquiring unit calculates the number positioned at default for counting the number of the consistent pixel of color parameter
The average value for setting the color parameter of the pixel of number or more, using the default ginseng as set icon in the correspondence unit area
Number.
26. processing unit according to claim 25, which is characterized in that the second acquisition module further includes as placed an order
Member:
Third setting unit is arranged for being arranged in each unit area according to the parameter preset in each unit area
Corresponding icon color.
27. processing unit according to claim 15, which is characterized in that further include:
When being handled according to the regular shape all icons that current interface is shown, the function that is characterized according to icon
Icon can be arranged.
28. processing unit according to claim 15, which is characterized in that further include:
When being handled according to the regular shape all icons that current interface is shown, detect shared by single icon
Interfacial area calls the machine interactive function interface to remind user to add new interface when its unit area is higher than preset area
To be large enough to hold all icons.
29. a kind of portable mobile termianl characterized by comprising
Touch-sensitive display, for perceiving operational order and showing corresponding interface according to the instruction;
Memory, for storing the program for the adaptation processing method for supporting R-T unit to execute above-mentioned icon and interface;
Communication interface, for above-mentioned icon and the adaptation processing device at interface and other equipment or communication;
One or more processors, for executing the program stored in the memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of programs are configurable for executing according to claim 1
To 14 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610957925.4A CN106502510B (en) | 2016-10-27 | 2016-10-27 | Icon and the adaptation processing method at interface, device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610957925.4A CN106502510B (en) | 2016-10-27 | 2016-10-27 | Icon and the adaptation processing method at interface, device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502510A CN106502510A (en) | 2017-03-15 |
CN106502510B true CN106502510B (en) | 2019-08-20 |
Family
ID=58322480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610957925.4A Active CN106502510B (en) | 2016-10-27 | 2016-10-27 | Icon and the adaptation processing method at interface, device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502510B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122108B (en) * | 2017-04-27 | 2020-10-16 | 腾讯科技(深圳)有限公司 | Picture editing method and device |
CN107678627A (en) * | 2017-10-12 | 2018-02-09 | 深圳市万普拉斯科技有限公司 | Icon processing method, device and user terminal |
CN107807855B (en) * | 2017-10-31 | 2020-02-11 | Oppo广东移动通信有限公司 | Application cleaning method and device, storage medium and electronic equipment |
CN111104193A (en) * | 2018-10-25 | 2020-05-05 | 北京奇虎科技有限公司 | Application program active interface display method and device, storage medium and terminal equipment |
CN114866641B (en) * | 2022-07-07 | 2022-11-11 | 荣耀终端有限公司 | Icon processing method, terminal equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064691A (en) * | 2013-01-30 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device for producing desktop icon of electronic equipment |
CN104063123A (en) * | 2014-05-28 | 2014-09-24 | 小米科技有限责任公司 | Icon displaying method and device |
CN104898922A (en) * | 2015-05-13 | 2015-09-09 | 深圳市金立通信设备有限公司 | Icon arranging method and terminal |
CN105117098A (en) * | 2015-08-07 | 2015-12-02 | 深圳市金立通信设备有限公司 | Icon management method and terminal |
CN105975157A (en) * | 2016-05-10 | 2016-09-28 | Tcl移动通信科技(宁波)有限公司 | Classification display method and system based on mobile terminal application icon shape |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101408168B1 (en) * | 2011-12-09 | 2014-06-17 | 도시바삼성스토리지테크놀러지코리아 주식회사 | Apparatus and method for providing graphic user interface |
-
2016
- 2016-10-27 CN CN201610957925.4A patent/CN106502510B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064691A (en) * | 2013-01-30 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device for producing desktop icon of electronic equipment |
CN104063123A (en) * | 2014-05-28 | 2014-09-24 | 小米科技有限责任公司 | Icon displaying method and device |
CN104898922A (en) * | 2015-05-13 | 2015-09-09 | 深圳市金立通信设备有限公司 | Icon arranging method and terminal |
CN105117098A (en) * | 2015-08-07 | 2015-12-02 | 深圳市金立通信设备有限公司 | Icon management method and terminal |
CN105975157A (en) * | 2016-05-10 | 2016-09-28 | Tcl移动通信科技(宁波)有限公司 | Classification display method and system based on mobile terminal application icon shape |
Also Published As
Publication number | Publication date |
---|---|
CN106502510A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502510B (en) | Icon and the adaptation processing method at interface, device | |
CN109032474B (en) | Color temperature adjusting method and device and graphical user interface | |
CN105867730B (en) | The display methods and device of status bar | |
CN106156730B (en) | A kind of synthetic method and device of facial image | |
CN110417986A (en) | A kind of method and electronic equipment of screen display of going out | |
CN104850432B (en) | Adjust the method and device of color | |
EP1964380B1 (en) | Method and device for controlling a menu on a mobile communications device | |
CN107580143B (en) | A kind of display methods and mobile terminal | |
CN106204423B (en) | A kind of picture-adjusting method based on augmented reality, device and terminal | |
CN108287744A (en) | Character displaying method, device and storage medium | |
CN106296623B (en) | A kind of image processing method and device | |
CN108762708A (en) | A kind of display control method and terminal | |
CN104571979B (en) | A kind of method and apparatus for realizing split view | |
CN108509123A (en) | A kind of method for closing and mobile terminal of application program | |
CN110443769A (en) | Image processing method, image processing apparatus and terminal device | |
CN109213407A (en) | A kind of screenshot method and terminal device | |
CN109683802A (en) | A kind of icon moving method and terminal | |
CN108415642A (en) | A kind of display methods and mobile terminal | |
CN108900695A (en) | A kind of display processing method and terminal device | |
CN109814777A (en) | The setting method to show topics and a kind of mobile terminal | |
CN106775185A (en) | A kind of desktop display method and terminal | |
CN108958593A (en) | A kind of method and mobile terminal of determining communication object | |
CN110012159A (en) | Double screen terminal screen display methods, terminal and computer readable storage medium | |
CN104407727B (en) | screen protection method and device | |
CN108196757A (en) | The setting method and mobile terminal of a kind of icon |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170720 Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801 Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: Beijing Qihu Technology Co., Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |