CN104866353B - The method and device of the Show Button - Google Patents

The method and device of the Show Button Download PDF

Info

Publication number
CN104866353B
CN104866353B CN201510280697.7A CN201510280697A CN104866353B CN 104866353 B CN104866353 B CN 104866353B CN 201510280697 A CN201510280697 A CN 201510280697A CN 104866353 B CN104866353 B CN 104866353B
Authority
CN
China
Prior art keywords
unit
plug
button
button module
bottom frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510280697.7A
Other languages
Chinese (zh)
Other versions
CN104866353A (en
Inventor
高斯太
伍明欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510280697.7A priority Critical patent/CN104866353B/en
Publication of CN104866353A publication Critical patent/CN104866353A/en
Application granted granted Critical
Publication of CN104866353B publication Critical patent/CN104866353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to a kind of method and devices of the Show Button.The described method includes: when loading interface and loading the button in interface, for each button module, the bottom frame plug-in unit and figure plug-in unit of load button module;Button module icon is obtained according to the address in the figure plug-in unit;Load the button module icon;According to the bottom frame plug-in unit and the button module icon, the Show Button module.Bottom frame plug-in unit and figure plug-in unit can be combined into different button modules according to different combinations, to store a small amount of bottom frame plug-in unit and figure plug-in unit, it can show corresponding button module, to save the occupied memory space of store button module, resource when load button icon is reduced, loading velocity is improved.

Description

The method and device of the Show Button
Technical field
This disclosure relates to communicate and computer disposal field more particularly to a kind of method and device of the Show Button.
Background technique
With the development of electronic technology, mobile terminal is commonly used, and it is very fast to update.And the relevant technologies In, it can trigger corresponding function after button this click in interface of mobile terminal.Button is in interface in the form of button icon Show.Button icon is present in the system and application program of mobile terminal, and user can pass through the button figure in mobile terminal Mark, control mobile terminal realize corresponding function.
Summary of the invention
The disclosure provides a kind of method and device for controlling mobile terminal.To reduce resource when load button icon, Improve loading velocity.
According to the first aspect of the embodiments of the present disclosure, a kind of method of the Show Button is provided, comprising:
When loading interface and loading the button in interface, for each button module, the bottom frame of load button module Plug-in unit and figure plug-in unit;
Button module icon is obtained according to the address in the figure plug-in unit;
Load the button module icon;
According to the bottom frame plug-in unit and the button module icon, the Show Button module.
The technical scheme provided by this disclosed embodiment can include the following benefits: button module being divided into bottom frame and is inserted Part and figure plug-in unit can be incited somebody to action according to bottom frame plug-in unit and button module icon the Show Button module according to different combinations Bottom frame plug-in unit and figure plug-in unit are combined into different button modules, to store a small amount of bottom frame plug-in unit and figure plug-in unit Corresponding button module is shown, so that the occupied memory space of store button module is saved, when reducing load button icon Resource, improve loading velocity.
The figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit;
The address according in the figure plug-in unit obtains button module icon, comprising:
Button module icon is obtained according to the address in the central figure plug-in unit;
It is described according to the bottom frame plug-in unit and button module icon, the Show Button module, comprising:
According to the bottom frame plug-in unit, the outline pattern plug-in unit and the button module icon, the Show Button module.
The technical scheme provided by this disclosed embodiment can include the following benefits: figure plug-in unit being divided into bottom frame and is inserted Part and figure plug-in unit, according to outline pattern plug-in unit, central figure plug-in unit and bottom frame plug-in unit the Show Button module, further to save The occupied memory space of store button module has been saved, resource when load button icon is reduced, has improved loading velocity.
The address according in the figure plug-in unit obtains button module icon, comprising:
Button module icon is obtained from the picture library of operating system according to the address in the figure plug-in unit.
The technical scheme provided by this disclosed embodiment can include the following benefits: figure plug-in unit is stored in operation In the picture library of system, multiple applications or system can be made to share a picture library and update the picture library when updating button module Realize that the button module by all applications or system updates, each button module without being directed to each application or system, It is updated.It further saves the occupied memory space of store button module, and when due to updating button module, reduces Update times, to also save required network flow resource when updating button module.
The method also includes:
Obtain the resolution ratio at the interface;
Determine the ratio of the resolution ratio at the interface and the default default resolution at interface;
The determining ratio is multiplied with the pre-set dimension of the bottom frame plug-in unit, obtains the practical ruler of the bottom frame plug-in unit It is very little;
The button module icon is adaptively adjusted according to the actual size of the bottom frame plug-in unit;
It is described according to the bottom frame plug-in unit and the button module icon, the Show Button module, comprising:
According to the actual size of the bottom frame plug-in unit and the button module icon adjusted, the Show Button module.
The technical scheme provided by this disclosed embodiment can include the following benefits: the resolution ratio at interface and interface The ratio of default default resolution determines the actual size of bottom frame plug-in unit, and according to the actual size of bottom frame plug-in unit, adaptive to adjust Whole button module icon, thus button module can be made preferably to adapt to the screen size at interface in the Show Button module, and And when production button module, standard-sized bottom frame plug-in unit and figure plug-in unit are made, according to the true resolution at interface, then Standard-sized bottom frame plug-in unit and figure plug-in unit are adaptively adjusted to be adapted with interface resolution ratio, that is, are suitable for various terminals Interface resolution ratio, to decrease due to mentioning to adapt to various terminals and the resource that makes multiple groups button module and waste The high efficiency of production button module.
The method also includes:
According to the length-width ratio of the resolution ratio at the interface, the pre-set dimension of the bottom frame plug-in unit in proportion is determined.
The technical scheme provided by this disclosed embodiment can include the following benefits: due to different operating system or The length-width ratio of the resolution ratio of different terminals is different, and the pre-set dimension of the bottom frame plug-in unit determined by the above method can be better Adapt to the length-width ratio of the resolution ratio at local interface.
The button module includes: the button module of the button module of single button, the button module of double-button and five buttons At least one of;
Bottom frame plug-in unit includes: the bottom frame plug-in unit of single button, the bottom frame plug-in unit of double-button, the bottom frame plug-in unit of five buttons and gap At least one of plug-in unit.
The technical scheme provided by this disclosed embodiment can include the following benefits: be arranged different button module and Bottom frame plug-in unit is adapted to the demand of different function buttons, only need to can store a small amount of button module, can be according to application Or system requirements provide corresponding button module, to save the occupied memory space of store button module, reduce load Resource when button icon improves loading velocity.
According to the second aspect of an embodiment of the present disclosure, a kind of device of the Show Button is provided, comprising:
First loading module, for for each button module, adding when loading interface and loading the button in interface Carry the bottom frame plug-in unit and figure plug-in unit of button module;
First obtains module, for obtaining button module icon according to the address in the figure plug-in unit;
Second loading module, for loading the button module icon;
Display module, for according to the bottom frame plug-in unit and the button module icon, the Show Button module.
The figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit;
Described first obtains module, comprising:
First obtains submodule, for obtaining button module icon according to the address in the central figure plug-in unit;
The display module, comprising:
First display sub-module, for according to the bottom frame plug-in unit, the outline pattern plug-in unit and the button module figure Mark, the Show Button module.
Described first obtains module, comprising:
Second obtains submodule, for obtaining button from the picture library of operating system according to the address in the figure plug-in unit Module icon.
Described device further include:
Second obtains module, for obtaining the resolution ratio at the interface;
First determining module, for determining the ratio of the resolution ratio at the interface and the default default resolution at interface;
Second determining module obtains institute for the ratio determined to be multiplied with the pre-set dimension of the bottom frame plug-in unit State the actual size of bottom frame plug-in unit;
Module is adjusted, for adaptively adjusting the button module icon according to the actual size of the bottom frame plug-in unit;
The display module, comprising:
Second display sub-module, for according to the bottom frame plug-in unit actual size and the button module figure adjusted Mark, the Show Button module.
Described device further include:
Third determining module determines that the bottom frame in proportion is inserted for the length-width ratio according to the resolution ratio at the interface The pre-set dimension of part.
According to the second aspect of an embodiment of the present disclosure, a kind of device controlling mobile terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When loading interface and loading the button in interface, for each button module, the bottom frame of load button module Plug-in unit and figure plug-in unit;
Button module icon is obtained according to the address in the figure plug-in unit;
Load the button module icon;
According to the bottom frame plug-in unit and the button module icon, the Show Button module.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of the method for the Show Button shown according to an exemplary embodiment.
Fig. 2 is a kind of specific flow chart of the method for the Show Button shown according to an exemplary embodiment.
Fig. 2 a is a kind of specific flow chart of the method for the Show Button shown according to an exemplary embodiment.
Fig. 3 is a kind of specific flow chart of the method for the Show Button shown according to an exemplary embodiment.
Fig. 4 is a kind of device block diagram of the Show Button shown according to an exemplary embodiment.
Fig. 5 is the first acquisition module and display mould in a kind of device of the Show Button shown according to an exemplary embodiment The block diagram of block.
Fig. 6 is the first block diagram for obtaining module in a kind of device of the Show Button shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the device of the Show Button shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the device of the Show Button shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the device of the Show Button shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
With the development of electronic technology, intelligent terminal is commonly used, and it is very fast to update.And the relevant technologies In, it can trigger corresponding function after button this click in interface of mobile terminal.Button is in interface in the form of button icon Show.Button icon is present in the system and application program of intelligent terminal, and user can pass through the button figure in intelligent terminal Mark, control intelligent terminal realize corresponding function.For example, remote control control household electrical appliance can be replaced by handset program.
And the button in mobile phone is all that application program or system are included, the size of each button, function, pattern are different Therefore sample needs to store different button modules in local storage space, and some of button-shapes are similar, it also requires Store different button modules.In the control interface carried into application program or system every time, need to add button It carries, different button modules is called from local storage space, occupies a large amount of calculation resources.
Button module is divided into bottom frame plug-in unit and figure by a kind of method that the embodiment of the present disclosure provides control mobile terminal Plug-in unit can be according to different combinations by bottom frame plug-in unit according to bottom frame plug-in unit and button module icon the Show Button module It is combined into different button modules with figure plug-in unit, to store a small amount of bottom frame plug-in unit and figure plug-in unit, can be shown corresponding Button module reduce resource when load button icon, mention to save the occupied memory space of store button module High loading velocity.
Fig. 1 is a kind of flow chart of the method for the Show Button shown according to an exemplary embodiment, as shown in Figure 1, should Method can be realized by terminal, comprising the following steps:
In a step 101, when loading interface and loading the button in interface, for each button module, load is pressed The bottom frame plug-in unit and figure plug-in unit of button module.
In a step 102, button module icon is obtained according to the address in figure plug-in unit.
In step 103, load button module icon.
At step 104, according to bottom frame plug-in unit and button module icon, the Show Button module.
The embodiment of the present disclosure provides a kind of method of the Show Button.Button module is divided into bottom frame plug-in unit and figure is inserted Part, according to bottom frame plug-in unit and button module icon the Show Button module, can according to different combinations by bottom frame plug-in unit and Figure plug-in unit is combined into different button modules, to store a small amount of bottom frame plug-in unit and figure plug-in unit, can show corresponding Button module reduces resource when load button icon to save the occupied memory space of store button module, improves Loading velocity.
In one embodiment, figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit;Step 102 can also be real It applies are as follows: button module icon is obtained according to the address in central figure plug-in unit.Step 104 is also implementable are as follows: according to bottom frame plug-in unit, Outline pattern plug-in unit and button module icon, the Show Button module.
For example, terminal can be mobile phone, tablet computer etc..In the present embodiment using mobile phone as terminal.Same In a mobile phone application, the outline pattern of button is all more similar, and difference is then the central figure of button, indicates menu Icon and indicate start icon in only central figure plug-in unit it is different.And if each button store figure plug-in unit when, Storage outline pattern plug-in unit can be then repeated, to waste memory space.And if identical outline pattern plug-in unit only stores one Secondary, when the Show Button module, the button module of outline pattern plug-in unit having the same all only adjusts the outline pattern plug-in unit, without Same button module obtains button module icon according to the address in central figure plug-in unit, then can save storage outline pattern The memory space of plug-in unit.
Figure plug-in unit is divided into bottom frame plug-in unit and figure plug-in unit, according to outline pattern plug-in unit, central figure plug-in unit and bottom frame Plug-in unit the Show Button module reduces load button figure further to save the occupied memory space of store button module Resource when mark improves loading velocity.
In one embodiment, step 102 is also implementable are as follows: according to the address in figure plug-in unit from the picture library of operating system Middle acquisition button module icon.
For example, it is stored in picture library in the different application programs of mobile phone all with respectively required picture library The icon of button interfaces in application program, and the picture library of each application program is uncurrent, even if in two application programs Some button icons are same or similar, and application program can not call the icon of another application program, so in application program When update, require to download new picture library.
Figure plug-in unit is stored in the picture library of operating system, multiple applications or system can be made to share a picture library, when Update button module when, update the picture library can be realized by it is all application or system button module update, without being directed to Each button module of each application or system, is updated.It is empty further to save the occupied storage of store button module Between, and when due to updating button module, reduce update times, to also save required net when updating button module Network floating resources.
In one embodiment, this method is also implementable are as follows: step A1- step A4.
In step A1, the resolution ratio at interface is obtained.
In step A2, the ratio of the resolution ratio at interface and the default default resolution at interface is determined.
In step A3, determining ratio is multiplied with the pre-set dimension of bottom frame plug-in unit, obtains the practical ruler of bottom frame plug-in unit It is very little;
In step A4, button module icon is adaptively adjusted according to the actual size of bottom frame plug-in unit.
Step S104 is also implementable are as follows: according to the actual size of bottom frame plug-in unit and button module icon adjusted, display Button module.
The ratio of the default default resolution of the resolution ratio and interface at interface, determines the actual size of bottom frame plug-in unit, and root It is adaptive to adjust button module icon according to the actual size of bottom frame plug-in unit, so that button mould can be made in the Show Button module Block preferably adapts to the screen size at interface, and when making button module, makes standard-sized bottom frame plug-in unit and figure is inserted Part, according to the true resolution at interface, then by standard-sized bottom frame plug-in unit and figure plug-in unit is adaptively adjusted to and boundary Face resolution ratio be adapted, that is, be suitable for the interface resolution ratio of various terminals, thus decrease due to for adaptation various terminals and The resource for making multiple groups button module and wasting improves the efficiency of production button module.
In one embodiment, this method is also implementable are as follows: according to the length-width ratio of the resolution ratio at interface, determines in proportion The pre-set dimension of bottom frame plug-in unit.
Since the length-width ratio of the resolution ratio of different operating system or different terminals is different, determined by the above method The pre-set dimension of bottom frame plug-in unit can preferably adapt to the length-width ratio of the resolution ratio at local interface.
In one embodiment, button module includes: the button module of single button, the button module of double-button and five buttons At least one of button module;Bottom frame plug-in unit includes: the bottom frame plug-in unit of single button, the bottom frame plug-in unit of double-button, five buttons Bottom frame plug-in unit and at least one of gap plug-in unit.
Different button module and bottom frame plug-in unit are set, the demand of different function buttons is adapted to, need to can only be deposited A small amount of button module is stored up, corresponding button module can be provided according to application or system requirements, to save store button The occupied memory space of module reduces resource when load button icon, improves loading velocity.
When the method that above-described embodiment provides the Show Button can be applied not only to mobile terminal load and the Show Button, When can be used for application-development technologies personnel production Application Program Interface.Since button module has been divided into bottom frame plug-in unit and figure Plug-in unit, and figure plug-in unit has been divided into outline pattern plug-in unit and central figure plug-in unit, and for bottom frame plug-in unit, outline pattern plug-in unit With central figure plug-in unit, then the corresponding size and shape of every kind of plug-in unit is defined, therefore, technical staff is not required to each button mould Block is reprogramed or is arranged.It, can be one by one by bottom frame plug-in unit, outline pattern plug-in unit and Centered Graphs when making button module Shape plug-in unit is dragged in into interface group and is combined into button module.If only central figure is inserted making two different button modules It, can be after first button module that complete, by the ground of the central figure plug-in unit in first button module when part difference Location replaces with the address of the central figure plug-in unit in second button module, and the production of second button module can be completed, mention High technical staff makes the speed of button module.
As shown in Fig. 2, the embodiment of the present disclosure provides a kind of method of the Show Button, terminal is hand in the embodiment of the present disclosure Machine.Specific implementation step is as follows:
In step 201, when loading interface and loading the button in interface, for each button module, load is pressed The bottom frame plug-in unit and figure plug-in unit of button module.
Figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit;Button module includes: the button mould of single button At least one of block, the button module of double-button and button module of five buttons;Bottom frame plug-in unit includes: that the bottom frame of single button is inserted At least one of part, the bottom frame plug-in unit of double-button, the bottom frame plug-in unit of five buttons and gap plug-in unit.
By button module respectively with bottom frame plug-in unit and figure plug-in unit, and figure plug-in unit is divided into outline pattern plug-in unit and center Figure plug-in unit needs to load bottom frame plug-in unit, outline pattern plug-in unit and central figure plug-in unit simultaneously then in the Show Button module, And do not interfere with each other between these three plug-in units, i.e., if bottom frame plug-in unit has tri- kinds of A1, A2, A3, outline pattern plug-in unit has B1, B2, B3 Three kinds, central figure plug-in unit has tri- kinds of C1, C2, C3, and can be combined into 27 kinds of different buttons according to different combinations Module, but only that 9 kinds of different plug-in units of storage.And if not by button module respectively with bottom frame plug-in unit and figure plug-in unit, Also figure plug-in unit is not divided into outline pattern plug-in unit and central figure plug-in unit, when storing key modules different in 27, then needed 27 kinds of plug-in units are stored, so by the way that figure plug-in unit respectively with bottom frame plug-in unit and figure plug-in unit, is divided into outer block diagram by button module Shape plug-in unit and central figure plug-in unit can be saved and the occupied memory space of button module are locally stored.
In step 202, button module icon is obtained according to the address in central figure plug-in unit.
In step 203, the resolution ratio at interface is obtained.
The resolution ratio for obtaining mobile phone interface is 1920 × 1080.
In step 204, the ratio of the resolution ratio at interface and the default default resolution at interface is determined.
The default default resolution at interface be 1920 × 1080, therefore can calculate interface resolution ratio and interface it is pre- If the ratio of default resolution is 1.
In step 205, according to the length-width ratio of the resolution ratio at interface, the pre-set dimension of bottom frame plug-in unit in proportion is determined.
The size of different operating system or the corresponding button module of different display interfaces is not identical, can preset The length-width ratio of the resolution ratio at different interfaces corresponds to the pre-set dimension of different bottom frame plug-in units.Such as, resolution ratio is 960 × 640 pairs The pre-set dimension for the bottom frame plug-in unit answered is 77 × 84, and resolution ratio is that the pre-set dimension of 1920 × 1080 corresponding bottom frame plug-in units is 86 × 94, when the length-width ratio of interface resolution ratio is 1.5, determine that the pre-set dimension of bottom frame plug-in unit is 77 × 84;Work as interface resolution ratio Length-width ratio be 1.78 when, determine bottom frame plug-in unit pre-set dimension be 86 × 94.
In step 206, determining ratio is multiplied with the pre-set dimension of bottom frame plug-in unit, obtains the practical ruler of bottom frame plug-in unit It is very little.
It is 1920 × 1080 according to the default default resolution of step 204 median surface, determines the pre-set dimension of bottom frame plug-in unit It is 86 × 94, according to the ratio of the resolution ratio at interface and the default default resolution at interface it can be concluded that the practical ruler of bottom frame plug-in unit Very little is 86 × 94.
In step 207, button module icon is adaptively adjusted according to the actual size of bottom frame plug-in unit.
Since no change has taken place relative to standard size for the actual size of bottom frame plug-in unit, then the Show Button mould in interface The size of block icon is 86 × 94.If the ratio of the default default resolution of the resolution ratio and interface at interface is 1.5, bottom frame The actual size of plug-in unit is 129 × 141, at this point, with 129 × 141 size the Show Button modules.
In a step 208, load button module icon.
Load adjusts the key module icon after size in step 207.
In step 209, according to bottom frame plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
According to bottom frame plug-in unit, outline pattern plug-in unit and button module icon that above-mentioned steps 206, step 207 confirm, load Bottom frame plug-in unit, outline pattern plug-in unit and button module icon in display interface, then the Show Button module.As shown in Figure 2 a, bottom Frame plug-in unit is 21, outline pattern plug-in unit is 22, button module icon is 23.
The embodiment of the present disclosure provides a kind of method of the Show Button.Button module is divided into bottom frame plug-in unit, outline pattern Plug-in unit and central figure plug-in unit, according to bottom frame plug-in unit, outline pattern plug-in unit and central figure plug-in unit the Show Button module, according to boundary The true resolution in face, then standard-sized bottom frame plug-in unit and figure plug-in unit are adaptively adjusted to mutually fit with interface resolution ratio It answers, that is, is suitable for the interface resolution ratio of various terminals, to save the occupied memory space of store button module, reduce Resource when load button icon improves loading velocity, and reduces due to making multiple groups button mould to adapt to various terminals Block and the resource wasted improve the efficiency of production button module.
As shown in figure 3, the embodiment of the present disclosure provides a kind of method of the Show Button, terminal is hand in the embodiment of the present disclosure Machine.Specific implementation step is as follows:
In step 301, when loading interface and loading the button in interface, for each button module, load is pressed The bottom frame plug-in unit and figure plug-in unit of button module.
In load button module, corresponding bottom frame plug-in unit and figure plug-in unit, bottom are loaded for each button module respectively Frame plug-in unit is to indicate that the occupied interface dimensions of button module, figure plug-in unit are then used to distinguish different button modules.
In step 302, button module icon is obtained from the picture library of operating system according to the address in figure plug-in unit.
The address of button module icon in an operating system is carried in the figure plug-in unit of load, can pass through this address Button module icon is obtained from the picture library of operating system.In some application programs made by same application producer Button module is the same or similar, but after installing application program, terminal can store the included picture library of each application program, To store the button module icon in application program, if a plurality of such application programs of user installation, it is likely that repeat Multiple identical button module icons are stored, a large amount of memory space is wasted.And if user carries out more application program When new, new button module icon can also be carried by updating in packet in level of application, and is updated to multiple application programs, then The possible multiple identical button module icons of repeated downloads waste network download resource.So if by multiple and different applications Button module icon is stored in the picture library of an operating system, it can it is empty to reduce the occupied storage of button module icon Between, and can update in application, only needing to update the picture library of an operating system, without being directed to modern war application Program updates picture library respectively.
In step 303, load button module icon.
In step 304, according to bottom frame plug-in unit and button module icon, the Show Button module.
The disclosure provides a kind of method for controlling mobile terminal.Button module is divided into bottom frame plug-in unit and figure plug-in unit, root According to bottom frame plug-in unit and button module icon the Show Button module, bottom frame plug-in unit and figure can be inserted according to different combinations Part is combined into different button modules, and figure plug-in unit is stored in the picture library of operating system, can make multiple applications or be Altogether with a picture library, when updating button module, updating the picture library can be realized button module by all applications or system It updates, without each button module for each application or system, is updated.To save store button module Occupied memory space, and due to update button module when, reduce update times, to also save more new button mould Required network flow resource when block.
By the realization process described above for having understood the Show Button, which is realized by mobile terminal and computer, under Face is directed to the internal structure of two equipment respectively and function is introduced.
Fig. 4 is a kind of device block diagram of the Show Button shown according to an exemplary embodiment.Referring to Fig. 4, the device packet It includes:
First loading module 41 is configured as when loading interface and loading the button in interface, for each button mould Block, the bottom frame plug-in unit and figure plug-in unit of load button module.
First acquisition module 42 is configured as obtaining button module icon according to the address in figure plug-in unit.
Second loading module 43 is configured as load button module icon.
Display module 44 is configured as according to bottom frame plug-in unit and button module icon, the Show Button module.
As shown in figure 5, figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit.
First obtains module 42, comprising:
First acquisition submodule 51 is configured as obtaining button module icon according to the address in central figure plug-in unit.
Display module 44, comprising:
First display sub-module 52 is configured as according to bottom frame plug-in unit, outline pattern plug-in unit and button module icon, display Button module.
As shown in fig. 6, first obtains module 42, comprising:
Second acquisition submodule 61 be configured as being obtained from the picture library of operating system according to the address in figure plug-in unit by Button module icon.
Such as Fig. 7, the device further include:
Second acquisition module 71 is configured as obtaining the resolution ratio at interface;
First determining module 72 is configured to determine that the ratio of the resolution ratio at interface and the default default resolution at interface;
Second determining module 73 is configured as the ratio that will be determined and is multiplied with the pre-set dimension of bottom frame plug-in unit, obtains bottom frame and inserts The actual size of part;
Adjustment module 74 is configured as adaptively adjusting button module icon according to the actual size of bottom frame plug-in unit;
Display module 44, comprising:
Second display sub-module 75 is configured as actual size and button module icon adjusted according to bottom frame plug-in unit, The Show Button module.
As shown in figure 8, the device further include:
Third determining module 81 determines the pre- of bottom frame plug-in unit in proportion for the length-width ratio according to the resolution ratio at interface If size.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 9 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device 900 of mobile terminal.Example Such as, device 900 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 9, device 900 may include following one or more components: processing component 902, memory 904, power supply Component 906, multimedia component 908, audio component 910, the interface 912 of input/output (I/O), sensor module 914, and Communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 902 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 902 may include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 may include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in equipment 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 906 provides electric power for the various assemblies of device 900.Electric power assembly 906 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 908 includes the screen of one output interface of offer between the device 900 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also detection duration and pressure relevant to touch or slide.In some embodiments, multimedia component 908 wraps Include a front camera and/or rear camera.When equipment 900 is in operation mode, such as in a shooting mode or a video mode, Front camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera It can be a fixed optical lens system or there are focusing and optical zoom capabilities.
Audio component 910 is configured as output and/or input audio signal.For example, audio component 910 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 904 or via communication set Part 916 is sent.In some embodiments, audio component 910 further includes a loudspeaker, is used for output audio signal.
I/O interface 912 provides interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button module etc..These button modules may include but be not limited to: home button module, volume button mould Block, start button module and locking press button module.
Sensor module 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 914 can detecte the state that opens/closes of equipment 900, the relative positioning of component, such as component For the display and keypad of device 900, sensor module 914 can be with a component of detection device 900 or device 900 Position change, the existence or non-existence that user contacts with device 900, the temperature in 900 orientation of device or acceleration/deceleration and device 900 Degree variation.Sensor module 914 may include proximity sensor, be configured to detect without any physical contact attached The presence of nearly object.Sensor module 914 can also include optical sensor, such as CMOS or ccd image sensor, for being imaged It is used in.In some embodiments, the sensor module 914 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 916 further includes near-field communication (NFC) module, to promote short range communication.For example, Radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth can be based in NFC module (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 904 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example, Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light Data storage device etc..
A kind of device controlling mobile terminal, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, which is configured as:
When loading interface and loading the button in interface, for each button module, the bottom frame of load button module Plug-in unit and figure plug-in unit;
Button module icon is obtained according to the address in figure plug-in unit;
Load button module icon;
According to bottom frame plug-in unit and button module icon, the Show Button module.
The processor can be additionally configured to:
Figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit;
Button module icon is obtained according to the address in figure plug-in unit, comprising:
Button module icon is obtained according to the address in central figure plug-in unit;
According to bottom frame plug-in unit and button module icon, the Show Button module, comprising:
According to bottom frame plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
The processor can be additionally configured to:
Button module icon is obtained according to the address in figure plug-in unit, comprising:
Button module icon is obtained from the picture library of operating system according to the address in figure plug-in unit.
The processor can be additionally configured to:
This method further include:
Obtain the resolution ratio at interface;
Determine the ratio of the resolution ratio at interface and the default default resolution at interface;
Determining ratio is multiplied with the pre-set dimension of bottom frame plug-in unit, obtains the actual size of bottom frame plug-in unit;
Button module icon is adaptively adjusted according to the actual size of bottom frame plug-in unit;
According to bottom frame plug-in unit and button module icon, the Show Button module, comprising:
According to the actual size of bottom frame plug-in unit and button module icon adjusted, the Show Button module.
The processor can be additionally configured to:
This method further include:
According to the length-width ratio of the resolution ratio at interface, the pre-set dimension of bottom frame plug-in unit in proportion is determined.
The processor can be additionally configured to:
Button module includes: in the button module of the button module of single button, the button module of double-button and five buttons At least one;
Bottom frame plug-in unit includes: the bottom frame plug-in unit of single button, the bottom frame plug-in unit of double-button, the bottom frame plug-in unit of five buttons and gap At least one of plug-in unit.
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of mobile terminal When row, so that mobile terminal is able to carry out a kind of method for controlling mobile terminal, this method comprises:
When loading interface and loading the button in interface, for each button module, the bottom frame of load button module Plug-in unit and figure plug-in unit;
Button module icon is obtained according to the address in figure plug-in unit;
Load button module icon;
According to bottom frame plug-in unit and button module icon, the Show Button module.
Instruction in storage medium can also include:
Figure plug-in unit includes: outline pattern plug-in unit and central figure plug-in unit;
Button module icon is obtained according to the address in figure plug-in unit, comprising:
Button module icon is obtained according to the address in central figure plug-in unit;
According to bottom frame plug-in unit and button module icon, the Show Button module, comprising:
According to bottom frame plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
Instruction in storage medium can also include:
Button module icon is obtained according to the address in figure plug-in unit, comprising:
Button module icon is obtained from the picture library of operating system according to the address in figure plug-in unit.
Instruction in storage medium can also include:
This method further include:
Obtain the resolution ratio at interface;
Determine the ratio of the resolution ratio at interface and the default default resolution at interface;
Determining ratio is multiplied with the pre-set dimension of bottom frame plug-in unit, obtains the actual size of bottom frame plug-in unit;
Button module icon is adaptively adjusted according to the actual size of bottom frame plug-in unit;
According to bottom frame plug-in unit and button module icon, the Show Button module, comprising:
According to the actual size of bottom frame plug-in unit and button module icon adjusted, the Show Button module.
Instruction in storage medium can also include:
This method further include:
According to the length-width ratio of the resolution ratio at interface, the pre-set dimension of bottom frame plug-in unit in proportion is determined.
Instruction in storage medium can also include:
Button module includes: in the button module of the button module of single button, the button module of double-button and five buttons At least one;
Bottom frame plug-in unit includes: the bottom frame plug-in unit of single button, the bottom frame plug-in unit of double-button, the bottom frame plug-in unit of five buttons and gap At least one of plug-in unit.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (8)

1. a kind of method of the Show Button characterized by comprising
When loading interface and loading the button in interface, for each button module, the bottom frame plug-in unit of load button module And figure plug-in unit;
Button module icon is obtained according to the address in the figure plug-in unit;
Load the button module icon;
According to the bottom frame plug-in unit and the button module icon, the Show Button module;
The method also includes:
Obtain the resolution ratio at the interface;
Determine the ratio of the resolution ratio at the interface and the default default resolution at interface;
The determining ratio is multiplied with the pre-set dimension of the bottom frame plug-in unit, obtains the actual size of the bottom frame plug-in unit;
The button module icon is adaptively adjusted according to the actual size of the bottom frame plug-in unit;
It is described according to the bottom frame plug-in unit and the button module icon, the Show Button module, comprising:
According to the actual size of the bottom frame plug-in unit and the button module icon adjusted, the Show Button module;
The address according in the figure plug-in unit obtains button module icon, comprising:
Button module icon is obtained from the picture library of operating system according to the address in the figure plug-in unit.
2. the method for the Show Button according to claim 1, which is characterized in that the figure plug-in unit includes: outline pattern Plug-in unit and central figure plug-in unit;
The address according in the figure plug-in unit obtains button module icon, comprising:
Button module icon is obtained according to the address in the central figure plug-in unit;
It is described according to the bottom frame plug-in unit and button module icon, the Show Button module, comprising:
According to the bottom frame plug-in unit, the outline pattern plug-in unit and the button module icon, the Show Button module.
3. the method for the Show Button according to claim 1, which is characterized in that the method also includes:
According to the length-width ratio of the resolution ratio at the interface, the pre-set dimension of the bottom frame plug-in unit in proportion is determined.
4. the method for the Show Button according to claim 1, which is characterized in that the button module includes: single button At least one of button module, the button module of double-button and button module of five buttons;
Bottom frame plug-in unit includes: the bottom frame plug-in unit and gap plug-in unit of the bottom frame plug-in unit of single button, the bottom frame plug-in unit of double-button, five buttons At least one of.
5. a kind of device of the Show Button characterized by comprising
First loading module, for when loading interface and loading the button in interface, for each button module, load to be pressed The bottom frame plug-in unit and figure plug-in unit of button module;
First obtains module, for obtaining button module icon according to the address in the figure plug-in unit;
Second loading module, for loading the button module icon;
Display module, for according to the bottom frame plug-in unit and the button module icon, the Show Button module;
Described device further include:
Second obtains module, for obtaining the resolution ratio at the interface;
First determining module, for determining the ratio of the resolution ratio at the interface and the default default resolution at interface;
Second determining module obtains the bottom for the ratio determined to be multiplied with the pre-set dimension of the bottom frame plug-in unit The actual size of frame plug-in unit;
Module is adjusted, for adaptively adjusting the button module icon according to the actual size of the bottom frame plug-in unit;
The display module, comprising:
Second display sub-module, for according to the bottom frame plug-in unit actual size and the button module icon adjusted, The Show Button module;
Described first obtains module, comprising:
Second obtains submodule, for obtaining button module from the picture library of operating system according to the address in the figure plug-in unit Icon.
6. the device of the Show Button according to claim 5, which is characterized in that the figure plug-in unit includes: outline pattern Plug-in unit and central figure plug-in unit;
Described first obtains module, comprising:
First obtains submodule, for obtaining button module icon according to the address in the central figure plug-in unit;
The display module, comprising:
First display sub-module, for showing according to the bottom frame plug-in unit, the outline pattern plug-in unit and the button module icon Show button module.
7. the device of the Show Button according to claim 5, which is characterized in that described device further include:
Third determining module determines the bottom frame plug-in unit in proportion for the length-width ratio according to the resolution ratio at the interface Pre-set dimension.
8. a kind of device for controlling mobile terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When loading interface and loading the button in interface, for each button module, the bottom frame plug-in unit of load button module And figure plug-in unit;
Button module icon is obtained according to the address in the figure plug-in unit;
Load the button module icon;
According to the bottom frame plug-in unit and the button module icon, the Show Button module;
Obtain the resolution ratio at the interface;
Determine the ratio of the resolution ratio at the interface and the default default resolution at interface;
The determining ratio is multiplied with the pre-set dimension of the bottom frame plug-in unit, obtains the actual size of the bottom frame plug-in unit;
The button module icon is adaptively adjusted according to the actual size of the bottom frame plug-in unit;
It is described according to the bottom frame plug-in unit and the button module icon, the Show Button module, comprising:
According to the actual size of the bottom frame plug-in unit and the button module icon adjusted, the Show Button module;
The address according in the figure plug-in unit obtains button module icon, comprising:
Button module icon is obtained from the picture library of operating system according to the address in the figure plug-in unit.
CN201510280697.7A 2015-05-27 2015-05-27 The method and device of the Show Button Active CN104866353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510280697.7A CN104866353B (en) 2015-05-27 2015-05-27 The method and device of the Show Button

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510280697.7A CN104866353B (en) 2015-05-27 2015-05-27 The method and device of the Show Button

Publications (2)

Publication Number Publication Date
CN104866353A CN104866353A (en) 2015-08-26
CN104866353B true CN104866353B (en) 2019-03-15

Family

ID=53912202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510280697.7A Active CN104866353B (en) 2015-05-27 2015-05-27 The method and device of the Show Button

Country Status (1)

Country Link
CN (1) CN104866353B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808305B (en) * 2016-03-29 2022-08-30 北京小米移动软件有限公司 Static resource loading method and device
CN107015800A (en) * 2017-03-14 2017-08-04 宇龙计算机通信科技(深圳)有限公司 Display methods, device and equipment
CN106951267A (en) * 2017-03-31 2017-07-14 武汉斗鱼网络科技有限公司 Screen size adaptive approach and device
CN111596820B (en) * 2020-04-28 2022-05-31 维沃移动通信有限公司 Head portrait setting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706724A (en) * 2009-09-29 2010-05-12 宇龙计算机通信科技(深圳)有限公司 Icon generation method and icon processing device
CN102314291A (en) * 2010-06-30 2012-01-11 上海科泰世纪科技有限公司 Icon processing system and method
CN102819400A (en) * 2012-08-14 2012-12-12 北京小米科技有限责任公司 Desktop system, interface interaction method and interface interaction device of mobile terminal
CN104267951A (en) * 2014-09-25 2015-01-07 福建星网视易信息系统有限公司 Method and device for achieving user-defined graphical user interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706724A (en) * 2009-09-29 2010-05-12 宇龙计算机通信科技(深圳)有限公司 Icon generation method and icon processing device
CN102314291A (en) * 2010-06-30 2012-01-11 上海科泰世纪科技有限公司 Icon processing system and method
CN102819400A (en) * 2012-08-14 2012-12-12 北京小米科技有限责任公司 Desktop system, interface interaction method and interface interaction device of mobile terminal
CN104267951A (en) * 2014-09-25 2015-01-07 福建星网视易信息系统有限公司 Method and device for achieving user-defined graphical user interface

Also Published As

Publication number Publication date
CN104866353A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN105119790B (en) Apparatus control method and device
CN105677473B (en) A kind of method and apparatus switching application program
CN104866353B (en) The method and device of the Show Button
CN104898505A (en) Smart scene configuration method and device
CN105511907A (en) Application program upgrade method, device and system
CN104869308A (en) Picture taking method and device
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN104238890B (en) Character displaying method and device
CN105511740A (en) Method and device for switching application interface
EP3101878A1 (en) Modular mobile terminal
CN105827489A (en) Intelligent household electrical appliance control method and device and intelligent household electrical appliance
CN107370899A (en) A kind of method and apparatus for sending vibration signal
CN106657645A (en) Call request processing method and device, calling method and device, and related terminal
CN105376410A (en) Method and device for setting alarm clock
CN106649784A (en) Picture storing method, picture searching method, picture searching device and terminal
CN106095405A (en) Icon update method and device
CN104375760B (en) Method for information display and device
CN106775240B (en) Triggering method, device and the terminal of application program
CN109525966A (en) Querying method, device and the storage medium of smart machine
CN106162612B (en) Control the method and device of Root authority
CN105677428A (en) Upgrading method and device for terminal and terminal
CN105893128B (en) A kind of method and apparatus of application call management
CN109947522B (en) Information display method, device, terminal, server and storage medium
CN106502809B (en) A kind of multi-platform application program adaptation method, device and terminal device
CN105100410A (en) Method and device for aggregating third-party telephone application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant