CN104866353A - Method and device for displaying buttons - Google Patents

Method and device for displaying buttons Download PDF

Info

Publication number
CN104866353A
CN104866353A CN201510280697.7A CN201510280697A CN104866353A CN 104866353 A CN104866353 A CN 104866353A CN 201510280697 A CN201510280697 A CN 201510280697A CN 104866353 A CN104866353 A CN 104866353A
Authority
CN
China
Prior art keywords
plug
unit
button module
button
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510280697.7A
Other languages
Chinese (zh)
Other versions
CN104866353B (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.)
Beijing Xiaomi Technology Co Ltd
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

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

Disclosed are a method and a device for displaying buttons. The method comprises the steps of: loading the bottom frame inserter and the figure inserter of each button modules when loading an interface and loading the buttons in the interface; obtaining a button module icon according to the address in the figure inserter; loading the button module icon; displaying the button module according to the bottom frame inserter and the button module icon. The bottom frame inserter and the figure inserter can be combined into different button modules in different combination manners, so that corresponding button modules can be displayed by storing few bottom frame inserters and figure inserters, the memory space occupied by the stored button modules is saved, resources for loading the button icon are reduced, and the loading speed is improved.

Description

The method of the Show Button and device
Technical field
The disclosure relates to communication and computer disposal field, particularly relates to a kind of method and device of the Show Button.
Background technology
Along with the development of electronic technology, mobile terminal is generally applied, and updates quickly.And in correlation technique, after this click of button in interface of mobile terminal, corresponding function can be triggered.The form of button with button icon in interface represents.In the system that button icon is present in mobile terminal and application program, user by the button icon in mobile terminal, can control mobile terminal and realizes corresponding function.
Summary of the invention
The disclosure provides a kind of method and the device that control mobile terminal.In order to reduce resource during load button icon, improve loading velocity.
According to the first aspect of disclosure embodiment, a kind of method of the Show Button is provided, comprises:
When loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit;
Button module icon is obtained according to the address in described figure plug-in unit;
Load described button module icon;
According to described underframe plug-in unit and described button module icon, the Show Button module.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: button module is divided into underframe plug-in unit and figure plug-in unit, according to underframe plug-in unit and button module icon the Show Button module, according to different array modes, underframe plug-in unit and figure plug-in unit can be combined into different button module, thus store a small amount of underframe plug-in unit and figure plug-in unit, corresponding button module can be shown, thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
Described figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit;
Described according to the address acquisition button module icon in described figure plug-in unit, comprising:
Button module icon is obtained according to the address in described central figure plug-in unit;
Described according to described underframe plug-in unit and button module icon, the Show Button module, comprising:
According to described underframe plug-in unit, described outline pattern plug-in unit and described button module icon, the Show Button module.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: figure plug-in unit is divided into underframe plug-in unit and figure plug-in unit, according to outline pattern plug-in unit, central figure plug-in unit and underframe plug-in unit the Show Button module, further thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
Described according to the address acquisition button module icon in described figure plug-in unit, comprising:
From the picture library of operating system, button module icon is obtained according to the address in described figure plug-in unit.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: be stored in the picture library of operating system by figure plug-in unit, multiple application or system can be made to share a picture library, when renewing button module, upgrade this picture library the button module of all application or system can be realized to upgrade, and do not need each button module for each application or system, upgrade.Save the storage space shared by store button module further, and during due to renewing button module, decrease update times, thus network traffics resource required when also saving renewing button module.
Described method also comprises:
Obtain the resolution at described interface;
Determine the ratio of the resolution at described interface and the default default resolution at interface;
The pre-set dimension of the described ratio determined with described underframe plug-in unit is multiplied, obtains the physical size of described underframe plug-in unit;
Button module icon according to the physical size self-adaptative adjustment of described underframe plug-in unit;
Described according to described underframe plug-in unit and described button module icon, the Show Button module, comprising:
According to the physical size of described underframe plug-in unit and the described button module icon after adjusting, the Show Button module.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the ratio of the resolution at interface and the default default resolution at interface, determine the physical size of underframe plug-in unit, and according to the physical size of underframe plug-in unit, self-adaptative adjustment button module icon, thus when the Show Button module, button module can be made better to adapt to the screen size at interface, and when making button module, the underframe plug-in unit of production standard size and figure plug-in unit, according to the true resolution at interface, again standard-sized underframe plug-in unit and figure plug-in unit self-adaptative adjustment are adapted to interface resolution, the interface resolution of various terminal can be adapted to, thus decrease owing to making many group button module and the resource of wasting for adapting to various terminal, improve the efficiency making button module.
Described method also comprises:
According to the length breadth ratio of the resolution at described interface, determine the pre-set dimension of described underframe plug-in unit in proportion.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: because the length breadth ratio of the resolution of different operating system or different terminals is different, the pre-set dimension of the underframe plug-in unit determined by said method better can adapt to the length breadth ratio of the resolution at local interface.
Described button module comprises: at least one in the button module of the button module of button, the button module of double-button and five buttons;
Underframe plug-in unit comprises: at least one in the underframe plug-in unit of the underframe plug-in unit of button, the underframe plug-in unit of double-button, five buttons and space plug-in unit.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: arrange different button module and underframe plug-in unit, the demand of different function buttons can be adapted to, only can need store a small amount of button module, corresponding button module can be provided according to application or system requirements, thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
According to the second aspect of disclosure embodiment, a kind of device of the Show Button is provided, comprises:
First load-on module, for when loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit;
First obtains module, for obtaining button module icon according to the address in described figure plug-in unit;
Second load-on module, for loading described button module icon;
Display module, for according to described underframe plug-in unit and described button module icon, the Show Button module.
Described figure plug-in unit comprises: 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 described central figure plug-in unit;
Described display module, comprising:
First display sub-module, for according to described underframe plug-in unit, described outline pattern plug-in unit and described button module icon, the Show Button module.
Described first obtains module, comprising:
Second obtains submodule, for obtaining button module icon according to the address in described figure plug-in unit from the picture library of operating system.
Described device also comprises:
Second obtains module, for obtaining the resolution at described interface;
First determination module, for the ratio of the default default resolution of the resolution and interface of determining described interface;
Second determination module, for the pre-set dimension of the described ratio determined with described underframe plug-in unit being multiplied, obtains the physical size of described underframe plug-in unit;
Adjusting module, for button module icon according to the physical size self-adaptative adjustment of described underframe plug-in unit;
Described display module, comprising:
Second display sub-module, for according to the described button module icon after the physical size of described underframe plug-in unit and adjustment, the Show Button module.
Described device also comprises:
3rd determination module, for the length breadth ratio of the resolution according to described interface, determines the pre-set dimension of described underframe plug-in unit in proportion.
According to the second aspect of disclosure embodiment, a kind of device controlling mobile terminal is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit;
Button module icon is obtained according to the address in described figure plug-in unit;
Load described button module icon;
According to described underframe plug-in unit and described button module icon, the Show Button module.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of the method for a kind of the Show Button according to an exemplary embodiment.
Fig. 2 is the particular flow sheet of the method for a kind of the Show Button according to an exemplary embodiment.
Fig. 2 a is the particular flow sheet of the method for a kind of the Show Button according to an exemplary embodiment.
Fig. 3 is the particular flow sheet of the method for a kind of the Show Button according to an exemplary embodiment.
Fig. 4 is the device block diagram of a kind of the Show Button according to an exemplary embodiment.
Fig. 5 is the first block diagram obtaining module and display module in the device of a kind of the Show Button according to an exemplary embodiment.
Fig. 6 is the first block diagram obtaining module in the device of a kind of the Show Button according to an exemplary embodiment.
Fig. 7 is the block diagram of the device of a kind of the Show Button according to an exemplary embodiment.
Fig. 8 is the block diagram of the device of a kind of the Show Button according to an exemplary embodiment.
Fig. 9 is the block diagram of the device of a kind of the Show Button according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Along with the development of electronic technology, intelligent terminal is generally applied, and updates quickly.And in correlation technique, after this click of button in interface of mobile terminal, corresponding function can be triggered.The form of button with button icon in interface represents.In the system that button icon is present in intelligent terminal and application program, user by the button icon in intelligent terminal, can control intelligent terminal and realizes corresponding function.Such as, telepilot can be replaced to control household electrical appliance by handset program.
And the button in mobile phone is all application program or system carries, the size of each button, function, pattern are different, therefore, need to store different button module at local storage space, and some of them button-shape is similar, but also need to store different button module.When entering the control inerface that application program or system carry at every turn, need to load button, call different button module from local storage space, occupy a large amount of calculation resources.
Disclosure embodiment provides a kind of method controlling mobile terminal and button module is divided into underframe plug-in unit and figure plug-in unit, according to underframe plug-in unit and button module icon the Show Button module, according to different array modes, underframe plug-in unit and figure plug-in unit can be combined into different button module, thus store a small amount of underframe plug-in unit and figure plug-in unit, corresponding button module can be shown, thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
Fig. 1 is the process flow diagram of the method for a kind of the Show Button according to an exemplary embodiment, and as shown in Figure 1, the method can be realized by terminal, comprises the following steps:
In a step 101, when loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit.
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 underframe plug-in unit and button module icon, the Show Button module.
Disclosure embodiment provides a kind of method of the Show Button.Button module is divided into underframe plug-in unit and figure plug-in unit, according to underframe plug-in unit and button module icon the Show Button module, according to different array modes, underframe plug-in unit and figure plug-in unit can be combined into different button module, thus store a small amount of underframe plug-in unit and figure plug-in unit, corresponding button module can be shown, thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
In one embodiment, figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit; Step 102 also can be embodied as: obtain button module icon according to the address in central figure plug-in unit.Step 104 also can be embodied as: according to underframe plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
For example, terminal can be mobile phone, panel computer etc.In the present embodiment using mobile phone as terminal.In same mobile phone application, the outline pattern of button is all more similar, and difference is then the central figure of button, represents in the icon that the icon of menu and expression start and only has central figure plug-in unit different.And when if each button stores figure plug-in unit, then can repeated storage outline pattern plug-in unit, thus waste storage space.And if identical outline pattern plug-in unit only stores once, when the Show Button module, the button module with identical outline pattern plug-in unit all only adjusts this outline pattern plug-in unit, and different button module, obtain button module icon according to the address in central figure plug-in unit, then can save the storage space storing outline pattern plug-in unit.
Figure plug-in unit is divided into underframe plug-in unit and figure plug-in unit, according to outline pattern plug-in unit, central figure plug-in unit and underframe plug-in unit the Show Button module, further thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
In one embodiment, step 102 also can be embodied as: from the picture library of operating system, obtain button module icon according to the address in figure plug-in unit.
For example, all with picture library required separately in the different application program of mobile phone, the icon of button interfaces in application program is stored in picture library, and the picture library of each application program is uncurrent, even if some button icons in two methods program are same or similar, application program can not call the icon of Another application program, so when application program update, all needs to download new picture library.
Figure plug-in unit is stored in the picture library of operating system, multiple application or system can be made to share a picture library, when renewing button module, upgrade this picture library the button module of all application or system can be realized to upgrade, and do not need each button module for each application or system, upgrade.Save the storage space shared by store button module further, and during due to renewing button module, decrease update times, thus network traffics resource required when also saving renewing button module.
In one embodiment, the method also can be embodied as: steps A 1-steps A 4.
In steps A 1, obtain the resolution at interface.
In steps A 2, determine the ratio of the resolution at interface and the default default resolution at interface.
In steps A 3, the pre-set dimension of the ratio determined with underframe plug-in unit is multiplied, obtains the physical size of underframe plug-in unit;
In steps A 4, according to the physical size self-adaptative adjustment button module icon of underframe plug-in unit.
Step S104 also can be embodied as: according to the physical size of underframe plug-in unit and the button module icon after adjusting, the Show Button module.
The ratio of the resolution at interface and the default default resolution at interface, determine the physical size of underframe plug-in unit, and according to the physical size of underframe plug-in unit, self-adaptative adjustment button module icon, thus when the Show Button module, button module can be made better to adapt to the screen size at interface, and when making button module, the underframe plug-in unit of production standard size and figure plug-in unit, according to the true resolution at interface, again standard-sized underframe plug-in unit and figure plug-in unit self-adaptative adjustment are adapted to interface resolution, the interface resolution of various terminal can be adapted to, thus decrease owing to making many group button module and the resource of wasting for adapting to various terminal, improve the efficiency making button module.
In one embodiment, the method also can be embodied as: according to the length breadth ratio of the resolution at interface, determines the pre-set dimension of underframe plug-in unit in proportion.
Because the length breadth ratio of the resolution of different operating system or different terminals is different, the pre-set dimension of the underframe plug-in unit determined by said method better can adapt to the length breadth ratio of the resolution at local interface.
In one embodiment, button module comprises: at least one in the button module of the button module of button, the button module of double-button and five buttons; Underframe plug-in unit comprises: at least one in the underframe plug-in unit of the underframe plug-in unit of button, the underframe plug-in unit of double-button, five buttons and space plug-in unit.
Different button module and underframe plug-in unit are set, the demand of different function buttons can be adapted to, only can need store a small amount of button module, corresponding button module can be provided according to application or system requirements, thus the storage space saved shared by store button module, reduce resource during load button icon, improve loading velocity.
Above-described embodiment provide the method for the Show Button not only can be applied to mobile terminal load and the Show Button time, also can be used for application-development technologies personnel when making Application Program Interface.Because button module is divided in order to underframe plug-in unit and figure plug-in unit, and figure plug-in unit divides in order to outline pattern plug-in unit and central figure plug-in unit, and for underframe plug-in unit, outline pattern plug-in unit and central figure plug-in unit, then define the size and shape that often kind of plug-in unit is corresponding, therefore, technician does not need to carry out reprogramming or setting to each button module.When making button module, one by one underframe plug-in unit, outline pattern plug-in unit and central figure plug-in unit can be pulled into in interface and being combined as button module.If in the button module that making two is different, when only having central figure plug-in unit different, can after first button module that complete, the address of the central figure plug-in unit in first button module is replaced with the address of the central figure plug-in unit in second button module, the making of second button module can be completed, improve the speed that technician makes button module.
As shown in Figure 2, disclosure embodiment provides a kind of method of the Show Button, and in disclosure embodiment, terminal is mobile phone.Concrete implementation step is as follows:
In step 201, when loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit.
Figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit; Button module comprises: at least one in the button module of the button module of button, the button module of double-button and five buttons; Underframe plug-in unit comprises: at least one in the underframe plug-in unit of the underframe plug-in unit of button, the underframe plug-in unit of double-button, five buttons and space plug-in unit.
By button module respectively with underframe plug-in unit and figure plug-in unit, again figure plug-in unit is divided into outline pattern plug-in unit and central figure plug-in unit, then when the Show Button module, need to load underframe plug-in unit, outline pattern plug-in unit and central figure plug-in unit simultaneously, and do not interfere with each other between these three kinds of plug-in units, if namely underframe plug-in unit has A1, A2, A3 tri-kinds, outline pattern plug-in unit has B1, B2, B3 tri-kinds, central figure plug-in unit has C1, C2, C3 tri-kinds, and 27 kinds of different button module can be combined into according to different array modes, but the plug-in unit only needing storage 9 kinds different.And if not by button module respectively with underframe 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-press modules different in 27, then need storage 27 kinds of plug-in units, so pass through button module respectively with underframe plug-in unit and figure plug-in unit, figure plug-in unit is divided into outline pattern plug-in unit and central figure plug-in unit, the storage space shared by local store button module can be saved.
In step 202., button module icon is obtained according to the address in central figure plug-in unit.
In step 203, the resolution at interface is obtained.
The resolution obtaining mobile phone interface is 1920 × 1080.
In step 204, the ratio of the resolution at interface and the default default resolution at interface is determined.
The default default resolution at interface is 1920 × 1080, and the ratio that therefore can calculate the resolution at interface and the default default resolution at interface is 1.
In step 205, according to the length breadth ratio of the resolution at interface, determine the pre-set dimension of underframe plug-in unit in proportion.
The size of different operating system or button module corresponding to different display interfaces is not identical, can preset the pre-set dimension of underframe plug-in unit corresponding to the length breadth ratio of the resolution at different interfaces.As, resolution is the pre-set dimension of the underframe plug-in unit of 960 × 640 correspondences is 77 × 84, resolution is the pre-set dimension of the underframe plug-in unit of 1920 × 1080 correspondences is 86 × 94, when the length breadth ratio of interface resolution is 1.5, determines that the pre-set dimension of underframe plug-in unit is 77 × 84; When the length breadth ratio of interface resolution is 1.78, determine that the pre-set dimension of underframe plug-in unit is 86 × 94.
In step 206, the pre-set dimension of the ratio determined with underframe plug-in unit is multiplied, obtains the physical size of underframe plug-in unit.
Default default resolution according to step 204 median surface is 1920 × 1080, determines that the pre-set dimension of underframe plug-in unit is 86 × 94, and the ratio according to the resolution at interface and the default default resolution at interface can show that the physical size of underframe plug-in unit is 86 × 94.
In step 207, according to the physical size self-adaptative adjustment button module icon of underframe plug-in unit.
Because the physical size of underframe plug-in unit does not change relative to standard size, then in interface, the Show Button module map target is of a size of 86 × 94.If the ratio of the default default resolution at the resolution at interface and interface is 1.5, then the physical size of underframe plug-in unit is 129 × 141, now, with 129 × 141 size the Show Button modules.
In a step 208, load button module icon.
Load the key-press module icon after adjust size in step 207.
In step 209, according to underframe plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
According to underframe plug-in unit, outline pattern plug-in unit and button module icon that above-mentioned steps 206, step 207 confirm, be carried in underframe plug-in unit in display interface, outline pattern plug-in unit and button module icon, then the Show Button module.As shown in Figure 2 a, underframe plug-in unit is 21, outline pattern plug-in unit is 22, button module icon is 23.
Disclosure embodiment provides a kind of method of the Show Button.Button module is divided into underframe plug-in unit, outline pattern plug-in unit and central figure plug-in unit, according to underframe plug-in unit, outline pattern plug-in unit and central figure plug-in unit the Show Button module, according to the true resolution at interface, again standard-sized underframe plug-in unit and figure plug-in unit self-adaptative adjustment are adapted to interface resolution, the interface resolution of various terminal can be adapted to, thus the storage space namely saved shared by store button module, reduce resource during load button icon, improve loading velocity, additionally reduce owing to making many group button module and the resource of wasting for adapting to various terminal, improve the efficiency making button module.
As shown in Figure 3, disclosure embodiment provides a kind of method of the Show Button, and in disclosure embodiment, terminal is mobile phone.Concrete implementation step is as follows:
In step 301, when loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit.
When load button module, load corresponding underframe plug-in unit and figure plug-in unit respectively for each button module, underframe plug-in unit is for representing the interface dimensions shared by button module, and figure plug-in unit is then for distinguishing different button module.
In step 302, from the picture library of operating system, button module icon is obtained according to the address in figure plug-in unit.
In the figure plug-in unit loaded, carry button module icon address in an operating system, button module icon can be obtained by this address from the picture library of operating system.Button module in some application programs made by same application producer is same or analogous, but after set up applications, terminal can store the picture library that each application program carries, to store the button module icon in application program, if the application program that the many money of user installation is such, the then likely multiple identical button module icon of repeated storage, wastes a large amount of storage spaces.And if when user's application programs upgrades, upgrade in bag at level of application and also can carry new button module icon, and multiple application program is upgraded, then the multiple identical button module icon of possibility repeated downloads, waste network download resource.So, if the button module icon of multiple different application is stored in the picture library of an operating system, namely the storage space shared by button module icon can be reduced, again can when more new opplication, only need the picture library of a renewal operating system, and do not need to upgrade picture library respectively for modern war application program.
In step 303, load button module icon.
In step 304, according to underframe plug-in unit and button module icon, the Show Button module.
The disclosure provides a kind of method controlling mobile terminal.Button module is divided into underframe plug-in unit and figure plug-in unit, according to underframe plug-in unit and button module icon the Show Button module, according to different array modes, underframe plug-in unit and figure plug-in unit can be combined into different button module, and figure plug-in unit is stored in the picture library of operating system, multiple application or system can be made to share a picture library, when renewing button module, upgrade this picture library the button module of all application or system can be realized to upgrade, and do not need each button module for each application or system, upgrade.Thus the storage space saved shared by store button module, and during due to renewing button module, decrease update times, thus network traffics resource required when also saving renewing button module.
By being described above the implementation procedure of having separated the Show Button, this process is realized by mobile terminal and computing machine, is introduced respectively below for the inner structure of two equipment and function.
Fig. 4 is the device block diagram of a kind of the Show Button according to an exemplary embodiment.With reference to Fig. 4, this device comprises:
First load-on module 41 is configured to when loading interface and load the button in interface, for each button module, and the underframe plug-in unit of load button module and figure plug-in unit.
First obtains module 42 is configured to obtain button module icon according to the address in figure plug-in unit.
Second load-on module 43 is configured to load button module icon.
Display module 44 is configured to according to underframe plug-in unit and button module icon, the Show Button module.
As shown in Figure 5, figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit.
First obtains module 42, comprising:
First obtains submodule 51 is configured to obtain button module icon according to the address in central figure plug-in unit.
Display module 44, comprising:
First display sub-module 52 is configured to according to underframe plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
As shown in Figure 6, first obtains module 42, comprising:
Second obtains submodule 61 is configured to from the picture library of operating system, obtain button module icon according to the address in figure plug-in unit.
As Fig. 7, this device also comprises:
Second obtains the resolution that module 71 is configured to obtain interface;
First determination module 72 is configured to the ratio determining the resolution at interface and the default default resolution at interface;
Second determination module 73 is configured to the pre-set dimension of the ratio determined with underframe plug-in unit to be multiplied, and obtains the physical size of underframe plug-in unit;
Adjusting module 74 is configured to the physical size self-adaptative adjustment button module icon according to underframe plug-in unit;
Display module 44, comprising:
Second display sub-module 75 is configured to according to the physical size of underframe plug-in unit and the button module icon after adjusting, the Show Button module.
As shown in Figure 8, this device also comprises:
3rd determination module 81, for the length breadth ratio of the resolution according to interface, determines the pre-set dimension of underframe plug-in unit in proportion.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of a kind of device 900 for controlling mobile terminal according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing element 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of equipment 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 906 is device 900 provide electric power.Electric power assembly 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between this device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button module etc.These button module can include but not limited to: home button module, volume button module, start button module and locking press button module.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of equipment 900, the relative positioning of assembly, such as assembly is display and the keypad of device 900, the position of an assembly of all right pick-up unit 900 of sensor module 914 or device 900 changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communication component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Control a device for mobile terminal, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, this processor is configured to:
When loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module 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 underframe plug-in unit and button module icon, the Show Button module.
This processor can also be configured to:
Figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit;
Obtain button module icon 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 underframe plug-in unit and button module icon, the Show Button module, comprising:
According to underframe plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
This processor can also be configured to:
Obtain button module icon according to the address in figure plug-in unit, comprising:
From the picture library of operating system, button module icon is obtained according to the address in figure plug-in unit.
This processor can also be configured to:
The method also comprises:
Obtain the resolution at interface;
Determine the ratio of the resolution at interface and the default default resolution at interface;
The pre-set dimension of the ratio determined with underframe plug-in unit is multiplied, obtains the physical size of underframe plug-in unit;
According to the physical size self-adaptative adjustment button module icon of underframe plug-in unit;
According to underframe plug-in unit and button module icon, the Show Button module, comprising:
According to the physical size of underframe plug-in unit and the button module icon after adjusting, the Show Button module.
This processor can also be configured to:
The method also comprises:
According to the length breadth ratio of the resolution at interface, determine the pre-set dimension of underframe plug-in unit in proportion.
This processor can also be configured to:
Button module comprises: at least one in the button module of the button module of button, the button module of double-button and five buttons;
Underframe plug-in unit comprises: at least one in the underframe plug-in unit of the underframe plug-in unit of button, the underframe plug-in unit of double-button, five buttons and space plug-in unit.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method controlling mobile terminal, the method comprises:
When loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module 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 underframe plug-in unit and button module icon, the Show Button module.
Instruction in storage medium can also comprise:
Figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit;
Obtain button module icon 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 underframe plug-in unit and button module icon, the Show Button module, comprising:
According to underframe plug-in unit, outline pattern plug-in unit and button module icon, the Show Button module.
Instruction in storage medium can also comprise:
Obtain button module icon according to the address in figure plug-in unit, comprising:
From the picture library of operating system, button module icon is obtained according to the address in figure plug-in unit.
Instruction in storage medium can also comprise:
The method also comprises:
Obtain the resolution at interface;
Determine the ratio of the resolution at interface and the default default resolution at interface;
The pre-set dimension of the ratio determined with underframe plug-in unit is multiplied, obtains the physical size of underframe plug-in unit;
According to the physical size self-adaptative adjustment button module icon of underframe plug-in unit;
According to underframe plug-in unit and button module icon, the Show Button module, comprising:
According to the physical size of underframe plug-in unit and the button module icon after adjusting, the Show Button module.
Instruction in storage medium can also comprise:
The method also comprises:
According to the length breadth ratio of the resolution at interface, determine the pre-set dimension of underframe plug-in unit in proportion.
Instruction in storage medium can also comprise:
Button module comprises: at least one in the button module of the button module of button, the button module of double-button and five buttons;
Underframe plug-in unit comprises: at least one in the underframe plug-in unit of the underframe plug-in unit of button, the underframe plug-in unit of double-button, five buttons and space plug-in unit.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (12)

1. the method for the Show Button, is characterized in that, comprising:
When loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit;
Button module icon is obtained according to the address in described figure plug-in unit;
Load described button module icon;
According to described underframe plug-in unit and described button module icon, the Show Button module.
2. the method for the Show Button module according to claim 1, is characterized in that, described figure plug-in unit comprises: outline pattern plug-in unit and central figure plug-in unit;
Described according to the address acquisition button module icon in described figure plug-in unit, comprising:
Button module icon is obtained according to the address in described central figure plug-in unit;
Described according to described underframe plug-in unit and button module icon, the Show Button module, comprising:
According to described underframe plug-in unit, described outline pattern plug-in unit and described button module icon, the Show Button module.
3. the method for the Show Button module according to claim 1, is characterized in that, described according to the address acquisition button module icon in described figure plug-in unit, comprising:
From the picture library of operating system, button module icon is obtained according to the address in described figure plug-in unit.
4. the method for the Show Button module according to claim 1, is characterized in that, described method also comprises:
Obtain the resolution at described interface;
Determine the ratio of the resolution at described interface and the default default resolution at interface;
The pre-set dimension of the described ratio determined with described underframe plug-in unit is multiplied, obtains the physical size of described underframe plug-in unit;
Button module icon according to the physical size self-adaptative adjustment of described underframe plug-in unit;
Described according to described underframe plug-in unit and described button module icon, the Show Button module, comprising:
According to the physical size of described underframe plug-in unit and the described button module icon after adjusting, the Show Button module.
5. the method for the Show Button module according to claim 4, is characterized in that, described method also comprises:
According to the length breadth ratio of the resolution at described interface, determine the pre-set dimension of described underframe plug-in unit in proportion.
6. the method for the Show Button module according to claim 1, is characterized in that, described button module comprises: at least one in the button module of the button module of button, the button module of double-button and five buttons;
Underframe plug-in unit comprises: at least one in the underframe plug-in unit of the underframe plug-in unit of button, the underframe plug-in unit of double-button, five buttons and space plug-in unit.
7. the device of the Show Button, is characterized in that, comprising:
First load-on module, for when loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit;
First obtains module, for obtaining button module icon according to the address in described figure plug-in unit;
Second load-on module, for loading described button module icon;
Display module, for according to described underframe plug-in unit and described button module icon, the Show Button module.
8. the device of the Show Button module according to claim 7, is characterized in that, described figure plug-in unit comprises: 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 described central figure plug-in unit;
Described display module, comprising:
First display sub-module, for according to described underframe plug-in unit, described outline pattern plug-in unit and described button module icon, the Show Button module.
9. the device of the Show Button module according to claim 7, is characterized in that, described first obtains module, comprising:
Second obtains submodule, for obtaining button module icon according to the address in described figure plug-in unit from the picture library of operating system.
10. the device of the Show Button module according to claim 7, is characterized in that, described device also comprises:
Second obtains module, for obtaining the resolution at described interface;
First determination module, for the ratio of the default default resolution of the resolution and interface of determining described interface;
Second determination module, for the pre-set dimension of the described ratio determined with described underframe plug-in unit being multiplied, obtains the physical size of described underframe plug-in unit;
Adjusting module, for button module icon according to the physical size self-adaptative adjustment of described underframe plug-in unit;
Described display module, comprising:
Second display sub-module, for according to the described button module icon after the physical size of described underframe plug-in unit and adjustment, the Show Button module.
The device of 11. the Show Button modules according to claim 7, it is characterized in that, described device also comprises:
3rd determination module, for the length breadth ratio of the resolution according to described interface, determines the pre-set dimension of described underframe plug-in unit in proportion.
12. 1 kinds of devices controlling mobile terminal, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When loading interface and load the button in interface, for each button module, the underframe plug-in unit of load button module and figure plug-in unit;
Button module icon is obtained according to the address in described figure plug-in unit;
Load described button module icon;
According to described underframe plug-in unit and described button module icon, the Show Button module.
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 true CN104866353A (en) 2015-08-26
CN104866353B 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)

Cited By (4)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808305A (en) * 2016-03-29 2016-07-27 北京小米移动软件有限公司 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
CN111596820A (en) * 2020-04-28 2020-08-28 维沃移动通信有限公司 Head portrait setting method and device
CN111596820B (en) * 2020-04-28 2022-05-31 维沃移动通信有限公司 Head portrait setting method and device

Also Published As

Publication number Publication date
CN104866353B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN104639966A (en) Method and device for remote control
CN104536783B (en) Headspace method to set up and device
CN104598093A (en) Method and device for prompting message during screen locking
CN105098888A (en) Charging method and device
CN105511907A (en) Application program upgrade method, device and system
CN104811776B (en) Multi-medium play method and device
CN105204894A (en) Method and device for installing plug-in of intelligent equipment
CN104898505A (en) Smart scene configuration method and device
KR101748386B1 (en) Method, apparatus, program and computer-readable recording medium for controlling smart device
CN104281432A (en) Method and device for regulating sound effect
CN103916468B (en) Method for upgrading system, terminal, server and upgrade-system
CN105511740A (en) Method and device for switching application interface
CN104486451A (en) Application program recommendation method and device
CN105487805A (en) Object operating method and device
CN105068848A (en) System upgrading method and apparatus
CN104598131A (en) Method and device for adjusting page display mode
CN104750479A (en) Interface displaying method and device
CN104216672A (en) Display control method and display control device
CN103970576A (en) Installation information displaying method, obtaining method and device
CN104793843A (en) Desktop display method and device
CN105224171A (en) icon display method, device and terminal
CN105376410A (en) Method and device for setting alarm clock
CN104216525A (en) Method and device for mode control of camera application
CN104267881A (en) Toolbar operating method and device
CN104866353A (en) Method and device for displaying buttons

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