CN107729103A - A kind of method for switching theme, mobile terminal and computer-readable storage medium - Google Patents
A kind of method for switching theme, mobile terminal and computer-readable storage medium Download PDFInfo
- Publication number
- CN107729103A CN107729103A CN201710904112.3A CN201710904112A CN107729103A CN 107729103 A CN107729103 A CN 107729103A CN 201710904112 A CN201710904112 A CN 201710904112A CN 107729103 A CN107729103 A CN 107729103A
- Authority
- CN
- China
- Prior art keywords
- theme
- target topic
- switching
- buffer area
- mobile terminal
- 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Abstract
The embodiment of the invention discloses a kind of method for switching theme, mobile terminal and computer-readable storage medium, the method for switching theme includes:When receiving theme switching command, the title of target topic is obtained according to the theme switching command;The target topic is copied to by default buffer area according to the title of the target topic;The target topic is updated into the database of desktop starter from the default buffer area;The target topic is loaded in the desktop starter.The embodiment of the present invention is placed on buffer area in advance by setting buffer area, by be switched theme, can accelerate theme loading velocity, lifts theme switching efficiency, reduces interim card, accelerates switching time, lifts Consumer's Experience.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method for switching theme, mobile terminal and computer to deposit
Storage media.
Background technology
With the development of mobile terminal, the aesthetic requirement of user is also improving constantly, and personalized graphical user shows boundary
Face can allow user to customize the style oneself liked, and can also solve the single tired out sense brought to user of Application Program Interface.Wherein,
Theme (the wallpaper and application icon) application of mobile terminal is a personalized important embodiment, is switched by theme, user
Wallpaper, icon and the look & feel that selection that can be independently is liked oneself, it can quickly and easily realize that mobile phone interface switches.
In current techniques, because the resource bag of theme is bigger, theme switching is normally resulted in when carrying out theme switching
Time it is long, interim card is obvious, and Consumer's Experience is poor.
The content of the invention
The embodiment of the present invention provides a kind of method for switching theme, mobile terminal and computer-readable storage medium, can accelerate
Theme switching efficiency, lift Consumer's Experience.
First aspect of the embodiment of the present invention provides a kind of method for switching theme, applied to mobile terminal, including:
When receiving theme switching command, the title of target topic is obtained according to the theme switching command;
The target topic is copied to by default buffer area according to the title of the target topic;
The target topic is updated into the database of desktop starter from the default buffer area;
The target topic is loaded in the desktop starter.
Optionally, it is described to receive theme switching command, including:
The touch operation to the mobile terminal is detected, theme switching command is generated according to the touch operation;
Or the acceleration information on the preset direction of the acquisition mobile terminal, when the acceleration information reaches threshold value
When, confirm as generating theme switching command.
Optionally, the target topic is copied to default buffer area by the title according to the target topic, bag
Include:
Obtain the theme storage catalogue of the mobile terminal;
The theme storage catalogue is accessed, the target topic is searched according to the title of the target topic;
The compressed package of the target topic is copied into default buffer area;
The compressed package is decompressed, obtains the resource file of the target topic.
Optionally, it is described to be updated from the default buffer area in the database to desktop starter of the target topic
Before, in addition to:
The theme switching command is parsed, obtains the switching type of the theme switching command, wherein, the switching type
Including single switching and repeatedly switching.
Optionally, the database to desktop starter that the target topic is updated from the default buffer area
In, including:
When the theme switching command is that single switches, the default buffer area is accessed;
The resource file of the target topic is updated into the database of the desktop starter.
Optionally, the database to desktop starter that the target topic is updated from the default buffer area
In, including:
When the theme switching command is repeatedly switches, corresponding next theme of the theme switching command is obtained
Title;
The default buffer area is accessed, by the number of the resource file renewal of the target topic to the desktop starter
According in storehouse, the resource file of target topic in the default buffer area is deleted;
The compressed package of next theme is obtained, the compressed package of next theme is copied into the default buffer area
In.
Optionally, it is described to load the target topic in the desktop starter, including:
Obtain current display interface;
According to the current display interface, the target icon text corresponding to screening from the resource file of the target topic
Part;
Original icon is replaced using the target icon file in the current display interface.
Optionally, methods described also includes:
Load icon file corresponding to other display interfaces;
Loaded after the completion of all icon files loading in the resource file of the target topic in the resource file
Wallpaper file.
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 used to store executable program;
The processor is used to perform the executable program to realize that the theme as described in claim any one of 1-8 is cut
Change method.
The third aspect of the embodiment of the present invention provides a kind of computer-readable storage medium, is stored on the computer-readable storage medium
Have executable program, when the executable program is performed to realize as described in claim any one of 1-8 theme switching
Method.
Implement the embodiment of the present invention, have the advantages that:
Method for switching theme, mobile terminal and computer-readable storage medium provided in an embodiment of the present invention, it is slow by setting
Area is deposited, to be switched theme is placed on buffer area in advance, theme loading velocity can be accelerated, theme switching efficiency is lifted, subtracts
Few interim card, accelerates switching time, lifts Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention.
Fig. 2 is the structural representation 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 method for switching theme first embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of method for switching theme second embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of method flow diagram of method for switching theme 3rd embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention.
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 follow-up description, using the suffix of such as " module ", " part " or " unit " for representing element only for being advantageous to
The explanation of the present invention, itself does not have specific meaning.Therefore, " module ", " part " or " unit " can be used mixedly.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.It will be said in subsequent descriptions by taking mobile terminal as an example
It is bright, it will be appreciated by those skilled in the art that in addition to being used in particular for moving the element of purpose, according to the embodiment party of the present invention
The construction of formula can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part 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 form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD 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, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change 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 receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted 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 (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also 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 transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification 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 ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to 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) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact 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
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, 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 storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, 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 whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio 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) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
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 here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can 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 between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can 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 it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Fig. 3 show a kind of method flow diagram of method for switching theme first embodiment provided in an embodiment of the present invention.Should
Method for switching theme is applied to mobile terminal, and in the present embodiment, this method comprises the following steps S301-S304.
In step S301, when receiving theme switching command, target topic is obtained according to the theme switching command
Title.
Specifically, when receiving theme switching command, the to be switched target according to corresponding to obtaining theme switching command
The title of theme.
Wherein, various ways can be had by receiving theme switching command, for example the setting that user is provided by mobile terminal is selected
, select theme switching;It can also be and interesting " shaking " switching theme is provided.It is it is understood that described to be switched
The theme theme that can be stored in the theme of mobile terminal local side or download from a server, the present invention is real
Example is applied to be not limited thereto.
In one embodiment, by detecting the touch operation to the mobile terminal, given birth to according to the touch operation
Into theme switching command.Now, user enters the theme setting interface of terminal by touch operation, selects corresponding change owner to be cut
Topic, generate theme switching command.
In another embodiment, the acceleration information on the preset direction of the mobile terminal is obtained, is added when described
When speed data reaches threshold value, confirm as generating theme switching command.Now, when terminal enters default interface or opens phase
During the theme handoff functionality answered, the acceleration information information that the acceleration transducer of terminal reports is detected, when on preset direction
Acceleration information when reaching threshold value, be judged as generating switching command.Pass through such a mode, it is possible to achieve shake switching master
Topic, operability are stronger.
In step s 302, the target topic is copied to by default buffer area according to the title of the target topic.
Specifically, after the title of to be switched target topic is got, the target topic is copied to default
Buffer area.
In current techniques, because the resource bag of theme is larger, theme is generally stored inside in corresponding path, is carrying out theme
, it is necessary to repeatedly access the path during switching, cause switching efficiency not high., will be to be switched by setting buffer area in the present embodiment
Target topic copy to buffer area in advance, be easy to subsequently switch over, improve switching efficiency.After buffer area is copied to,
Further target topic can also be decompressed, obtain corresponding resource file.
In step S303, the target topic is updated to the database of desktop starter from the default buffer area
In.
Specifically, after buffer area is copied to, target topic is updated to the data of desktop starter from buffer area
In storehouse, compared to needing desktop starter to access corresponding path, being updated from buffer area can accelerate to update efficiency, section
Save time.
In step s 304, the target topic is loaded in the desktop starter.
Specifically, in loaded targets theme, according to icon is first loaded, the order for reloading wallpaper is carried out.Optionally, exist
In loading procedure, the mode of batch processing can also be taken to be loaded, to accelerate loading efficiency.
It is above-mentioned to understand, the method for switching theme in the embodiment of the present invention, by setting buffer area, to be switched theme is carried
Before be placed on buffer area, can accelerate theme loading velocity, lift theme switching efficiency, reduce interim card, accelerate switching time, carry
Rise Consumer's Experience.
Fig. 4 show a kind of method flow diagram of method for switching theme second embodiment provided in an embodiment of the present invention.Phase
Than in the first embodiment shown in Fig. 3, in the present embodiment, further comprising the step that target topic is copied to buffer area
Suddenly, the method comprising the steps of S401-S407, wherein, in the present embodiment shown in step S401 and step S406-S407 and Fig. 3
Step S301 and step S303-S304 are identical in first embodiment, will not be described here.
In step S401, when receiving theme switching command, target topic is obtained according to the theme switching command
Title.
In step S402, the theme storage catalogue of the mobile terminal is obtained.
Specifically, in the present embodiment, in order to reduce the installation kit size of desktop starter, the theme of mobile terminal is not compiled
Translate in desktop starter, and be stored in default catalogue, for example can be vendor/theme, those skilled in the art
It is understood that can also be other catalogues, the present embodiment be not limited thereto.Getting to be switched target topic
After title, the first step first obtains the theme storage catalogue of mobile terminal.
In step S403, the theme storage catalogue is accessed, the target is searched according to the title of the target topic
Theme.
Specifically, according to the title of target topic, target topic is searched in the storage catalogue.It is understood that work as
The theme of user's selection is online theme, when being not present in local, can also download the target topic from server in real time.
In step s 404, the compressed package of the target topic is copied into default buffer area.
Specifically, after target topic is found, the compressed package of target topic is copied into buffer area.The present embodiment
In, in order to save volume, theme is stored in the form of compressed package,, will by setting default buffer area in the present embodiment
To be switched theme first copies to buffer area, in order to follow-up switching.
In step S405, the compressed package is decompressed, obtains the resource file of the target topic.
Specifically, after buffer area is copied to, the compressed package of target topic is decompressed, it is all to obtain the target topic
Resource file.The resource file includes:Icon, wallpaper and other interface informations.
In step S406, the target topic is updated to the database of desktop starter from the default buffer area
In.
In step S 407, the target topic is loaded in the desktop starter.
It is above-mentioned to understand, the method for switching theme in the embodiment of the present invention, by setting buffer area, to be switched theme is carried
Before be placed on buffer area and be decompressed into resource file, theme loading velocity can be accelerated, lift theme switching efficiency, reduce card
, accelerate switching time, lift Consumer's Experience.
In the embodiment of the present invention, when carrying out theme switching, because the type of theme switching is different, when switching over,
Different processing modes can also be taken to buffer area, the following detailed description of.It is understood that following processing to buffer area
Mode can apply in the step S406 in the step S303 shown in Fig. 3 and shown in Fig. 4.
In the embodiment of the present invention, the number to desktop starter of the target topic is being updated from the default buffer area
It is further comprising the steps of before in storehouse:The theme switching command is parsed, obtains the switching class of the theme switching command
Type, wherein, the switching type includes single and switches and repeatedly switch.
Specifically, when carrying out theme switching, user can select to carry out single switching or repeatedly switching.Single switches
The switching of a theme is correspond to, repeatedly switching correspond to the switching of continuous theme, for example in order to experience multiple themes, pass through company
The switching of continuous theme can be with the multiple themes of rapid preview.
In one embodiment, when the theme switching command is that single switches, now access described default slow
Area is deposited, the resource file of the target topic is updated into the database of the desktop starter.
In another embodiment, when the theme switching command is repeatedly switches, obtain the theme switching and refer to
The title of corresponding next theme of order;
The default buffer area is accessed, by the number of the resource file renewal of the target topic to the desktop starter
According in storehouse, the resource file of target topic in the default buffer area is deleted;
The compressed package of next theme is obtained, the compressed package of next theme is copied into the default buffer area
In.
By the above-mentioned means, when theme switching command is repeatedly switches, next to be switched theme can be obtained in time,
And after target topic is updated to desktop starter via buffer area, the compressed package of next theme is copied into caching in time
Area, in order to the switching of follow-up next theme, so as to lift switching efficiency during multiple theme switchings.Those skilled in the art can
With understanding, when theme switching command for repeatedly switching when, in next theme after buffer area is updated to desktop starter,
It can also continue to obtain theme after next theme to buffer area.
Fig. 5 show a kind of method flow diagram of method for switching theme 3rd embodiment provided in an embodiment of the present invention.It is right
Than the second embodiment shown in Fig. 4, in the present embodiment, further comprise how loaded targets theme the step of, this method
Including step S501-S509.It is understood that walked in the present embodiment in second embodiment shown in step S501-S506 and Fig. 4
Rapid S401-S406 is identical, will not be described here, the step S507-S509 in the present embodiment can also be equally applied to shown in Fig. 3
In first embodiment.
In step S501, when receiving theme switching command, target topic is obtained according to the theme switching command
Title.
In step S502, the theme storage catalogue of the mobile terminal is obtained.
In step S503, the theme storage catalogue is accessed, the target is searched according to the title of the target topic
Theme.
In step S504, the compressed package of the target topic is copied into default buffer area.
Specifically, after target topic is found, the compressed package of target topic is copied into buffer area.The present embodiment
In, in order to save volume, theme is stored in the form of compressed package,, will by setting default buffer area in the present embodiment
To be switched theme first copies to buffer area, in order to follow-up switching.
In step S505, the compressed package is decompressed, obtains the resource file of the target topic.
Specifically, after buffer area is copied to, the compressed package of target topic is decompressed, it is all to obtain the target topic
Resource file.The resource file includes:Icon, wallpaper and other interface informations.
In step S506, the target topic is updated to the database of desktop starter from the default buffer area
In.
In step s 507, current display interface is obtained.
Specifically, before theme is loaded, the current display interface of terminal is obtained first, is obtained according to current display interface
Icon information in current display interface.
In step S508, according to the current display interface, the screening pair from the resource file of the target topic
The target icon file answered.
Specifically, target icon file corresponding with current display interface is screened from the resource file of target topic.Than
Such as:Four wechat, short message, phone, browser icons are only existed in current display interface, then only screen the resource text of target topic
Icon file corresponding with this four icons in part.
In step S509, original icon is replaced using the target icon file in the current display interface.
Specifically, original icon is replaced using target icon file in current display interface.In the present embodiment, according to current
Display interface, first replace current display interface icon, so as to accelerate replacement efficiency.
When detecting terminal and switching to other interfaces, the icon at other interfaces is loaded according to the information at other interfaces.
Optionally, the present embodiment can further include:After the icon file of current display interface is loaded with, enter
Icon file corresponding to other display interfaces of the loading of one step;
And load the resource file after the completion of all icon files loading in the resource file of the target topic
In wallpaper file.
It is to be carried out according to the step of first loading icon file, reload wallpaper file in the present embodiment, so that in master
After topic switching, user can select corresponding icon to carry out the unlatching operation of application program with the very first time, lift Consumer's Experience.
In other embodiments, icon file can also be loaded simultaneously with wallpaper file, to improve switching efficiency.
Optionally, when carrying out the loading of resource file, the mode of batch processing can also be taken to be loaded, so as to
It is quick to realize that theme switches.
It is above-mentioned to understand, the method for switching theme in the embodiment of the present invention, by setting buffer area, to be switched theme is carried
Before be placed on buffer area and be decompressed into resource file, and the figure of current display interface is first loaded according to the display interface of present terminal
Mark, theme loading velocity can be accelerated, lift theme switching efficiency, reduce interim card, accelerate switching time, lift Consumer's Experience.
Fig. 6 show a kind of structural representation of mobile terminal provided in an embodiment of the present invention.It is as shown in fig. 6, mobile whole
End include processor 601 (quantity of the processor 601 in terminal can one or more, Fig. 6 is by taking a processor as an example) with
And memory 602.In an embodiment of the present invention, processor 601, memory 602 can be connected by bus or other means, its
In, in Fig. 6 exemplified by being connected by bus.
Wherein, executable program is stored with memory 602, processor 601 performs the executable program to realize such as
Lower step:
When receiving theme switching command, the title of target topic is obtained according to the theme switching command;
The target topic is copied to by default buffer area according to the title of the target topic;
The target topic is updated into the database of desktop starter from the default buffer area;
The target topic is loaded in the desktop starter.
Optionally, the processor 601 receives theme switching command, including:
The touch operation to the mobile terminal is detected, theme switching command is generated according to the touch operation;
Or the acceleration information on the preset direction of the acquisition mobile terminal, when the acceleration information reaches threshold value
When, confirm as generating theme switching command.
Optionally, the processor 601 copies to the target topic according to the title of the target topic default
Buffer area, including:
Obtain the theme storage catalogue of the mobile terminal;
The theme storage catalogue is accessed, the target topic is searched according to the title of the target topic;
The compressed package of the target topic is copied into default buffer area;
The compressed package is decompressed, obtains the resource file of the target topic.
Optionally, the processor 601 is from the default buffer area renewal target topic to desktop starter
Database in before, in addition to:
The theme switching command is parsed, obtains the switching type of the theme switching command, wherein, the switching type
Including single switching and repeatedly switching.
Optionally, the processor 601 is from the default buffer area renewal target topic to desktop starter
Database in, including:
When the theme switching command is that single switches, the default buffer area is accessed;
The resource file of the target topic is updated into the database of the desktop starter.
Optionally, the processor 601 is from the default buffer area renewal target topic to desktop starter
Database in, including:
When the theme switching command is repeatedly switches, corresponding next theme of the theme switching command is obtained
Title;
The default buffer area is accessed, by the number of the resource file renewal of the target topic to the desktop starter
According in storehouse, the resource file of target topic in the default buffer area is deleted;
The compressed package of next theme is obtained, the compressed package of next theme is copied into the default buffer area
In.
Optionally, the processor 601 loads the target topic in the desktop starter, including:
Obtain current display interface;
According to the current display interface, the target icon text corresponding to screening from the resource file of the target topic
Part;
Original icon is replaced using the target icon file in the current display interface.
Optionally, the processor 601 is additionally operable to:
Load icon file corresponding to other display interfaces;
Loaded after the completion of all icon files loading in the resource file of the target topic in the resource file
Wallpaper file.
It is above-mentioned to understand, the mobile terminal in the embodiment of the present invention, by setting buffer area, to be switched theme is put in advance
Put in buffer area, theme loading velocity can be accelerated, lift theme switching efficiency, reduce interim card, accelerate switching time, lifting is used
Experience at family.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, and the computer-readable storage medium is stored with executable
Program, the executable program realize following steps when being performed:
When receiving theme switching command, the title of target topic is obtained according to the theme switching command;
The target topic is copied to by default buffer area according to the title of the target topic;
The target topic is updated into the database of desktop starter from the default buffer area;
The target topic is loaded in the desktop starter.
Optionally, the executable program can also be used to perform to realize method for switching theme as shown in Figure 3-Figure 5,
This is not repeated.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
- A kind of 1. method for switching theme, applied to mobile terminal, it is characterised in that including:When receiving theme switching command, the title of target topic is obtained according to the theme switching command;The target topic is copied to by default buffer area according to the title of the target topic;The target topic is updated into the database of desktop starter from the default buffer area;The target topic is loaded in the desktop starter.
- 2. method for switching theme as claimed in claim 1, it is characterised in that it is described to receive theme switching command, including:The touch operation to the mobile terminal is detected, theme switching command is generated according to the touch operation;Or the acceleration information on the preset direction of the acquisition mobile terminal, when the acceleration information reaches threshold value, Confirm as generating theme switching command.
- 3. method for switching theme as claimed in claim 1, it is characterised in that the title according to the target topic is by institute State target topic and copy to default buffer area, including:Obtain the theme storage catalogue of the mobile terminal;The theme storage catalogue is accessed, the target topic is searched according to the title of the target topic;The compressed package of the target topic is copied into default buffer area;The compressed package is decompressed, obtains the resource file of the target topic.
- 4. method for switching theme as claimed in claim 3, it is characterised in that described from described in the default buffer area renewal Before in the database to desktop starter of target topic, in addition to:The theme switching command is parsed, obtains the switching type of the theme switching command, wherein, the switching type includes Single switches and repeatedly switching.
- 5. method for switching theme as claimed in claim 4, it is characterised in that described from described in the default buffer area renewal In the database to desktop starter of target topic, including:When the theme switching command is that single switches, the default buffer area is accessed;The resource file of the target topic is updated into the database of the desktop starter.
- 6. method for switching theme as claimed in claim 4, it is characterised in that described from described in the default buffer area renewal In the database to desktop starter of target topic, including:When the theme switching command is repeatedly switches, the name of corresponding next theme of the theme switching command is obtained Claim;The default buffer area is accessed, by the database of the resource file renewal of the target topic to the desktop starter In, the resource file of target topic in the deletion default buffer area;The compressed package of next theme is obtained, the compressed package of next theme is copied in the default buffer area.
- 7. method for switching theme as claimed in claim 3, it is characterised in that it is described in the desktop starter loading described in Target topic, including:Obtain current display interface;According to the current display interface, the target icon file corresponding to screening from the resource file of the target topic;Original icon is replaced using the target icon file in the current display interface.
- 8. method for switching theme as claimed in claim 7, it is characterised in that also include:Load icon file corresponding to other display interfaces;The wall in the resource file is loaded after the completion of all icon files loading in the resource file of the target topic Paper file.
- 9. a kind of mobile terminal, it is characterised in that the mobile terminal includes processor and memory;The memory is used to store executable program;The processor is used to perform the executable program to realize the theme switching side as described in claim any one of 1-8 Method.
- 10. a kind of computer-readable storage medium, it is characterised in that executable program, institute are stored with the computer-readable storage medium State when executable program is performed to realize the method for switching theme as described in claim any one of 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710904112.3A CN107729103A (en) | 2017-09-29 | 2017-09-29 | A kind of method for switching theme, mobile terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710904112.3A CN107729103A (en) | 2017-09-29 | 2017-09-29 | A kind of method for switching theme, mobile terminal and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107729103A true CN107729103A (en) | 2018-02-23 |
Family
ID=61208849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710904112.3A Pending CN107729103A (en) | 2017-09-29 | 2017-09-29 | A kind of method for switching theme, mobile terminal and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729103A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109688456A (en) * | 2018-12-27 | 2019-04-26 | 贵州省广播电视信息网络股份有限公司 | A kind of implementation method for TV client screen protection exploitation |
CN109725964A (en) * | 2018-12-07 | 2019-05-07 | 恒生电子股份有限公司 | Skin change method, device, the electronic equipment of mixed type frame |
CN110308961A (en) * | 2019-07-02 | 2019-10-08 | 广州小鹏汽车科技有限公司 | A kind of the subject scenes switching method and device of car-mounted terminal |
CN110737493A (en) * | 2019-09-02 | 2020-01-31 | 华为技术有限公司 | theme switching method and device |
CN111552537A (en) * | 2020-05-06 | 2020-08-18 | 深圳市卡牛科技有限公司 | Theme switching method and device, computer equipment and storage medium |
CN112181557A (en) * | 2020-09-22 | 2021-01-05 | 西安闻泰电子科技有限公司 | Theme switching method and device, electronic equipment and storage medium |
CN113076150A (en) * | 2021-04-13 | 2021-07-06 | 北京同邦卓益科技有限公司 | Interface theme switching method, device, equipment, storage medium and program product |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123056A (en) * | 2014-08-08 | 2014-10-29 | 深圳市中兴移动通信有限公司 | Switching method, device and terminal of user interfaces |
CN104166556A (en) * | 2014-08-27 | 2014-11-26 | 北京金山安全软件有限公司 | Software interface replacing method and device and terminal |
CN104657039A (en) * | 2015-02-12 | 2015-05-27 | 广州华多网络科技有限公司 | Interface subject display method and system as well as service equipment |
CN104850639A (en) * | 2015-05-26 | 2015-08-19 | 湖南蚁坊软件有限公司 | Method for switching webpage subjects without refreshing page |
CN104915188A (en) * | 2014-03-13 | 2015-09-16 | 北京壹人壹本信息科技有限公司 | Method and system for theme change and mobile terminal |
CN104978188A (en) * | 2015-06-19 | 2015-10-14 | 上海卓悠网络科技有限公司 | Method and apparatus for updating screen-lock picture of intelligent terminal |
CN105138225A (en) * | 2015-08-27 | 2015-12-09 | 北京金山安全软件有限公司 | Mobile terminal theme generation method and device |
CN105549993A (en) * | 2015-12-09 | 2016-05-04 | Tcl集团股份有限公司 | Android system resource switching method and system |
CN106991018A (en) * | 2017-04-18 | 2017-07-28 | 新华三技术有限公司 | The method and device of changing an interface skin |
-
2017
- 2017-09-29 CN CN201710904112.3A patent/CN107729103A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104915188A (en) * | 2014-03-13 | 2015-09-16 | 北京壹人壹本信息科技有限公司 | Method and system for theme change and mobile terminal |
CN104123056A (en) * | 2014-08-08 | 2014-10-29 | 深圳市中兴移动通信有限公司 | Switching method, device and terminal of user interfaces |
CN104166556A (en) * | 2014-08-27 | 2014-11-26 | 北京金山安全软件有限公司 | Software interface replacing method and device and terminal |
CN104657039A (en) * | 2015-02-12 | 2015-05-27 | 广州华多网络科技有限公司 | Interface subject display method and system as well as service equipment |
CN104850639A (en) * | 2015-05-26 | 2015-08-19 | 湖南蚁坊软件有限公司 | Method for switching webpage subjects without refreshing page |
CN104978188A (en) * | 2015-06-19 | 2015-10-14 | 上海卓悠网络科技有限公司 | Method and apparatus for updating screen-lock picture of intelligent terminal |
CN105138225A (en) * | 2015-08-27 | 2015-12-09 | 北京金山安全软件有限公司 | Mobile terminal theme generation method and device |
CN105549993A (en) * | 2015-12-09 | 2016-05-04 | Tcl集团股份有限公司 | Android system resource switching method and system |
CN106991018A (en) * | 2017-04-18 | 2017-07-28 | 新华三技术有限公司 | The method and device of changing an interface skin |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109725964A (en) * | 2018-12-07 | 2019-05-07 | 恒生电子股份有限公司 | Skin change method, device, the electronic equipment of mixed type frame |
CN109725964B (en) * | 2018-12-07 | 2021-11-26 | 恒生电子股份有限公司 | Skin changing method and device for hybrid frame and electronic equipment |
CN109688456A (en) * | 2018-12-27 | 2019-04-26 | 贵州省广播电视信息网络股份有限公司 | A kind of implementation method for TV client screen protection exploitation |
CN110308961A (en) * | 2019-07-02 | 2019-10-08 | 广州小鹏汽车科技有限公司 | A kind of the subject scenes switching method and device of car-mounted terminal |
CN110308961B (en) * | 2019-07-02 | 2023-03-31 | 广州小鹏汽车科技有限公司 | Theme scene switching method and device of vehicle-mounted terminal |
CN110737493A (en) * | 2019-09-02 | 2020-01-31 | 华为技术有限公司 | theme switching method and device |
WO2021042978A1 (en) * | 2019-09-02 | 2021-03-11 | 华为技术有限公司 | Theme switching method and theme switching apparatus |
EP4024209A4 (en) * | 2019-09-02 | 2022-10-26 | Huawei Technologies Co., Ltd. | Theme switching method and theme switching apparatus |
CN111552537A (en) * | 2020-05-06 | 2020-08-18 | 深圳市卡牛科技有限公司 | Theme switching method and device, computer equipment and storage medium |
CN111552537B (en) * | 2020-05-06 | 2023-10-20 | 深圳市卡牛科技有限公司 | Theme switching method and device, computer equipment and storage medium |
CN112181557A (en) * | 2020-09-22 | 2021-01-05 | 西安闻泰电子科技有限公司 | Theme switching method and device, electronic equipment and storage medium |
CN113076150A (en) * | 2021-04-13 | 2021-07-06 | 北京同邦卓益科技有限公司 | Interface theme switching method, device, equipment, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107562336A (en) | A kind of method, equipment and computer-readable recording medium for controlling suspension ball | |
CN108536481A (en) | A kind of application program launching method, mobile terminal and computer storage media | |
CN107729103A (en) | A kind of method for switching theme, mobile terminal and computer-readable storage medium | |
CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
CN107707450A (en) | A kind of method, apparatus and computer-readable recording medium for transmitting file | |
CN107181700A (en) | Control method, mobile terminal and the storage medium of application program for mobile terminal | |
CN107592416A (en) | Method for sending voice message, terminal and computer-readable recording medium | |
CN107657583A (en) | A kind of screenshot method, terminal and computer-readable recording medium | |
CN109358940A (en) | Desktop synchronization, mobile terminal and computer readable storage medium | |
CN107656743A (en) | A kind of discharging method of application, terminal and readable storage medium storing program for executing | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN108021698A (en) | Delet method, device and the computer-readable storage medium of storage file | |
CN107463324A (en) | A kind of image display method, mobile terminal and computer-readable recording medium | |
CN109697008A (en) | A kind of content share method, terminal and computer readable storage medium | |
CN107621915A (en) | A kind of message prompt method, equipment and computer-readable storage medium | |
CN107678625A (en) | Information Sharing menu display method, mobile terminal and computer-readable recording medium | |
CN107506163A (en) | Adjust method, terminal and the computer-readable recording medium of screen display | |
CN107682540A (en) | Image processing method, terminal and computer-readable recording medium | |
CN107589887A (en) | One kind applies startup method and terminal | |
CN107741802A (en) | Using startup method, terminal and computer-readable recording medium | |
CN107273433A (en) | A kind of file scanning method, equipment and computer-readable recording medium | |
CN107229410A (en) | Interactive operation method, mobile terminal and computer-readable recording medium | |
CN109299039A (en) | A kind of file management method, equipment and computer readable storage medium | |
CN108572777A (en) | A kind of terminal object method for sorting, terminal and computer readable storage medium | |
CN107566608A (en) | A kind of system air navigation aid, equipment and computer-readable recording 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: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |