CN110347454A - Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium - Google Patents

Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN110347454A
CN110347454A CN201810304834.XA CN201810304834A CN110347454A CN 110347454 A CN110347454 A CN 110347454A CN 201810304834 A CN201810304834 A CN 201810304834A CN 110347454 A CN110347454 A CN 110347454A
Authority
CN
China
Prior art keywords
application program
theme
application
page
setting
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.)
Withdrawn
Application number
CN201810304834.XA
Other languages
Chinese (zh)
Inventor
曾宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201810304834.XA priority Critical patent/CN110347454A/en
Publication of CN110347454A publication Critical patent/CN110347454A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The present invention provides a kind of application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium, which includes the instruction for receiving the theme of application program in setting application framework;According to the received setting instruction of institute, the theme of the application program of setting two or more.The device includes setting command reception module, for receiving the instruction of the theme of application program in setting application framework;Theme setting module, for being instructed according to the received setting of institute, the theme of the application program of setting two or more.Terminal device provided by the invention has processor and memory, and above-mentioned application program theme setting method may be implemented when executing computer program in processor.It is stored on computer readable storage medium of the invention for realizing above method computer program.The present invention can allow user easily to set to the theme of application programs multiple under application framework.

Description

Application program theme setting method, terminal equipment control method and device, terminal device And computer readable storage medium
Technical field
The present invention relates to the control fields of electronic equipment, specifically realizing application program on the terminal device in one kind Theme setting method and the device for realizing this method further relate to a kind of terminal equipment control method and realize this method Device, further relate to a kind of terminal device and computer readable storage medium for realizing the above method.
Background technique
The terminal devices such as smart phone, tablet computer become the most frequently used electronic equipment in people's daily life, people Like that various application programs are installed on intelligent electronic device, and on the terminal device simultaneously run largely apply journey Sequence.The operating system of present many terminal devices all provides open SDK, and (Software Development Kit, software are opened Hair tool) and open API (Application Programming Interface, application programming interface), with drop The difficulty of low application development also provides certain standard for the exploitation of application program, and therefore, people are selectable to apply journey Sequence is also more and more.
However, the installation kit APK of existing application program is mostly using the program write using language such as JAVA, wherein wrapping Containing component made of largely writing according to prespecified logic, therefore, the installation kit of existing application program was needed by end The operating system of end equipment is directly run, for example, after the installation kit of application program downloads to terminal device, by the behaviour of terminal device Make system to parse installation kit, and executes installation operation.The installation kit of existing application program during the installation process, is grasped It will acquire the data of installation kit as system and corresponding file generated according to prespecified logic, including generate application program Required control, these controls often run directly in operating system and realize specific function.Also, it is applying Program after the installation is completed, usually shows the icon of the application program on the desktop of terminal device, and user needs to run the application When program, the icon of the application program is clicked, which is directly run by the operating system of application program.
As the function that application program is realized is more and more, the page of application program is also more and more, and occupies when operation Hardware resource it is also more and more, such as occupy more memory sources, and need to call a large amount of interface etc..Due to application Setting information, program file of calling interface of each page of program etc. require to be written in the installation kit of application program, Therefore, cause the installation kit data volume of application program very big, the installation kit that user downloads application program generally requires longer Waiting time, and since the data volume of installation kit is larger, downloading installation kit also tends to spend many data traffics.
Further, since having been written into the set information to application program theme in existing application program installation kit, such as set Determined the theme colors, font, background patterns etc. of each page often can only see fixed after user opens application program Topic style.If user needs to modify the theme of application program, can only also modify to a small amount of pattern, such as can only repair Change head portrait, background picture or color etc., the patterns such as application icon, page layout can not be set.
Further, since multiple application programs of terminal device are independent from each other, when user modifies the theme of application program, The theme for the application program being being currently used can only be modified, and the theme of other applications cannot be modified.If user is uncommon Prestige modifies to the theme of multiple application programs, then needs to run these application programs one by one, and for each application Program executes the operation of theme modification, causes user to require a great deal of time and carries out the modification and setting of theme, shadow Ring the physical examination of user.
Summary of the invention
The first object of the present invention is to provide a kind of application for facilitating user to set the theme of multiple application programs Program theme setting method.
The second object of the present invention is to provide a kind of terminal that may be implemented to set the theme of multiple application programs Apparatus control method.
The third object of the present invention be to provide it is a kind of allow user flexibility setting application program theme application program theme set Set device.
The fourth object of the present invention is to provide a kind of terminal equipment control for realizing above-mentioned terminal equipment control method.
The fifth object of the present invention is to provide a kind of terminal device that can be realized above-mentioned application program theme setting method.
The sixth object of the present invention is to provide one kind and is read out by the processor and can be realized above-mentioned application program master when executing Inscribe the computer readable storage medium of setting method.
In order to realize the first above-mentioned purpose, application program theme setting method provided by the invention is set applied to terminal Standby, this method includes receiving the instruction of the theme of application program in setting application framework;It is instructed according to the received setting of institute, Set the theme of two or more application programs in application framework;Preferably, application framework applies journey for supporting The operation of sequence.
By above scheme as it can be seen that the present invention is by setting the theme of multiple application programs in application framework It is fixed, and since application program is to support to run by application framework, in this way, when application program is run, application program frame Frame can render the page of application program according to the topic style of setting, set to realize to application program theme It is fixed.
Due to often running multiple application programs on application framework, user only needs in application framework The upper operation once set, it can while the theme of multiple application programs is modified and being set, without to each A application program carries out the operation of theme setting respectively, facilitate user disposably to the theme of multiple application programs carry out setting with Modification.
One Preferable scheme is that, the instruction for receiving the theme of setting application program includes: to receive to set at least one class The instruction of the application program theme of type;The theme for setting application program includes: by two or more the application programs of the type Theme is set as selected topic style.
As it can be seen that setting application program theme when, multiple application programs can be divided into multiple types, as social category, Domestic News class, game class etc., user can set the theme of different types of application program according to the hobby of oneself, so that The theme of application program is more personalized.
To realize that the second above-mentioned purpose, terminal equipment control method provided by the invention include: to receive operation using journey The instruction of application program in sequence frame;The configuration file of application program is obtained, and obtains the theme setting information of application program, The page of application program is generated according to configuration file and application theme setting information.
It can be seen that the page shown after running application program is by application framework according to selected theme The page of rendering acquisition is carried out, when in this way can be to avoid the page of each display application program, the page of display application program default Face, it is accordingly possible to ensure after user sets topic style, it can be seen that by master when later each run application program The page after topic setting.
One Preferable scheme is that, according to configuration file and application theme setting information generate application program page packet It includes: obtaining the setting flag in theme setting information, and determine whether theme setting information is specified setting according to setting flag Information, if so, otherwise being obtained after obtaining specified setting information using the page that specified setting information rendering generates application program Default information and the page that application program is generated using default information rendering.
As it can be seen that if there is the preset specified setting information of user, then being used when generating the page of application program Specified setting information generates the page, if there is no specified setting information, is then set using default provided by application framework Confidence ceases to render the page, it can be ensured that the successful rendering of the page.
Further embodiment is, after the instruction for receiving operation application program, also executes: sending the configuration of downloading application program The request instruction of file;The configuration file of application program is received, application framework parses configuration file.
As it can be seen that terminal device can download the configuration text of the application program when user needs to run some application program Part since the configuration file of application program only includes the basic data of application program, and does not include the spatial cue to the page, Therefore, the data volume of configuration file is often smaller, and download time is very short, and user withouts waiting for that application can be opened substantially Program, the shown page are also according to the page obtained after the selected theme rendering of user, in this way, user does not need to this Application program, which carries out theme setting operation, can see the theme oneself liked.
Further embodiment can be deposited in local storage or preset network when setting the theme of application program Topic style is chosen in reservoir as selected theme.
As it can be seen that user can take according to the hobby of oneself from this storage or preset network memory, such as Dropbox It selects the theme oneself liked as selected topic style on business device, so that the theme of application program is more personalized, improves The Experience Degree of user.
Optional scheme is that when setting the theme of application program, multiple preset themes are shown on the screen of terminal device; Receive the instruction for choosing topic style, wherein selected topic style is one in multiple preset themes.
It can be seen that application framework can provide a user multiple preset topic styles, user can be from multiple One is selected in preset topic style as selected topic style, can be convenient user quickly, simple setting theme sample Formula.
Further embodiment is that the page according to configuration file and application theme setting information generation application program includes: The primary page of application program is generated according to configuration file and application theme setting information;Wherein, which is based on end The page that the primary control of the operating system of end equipment renders.
Further scheme is that configuration file includes several components, operation logic and description information, according to configuration file And the primary page of application theme setting information generation application program includes: the original according to the operating system of component and terminal device The corresponding relationship of raw control, determines the corresponding primary control of several components;Based on primary control, believed according to operation logic, description Breath and theme setting information generate the primary page of application program.
Preferably, the description information in configuration file includes the layout information of the page, color, font, resource, various statements Deng.
As it can be seen that used primary control rendering provided by operating system to generate the page when generating the page of application program, It may insure that the page for rendering generation is identical as the page of traditional application program, so that it is guaranteed that user experience will not change.
To realize above-mentioned third purpose, application program theme setting device provided by the invention is applied to terminal device, The device includes setting command reception module, the instruction of the theme for receiving the application program in setting application framework; Further include theme setting module, for instructing according to the received setting of institute, sets two or more in application framework applications The theme of program;Preferably, application framework is used to support the operation of application program.
Using application program theme setting device of the invention, user can be convenient quickly to the master of multiple application programs Topic is set, and is not needed user and is set one by one to the theme of multiple application programs, is saved user and is set application program master The time of topic.And it is possible to new starting operation or the application program run while carry out theme setting.
To realize the 4th above-mentioned purpose, terminal equipment control provided by the invention includes: that operating instruction receives mould Block, for receiving the instruction of the application program in operation application framework;Page display module, for obtaining application program Configuration file, and the theme setting information of application program is obtained, application is generated according to configuration file and application theme setting information The page of program.
One Preferable scheme is that, the device further include setting flag obtain module, for obtaining in theme setting information Setting flag, and determine that theme setting information is specified setting information or default information according to setting flag;The page Generation module is specifically used for: when determining theme setting information is specified setting information, obtaining after specified setting information using referring to Determine the page that setting information rendering generates application program;When determining theme setting information is default information, default is obtained Setting information and the page that application program is generated using default information rendering.
To realize the 5th above-mentioned purpose, terminal device provided by the invention includes processor, and processor is deposited for executing Each step of above-mentioned application program theme setting method is realized when the computer program stored in reservoir or realizes above-mentioned end Each step of end equipment control method.
To realize the 6th above-mentioned purpose, computer journey is stored on computer readable storage medium provided by the invention Sequence, the computer program are realized each step of above-mentioned application program theme setting method or are realized when being executed by processor State each step of terminal equipment control method.
Detailed description of the invention
Fig. 1 is the flow chart of application program theme setting method embodiment of the present invention.
Fig. 2 is the page schematic diagram using the application framework of application program theme setting method embodiment of the present invention.
Fig. 3 is the setting page signal using the application framework of application program theme setting method embodiment of the present invention Figure.
Fig. 4 is the flow chart of terminal equipment control method embodiment of the present invention.
Fig. 5 is the flow chart that the page is generated in terminal equipment control method embodiment of the present invention.
Fig. 6 is the structural block diagram of application program theme setting device embodiment of the present invention.
Fig. 7 is the structural block diagram of terminal equipment control embodiment of the present invention.
Fig. 8 is the structural block diagram of terminal device embodiment of the present invention.
The invention will be further described with reference to the accompanying drawings and embodiments.
Specific embodiment
Application program theme setting method of the present invention is applied in the terminal devices such as smart phone or tablet computer On, for realizing the setting of the theme of application program, modify including the theme to application program.Terminal device control of the present invention Method processed be also be to apply on the terminal devices such as smart phone or tablet computer, for application program operation after root The page of application program is generated according to theme setting information.The control of application program theme setting device and terminal device of the invention Device processed is run on the terminal device, and is controlled for realizing above-mentioned application program theme setting method, terminal device Method.
Since the installation kit data volume of traditional application program is very big, cause the installation kit download time of application program compared with It is long, and the set-up time is also longer.For this purpose, the present embodiment is in terminal device setting application framework to support application program Operation.For example, application framework is the software operated in terminal device operating system, application framework can in advance before this Downloading is installed on terminal device, can also be installed on terminal device together with operating system.When application framework is run Various interfaces that can according to demand in call operation system, or call the interface of other applications.
In order to avoid application program is during downloading installation kit, installation, with also needing to fall into a long wait, the present embodiment Need to download before application program launching is the configuration file of application program, and the configuration file of application program downloads to terminal and sets After standby, parsed by application framework.In page info included in the configuration file of application program, only include The basis instrument information of the application program page, but do not include the rendering data of the page, for connecing for calling required for application program Mouthful, the configuration file of application program simply shows the title of the various interfaces called required for application program and the rule of calling Then, but not the function of specific calling interface is provided.Therefore, the profile data amount of application program is seldom, usually 1M with Under.Terminal device can complete the downloading of the configuration file of application program in a very short period of time.
After the configuration file downloading of application program finishes, application framework parses configuration file, such as Parsing obtain each page of application program basis instrument information, then according to parse acquisition basis instrument information to the page It is rendered.For example, the page basis instrument information for including in the configuration file of application program includes the letter of page layout background pattern The location information of breath, the information of page font style, icon.After application framework obtains the basis instrument information of the page, Background picture is obtained, from fontlib according to these corresponding rendering datas of basis instrument acquisition of information, such as from local storage Middle background picture, font, the icon etc. for obtaining corresponding font, corresponding icon etc. being obtained from icon library, and will acquire It is shown on page designated position, to form the page after rendering.
Also, the information of the various interfaces called is needed due to simply showing in the configuration file of application program, Application framework also needs to provide the calling function of various interfaces according to the information in configuration file, in order to application program Various interfaces can be rapidly called when operation.When needing to call a certain interface when application program operation, application program passes through The interface function that application framework provides realizes the calling of data.
Just because of the rendering data for each page for not including application program in the configuration file of application program, also it is not required to It to include the calling function of various interfaces, therefore the data volume of configuration file is very small, speed of download is very fast, can be in pole The downloading of configuration file is completed in short time, and application framework, when parsing configuration file, the time it takes is also very short, The operation of application program can be realized within a very short time.
As it can be seen that the application program of the present embodiment, compared with traditional application program, the application program of the present embodiment is to be based on The application program of application framework operation, i.e., need application framework to provide page rendering, interface when application program is run File etc., and configuration file downloading, the parsing of application program can be completed in a very short period of time, therefore be answered for what is do not downloaded With program, as long as user has issued the instruction for running the application program, it can moment completes the downloading and operation of configuration file, To which moment opens application program.In general, the downloading of the configuration file of application program and parsing can be completed on backstage, user is only Need to click the icon of application program, even if the configuration file of the application program is not downloaded, user hardly needs waiting i.e. Have already turned on the homepage of application program.
When due to application program operation, the shown page is also the page after rendering, and various interface journeys Sequence is provided by application framework, therefore, for the use of user, to the behaviour of application program and traditional application program Make, using being not different, application program can be realized function identical with common applications.
The theme of application program is set for convenience, the present invention provides a kind of to operating on application framework The method that the theme of application program is set, this method are as shown in Figure 1, comprising the following steps:
Step S101 receives the instruction of the theme of setting application program.
In the present embodiment, user sets the theme of application program under application framework, therefore, setting application The instruction of program theme is to be arranged what page downloading went out in application framework.User can open on the terminal device and Application framework is run, application framework can be similar to common application program and run on the terminal device, such as Showing on the desktop of terminal device will open after the icon of application framework, user click the icon and runs application program frame Frame.
After application framework operation, it will show homepage as shown in Figure 2, such as " program shown on homepage Multiple virtual keys such as list ", " theme setting " and " version ", user can click these keys and carry out corresponding operation. For example, after user clicks " program listing " page of the application list will be jumped to, the application list page is shown Downloaded application program and the application program that do not download, and answering of having downloaded can be distinguished by different labels The application program that do not download with program and.
When user needs to set the theme of application program, the virtual key of " theme setting " can be clicked, this When, i.e. receive user needs to be arranged the instruction of application program theme to terminal device, and jumps to the theme setting page, such as schemes The page shown in 3.In the case where theme sets the page, application framework provides multiple preset themes and selects for user, such as in master Multiple themes such as theme 1, theme 2 are shown under the topic setting page, it is preferred that can be shown in the case where the page is arranged in theme each The information such as title, the preview page of a theme.If the user desired that a certain theme is selected then to click as the theme of application program The display area of the theme, i.e. receive user selectes instruction of a certain theme as application program topic style to terminal device.
It is appreciated that the instruction that user issues setting application program theme is not limited to click virtually pressing for " theme setting " Key, can also by audibling instruction, on the screen slide the various ways such as scheduled track sending.
Preferably, the topic style that user can be personalized according to the hobby selection of oneself, such as from local storage Background picture or the head portrait etc. of application program are selected, or selects the background of application program from preset network memory Picture or head portrait etc., wherein preset network memory can be the Dropbox of user's specified path, Cloud Server etc..
Certainly, the theme of application program can be a part of information and be customized by the user setting, and a part of information uses system The subject information that system is provided previously, for example, user can set the background picture of application program and head portrait uses local storage Picture, and the icon of application program, font style, navigation bar pattern etc., the then sample being provided previously using application framework Formula.
Step S102 instructs according to setting, sets the theme of application program.
After the instruction that user has issued the theme of setting application program, terminal device refers to according to the setting that user issues It enables, sets the theme of each application program in application framework, that is, record the subject information of each application program.Example Such as, user has selected some topic style of preset theme as application program, then application framework is answered this is recorded With the topic style of program.
Optionally, after user once sets the theme of application program, application framework can be defaulted to application program The theme of all application programs under frame is set, that is, user opens all application programs and shows identical theme Pattern.It certainly, can be with regard to each application program if user is not intended to all application programs to show identical theme Theme is set, for example, setting uses the first theme for application program A, for application program B, setting uses second Kind theme.
However, user, which may want to same type of application program, uses identical theme, and it is different types of using journey Sequence uses different themes.For example, for the application program of social category, identical background picture and identical is can be set in user Head portrait, and for the application program of game class, another background picture and another head portrait is can be set in user.Therefore, User can classify multiple application programs, and when setting the theme of application program, it is possible to specify some theme is answered With in which kind of application program.
Certainly, the classification of application program can be by user's sets itself, such as the class of one application program of user's sets itself Type, and the application program for being about to belong to this type certainly is added in the application list of the type.In addition, application program Frame can also provide the classification information of preset Application Type, and user can directly be provided using application framework Application program classification information.
Preferably, a table can be set in application framework, records the application program of each or each type Currently running application program is obtained by inquiring the table in application program operation with the corresponding relationship of topic style Subject information, and rendered according to the page of the subject information of setting to application program.
After user finishes the theme setting of the application program in application framework, user, which can choose, to be needed to run Application program, the control method of the terminal device of the present embodiment is introduced below with reference to Fig. 3.
Firstly, executing step S401, the instruction of the application program in operation application framework is received.
User can click the virtual key of " program listing ", application framework under the homepage of application framework The application list page on will show the information of multiple application programs, icon, title, pre-review information including application program And summary info etc..Preferably, the application program downloaded is displayed on the top of program listing, and the application that do not download Program is displayed on the lower section of list.It is furthermore preferred that application framework provides the function of search for application, such as in program The top of original list shows search column, and user can input keyword in search column, title, function such as application program The keywords such as energy, attribute, and search key is clicked, search result will be shown in the application list.
When user is desirable for a certain application program, icon or title of the application program etc., terminal can be clicked Equipment is to receive the instruction of operation application program, and open and run the application program.
Certainly, user can issue by other means operation application program instruction, such as by acoustic control instruction or Home key etc. is pressed, the pattern etc. to form desired trajectory can also be slided on the screen.
Step S402 sends the request instruction of downloading application profiles.
After the instruction that application framework receives the icon of a certain application program of click of user's sending, need first Judge whether the configuration file of the application program has been downloaded, if do not downloaded, needs to send downloading application to server The instruction of program configuration file.
Due to the application program for being all based on Profile Up run under application framework, application program The request instruction that frame is sent is the request instruction that the configuration file of downloading application program is issued to server.Server receives After the instruction of request downloading application profiles transmitted by terminal device, the configuration file of the application program is found out, And application profiles are sent to terminal device.
Step S403, receives application profiles, and application framework parses the configuration file.
Terminal device receives the data for the application profiles that server is sent, and solves under application framework Analyse the configuration file.Since the configuration file of application program contains the basis instrument information of the page of application program, for example, it is each The position of icon, background color, the pattern of font, setting position of head portrait etc. on the page, therefore, the parsing of comparative arrangement file It is exactly the basis instrument information of acquisition and the page of records application program.
In addition, the configuration file of application program further includes the information of each interface of the required calling of application program, because This, when parsing the configuration file of application program, needs to be provided according to the information of configuration file, application framework for application program Required interface function, to realize the function of realization required for application program.
Step S404 obtains the theme setting information of application program.
After the configuration information for obtaining application program, it is also necessary to which the theme setting information for obtaining application program can be real Now to the rendering of the page of application program, and then generate the page of application program.In the present embodiment, user can according to oneself The theme of fancy setting application program, certainly, when user does not set the theme of application program, application framework will be provided The theme setting information of default, the page of the theme setting information generation application program in order to application program based on default.
For example, application framework sets the setting flag of each application program, which is used for identity user It whether has been provided with the theme of application program in application framework, has been answered if user is provided under application framework With the theme of program, then the setting flag set is such as indicated using binary number " 1 ", indicates that the application program has specified set Confidence breath.If the theme of application program is arranged not under application framework by user, which is binary number " 0 " is indicated that specified setting information is not present in the application program, then needs to be carried out the rendering of the page using default information.
As it can be seen that step S404 is exactly the theme setting flag for obtaining application program, and according to theme setting flag, obtain The application program specifies setting information or default information accordingly, with the page for generating application program.
Step S405 generates the page of application program according to configuration file and application theme setting information.
After the icon that user clicks application program, application framework is the configuration text of automatic downloading application program Part, and after the downloading of the configuration file of application program, configuration file is parsed automatically, and in terminal device The homepage of application program is shown on screen.
When generating the homepage of application program, application framework is according to the page in the configuration file of application program Basis instrument information renders the page according to the basis instrument information obtained that parses to the configuration file.Due to answering It include the information of page layout background pattern, page font in the configuration file of program with the basis instrument information about the page for including The information such as the information of pattern, the location information of icon, head portrait display position, but and do not include the page rendering data therefore answer After the basis instrument information for obtaining the page with program frame, it is also necessary to according to the theme of application program acquired in step S404 Setting information renders the page.
It preferably, include multiple components, operation logic and description information etc. in the configuration file of application program, wherein The component of configuration file is the preset component of requirement according to application framework, and the operation system of component and terminal device There are corresponding relationships for the primary control of system, that is, can determine that the corresponding operating system of the component is former by the mark of the component The title etc. of raw control.The operation logic of configuration file is used to determine logic when application program operation, such as between the page Relationship between superior and subordinate enters the next stage page from some page or returns to upper level page relation of plane, and indicates the page The effect of upper different key, such as click the logical relation that next page is jumped to after a certain key.And description information is then wrapped Layout information, color, font, resource, various statements containing the page etc..
Therefore, it when rendering the page of application program, needs using the operation in theme setting information and configuration file Logic, description information, since description information has been presented for the information such as various icons on the page, the layout of text, pattern, because This, by the rendering that some page may be implemented after acquisition theme setting information according to description information.In addition, being patrolled by operation Collecting may be implemented to jump the setting of relationship between multiple pages, to generate the logic of multiple pages of application program.
Preferably, the present embodiment is that the primary control based on program generates the primary page, therefore, in rendering application program When the page, need to obtain the component institute in configuration file according to the corresponding relationship between component in configuration file and primary control Corresponding primary control that is, for generating the controls such as icon, window or navigation bar in acquisition operating system, and is based on these Primary control rendering generates the primary page of application program.Therefore, the primary page in the present embodiment is based on operating system The page of primary the rendered formation of control, the page display effect phase of the display effect of these pages and traditional application program Together, so that it is guaranteed that user experience will not change.
It how is described in detail below with reference to Fig. 5 according to configuration file and the page of application theme setting information generation application program Face.
Firstly, executing step S501, the setting flag of theme setting information is obtained.
The theme setting information of application program is obtained in step s 404, and therefore, step S501 is actually from step Included setting flag is obtained in theme setting information acquired in S404, such as obtains binary system from the data of specific position Number.
Step S502 judges whether theme setting information obtained is specified setting information, if so, executing step Otherwise S503 executes step S504.
After specific position acquisition binary number, judge that the binary number is " 0 " or " 1 ", if for identifying The setting flag of theme setting information is " 0 ", then it represents that specified setting information, the judgement of step S502 is not present in the application program It as a result is no, if the setting flag for identifying theme setting information is " 1 ", then it represents that the application program has specified setting Information, the judging result of step S502 are yes.
Step S503 is obtained specified setting information, the page for generating application program is rendered using given settings information.
For example, according to the information of the background picture of the application program of step S102 setting, in the homepage of application program The background picture of loading selected, alternatively, being searched from the fontlib that operating system provides corresponding according to the pattern of the font of setting Font, or, according to preset head portrait picture, head portrait picture is shown on head portrait display position.As it can be seen that step S503 The page of application program generated is that identified theme is instructed to carry out rendering page obtained according to the setting of step S102 Face.
It should be noted that step S503 is not limited to render the homepage of application program, it further include to application Each page of program is rendered, such as after application program enters the second level page even three-level page, all according to step Theme set by rapid S102 renders the subsequent page, and the content of rendering can also include navigation bar, scroll bar, each The icon of function button, the even layout etc. of the page.Once also, user modifies application program in application framework Topic style, then when showing the page of application program, it is also desirable to the page be rendered according to modified theme.
In addition, requiring regardless of whether currently running application program runs for the first time using specified setting set by user Information renders the page of application program.For example, there is no specified set after the theme of step S102 setting application program Which application program fixed theme is suitable for or is suitable for which kind application program, then it represents that the theme currently set is suitable For all application programs, including the application program downloaded or do not downloaded.Therefore, step S503 is exactly direct uses The theme that step S102 has been set is configured current application program.
If step S102 sets the theme of the application program of a certain type, and currently running application program belongs to this One type, step S503 then use the theme of the type as the topic style of current application program.For example, being set in step S102 The theme of the application program of food and drink class is determined, if currently running application program is the application program of food and drink class, has directly made The theme of the application program of food and drink class set by step S102 renders the page of current application program.
Step S504 obtains default information, and the page of application program is generated using the rendering of default setting information.
If the judging result of step S502 be it is no, indicate that user does not set the theme of application program, therefore, generation is answered When with the page of program, default information provided by application framework will be used to render, to avoid because of user not The case where setting the subject information of application program and causing the page that can not render generation.Therefore, application framework needs to provide The theme setting information of the application program of at least one default.
The embodiment of the present invention also provides the device set to the theme of application program, as shown in fig. 6, application program master Inscribing setting device includes setting command reception module 601 and theme setting module 602.It should be noted that the present embodiment Application program theme setting device is the software program run on the terminal device, and for realizing above-mentioned application program master Inscribe setting method.
Wherein, setting command reception module 601 is used to receive the instruction of the setting application program theme of user's sending, example Such as, user clicks the virtual key of " theme setting " under the page of application framework, and terminal device receives user's sending The instruction of " theme setting " virtual key is clicked, that is, determines that user has issued the instruction of setting application program.
Also, user selects set topic style on the page that theme is arranged, for example, from local storage or It selects the topic style oneself liked from preset network memory, or provides from application framework preset more Selected in a topic style one as selected topic style.
Theme setting module 602 is used to set the theme of multiple application programs, such as according to setting command reception module 601 It is received instruction, determines the topic style of application program.Preferably, a table can be set in theme setting module 602, note The topic style of each application program is recorded, or records the topic style of the application program of each type.
Certainly, user can set the theme of a kind of application program, such as the theme of setting social category application program, or The theme of game class application program is set.
The embodiment of the present invention also provides the control device of terminal device, as shown in fig. 7, terminal equipment control includes fortune Row command reception module 701, download instruction sending module 702, configuration file parsing module 703, setting flag obtain module 704 And page display module 705.It should be noted that the terminal equipment control of the present embodiment is to run on the terminal device Software program, and for realizing above-mentioned terminal equipment control method.
Operating instruction receiving module 701 is used to receive the instruction of the application program in operation application framework, such as connects It receives user and clicks a certain application program image target instruction.
Download instruction sending module 702 is used to send the finger of request downloading application profiles to preset server It enables.For example, if the application program is not downloaded, then downloading refers to after the instruction for running some application program that user issues Sending module 702 is enabled to need to issue the instruction for downloading the application profiles to server.
Configuration file parsing module 703 is used to receive the configuration file of the application program of server transmission, and by applying Program frame parses the configuration file and obtains the basis instrument information for the application program page that the configuration file is included.And And configuration file parsing module 703 also needs to parse component, operation logic and the description information etc. obtained in configuration file.
Setting flag obtains module 704 for obtaining theme setting flag corresponding to application program, it is preferred that applies journey Sequence frame records the theme setting flag of each application program, and theme setting flag can be a bit, such as two into Number " 0 " processed or " 1 ", for marking whether user sets the subject information of the application program.If with the application is set The subject information of program, then there is specified setting information in the application program, if user does not set the theme letter of the application program Breath when then generating the page of application program, uses the default information of application framework offer.
Page display module 705 is used for after application program operation, shows application program on the screen of terminal device The page, such as display application program homepage.If there is specified setting information, page display module in the application program The page of application program shown by 705 be using theme set by theme setting module 602 to the page of application program into The page that row rendering obtains.Such as the background picture according to determined by theme setting module 602, font style, head portrait photo etc., The element of these topic styles is loaded on the page.In this way, the page that user is seen is exactly according to theme setting module 602 The page after selected theme rendering.
Optionally, application program theme setting device is embedded into application framework in a manner of plug-in unit, therefore, When application program theme setting device, which needs to upgrade, to be updated, it is only necessary to issue new plug-in unit or update the text of plug-in unit i.e. It can.If user is not intended to the function of setting using the theme of application program, the plug-in unit can be unloaded, to realize that theme is set The fast discharging of device.
Certainly, if user does not set the theme of application program, the page shown by page display module 705 is root The page is rendered according to configuration information and using default information provided by application framework, and generates application The page of program, homepage and function pages at different levels including application program.
It is appreciated that needing to be generated according to configuration file and application theme setting information when generating the page of application program The primary page of application program, in the present embodiment, the primary page is the primary control rendering of the operating system based on terminal device The page out.Also, the page of application program and traditional application program in order to ensure operating on application framework The page is more nearly, and the primary control that can be used in terminal device operating system renders the page of application program, because This, can determine the corresponding primary control of these components, then according to the corresponding relationship of component and the primary control of operating system Using primary control, the primary page of application program is generated according to operation logic, description information and theme setting information.
The embodiment of the invention also provides a kind of terminal devices, as shown in figure 8, for ease of description, illustrating only and this The relevant part of inventive embodiments, it is disclosed by specific technical details, please refer to present invention method part.The terminal is set It include mobile phone, tablet computer, personal digital assistant (full name in English: Personal Digital Assistant, English for that can be Text abbreviation: PDA) etc. any terminal device.
With reference to Fig. 8, terminal device includes processor 801, memory 802, power supply 803 and stores in memory simultaneously The computer program that can be run on a processor.Wherein, it is realized at above-mentioned each information when processor 801 executes computer program Manage the step, such as step S101 to S102 shown in FIG. 1 etc. in embodiment of the method.Alternatively, processor executes computer program Each module or the function of unit in the above-mentioned each Installation practice of Shi Shixian.
Illustratively, computer program can be divided into one or more module/units, and one or more module/ Unit is stored in memory, and is executed by processor, to complete the present invention.Above-mentioned one or more module/units can To be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing computer program in terminal Implementation procedure in equipment.
It will be understood by those skilled in the art that structure shown in Fig. 8 does not constitute the restriction to terminal device, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts, terminal as escribed above are set Standby can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic device Part, discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processing Device etc., processor are the control centres of terminal device, utilize the various pieces of various interfaces and the entire terminal device of connection.
Memory can be used for storing computer program and/or module, and processor is stored in memory by operation or execution Interior computer program and/or module, and the data being stored in memory are called, realize the various functions of terminal device. Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least one Application program needed for function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored according to hand Machine uses created data (such as audio data, phone directory etc.) etc..In addition, memory may include high random access Memory can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one magnetic Disk storage device, flush memory device or other volatile solid-state parts.
If the integrated module/unit of terminal device is realized in the form of SFU software functional unit and as independent product pin It sells or in use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned All or part of the process in embodiment method can also instruct relevant hardware to complete by computer program, calculate Machine program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned The step of each embodiment of the method.Wherein, computer program includes computer program code, and computer program code can be source Code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable medium may include: can Carry any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the content that computer-readable medium includes can To carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as in certain jurisdictions, root It does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, said units It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes all or part of each embodiment method of the present invention Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), random Access various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.
On the other hand, for the exploitation of the above-mentioned application propagated and installed using configuration file mode, at present It needs to be gradually completing multiple steps in terminal input command row, and the file of entire project is unfavorable for searching and check.Based on this, It can be by importing the entire contents of a project, and have the highlighted prompt of code keyword, syntax error prompt, intelligence corrects prompt, Spell check, File Integrity Checking is automatic to compile, and is quickly packaged, and key signature a, key is synchronized to cloud development platform etc., Convenient for the upper hand of third party developer and operation.Be conducive to third party developer quickly to go up hand and improve exploitation convenience and Ke Wei Shield property.
Certainly, above-mentioned scheme is the preferred embodiment of the invention, and practical application is that can also have more variations, For example, the set-up mode of theme setting information changes, renders the change of the specific steps of the page, such change has no effect on this The implementation of invention also should include within the scope of the present invention.

Claims (10)

1. a kind of application program theme setting method is applied to terminal device, which is characterized in that this method comprises:
Receive the instruction of the theme of the application program in setting application framework;
According to the received setting instruction of institute, the theme of two or more the application programs in the application framework is set.
2. application program theme setting method according to claim 1, which is characterized in that receive setting application framework In the instruction of theme of application program include: to receive the instruction for the application program theme for setting at least one type;
The theme of the application program of setting two or more includes: by the master of two or more the application programs of the type Topic is set as selected topic style.
3. a kind of control method of terminal device characterized by comprising
Receive the instruction of the application program in operation application framework;
The configuration file of the application program is obtained, and obtains the theme setting information of the application program, according to the configuration File and the page that the application program is generated using the theme setting information.
4. the control method of terminal device according to claim 3, which is characterized in that according to the configuration file and apply The page that the theme setting information generates the application program includes:
The setting flag in the theme setting information is obtained, and determines that the theme setting information is according to the setting flag No is specified setting information, if so, using described in the specified setting information rendering generation after obtaining the specified setting information Otherwise the page of application program is obtained default information and is generated using default information rendering described using journey The page of sequence.
5. the control method of terminal device according to claim 3 or 4, which is characterized in that it is described using journey to receive operation After the instruction of sequence, also execute:
Send the request instruction for downloading the configuration file of the application program;
The configuration file of the application program is received, the application framework parses the configuration file.
6. the control method of terminal device according to claim 3 or 4, which is characterized in that described according to the configuration text The part and page for generating the application program using the theme setting information includes:
The primary page of the application program is generated according to the configuration file and using the theme setting information;Wherein, institute State the page that the primary control that the primary page is the operating system based on the terminal device renders.
7. the control method of terminal device according to claim 6, which is characterized in that the configuration file includes several groups Part, operation logic and description information;It is described that the application is generated according to the configuration file and the application theme setting information The primary page of program includes:
According to the corresponding relationship of component and the primary control of the operating system of the terminal device, determine that several components are corresponding Primary control;
Based on the primary control, the application program is generated according to the operation logic, description information and theme setting information The primary page.
8. a kind of control device of terminal device characterized by comprising
Operating instruction receiving module, for receiving the instruction of the application program in operation application framework;
Page generation module for obtaining the configuration file of the application program, and obtains the theme setting of the application program Information generates the page of the application program according to the configuration file and using the theme setting information.
9. a kind of terminal device, which is characterized in that the terminal device includes processor, and the processor is for executing memory The step of the application program theme setting method as described in any one of claim 1 to 2 is realized when the computer program of middle storage The step of terminal equipment control method described in any one of rapid or realization claim 3 to 7.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program When being executed by processor realize as described in any one of claim 1 to 2 the step of application program theme setting method or The step of realizing terminal equipment control method described in any one of claim 3 to 7.
CN201810304834.XA 2018-04-08 2018-04-08 Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium Withdrawn CN110347454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810304834.XA CN110347454A (en) 2018-04-08 2018-04-08 Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810304834.XA CN110347454A (en) 2018-04-08 2018-04-08 Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110347454A true CN110347454A (en) 2019-10-18

Family

ID=68172998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810304834.XA Withdrawn CN110347454A (en) 2018-04-08 2018-04-08 Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110347454A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492106A (en) * 2020-11-27 2021-03-12 北京高途云集教育科技有限公司 Page theme switching method and device, computer equipment and storage medium
CN113835803A (en) * 2021-09-13 2021-12-24 北京鲸鲮信息系统技术有限公司 Application theme display method and device
CN117234623A (en) * 2023-11-16 2023-12-15 盛威时代科技股份有限公司 Page theme changing method and device of application program and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092057A1 (en) * 2006-10-05 2008-04-17 Instrinsyc Software International, Inc Framework for creation of user interfaces for electronic devices
CN102789357A (en) * 2012-06-18 2012-11-21 宇龙计算机通信科技(深圳)有限公司 Method and device for setting subject resources based on Andriod application technology
CN102984347A (en) * 2012-10-31 2013-03-20 广州市久邦数码科技有限公司 Method and system for custom setting of mobile phone desktop
US20130339935A1 (en) * 2012-06-14 2013-12-19 Microsoft Corporation Adjusting Programs Online and On-Premise Execution
CN105045662A (en) * 2015-08-10 2015-11-11 上海斐讯数据通信技术有限公司 Mobile terminal capable of switching theme application and method capable of switching theme application
CN106062709A (en) * 2014-02-24 2016-10-26 微软技术许可有限责任公司 Propagating theming information from host applications to host extensions
CN106569662A (en) * 2016-10-31 2017-04-19 维沃移动通信有限公司 Display method of application interface and mobile terminal
CN106855798A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 A kind of method to set up of interface element property value, device and smart machine
US20170331969A1 (en) * 2016-05-12 2017-11-16 Ricoh Company, Ltd. Information processing system, information processing apparatus, and method of generating screen

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092057A1 (en) * 2006-10-05 2008-04-17 Instrinsyc Software International, Inc Framework for creation of user interfaces for electronic devices
US20130339935A1 (en) * 2012-06-14 2013-12-19 Microsoft Corporation Adjusting Programs Online and On-Premise Execution
CN102789357A (en) * 2012-06-18 2012-11-21 宇龙计算机通信科技(深圳)有限公司 Method and device for setting subject resources based on Andriod application technology
CN102984347A (en) * 2012-10-31 2013-03-20 广州市久邦数码科技有限公司 Method and system for custom setting of mobile phone desktop
CN106062709A (en) * 2014-02-24 2016-10-26 微软技术许可有限责任公司 Propagating theming information from host applications to host extensions
CN105045662A (en) * 2015-08-10 2015-11-11 上海斐讯数据通信技术有限公司 Mobile terminal capable of switching theme application and method capable of switching theme application
CN106855798A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 A kind of method to set up of interface element property value, device and smart machine
US20170331969A1 (en) * 2016-05-12 2017-11-16 Ricoh Company, Ltd. Information processing system, information processing apparatus, and method of generating screen
CN106569662A (en) * 2016-10-31 2017-04-19 维沃移动通信有限公司 Display method of application interface and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492106A (en) * 2020-11-27 2021-03-12 北京高途云集教育科技有限公司 Page theme switching method and device, computer equipment and storage medium
CN113835803A (en) * 2021-09-13 2021-12-24 北京鲸鲮信息系统技术有限公司 Application theme display method and device
CN113835803B (en) * 2021-09-13 2024-04-02 北京字节跳动网络技术有限公司 Application theme display method and device
CN117234623A (en) * 2023-11-16 2023-12-15 盛威时代科技股份有限公司 Page theme changing method and device of application program and electronic equipment
CN117234623B (en) * 2023-11-16 2024-02-20 盛威时代科技股份有限公司 Page theme changing method and device of application program and electronic equipment

Similar Documents

Publication Publication Date Title
US11709668B2 (en) Systems and methods for application program and application program update deployment to a mobile device
US20160170712A1 (en) Method for integrally implementing development and release of APP
CN108804158A (en) Application call method, the control method of terminal device, terminal device and computer readable storage medium
KR101105177B1 (en) Data container for user interface content data
CN110688232B (en) Application program calling method, terminal equipment and computer readable storage medium
CN109445783B (en) Method and device for constructing dynamic configuration application driven by service
US20140324873A1 (en) Method, device and recording medium for managing application icon
CN105929980B (en) Method and apparatus for information input
US20170060966A1 (en) Action Recommendation System For Focused Objects
CN104572114A (en) Binding device, application updating device and method and application
CN105867714A (en) Application downloading method, apparatus and system
CN108804188A (en) Changing an interface skin method and device
CN108415698B (en) The method of control is added in the technical ability of voice dialogue platform
CN113268226A (en) Page data generation method and device, storage medium and equipment
CN103324388A (en) Method and device for modifying shortcut icon
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
CN104679900A (en) Application program searching method and device
CN110020356A (en) A kind of code generating method of page module, apparatus and system
CN109002337A (en) A kind of application navigation method and device
CN108874412A (en) For updating the method, apparatus, equipment and system of interface layout
CN112016023A (en) Service processing method, device, terminal and storage medium
CN110888634B (en) Game floor page generation method, game floor page generation device, computer equipment and storage medium
CN114327349A (en) Method and device for determining smart card, storage medium and electronic device
CN110489106A (en) A kind of generation method, device, medium and the electronic equipment of project initial code
CN108984260B (en) Method and apparatus for handling information

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191018