CN109408184A - A kind of icon processing method, mobile terminal and computer storage medium - Google Patents
A kind of icon processing method, mobile terminal and computer storage medium Download PDFInfo
- Publication number
- CN109408184A CN109408184A CN201811266479.8A CN201811266479A CN109408184A CN 109408184 A CN109408184 A CN 109408184A CN 201811266479 A CN201811266479 A CN 201811266479A CN 109408184 A CN109408184 A CN 109408184A
- Authority
- CN
- China
- Prior art keywords
- icon
- information
- mobile terminal
- desktop
- processing method
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a kind of icon processing method, mobile terminal and computer storage medium, the icon processing method includes: to open icon when the desktop process initiation of the mobile terminal is completed and detect thread;When detecting generation icon action event, the corresponding icon information of the icon action event is obtained;Data to be tested are generated according to the icon information;The data to be tested are detected in icon detection thread, generate process instruction according to testing result.The embodiment of the present invention can automatic identification icon whether overlap, and can be adjusted in time when overlapping, actively be intervened without user, do not influence user's normal use, improve user experience.
Description
Technical field
The present invention relates to electronic technology fields more particularly to a kind of icon processing method, mobile terminal and computer to deposit
Storage media.
Background technique
With the continuous progress of technology, mobile terminal using more prevalent, pass through the various application programs of installation, it is mobile eventually
End can be used to realize various functions.
At this stage, application program is shown on the display interface of the mobile terminal usually in the form of icon, each icon pair
An application program is answered, a position is equally also corresponded to.However, when there are certain situations in running of mobile terminal, it may appear that figure
The folded situation of indicated weight, influences user's normal use, meanwhile, also need user to go to adjust manually or restart, user at this time
It experiences poor.
Summary of the invention
The embodiment of the present invention provides a kind of icon processing method, mobile terminal and computer storage medium, can be automatic
Icon overlay whether normally occurs, and is handled automatically, user experience is promoted.
First aspect of the embodiment of the present invention provides a kind of icon processing method, is applied to mobile terminal, comprising:
When the desktop process initiation of the mobile terminal is completed, opens icon and detect thread;
When detecting generation icon action event, the corresponding icon information of the icon action event is obtained;
Data to be tested are generated according to the icon information;
The data to be tested are detected in icon detection thread, generation processing according to testing result refers to
It enables.
Optionally, the icon action event, comprising:
Font replaces instruction, main body switching command, icon move, icon housekeeping instruction, the addition instruction of desktop component
And application program installation instruction.
It is optionally, described to obtain the corresponding icon information of the icon action event, comprising:
Coordinates of icon information after the icon action event occurs for record, wherein the coordinates of icon information includes terminal
The corresponding icon location information of icon and desktop component position information on desktop.
It is optionally, described that data to be tested are generated according to the icon information, comprising:
The icon information is parsed, corresponding coordinate information is obtained;
The coordinate information is saved using dynamic array, to generate data to be tested.
Optionally, process instruction is generated according to testing result, comprising:
Obtain the corresponding coordinate information of icon;
When being lower than preset threshold there are the coordinate difference of two icons, it is determined as described two icons and overlaps;
The icon for deviateing the reference line in described two icons is obtained according to the reference line of the mobile terminal desktop;
Move is generated, the icon for deviateing the reference line is adjusted according to move.
Optionally, process instruction is generated according to testing result, comprising:
Obtain icon and the corresponding coordinate information of desktop component;
When being lower than preset threshold there are the coordinate difference of icon and desktop component, it is determined as the icon and the desktop
Component overlaps;
The icon or desktop component for deviateing the reference line are obtained according to the reference line of the mobile terminal desktop;
Move is generated, the icon or desktop component for deviateing the reference line is adjusted according to move.
Optionally, process instruction is generated according to testing result, comprising:
Obtain the corresponding coordinate information of icon;
If the benchmark lines matching of the coordinate information and the terminal desktop, it is confirmed as that overlapping icon is not present;
Out code is generated, the icon is closed according to the out code and detects thread.
Optionally, the method also includes:
It whether idle detects user interface thread, and in the user interface thread free time, obtains current figure again
Mark information;
The data to be tested are updated according to the icon information.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, and the mobile terminal includes processor and storage
Device;
The memory is for storing executable program;
The processor is for executing the executable program to realize icon processing method described above.
The third aspect of the embodiment of the present invention provides a kind of computer storage medium, stores in the computer storage medium
There is executable program, icon processing method described above is realized when the executable program is performed.
The implementation of the embodiments of the present invention has the following beneficial effects:
Icon processing method, mobile terminal and computer storage medium in the embodiment of the present invention pass through newly-built figure
Mark detection thread is detected, and can be carried out corresponding processing when icon action event occurs according to icon information, thus
Can automatic identification icon whether overlap, and can be adjusted in time, actively be intervened without user, no when overlapping
User's normal use is influenced, user experience is improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the wireless communication system of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of icon processing method first embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of icon processing method second embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of method flow diagram of icon processing method 3rd embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of method flow diagram of icon processing method fourth embodiment provided in an embodiment of the present invention.
Fig. 7 is a kind of method flow diagram of the 5th embodiment of icon processing method provided in an embodiment of the present invention.
Fig. 8 show a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, be conducive to using the suffix for indicating such as " module ", " component " or " unit " of element
Explanation of the invention itself does not have specific meaning.Therefore, " module ", " component " or " unit " can be used mixedly.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.It will be said by taking mobile terminal as an example in subsequent descriptions
It is bright, it will be appreciated by those skilled in the art that other than the element for being used in particular for mobile purpose, embodiment party according to the present invention
The construction of formula can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 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 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 is with can providing the IP of UE201
Location distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 is a kind of method flow diagram of icon processing method first embodiment provided in an embodiment of the present invention.The icon
Processing method is applied to mobile terminal shown in fig. 1 or fig. 2, which includes the following steps S301-S304.
In step S301, when the desktop process initiation of the mobile terminal is completed, opens icon and detect thread.
Specifically, it is android system that the mobile terminal, which uses, in the present embodiment, and in android system, table
Face exists in the form of process, and icon is shown by being shown in desktop process, and user is also by desktop process and movement
Terminal interacts.It is understood that the operating system of mobile terminal may be other, for example ios system is either
Windows system, the present embodiment are not limited thereto.In this step, when the desktop process initiation for detecting mobile terminal is completed
When, start an icon on backstage and detects thread.In general, desktop process is to restart or replace font, master in mobile terminal
It just will start when topic, after the completion of detecting desktop process initiation, icon detection thread will start therewith.Using line
The form of journey can not only save memory headroom, while also can be reduced the occupancy to running of mobile terminal resource, reduce power consumption.
In step s 302, when detecting generation icon action event, the corresponding figure of the icon action event is obtained
Mark information.
Specifically, in this step, the operation information received by detecting mobile terminal judges whether that icon operation occurs
Event.
In this implementation, the icon action event include: font replacement instruction, main body switching command, icon move,
Icon housekeeping instruction, desktop component addition instruction and application program installation instruction.It is understood that icon action event is also
It may include other types, for example icon made to generate mobile or replacement operation, can be seen as icon action event.
When the operational order received shows that the further icon action event that obtains corresponds to there are when icon action event
Icon information, in the present embodiment, obtain icon information and refer to the coordinates of icon letter after the icon action event occurs for record
Breath, the coordinates of icon information includes: the corresponding icon location information of icon and desktop component position information on desktop.It can be with
Understand, in addition to the corresponding icon of each application program on the desktop of mobile terminal, there may also be some desktop widgets,
Such as the components such as clock, weather, shortcut, the position in the present embodiment, when obtaining coordinates of icon information, in addition to obtaining icon
Confidence breath, can also further obtain the location information of desktop component.
In step S303, data to be tested are generated according to the icon information.
Specifically, generating data to be tested according to the icon information got.In this implementation, which further comprises:
The icon information being analyzed and acquired by obtains corresponding coordinate information.After getting coordinate information, protected using dynamic array
The coordinate information is deposited, to generate data to be tested.The dynamic data can use Arraylist form, convenient for quickly protecting
It deposits and reads.It is understood that other forms can also be taken to save, the present embodiment is not limited thereto.
In step s 304, the data to be tested are detected in icon detection thread, is tied according to detection
Fruit generates process instruction.
Specifically, being detected in icon detection thread to data to be tested, it is according to the judgement of the location information of icon
No there are the situations of icon overlay, and are overlapped according to whether existing, and generate different process instructions.For example, being overlapped if it exists, then
The icon of overlapping is separated, mobile corresponding icon;It is overlapped if it does not exist, then closes icon detection thread.
It is above-mentioned it is found that icon processing method in the embodiment of the present invention, detects thread by newly-built icon, is scheming
Mark action event when, detected according to icon information, and can be carried out corresponding processing, so as to automatic identification icon whether
It overlaps, and can be adjusted in time when overlapping, actively intervened without user, do not influence user's normal use, mention
High user experience.
Fig. 4 is a kind of method flow diagram of icon processing method second embodiment provided in an embodiment of the present invention.Comparison diagram 3
Shown in first embodiment further comprise the step of how generating process instruction in the present embodiment, the icon processing side
Method includes the following steps S401-S408.
In step S401, when the desktop process initiation of the mobile terminal is completed, opens icon and detect thread.
In step S402, when detecting generation icon action event, the corresponding figure of the icon action event is obtained
Mark information.
In step S403, data to be tested are generated according to the icon information.
In step s 404, the data to be tested are detected in icon detection thread.
In step S405, the corresponding coordinate information of icon is obtained.
Specifically, parsing the data to be tested, the corresponding coordinate information of icon is obtained.
In step S406, when being lower than preset threshold there are the coordinate difference of two icons, it is determined as described two figures
Mark overlaps.
Specifically, the coordinate information to icon traverses, judge whether the coordinate information between each icon is overlapped.This
In embodiment, when losing preset threshold there are the coordinate difference of two icons, it is determined as two icons and overlaps.For example, figure
The coordinate for marking A is (30,40), and the coordinate of icon B is (35,40), it is contemplated that the size of icon itself, between icon A and icon B
It is just overlapped, the icon for overlapping is needed to be moved at this time.
In step S 407, it is obtained in described two icons according to the reference line of the mobile terminal desktop and deviates the base
The icon of directrix.
Specifically, obtaining the reference line of desktop when there is overlapping, judge which icon deviates reference line.Usual situation
Under, icon is placed on the desktop of mobile terminal according to preset reference line, when overlap occurs, it may be possible to have icon inclined
From original reference line, the icon of the deviation reference line is obtained by judgement at this time.In other embodiments, it is possible this two
All without departing from reference line, the coordinate of two icons is completely coincident a icon, at this time any one mobile icon.
In step S408, move is generated, the icon for deviateing the reference line is adjusted according to move.
Specifically, according to move, the icon of the mobile deviation reference line.In general, can be the deviation reference line
Icon addition current page blank position.It is understood that increasing one newly if blank position is not present in current page
The icon is added to first picture mark position of the newly-increased display page by a display page.
It is above-mentioned it is found that icon processing method in the embodiment of the present invention, detects thread by newly-built icon, is scheming
Mark action event when, detected according to icon information, and can be carried out corresponding processing, so as to automatic identification icon whether
It overlaps, and can be adjusted in time when overlapping, actively intervened without user, do not influence user's normal use, mention
High user experience.
Fig. 5 is a kind of method flow diagram of icon processing method 3rd embodiment provided in an embodiment of the present invention.Comparison diagram 3
Shown in first embodiment further comprise the step of how generating process instruction in the present embodiment, the icon processing side
Method includes the following steps S501-S508.
In step S501, when the desktop process initiation of the mobile terminal is completed, opens icon and detect thread.
In step S502, when detecting generation icon action event, the corresponding figure of the icon action event is obtained
Mark information.
In step S503, data to be tested are generated according to the icon information.
In step S504, the data to be tested are detected in icon detection thread.
In step S505, icon and the corresponding coordinate information of desktop component are obtained.
Specifically, obtaining icon and the corresponding coordinate information of desktop component in the present embodiment.
In step S506, when being lower than preset threshold there are the coordinate difference of icon and desktop component, it is determined as described
Icon overlaps with the desktop component.
Specifically, judging that the coordinate of icon and desktop component whether there is overlapping, when the coordinate difference of icon and desktop component
When lower than threshold value, show that icon and desktop component are overlapped.
In step s 507, obtained according to the reference line of the mobile terminal desktop icon for deviateing the reference line or
Desktop component.
Specifically, the icon or desktop component that are deviateed according to the judgement of the reference line of acquisition.
In step S508, generate move, according to move adjust the icon for deviateing the reference line or
Person's desktop component.
Specifically, according to move moving icon or desktop component, to avoid overlapping.
It is above-mentioned it is found that icon processing method in the embodiment of the present invention, detects thread by newly-built icon, is scheming
Mark action event when, detected according to icon information, and can be carried out corresponding processing, so as to automatic identification icon whether
It overlaps, and can be adjusted in time when overlapping, actively intervened without user, do not influence user's normal use, mention
High user experience.
Fig. 6 is a kind of method flow diagram of icon processing method fourth embodiment provided in an embodiment of the present invention.Comparison diagram 3
Shown in first embodiment, in the present embodiment, further comprise the step of how generating process instruction, the icon processing method
Include the following steps S601-S607.
In step s 601, it when the desktop process initiation of the mobile terminal is completed, opens icon and detects thread.
In step S602, when detecting generation icon action event, the corresponding figure of the icon action event is obtained
Mark information.
In step S603, data to be tested are generated according to the icon information.
In step s 604, the data to be tested are detected in icon detection thread.
In step s 605, the corresponding coordinate information of icon is obtained.
In step S606, if the benchmark lines matching of the coordinate information and the terminal desktop, is confirmed as being not present
It is overlapped icon.
Specifically, when all coordinate informations all with benchmark lines matching, and there is no overlapping coordinate information when, be confirmed as
There is currently no overlapping icon, showing that present icon is shown is normally, without carrying out the adjustment and movement of icon.
In step S607, out code is generated, the icon is closed according to the out code and detects thread.
Specifically, generating out code at this time, close icon and detect thread, to reduce the occupancy to resource.
It is above-mentioned it is found that icon processing method in the embodiment of the present invention, detects thread by newly-built icon, is scheming
Mark action event when, detected according to icon information, and can be carried out corresponding processing, so as to automatic identification icon whether
It overlaps, and icon detection thread can be automatically closed when icon is normal, do not influence user's normal use, improve user's body
It tests.
Fig. 7 is a kind of method flow diagram of the 5th embodiment of icon processing method provided in an embodiment of the present invention.Comparison diagram 3
Shown in first embodiment, the step of updating data to be tested is further comprised in this programme, which includes
Following steps S701-S706.
In step s 701, it when the desktop process initiation of the mobile terminal is completed, opens icon and detects thread.
In step S702, when detecting generation icon action event, the corresponding figure of the icon action event is obtained
Mark information.
In step S703, data to be tested are generated according to the icon information.
In step S704, whether detecting user interface thread is idle, and in the user interface thread free time, again
Obtain current icon information.
Specifically, further to detect user interface thread, the user interface thread is used for receiving in the present embodiment
The operational order at family.Persistently whether detecting user interface thread is idle, is the adjustment icon lasting in order to avoid user, because
This is needed until user adjusts completion and then obtains icon information, more accurately to judge the overlapping cases of icon.Only exist
In the case where detecting the user interface thread free time, current icon information can be just obtained
In step S705, the data to be tested are updated according to the icon information.
Specifically, data to be tested are updated according to newest icon information, to guarantee the accuracy and reality of data to be tested
Shi Xing.
In step S706, the data to be tested are detected in icon detection thread, are tied according to detection
Fruit generates process instruction.
It is above-mentioned it is found that icon processing method in the embodiment of the present invention, detects thread by newly-built icon, is scheming
Mark action event when, detected according to icon information, and can be carried out corresponding processing, so as to automatic identification icon whether
It overlaps, and can be adjusted in time when overlapping, actively intervened without user, do not influence user's normal use, mention
High user experience.
Fig. 8 show a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.As shown in figure 8, mobile whole
End include processor 801 (quantity of the processor 801 in terminal can be one or more, and Fig. 8 takes a processor as an example) with
And memory 802.In an embodiment of the present invention, processor 801, memory 802 can be connected by bus or other means,
In, in Fig. 8 for being connected by bus.It is understood that the mobile terminal in the present embodiment also can be applied to Fig. 1 or
In embodiment shown in Fig. 2.
Wherein, executable program is stored in memory 802, processor 801 executes the executable program to realize such as
Lower step:
When the desktop process initiation of the mobile terminal is completed, opens icon and detect thread;
When detecting generation icon action event, the corresponding icon information of the icon action event is obtained;
Data to be tested are generated according to the icon information;
The data to be tested are detected in icon detection thread, generation processing according to testing result refers to
It enables.
Optionally, the icon action event includes:
Font replaces instruction, main body switching command, icon move, icon housekeeping instruction, the addition instruction of desktop component
And application program installation instruction.
Optionally, the processor 801 obtains the corresponding icon information of the icon action event, comprising:
Coordinates of icon information after the icon action event occurs for record, wherein the coordinates of icon information includes terminal
The corresponding icon location information of icon and desktop component position information on desktop.
Optionally, the processor 801 generates data to be tested according to the icon information, comprising:
The icon information is parsed, corresponding coordinate information is obtained;
The coordinate information is saved using dynamic array, to generate data to be tested.
Optionally, the processor 801 generates process instruction according to testing result, comprising:
Obtain the corresponding coordinate information of icon;
When being lower than preset threshold there are the coordinate difference of two icons, it is determined as described two icons and overlaps;
The icon for deviateing the reference line in described two icons is obtained according to the reference line of the mobile terminal desktop;
Move is generated, the icon for deviateing the reference line is adjusted according to move.
Optionally, the processor 801 generates process instruction according to testing result, comprising:
Obtain icon and the corresponding coordinate information of desktop component;
When being lower than preset threshold there are the coordinate difference of icon and desktop component, it is determined as the icon and the desktop
Component overlaps;
The icon or desktop component for deviateing the reference line are obtained according to the reference line of the mobile terminal desktop;
Move is generated, the icon or desktop component for deviateing the reference line is adjusted according to move.
Optionally, the processor 801 generates process instruction according to testing result, comprising:
Obtain the corresponding coordinate information of icon;
If the benchmark lines matching of the coordinate information and the terminal desktop, it is confirmed as that overlapping icon is not present;
Out code is generated, the icon is closed according to the out code and detects thread.
Optionally, the processor 801 is also used to:
It whether idle detects user interface thread, and in the user interface thread free time, obtains current figure again
Mark information;
The data to be tested are updated according to the icon information.
It is above-mentioned it is found that mobile terminal in the embodiment of the present invention, detects thread by newly-built icon, icon behaviour is occurring
It when making event, is detected according to icon information, and can be carried out corresponding processing, whether occurred so as to automatic identification icon
Overlapping, and can be adjusted in time when overlapping, it is actively intervened without user, does not influence user's normal use, improve and use
Family experience.
The embodiment of the invention also provides a kind of computer storage medium, the computer storage medium is stored with executable
Program, the executable program realize following steps when being performed:
When the desktop process initiation of the mobile terminal is completed, opens icon and detect thread;
When detecting generation icon action event, the corresponding icon information of the icon action event is obtained;
Data to be tested are generated according to the icon information;
The data to be tested are detected in icon detection thread, generation processing according to testing result refers to
It enables.
Optionally, the executable program can also be used to executing to realize such as Fig. 3-icon processing method shown in Fig. 7,
This is not repeated.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of icon processing method is applied to mobile terminal characterized by comprising
When the desktop process initiation of the mobile terminal is completed, opens icon and detect thread;
When detecting generation icon action event, the corresponding icon information of the icon action event is obtained;
Data to be tested are generated according to the icon information;
The data to be tested are detected in icon detection thread, generate process instruction according to testing result.
2. icon processing method as described in claim 1, which is characterized in that the icon action event, comprising:
Font replace instruction, main body switching command, icon move, icon housekeeping instruction, desktop component addition instruct and
Application program installation instruction.
3. icon processing method as claimed in claim 2, which is characterized in that the acquisition icon action event is corresponding
Icon information, comprising:
Coordinates of icon information after the icon action event occurs for record, wherein the coordinates of icon information includes terminal desktop
The corresponding icon location information of upper icon and desktop component position information.
4. icon processing method as claimed in claim 3, which is characterized in that described to be detected according to icon information generation
Data, comprising:
The icon information is parsed, corresponding coordinate information is obtained;
The coordinate information is saved using dynamic array, to generate data to be tested.
5. icon processing method as described in claim 3 or 4, which is characterized in that generate process instruction according to testing result, wrap
It includes:
Obtain the corresponding coordinate information of icon;
When being lower than preset threshold there are the coordinate difference of two icons, it is determined as described two icons and overlaps;
The icon for deviateing the reference line in described two icons is obtained according to the reference line of the mobile terminal desktop;
Move is generated, the icon for deviateing the reference line is adjusted according to move.
6. icon processing method as described in claim 3 or 4, which is characterized in that generate process instruction according to testing result, wrap
It includes:
Obtain icon and the corresponding coordinate information of desktop component;
When being lower than preset threshold there are the coordinate difference of icon and desktop component, it is determined as the icon and the desktop component
It overlaps;
The icon or desktop component for deviateing the reference line are obtained according to the reference line of the mobile terminal desktop;
Move is generated, the icon or desktop component for deviateing the reference line is adjusted according to move.
7. icon processing method as described in claim 3 or 4, which is characterized in that generate process instruction according to testing result, wrap
It includes:
Obtain the corresponding coordinate information of icon;
If the benchmark lines matching of the coordinate information and the terminal desktop, it is confirmed as that overlapping icon is not present;
Out code is generated, the icon is closed according to the out code and detects thread.
8. icon processing method as described in claim 1, which is characterized in that further include:
It whether idle detects user interface thread, and in the user interface thread free time, obtains current icon letter again
Breath;
The data to be tested are updated according to the icon information.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor and memory;
The memory is for storing executable program;
The processor is for executing the executable program to realize such as the described in any item icon processing sides claim 1-8
Method.
10. a kind of computer storage medium, which is characterized in that be stored with executable program, institute in the computer storage medium
It states when executable program is performed to realize such as the described in any item icon processing methods of claim 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811266479.8A CN109408184A (en) | 2018-10-29 | 2018-10-29 | A kind of icon processing method, mobile terminal and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811266479.8A CN109408184A (en) | 2018-10-29 | 2018-10-29 | A kind of icon processing method, mobile terminal and computer storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109408184A true CN109408184A (en) | 2019-03-01 |
Family
ID=65469415
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811266479.8A Pending CN109408184A (en) | 2018-10-29 | 2018-10-29 | A kind of icon processing method, mobile terminal and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109408184A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110515511A (en) * | 2019-08-20 | 2019-11-29 | 新奥数能科技有限公司 | A kind of operation application program image target method and device |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110131337A1 (en) * | 2009-12-02 | 2011-06-02 | Samsung Electronics Co., Ltd. | Mobile device and control method thereof |
| CN103150170A (en) * | 2013-03-27 | 2013-06-12 | 锤子科技(北京)有限公司 | Table top generation and operation methods of mobile terminal and corresponding devices thereof |
| CN103744600A (en) * | 2014-01-17 | 2014-04-23 | 广州市久邦数码科技有限公司 | Method and system for interaction between 3D (three-dimensional) dynamic wallpaper and desktop icon |
| US20160092083A1 (en) * | 2014-09-30 | 2016-03-31 | Varonis Systems, Ltd. | Unlimited icon overlays |
| US20160132214A1 (en) * | 2014-11-11 | 2016-05-12 | Amazon Technologies, Inc. | Application delivery agents on virtual desktop instances |
| CN105808055A (en) * | 2016-02-29 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Desktop icon cleanup method and intelligent terminal |
| CN106126077A (en) * | 2016-06-15 | 2016-11-16 | 维沃移动通信有限公司 | A kind of application program image target display control method and mobile terminal |
| CN106354366A (en) * | 2016-08-26 | 2017-01-25 | 乐视控股(北京)有限公司 | Method for treating desktop icons arrangement and device thereof |
| CN108121762A (en) * | 2017-11-24 | 2018-06-05 | 努比亚技术有限公司 | A kind of image processing method, mobile terminal and computer storage media |
-
2018
- 2018-10-29 CN CN201811266479.8A patent/CN109408184A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110131337A1 (en) * | 2009-12-02 | 2011-06-02 | Samsung Electronics Co., Ltd. | Mobile device and control method thereof |
| CN103150170A (en) * | 2013-03-27 | 2013-06-12 | 锤子科技(北京)有限公司 | Table top generation and operation methods of mobile terminal and corresponding devices thereof |
| CN103744600A (en) * | 2014-01-17 | 2014-04-23 | 广州市久邦数码科技有限公司 | Method and system for interaction between 3D (three-dimensional) dynamic wallpaper and desktop icon |
| US20160092083A1 (en) * | 2014-09-30 | 2016-03-31 | Varonis Systems, Ltd. | Unlimited icon overlays |
| US20160132214A1 (en) * | 2014-11-11 | 2016-05-12 | Amazon Technologies, Inc. | Application delivery agents on virtual desktop instances |
| CN105808055A (en) * | 2016-02-29 | 2016-07-27 | 宇龙计算机通信科技(深圳)有限公司 | Desktop icon cleanup method and intelligent terminal |
| CN106126077A (en) * | 2016-06-15 | 2016-11-16 | 维沃移动通信有限公司 | A kind of application program image target display control method and mobile terminal |
| CN106354366A (en) * | 2016-08-26 | 2017-01-25 | 乐视控股(北京)有限公司 | Method for treating desktop icons arrangement and device thereof |
| CN108121762A (en) * | 2017-11-24 | 2018-06-05 | 努比亚技术有限公司 | A kind of image processing method, mobile terminal and computer storage media |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110515511A (en) * | 2019-08-20 | 2019-11-29 | 新奥数能科技有限公司 | A kind of operation application program image target method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108762876A (en) | A kind of input method switching method, mobile terminal and computer storage media | |
| CN109040441A (en) | Using display methods of attending to anything else, mobile terminal and computer readable storage medium | |
| CN109726179A (en) | Screenshot picture processing method, storage medium and mobile terminal | |
| CN108536490A (en) | A kind of application program launching method, mobile terminal and computer storage media | |
| CN110007992A (en) | A kind of page display method, terminal and computer readable storage medium | |
| CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
| CN110187808A (en) | Dynamic wallpaper setting method, device and computer readable storage medium | |
| CN108829302A (en) | A kind of interaction regulation method, equipment and computer readable storage medium | |
| CN109254972A (en) | A kind of offline order Word library updating method, terminal and computer readable storage medium | |
| CN109766119A (en) | Restore subregion upgrade method, terminal and computer readable storage medium | |
| CN110096375A (en) | A kind of Application sharing data method, device and computer readable storage medium | |
| CN109375846A (en) | Spirogram target display methods and device, mobile terminal and readable storage medium storing program for executing | |
| CN110083294A (en) | Screen interception method, terminal and computer readable storage medium | |
| CN110167004A (en) | A kind of network registering method, mobile terminal and computer readable storage medium | |
| CN109379777A (en) | A kind of network search method, terminal and computer readable storage medium | |
| CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device | |
| CN109032621A (en) | A kind of application program installation method, mobile terminal and computer storage medium | |
| CN108195394A (en) | Air navigation aid, mobile terminal and the computer readable storage medium of flexible screen | |
| CN110069291A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
| CN110175052A (en) | A kind of method, apparatus and computer readable storage medium of file opening | |
| CN110174963A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
| CN110048900A (en) | Blog management method, mobile terminal and computer readable storage medium | |
| CN110147291A (en) | Terminal and its log management-control method, computer readable storage medium | |
| CN110096173A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
| CN109408184A (en) | A kind of icon processing method, mobile terminal and computer storage medium |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190301 |
|
| RJ01 | Rejection of invention patent application after publication |