CN109885222A - Icon processing method, device, electronic equipment and computer-readable medium - Google Patents

Icon processing method, device, electronic equipment and computer-readable medium Download PDF

Info

Publication number
CN109885222A
CN109885222A CN201910121260.7A CN201910121260A CN109885222A CN 109885222 A CN109885222 A CN 109885222A CN 201910121260 A CN201910121260 A CN 201910121260A CN 109885222 A CN109885222 A CN 109885222A
Authority
CN
China
Prior art keywords
icon
touch
initial display
drag
specified
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.)
Granted
Application number
CN201910121260.7A
Other languages
Chinese (zh)
Other versions
CN109885222B (en
Inventor
陈�田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910121260.7A priority Critical patent/CN109885222B/en
Publication of CN109885222A publication Critical patent/CN109885222A/en
Application granted granted Critical
Publication of CN109885222B publication Critical patent/CN109885222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of icon processing method, device, electronic equipment and computer-readable medium, is related to field of mobile terminals.This method comprises: obtaining the first icon and the second icon that user chooses in multiple icons in specified interface;In the case where the first icon and the second icon are persistently selected, acquisition acts on the first touch operation of the first icon and acts on the second touch operation of the second icon;Judge whether the first touch operation and the second touch operation meet specified requirements;If satisfied, then showing the first icon in the second initial display position, and the second icon is shown in the first initial display position.Therefore, by the first icon and the second icon selected simultaneously, user executes the first touch operation to the first icon and executes the second touch operation to the second icon, by the location swap of the first icon and the second icon, so as to reduce the operation of user, user experience is improved.

Description

Icon processing method, device, electronic equipment and computer-readable medium
Technical field
This application involves field of mobile terminals, more particularly, to a kind of icon processing method, device, electronic equipment and Computer-readable medium.
Background technique
Currently, electronic equipment used in user, generally comprises desk interface, there are multiple application programs in the interface display Icon needs to operate the first icon and is moved at the position of the second icon, so if we want two icons to replace Afterwards, then the second icon it is moved to the original position of the first icon, operates excessively cumbersome, poor user experience.
Summary of the invention
It is above-mentioned to improve present applicant proposes a kind of icon processing method, device, electronic equipment and computer-readable medium Defect.
In a first aspect, the embodiment of the present application provides a kind of icon processing method, it is applied to electronic equipment, the electronics is set Standby includes specified interface, and multiple icons, each corresponding initial display position of the icon are shown in the specified interface. This method comprises: the first icon and the second icon that user chooses in the multiple icon in the specified interface are obtained, Wherein, first icon corresponds to first initial display position at the specified interface, and second icon corresponds to described specified Second initial display position at interface;In the case where first icon and second icon are persistently selected, obtain and make For first icon the first touch operation and act on the second touch operation of second icon;Judge described Whether one touch operation and second touch operation meet specified requirements;If satisfied, then by first icon described Two initial display positions are shown, and second icon is shown in first initial display position.
Second aspect, the embodiment of the present application also provides a kind of icon processing units, are applied to electronic equipment, the electronics Equipment includes specified interface, and multiple icons, the initial display position of corresponding one of each icon are shown in the specified interface It sets.Icon processing unit includes: first acquisition unit, second acquisition unit, judging unit and processing unit.First obtains list Member, the first icon and the second icon chosen in the multiple icon in the specified interface for obtaining user, wherein First icon corresponds to first initial display position at the specified interface, and second icon corresponds to the specified interface Second initial display position.Second acquisition unit, the feelings for being persistently selected in first icon and second icon Under condition, second for obtaining the first touch operation for acting on first icon and acting on second icon touches behaviour Make.Judging unit, for judging whether first touch operation and second touch operation meet specified requirements.Processing is single Member is used for if satisfied, then show first icon in second initial display position, and by second icon in institute The first initial display position is stated to show.
The third aspect, the embodiment of the present application also provides a kind of electronic equipment, comprising: one or more processors;Storage Device;Screen, the screen show multiple icons, each icon pair for showing specified interface in the specified interface Answer an initial display position;One or more application program, wherein one or more of application programs be stored in it is described It in memory and is configured as being executed by one or more of processors, one or more of programs are configured to carry out State method.
Fourth aspect stores in computer-readable medium the embodiment of the present application also provides a kind of computer-readable medium There is program code, said program code can be called by processor and execute the above method.
Icon processing method, device, electronic equipment and computer-readable medium provided by the present application, set applied to electronics Standby, the electronic equipment includes specified interface, and multiple icons are shown in the specified interface, and each icon is one corresponding Initial display position.If user needs the location swap of two icons, user can choose the first icon and second simultaneously Icon, wherein first icon corresponds to first initial display position at the specified interface, described in second icon is corresponding Second initial display position at specified interface, then electronic equipment obtains user in the multiple icon in the specified interface Then the first icon and the second icon chosen in the case where the first icon and second icon are persistently selected, obtain It acts on the first touch operation of first icon and acts on the second touch operation of second icon, if first Touch operation and second touch operation meet specified requirements, then by first icon in second initial display position It has been shown that, and second icon is shown in first initial display position.Therefore, the first icon and the second icon is same When it is selected in the case where, user executes the first touch operation to the first icon and executes second to the second icon and touch and grasps Make, then when the first touch operation and the second touch operation meet specified requirements, by the position of the first icon and the second icon Exchange is set, so as to reduce the operation of user, improves user experience.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, 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 schematic diagram of icon shown by the system desktop interface of one embodiment of the application offer;
The schematic diagram of icon shown by the system desktop interface provided Fig. 2 shows another embodiment of the application;
Fig. 3 shows the method flow diagram of the icon processing method of one embodiment of the application offer;
The icon that Fig. 4 shows the offer of one embodiment of the application is in the schematic diagram of selected state;
Fig. 5 shows the schematic diagram at the system desktop interface after the picture mark position exchange of one embodiment of the application offer;
Fig. 6 shows the method flow diagram for the icon processing method that another embodiment of the application provides;
Fig. 7 shows the schematic diagram of each location point provided by the embodiments of the present application;
Fig. 8 shows the dragged schematic diagram of icon of one embodiment of the application offer;
Fig. 9 shows the dragged schematic diagram of icon that another embodiment of the application provides
Intersection of locus when Figure 10 shows the first icon and dragged the second icon that another embodiment of the application provides Schematic diagram;
Figure 11 shows the method flow diagram for the icon processing method that the another embodiment of the application provides;
Figure 12 shows the schematic diagram that the icon of the first page of one embodiment of the application offer is selected;
Page turn over operation in the state that the icon that Figure 13 shows the first page of one embodiment of the application offer is selected Schematic diagram;
Figure 14 shows the schematic diagram that the icon of the second page of one embodiment of the application offer is selected;
Figure 15 shows the module frame chart of the icon processing unit of one embodiment of the application offer;
Figure 16 shows the structural block diagram of electronic equipment provided by the embodiments of the present application;
Figure 17 shows realizing at according to the icon of the embodiment of the present application for saving or carrying for the embodiment of the present application The storage unit of the program code of reason method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Referring to Fig. 1, showing the system desktop interface 101 of electronic equipment 100, shown in the system desktop interface 101 It is shown with multiple icons 101, the corresponding application program of each icon 101, the application program can be answering of installing in system With program, specifically, when application program is installed in electronic equipment 100, the icon of the application program can be shown in system In desk interface 101, i.e., system is that the icon of the application program generates the display position of a default, i.e. initial display position, Then generate the initial display position mode be according to default rule, for example, according to from the left side of screen to right side, and according to Sequence from the top of screen to bottom successively shows that then each icon corresponds to a display area, the display area and the figure Target initial display position is corresponding, and as an implementation, the initial display position of the icon is the initial display of the icon The corresponding pixel coordinate of the central point in region.
User can readjust the display position of each icon at the system desktop interface 101, for example, choosing wherein one The icon is moved to desired display position by a icon, is shown so that the system desktop interface 101 can be readjusted The display position of each icon shown.
In addition, the system desktop interface 101 may include multiple pages, and each page can show icon, such as Fig. 2 Shown, then the icon on a page can be moved to another page by user, specifically, be can be user and pinned a figure Mark is dragged to the left side or right edge of screen, then can electronic equipment can execute page turning movement, then the system desktop interface 101 are switched to adjacent page, and then, user is on this page by icon drag to desired display position, to realize icon Display position change.
However, inventor has found under study for action, user is when using electronic equipment, if downloaded many using journey The icon layout of sequence, desktop can be in a mess.This when, if user wants the icon of two positions relatively far apart to replace, It needs first to move on to behind the second icon the first icon, then the second icon is moved on to again the position before the first icon, i.e., Drag operation twice is needed, then the icon if necessary to replacement position is relatively more, can seem very cumbersome and fritter away energy.
Therefore, in order to solve drawbacks described above, the embodiment of the present application provides a kind of icon processing method, as shown in figure 3, should Method is applied to electronic equipment, and the electronic equipment includes specified interface, shows multiple icons in the specified interface, each The corresponding initial display position of the icon, specifically, this method comprises: S301 to S304.
S301: the first icon and the second figure that user chooses in the multiple icon in the specified interface are obtained Mark.
Wherein, specified interface can be above-mentioned system desktop interface 101, then first icon corresponds to the specified boundary First initial display position in face, second icon correspond to second initial display position at the specified interface.
User can choose one or more icons in multiple icons in specified interface, as an implementation, Some icon of user's sustained touch, and when the duration reaches certain time length, for example, 1 second, it will be able to by this Icon is chosen, and selected icon can be and show in the form being amplified, as shown in figure 4, icon 4 and icon 9 are selected, And it is amplified, then user can get information about icon 4 and icon 9 has been selected.In addition, choosing icon by touching Mode be also possible that and click screen in the corresponding display position continuous several times of icon, it is for example, it may be double-click screen, then electric Sub- equipment detects that some region of screen is double-clicked, then searches the corresponding icon in the region, and is selected by the iconic marker In icon.
S302: in the case where first icon and second icon are persistently selected, acquisition acts on described the First touch operation of one icon and the second touch operation for acting on second icon.
Wherein, the first touch operation and the second touch operation refer to the touch operation after icon is selected, as one kind Embodiment chooses the first icon and the second icon, so after user clicks screen or Continued depression screen certain time Afterwards, after first icon and the second icon are selected, user continues touch operation first icon and the second icon, the then touch Operation includes dragging, pressing operation etc..
S303: judge whether first touch operation and second touch operation meet specified requirements.
S304: first icon is shown in second initial display position, and by second icon described First initial display position is shown.
Specifically, which includes drag operation and pressing operation, wherein what drag operation can be operated The position of icon changes, then the drag operation corresponds to motion track, and pressing operation is the behaviour of user's Continued depression screen Make, the corresponding pressing parameter of the pressing operation, then during touch operation, user can pull figure while pressing icon Mark, is also possible to the Continued depression icon in the case where not pulling icon.
Then electronic equipment can be judged according to the motion track of the drag operation in the first and second touch operations this first Whether touch operation and the second touch operation meet specified requirements, can also be determined according to the pressing parameter the first touch operation and Whether the second touch operation meets specified requirements, then in different ways, and meaning representated by specified requirements is different.
As an implementation, the first touch operation includes the first pressing operation, and the second touch operation is pressed including second Press operation, and the corresponding first pressing parameter of the first pressing operation, and the second pressing operation includes the second pressing parameter, therefore, the The corresponding first pressing parameter of one touch operation, and the corresponding second pressing parameter of the second touch operation.Wherein, pressing parameter includes pressing Surging and compressing time etc..
Specifically, judge whether first touch operation and second touch operation meet the specific reality of specified requirements The mode of applying may is that the corresponding first pressing parameter of acquisition first touch operation and first touch operation are corresponding Second pressing parameter;Judge whether the first pressing parameter and the second pressing parameter meet parameter preset.
Wherein, the first pressing parameter can be the first pressing dynamics, and the second pressing parameter can be the second pressing dynamics, then Corresponding first pressing dynamics of the first touch operation and corresponding second pressing dynamics of first touch operation are got, In, the corresponding pressing dynamics of touch operation can be during pressing operation continues, and press according to sample frequency acquisition is multiple Surging obtains the corresponding pressing dynamics of touch operation by multiple pressing dynamics according to acquisition, for example, it may be by being acquired Multiple pressing dynamics average value as the corresponding pressing dynamics of touch operation.
Getting corresponding first pressing dynamics of the first touch operation and corresponding second pressing force of the second touch operation After degree, judge whether the first pressing dynamics and the second pressing dynamics are all larger than specified pressing dynamics, if being all larger than, determines One touch operation and second touch operation meet specified requirements, and if the first pressing dynamics are less than or equal to specified pressing Dynamics or the first pressing dynamics are less than or equal to specified pressing dynamics, then determine that the first touch operation and described second touches Operation is unsatisfactory for specified requirements.
In addition, the first pressing parameter can be the first pressing duration, the second pressing parameter can be the second pressing duration, then The corresponding first pressing duration of the first touch operation and the corresponding second pressing duration of first touch operation are got, In, the corresponding pressing duration of touch operation can be in pressing operation duration length, i.e., to knot since touch operation The time span of beam.
When getting the corresponding first pressing duration of the first touch operation and the second touch operation corresponding second presses After length, judge whether the first pressing duration and the second pressing duration are all larger than specified pressing duration, if being all larger than, determines the One touch operation and second touch operation meet specified requirements, and if the first pressing duration is less than or equal to specified pressing Duration or the first pressing duration are less than or equal to specified pressing duration, then determine that the first touch operation and described second touches Operation is unsatisfactory for specified requirements.
Then as an implementation, after user chooses the first icon and the second icon, respectively with the first pressing force Degree press display position corresponding to the first icon screen region and with the second pressing dynamics press the second icon institute it is right The region of the screen for the display position answered, if the first pressing dynamics and the second pressing dynamics are all larger than specified pressing dynamics, The display position of first icon and the second icon exchanges, as shown in figure 5, with the icon 4 and icon 9 in interface shown in FIG. 1 Position is compared, the location swap of icon 4 and icon 9, i.e., icon 4 is shown at the initial display position of icon 9, and icon 9 exists It is shown at the initial display position of icon 4.Specifically, user can press after choosing icon 4 and icon 9, while firmly Icon 4 and icon 9, then can be when loosing one's grip, and the location swap of icon 4 and icon 9 is also possible to detecting icon 4 corresponding pressing dynamics and the corresponding pressing dynamics of icon 9 are all larger than after specified dynamics, no matter whether user looses one's grip, By 9 location swap of icon 4 and icon.
As another embodiment, after user chooses the first icon and the second icon, the first icon is pressed respectively The region of the screen of corresponding display position and press display position corresponding to the second icon screen region, and The corresponding first pressing duration of one icon and the corresponding second pressing duration of the second icon are all larger than specified time length, then and first The display position of icon and the second icon exchanges, the location swap of icon 4 as shown in Figure 5 and icon 9.Specifically, in user After choosing icon 4 and icon 9, at the same press icon 4 and icon 9 persistently specify duration after, then can loose one's grip when It waits, the location swap of icon 4 and icon 9, is also possible to after pressing icon 4 and icon 9 persistently specify duration, no matter user Whether loose one's grip, by 9 location swap of icon 4 and icon.
Furthermore determine whether first touch operation and second touch operation meet specified item according to drag operation The specific embodiment of part can refer to subsequent embodiment.
Specifically, referring to Fig. 6, the first touch operation includes the first drag operation, second touch operation includes the Two drag operations, then this method comprises: S601 to S604.
S601: the first icon and the second figure that user chooses in the multiple icon in the specified interface are obtained Mark.
S602: in the case where first icon and second icon are persistently selected, acquisition acts on described the First drag operation of one icon and the second drag operation for acting on second icon.
After user chooses the first icon and the second icon in specified interface, the first icon and the second icon are presented and are chosen In state, for example, it may be selected icon is amplified shown in Fig. 4, and be located on the figure layer of other icons, can also To be, the state floated is presented in selected icon.Then, user continues the first icon of touch-control and the second icon, i.e., to screen The corresponding display area of the first icon and the corresponding display area of the second icon keep pressing state, and drag the first icon To execute the first drag operation and the second icon of dragging to execute the second drag operation, thus to first drag operation and the Two drag operations are monitored, specifically, can be according to certain sample frequency to the first figure under the effect of the first drag operation Mark location point at various moments and the first corresponding display area record and to the under the effect of the second drag operation The location point and corresponding the second display area record of two icons at various moments.
S603: judging under the action of first drag operation and the second drag operation, first icon with it is described Whether the second icon at least partially overlaps.
Due to can to the first drag operation act under the first icon each moment corresponding first display area and The second icon each moment corresponding second display area record under the effect of second drag operation, therefore, can determine every Display area corresponding to a moment, the first icon and the second icon, also, the boundary of the display area can be by screen Each pixel coordinate and mark, for example, corresponding first display area of the first icon be distributed in by coordinate 1, coordinate 2, 4 area defined of coordinate 3 and coordinate, the shape in the region is corresponding with the shape of the first icon, for example, it may be rectangle, then Coordinate 1, coordinate 2, coordinate 3 and coordinate 4 can be four vertex of the display area of the corresponding rectangle of first icon, similarly, Corresponding second display area of second icon can also be marked by saying the coordinate of a pixel.
Then pass through the position of the second display area of the position and the second icon that obtain the first display area of the first icon It sets, can judge the distance between first icon and second icon and whether is overlapped, specifically, when the first display area Range and the range of the second display area have part it is identical when, so that it may determine that the first icon and the second icon part are overlapped.
As an implementation, it can be carried out S604, i.e., when the first icon and the second icon part are overlapped Execution shows first icon in second initial display position, and second icon is initially shown described first Show the operation that position is shown.
As another embodiment, it when can also be that the first icon and the second icon are completely coincident, then executes S604。
Specifically, in order to realize the display effect that is neatly distributed of multiple icons in specified interface, each icon it is big It is small can be consistent with shape, then to the first icon the first drag operation effect under each moment display position and second Icon the second drag operation effect under each moment display position can also by detect the first icon central point and The corresponding display position of the central point of second icon and get.
Specifically, the process of drag operation is illustrated by taking the first icon as an example, user drags in the state of choosing the first icon Dynamic first icon slides on the screen, so that user can input target trajectory by way of slip gesture on the screen, then The target trajectory is drag operation.
Target trajectory can be to be made of multiple tracing points, then the selection of tracing point can be on target trajectory according to pre- Multiple tracing points that fixed interval is chosen, then since target trajectory corresponds to a display area on the screen, then target trajectory The corresponding location information on the screen of interior each tracing point, as an implementation, which can be When target trajectory is shown on the screen, coordinate corresponding to each tracing point, for example, it may be the coordinate under pixel coordinate system. Wherein, pixel coordinate system is in advance to be each pixel on screen and the coordinate system set, for example, an angle point of screen is to sit Origin is marked, the angle steel joint to coordinate origin is the maximum coordinates of the coordinate system, can correspond to the resolution ratio of the screen.Such as Fig. 7 institute The g1 shown is the first icon to one first position point, then each first position point corresponds to a time point, the time Point can be time point when the first icon is in first position point.
Then wherein first position point can be position corresponding to the central point of icon, and for the ease of monitoring the first icon At the time of with the overlapping of the second icon part, then it can choose in the glide direction along the first drag operation of the first icon, the Some location point after the central point of one icon is pulled along the second of the second icon and is grasped as first position point, and selection In the glide direction of work, some location point after the central point of the second icon is as second position point.
Specifically, by taking the first icon as an example, electronic equipment acquires the first icon in the first drag operation according to the sampling interval Under the action of, the location point of the central point of the first icon is denoted as center point, then can be denoted as the coordinate of center point (x1, y1), as shown in fig. 7, user inputs slip gesture using finger on the screen, g1 is the initial touch of the slip gesture Point, using the g1 corresponding acquisition time as starting point, after specified time interval, the central point of the first icon is located at coordinate At the position of (x1, y1), the abscissa of the coordinate and ordinate are then added into a numerical value again, then obtain (x1+x0, y1+ Y0), wherein the x0 and y0 can be positive number, be also possible to negative, as an implementation, if current glide direction Positive direction along the axis of abscissas of pixel coordinate system moves, then the x0 and y0 is positive number, and if current glide direction edge The negative direction of the axis of abscissas of pixel coordinate system moves, then x0 and y0 is negative, should so as to guarantee to select in glide direction Point after the central point of first icon is as location point.
Wherein, the size of x0 and y0 can be set according to actual use, and in some embodiments, which can be according to Horizontal distance between the central point of one icon and the first specified boundary of the first icon and set, wherein first Appointed edges Boundary can be the shortest boundary of horizontal distance of distance center point, then x0 is less than or equal to the horizontal distance, and similarly, y0 can root It is set according to the vertical range between the central point of the first icon and the second specified boundary of the first icon, wherein second finger Deckle circle can be the shortest boundary of vertical range of distance center point, then x0 is less than or equal to the vertical range.For example, first Icon is rectangle, then horizontal distance is vertical line distance of the central point of the first icon apart from short side, and vertical range is the first figure Vertical line distance of the target central point apart from long side.
Then judge under the action of first drag operation and the second drag operation, first icon and described second Whether at least the specific embodiment of icon part, which may is that, obtains each first position point in first drag operation; Obtain each second position point in second drag operation;Judge multiple first position points and multiple second positions It whether there is identical location point between point.
Then first position point can be the corresponding coordinate points of central point of the first icon, and second position point can be second The corresponding coordinate points of the central point of icon, then if first position point is identical with second position point, and the first icon and the second figure Target size is identical, then at this point, the first icon and the second icon are completely coincident, and judge be between the first icon and the second icon The no mode to partially overlap can be, and obtain the distance before first position point and second position point, if it is less than specified numerical value, If it is less, determining that first icon and the second icon part are overlapped, wherein specified numerical value can be the center of the first icon Each vertex most long distance of point and each vertex maximum distance of the first icon and the central point of the second icon and the second icon The sum of from.
And be used for user and pulling the first icon and when the second icon, often finger is by the first icon and the second icon Cover, be then difficult to accomplish being completely coincident for the first icon and the second icon, and two icons close to when, two fingers It will limit the close of two icons, it therefore, can be by first position point and second position point according to above-mentioned (x1+x0, y1+y0) Exemplified coordinate points setting.
Then if first position point is identical with second position point, then it represents that the corresponding display area of the first icon and the second figure It marks corresponding display area to coincide, i.e. the first icon and the second icon overlap.
As shown in figure 8, user can be with one-handed performance the first icon 102A and the second icon 102B, for example, being pressed with thumb The second icon 102B is pressed, presses the first icon 102A with index finger, after pressing certain time, the first icon 102A and the second icon 102B is selected, for example, the state floated is presented in the first icon 102A and the second icon, then, user's control finger down the While one icon 102A and the second icon 102B, thumb and index finger are mutually drawn close, so as to make the first icon 102A and Two icon 102B are gradually close to each other, as shown in figure 9, the first icon 102A is the icon 4 in figure, the second icon 102B is in figure Icon 9, as shown in Fig. 9 (a), the first icon 102A and the second icon 102B are dragged along direction close to each other, first The distance between icon 102A and the second icon 102B gradually become smaller, as shown in Fig. 9 (b), the first icon 102A and the second icon 102B partially overlaps, and then executes S604.To which by choosing with after drag operation for icon, the first icon is from icon 4 Initial position is moved to the initial position of icon 9, and the second icon is moved to the initial bit of icon 4 from the initial position of icon 9 It sets, also, the direction of motion of icon 9 and icon 9 finally do the position being located at, i.e. the direction of the initial position of icon 4 is consistent, from And better operating effect, visual effect and user experience can be obtained.
In addition, as shown in Figure 8 and Figure 9, user operates the first icon simultaneously and the second icon is mobile, and in two icons It reaches near the same position and when the first icon and the second icon part are overlapped, the place-exchange of two icons.
As another embodiment, the same position is moved to when can also be the first icon and the second icon difference Place, but when there is identical location point, i.e. intersection of locus in the track of the first icon and the second icon, it is carried out S604.Tool Body, as shown in Figure 10, the first icon is icon 4 and the second icon is icon 9, then the first icon and the second icon are dragged simultaneously It drags, and sliding trace corresponding to the drag operation of the two is different, and the first icon and the second icon be there are identical location point, Such as location point G shown in Fig. 10 be the identical location point, then the time point of the first icon in-position point G be t1, second The time of icon in-position point G is t2, then t1 and t2 can not be identical, for example, the first icon first passes through location point G, later Second icon can then execute S604 using location point G.
It is of course also possible to be in the identical situation of t1 and t2, then execute S604.Specifically, acquisition is found identical Location point at the first time point in first drag operation and the second time point in second drag operation; Judge whether the first time point and second time point are identical, if they are the same, then execute S604.
S604: first icon is shown in second initial display position, and by second icon described First initial display position is shown.
Figure 11 is please referred to, a kind of icon processing method provided by the embodiments of the present application is shown, this method comprises: S1101 To S1106.
S1101: the first icon that user chooses in first page is obtained.
Specified interface includes multiple pages, and icon is shown on each page, and as shown in figure 12, user's finger chooses The first icon 102A of one page 101A, then illustratively, first icon 102A can be above-mentioned icon 9.
S1102: it when monitoring that first icon is dragged to second page, is persistently chosen in first icon In the case where, the second icon that user chooses is obtained in the second page.
User executes page turn over operation in the case where persistently choosing i.e. the first icon of Continued depression 102A, then the page turning is grasped It can be and page-turning instruction is inputted by voice, refer to for example, inputting page turning by the mode of input " h i, so-and-so, ask page turning " It enables, wherein " h i, so-and-so " effect is to arouse speech recognition module, and " asking page turning " phonetic order as input can be by electronics Equipment is identified.In addition, what page turn over operation was also possible to input by physical button, for example, in the case where choosing icon, Press volume adjustment key, can be realized page turn over operation, for example, press volume increasing key, specified interface can before turn over one page, and press Lower volume down key, specified interface can after turn over one page.
As an implementation, in the embodiment of the present application, can by the boundary of the first icon drag to screen, thus It can be realized the operation of page turning, specifically, if being dragged to the right side of screen, the operation of page turning after executing, and if dragging The operation of one page is turned over before execution to the left side of screen, as shown in figure 13, the first icon 102A is dragged to first page 101A Right side, then execute page turn over operation, as shown in figure 14, the current interface of screen becomes second page from first page 101A 101B, and the first icon 102 has been dragged to second page 101B, and user is keeping the first icon 102A's of pressing In the case of, the second icon 102B is chosen with another finger, so that just complete two icons in cross-page face chooses operation.
S1103: in the case where first icon and second icon are persistently selected, acquisition acts on described the First touch operation of one icon and the second touch operation for acting on second icon.
S1104: judge whether first touch operation and second touch operation meet specified requirements.
S1105: detecting first icon and whether second icon is cancelled touch operation.
If the first touch operation and second touch operation meet specified requirements, the first icon and described are judged Whether two icons are cancelled touch operation, specifically, can be electronic equipment and detect that user cancels touch or pressing icon When, determine that the icon is cancelled touch operation, thereby executing the operation of S1106.
S1106: first icon is shown in second initial display position, and by second icon described First initial display position is shown.
It then is cancelled touch operation in the first icon and second icon, for example, user stops the first figure of pressing operation Mark and when the second icon, the first icon and the second icon are cancelled touch operation, then electronic equipment is by described first Icon is shown in second initial display position, and second icon is shown in first initial display position.
As an implementation, if the first icon and second icon are cancelled touch operation, judge described first Whether icon and second icon are cancelled touch operation simultaneously, if so, first icon is initial aobvious described second Show that position is shown, and second icon is shown in first initial display position.
Specifically, electronic equipment gets time point when the first icon is cancelled touch operation, is denoted as first time point, And obtain time point when the second icon is cancelled touch operation, be denoted as the second time point, obtain the first time point and Time absolute value of the difference between second time point judges whether the time difference is small and grows at fixed time as time difference Degree, if it is less, determine that first icon and second icon are cancelled touch operation simultaneously, if it is greater than or be equal to Specified time length then determines first icon and second icon not while being cancelled touch operation.
Then if the first icon and second icon are cancelled touch operation simultaneously, can continue to keep the first icon Selected state, the i.e. shape that the first icon and the second icon keep quick condition or be amplified are in the second icon State, it is then selected in the location swap and then the first icon of cancellation of the first icon and the second icon and the second icon, when So, be also possible in the first icon and second icon while when be cancelled touch operation, just cancel the first icon and The selected state of second icon, and execute the operation of the location swap of the first icon and the second icon.
In addition, can show the first icon and second on the screen during the first icon and the second icon exchange The moving process of icon, specifically, the first icon and the second icon are moved into target position, then first figure of target location Mark and the overlapping of the second icon part, and the target position is the initial display of the initial display position and the second icon of the first icon The touch operation of the first icon and the second icon is simultaneously cancelled in a position between position, then, user, for example, unclamping Finger can then continue to keep the first icon then after the first icon and second icon are cancelled touch operation simultaneously It is in selected state with the second icon, for example, the selected state is that icon is amplified, then, the first icon direction The initial display position of second icon is mobile, and the initial display position of the second icon towards the first icon is mobile, and the first icon The state for keeping icon to be amplified with the second icon, then, even if the first icon and the second icon are not pulled by user, and first The moving process of icon and the second icon can also show that then, the first icon is located at the initial display of the second icon on the screen Position and the second icon are located at the initial display position of the first icon, and the selected state of the first icon and the second icon is taken Disappear, for example, restoring to initial size and initial display state, i.e., state shown in fig. 5.
As another embodiment, it can be detection first icon and whether second icon be cancelled touch Operation, when first icon is cancelled touch operation, first icon is shown in second initial display position, And when second icon is cancelled touch operation, second icon is shown in first initial display position.
For example, user mutually draws close the first icon and the second icon, and after partially overlapping, first by the first icon Touch operation cancel, and the touch operation of the second icon is not cancelled, then the first icon is to the initial display position of the second icon Movement is set, then, user eliminates the touch operation of the second icon again, then, initial display of second icon to the first icon Position is mobile, that is to say, that the touch operation of the first icon and the second icon may not necessarily be cancelled simultaneously, and which cancel then which It is a to start to move.
Figure 15 is please referred to, it illustrates a kind of structural block diagram of icon processing unit 1500 provided by the embodiments of the present application, The apparatus may include: first acquisition unit 1501, second acquisition unit 1502, judging unit 1503 and processing unit 1504.
First acquisition unit 1501, chosen in the multiple icon in the specified interface for obtaining user One icon and the second icon, wherein first icon corresponds to first initial display position at the specified interface, and described second Icon corresponds to second initial display position at the specified interface.
Further, first acquisition unit 1501 is also used to obtain the first icon that user chooses in first page, works as prison When measuring first icon and being dragged to second page, in the case where first icon is persistently chosen, described Two pages obtain the second icon that user chooses.
Second acquisition unit 1502 is used in the case where first icon and second icon are persistently selected, Acquisition acts on the first touch operation of first icon and acts on the second touch operation of second icon.
Judging unit 1503, for judging whether first touch operation and second touch operation meet specified item Part.
Further, judging unit 1503 is also used to judge the effect in first drag operation and the second drag operation Under, whether first icon at least partially overlaps with second icon, if at least partially overlapping, by described first Icon is shown in second initial display position, and second icon is shown in first initial display position.
Specifically, judging unit 1503 is also used to obtain each first position point in first drag operation;Obtain institute State each second position point in the second drag operation;Judge between multiple first position points and multiple second position points With the presence or absence of identical location point;If it exists, then first icon is shown in second initial display position, and by institute The second icon is stated to show in first initial display position.
Processing unit 1504 is used for if satisfied, then show first icon in second initial display position, and Second icon is shown in first initial display position.
Further, processing unit 1504 is also used to detect first icon and whether second icon is cancelled touch Operation;If being cancelled, first icon is shown in second initial display position, and by second icon described First initial display position is shown.If then processing unit 1504 is specifically used for being cancelled, first icon and described the are judged Whether two icons are cancelled touch operation simultaneously;If so, first icon is shown in second initial display position, and Second icon is shown in first initial display position.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
Figure 16 is please referred to, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronics is set Standby 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electricity in the application Sub- equipment 100 may include one or more such as lower component: processor 110, memory 120, screen 140 and one or more Application program, wherein one or more application programs can be stored in memory 120 and be configured as by one or more Processor 110 executes, and one or more programs are configured to carry out the method as described in preceding method embodiment.
Processor 110 may include one or more processing core.Processor 110 is whole using various interfaces and connection Various pieces in a electronic equipment 100, by run or execute the instruction being stored in memory 120, program, code set or Instruction set, and the data being stored in memory 120 are called, execute the various functions and processing data of electronic equipment 100.It can Selection of land, processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 110, be realized separately through one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store electronic equipment 100 and be created in use Data (such as phone directory, audio, video data, chat record data) etc..
The screen 140 is used to show information input by user, is supplied to user information and electronic equipment it is each Kind graphical user interface, these graphical user interface can be by figure, text, icon, number, video and any combination thereof come structure At in an example, touch screen may be disposed on the display panel to constitute an entirety with the display panel.
Figure 17 is please referred to, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application Figure.Program code is stored in the computer-readable medium 1700, said program code can be called by processor and execute above-mentioned side Method described in method embodiment.
Computer-readable medium 1700 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 1700 includes non-volatile meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 1700 has the memory space for the program code 1710 for executing any method and step in the above method.These program codes This one or more computer program product can be read or is written to from one or more computer program product In.Program code 1710 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of icon processing method, which is characterized in that be applied to electronic equipment, the electronic equipment includes specified interface, institute It states and shows multiple icons in specified interface, each corresponding initial display position of the icon, which comprises
Obtain the first icon and the second icon that user chooses in the multiple icon in the specified interface, wherein institute The first initial display position that the first icon corresponds to the specified interface is stated, second icon corresponds to the of the specified interface Two initial display positions;
In the case where first icon and second icon are persistently selected, obtain and act on the of first icon One touch operation and the second touch operation for acting on second icon;
Judge whether first touch operation and second touch operation meet specified requirements;
If satisfied, then first icon is shown in second initial display position, and by second icon described First initial display position is shown.
2. the method according to claim 1, wherein first touch operation includes the first drag operation, institute Stating the second touch operation includes the second drag operation;
Judge whether first touch operation and second touch operation meet specified requirements, if satisfied, then by described One icon is shown in second initial display position, and second icon is shown in first initial display position, Include:
Judge under the action of first drag operation and the second drag operation, first icon is with second icon It is no at least to partially overlap;
If at least partially overlapping, first icon is shown in second initial display position, and by described second Icon is shown in first initial display position.
3. according to the method described in claim 2, it is characterized in that, judging in first drag operation and the second drag operation Under the action of, first icon and second icon whether at least part, if at least partially overlapping, by described the One icon is shown in second initial display position, and second icon is shown in first initial display position, Include:
Obtain each first position point in first drag operation;
Obtain each second position point in second drag operation;
Judge between multiple first position points and multiple second position points with the presence or absence of identical location point;
If it exists, then first icon is shown in second initial display position, and by second icon described First initial display position is shown.
4. method according to claim 1 to 3, which is characterized in that it is described by first icon at the beginning of described second Beginning display position is shown, and second icon is shown in first initial display position, comprising:
It detects first icon and whether second icon is cancelled touch operation;
If being cancelled, first icon is shown in second initial display position, and by second icon described First initial display position is shown.
5. according to the method described in claim 4, it is characterized in that, if being cancelled, by first icon at the beginning of described second Beginning display position is shown, and second icon is shown in first initial display position, comprising:
If being cancelled, judge first icon and second icon whether and meanwhile be cancelled touch operation;
If so, first icon is shown in second initial display position, and by second icon described first Initial display position is shown.
6. method according to claim 1 to 3, which is characterized in that judge first touch operation and described second Whether touch operation meets specified requirements, if satisfied, then show first icon in second initial display position, and Second icon is shown in first initial display position, comprising:
Obtain the corresponding first pressing parameter of first touch operation and corresponding second pressing of first touch operation Parameter;
Judge whether the first pressing parameter and the second pressing parameter meet parameter preset;
If meeting, first icon is shown in second initial display position, and by second icon described First initial display position is shown.
7. method according to claim 1 to 3, which is characterized in that the specified interface includes multiple pages;It is described Obtain the first icon and the second icon that user chooses in the multiple icon in the specified interface, comprising:
Obtain the first icon that user chooses in first page;
When monitoring that first icon is dragged to second page, in the case where first icon is persistently chosen, The second icon that user chooses is obtained in the second page.
8. a kind of icon processing unit, which is characterized in that be applied to electronic equipment, the electronic equipment includes specified interface, institute It states and shows multiple icons in specified interface, each icon corresponds to an initial display position, and described device includes:
First acquisition unit, for obtain the first icon that user chooses in the multiple icon in the specified interface and Second icon, wherein first icon corresponds to first initial display position at the specified interface, and second icon is corresponding Second initial display position at the specified interface;
Second acquisition unit, in the case where first icon and second icon are persistently selected, acquisition to be acted on In first icon the first touch operation and act on the second touch operation of second icon;
Judging unit, for judging whether first touch operation and second touch operation meet specified requirements;
Processing unit is used for if satisfied, then show first icon in second initial display position, and by described the Two icons are shown in first initial display position.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
Screen, the screen show multiple icons, each icon pair for showing specified interface in the specified interface Answer an initial display position;
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 configured to carry out as claim 1-7 is any Method described in.
10. a kind of computer-readable medium, which is characterized in that program code is stored in the computer-readable medium, it is described Program code can be called by processor and execute any one of claim 1-7 the method.
CN201910121260.7A 2019-02-13 2019-02-13 Icon processing method and device, electronic equipment and computer readable medium Active CN109885222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910121260.7A CN109885222B (en) 2019-02-13 2019-02-13 Icon processing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910121260.7A CN109885222B (en) 2019-02-13 2019-02-13 Icon processing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109885222A true CN109885222A (en) 2019-06-14
CN109885222B CN109885222B (en) 2021-03-02

Family

ID=66928429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910121260.7A Active CN109885222B (en) 2019-02-13 2019-02-13 Icon processing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN109885222B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543267A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 method and device for moving position of desktop icon
CN111198637A (en) * 2019-12-30 2020-05-26 维沃移动通信有限公司 Operation control method and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202110523U (en) * 2011-06-14 2012-01-11 上海博泰悦臻电子设备制造有限公司 Terminal equipment and icon position interchanging device of terminal equipment
CN202133988U (en) * 2011-06-14 2012-02-01 上海博泰悦臻电子设备制造有限公司 Terminal equipment and icon position interchanging device of terminal equipment
CN202133989U (en) * 2011-06-14 2012-02-01 上海博泰悦臻电子设备制造有限公司 Terminal unit and icon position exchanging device thereof
CN105094527A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Icon exchanging method and device
US20160028907A1 (en) * 2014-07-22 2016-01-28 Kabushiki Kaisha Toshiba Image processing apparatus and method of displaying object in image processing apparatus
CN105426042A (en) * 2015-11-05 2016-03-23 小米科技有限责任公司 Icon position exchange method and apparatus
CN105824520A (en) * 2015-06-29 2016-08-03 维沃移动通信有限公司 Desktop icon batch processing method and mobile terminal
CN105843497A (en) * 2015-06-29 2016-08-10 维沃移动通信有限公司 Method for batch processing of desktop icons and mobile terminal
US20160292543A1 (en) * 2015-03-31 2016-10-06 Brother Kogyo Kabushiki Kaisha Information processing device and non-transitory computer-readable medium storing instructions for print control
CN106980433A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The group technology and device of icon
CN107870705A (en) * 2016-09-28 2018-04-03 珠海金山办公软件有限公司 A kind of change method and device of the picture mark position of application menu
CN108696642A (en) * 2018-05-15 2018-10-23 维沃移动通信有限公司 Arrange figure calibration method and mobile terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202110523U (en) * 2011-06-14 2012-01-11 上海博泰悦臻电子设备制造有限公司 Terminal equipment and icon position interchanging device of terminal equipment
CN202133988U (en) * 2011-06-14 2012-02-01 上海博泰悦臻电子设备制造有限公司 Terminal equipment and icon position interchanging device of terminal equipment
CN202133989U (en) * 2011-06-14 2012-02-01 上海博泰悦臻电子设备制造有限公司 Terminal unit and icon position exchanging device thereof
US20160028907A1 (en) * 2014-07-22 2016-01-28 Kabushiki Kaisha Toshiba Image processing apparatus and method of displaying object in image processing apparatus
US20160292543A1 (en) * 2015-03-31 2016-10-06 Brother Kogyo Kabushiki Kaisha Information processing device and non-transitory computer-readable medium storing instructions for print control
CN105094527A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Icon exchanging method and device
CN105824520A (en) * 2015-06-29 2016-08-03 维沃移动通信有限公司 Desktop icon batch processing method and mobile terminal
CN105843497A (en) * 2015-06-29 2016-08-10 维沃移动通信有限公司 Method for batch processing of desktop icons and mobile terminal
CN105426042A (en) * 2015-11-05 2016-03-23 小米科技有限责任公司 Icon position exchange method and apparatus
CN106980433A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The group technology and device of icon
CN107870705A (en) * 2016-09-28 2018-04-03 珠海金山办公软件有限公司 A kind of change method and device of the picture mark position of application menu
CN108696642A (en) * 2018-05-15 2018-10-23 维沃移动通信有限公司 Arrange figure calibration method and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DURLACH, PAULA J: "Effect of Icon Affiliation and Distance Moved on Detection of Icon Position Change on a Situation Awareness Display", 《MILITARY PSYCHOLOGY》 *
闫振林: "《多媒体课件制作技术》", 31 December 2012 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543267A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 method and device for moving position of desktop icon
CN111198637A (en) * 2019-12-30 2020-05-26 维沃移动通信有限公司 Operation control method and electronic equipment

Also Published As

Publication number Publication date
CN109885222B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
JP2019220237A (en) Method and apparatus for providing character input interface
US20200110511A1 (en) Method and system for performing copy-paste operations on a device via user gestures
US20190212914A1 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
EP3091426B1 (en) User terminal device providing user interaction and method therefor
US20180032168A1 (en) Multi-touch uses, gestures, and implementation
JP6012859B2 (en) Split screen display method and apparatus, and electronic device thereof
US10146407B2 (en) Physical object detection and touchscreen interaction
CN105393205B (en) Electronic equipment and the method for controlling application in the electronic device
US8769431B1 (en) Method of single-handed software operation of large form factor mobile electronic devices
US20160062467A1 (en) Touch screen control
US10452229B2 (en) Techniques for selecting list items using a swiping gesture
US9250768B2 (en) Tablet having user interface
CN102722334B (en) The control method of touch screen and device
JP6177669B2 (en) Image display apparatus and program
JP5295328B2 (en) User interface device capable of input by screen pad, input processing method and program
US9152317B2 (en) Manipulation of graphical elements via gestures
US8842084B2 (en) Gesture-based object manipulation methods and devices
KR102133410B1 (en) Operating Method of Multi-Tasking and Electronic Device supporting the same
US9361020B2 (en) Method and apparatus for displaying e-book in terminal having function of e-book reader
RU2505848C2 (en) Virtual haptic panel
US8159469B2 (en) User interface for initiating activities in an electronic device
US9595238B2 (en) Electronic device, cover for electronic device, and method of performing a function in an electronic device
KR101683320B1 (en) Dual screen portable touch sensitive computing system
KR101548524B1 (en) Rendering teaching animations on a user-interface display
JP6215534B2 (en) Information processing apparatus, information processing method, and computer program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant