CN102915241B - The operational approach of virtual menu bar in a kind of mobile phone interface - Google Patents
The operational approach of virtual menu bar in a kind of mobile phone interface Download PDFInfo
- Publication number
- CN102915241B CN102915241B CN201210345125.9A CN201210345125A CN102915241B CN 102915241 B CN102915241 B CN 102915241B CN 201210345125 A CN201210345125 A CN 201210345125A CN 102915241 B CN102915241 B CN 102915241B
- Authority
- CN
- China
- Prior art keywords
- parameter
- menu bar
- virtual menu
- function
- program
- 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
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses the operational approach of virtual menu bar in a kind of mobile phone interface.Comprising: the generation of secondary or physical bond event is double-clicked in detection;The calling system function when double-clicking secondary or physical bond event and occurring;Show according to system function or close virtual menu bar.By the way, the present invention can show flexibly and close virtual menu bar, it is to avoid program takies mobile phone display screen curtain when running.
Description
Technical field
The present invention relates to mobile phone interface design field, particularly relate to the operational approach of virtual menu bar in a kind of mobile phone interface.
Background technology
Android4.0 is the mobile phone operating system that current Android is up-to-date, and this system not only increases many new characteristics, and also UI interface and mode of operation to mobile phone has carried out a lot of amendment.Such as redefine the physical operations key layout of mobile phone, it is recommended that cell phone manufacturer uses the layout of three keys, i.e. return key, main screen key, multitask key.Android2.3 system in early days is the layout of four keys, i.e. return key, main screen key, search key and menu setup key, new system eliminates search key and menu setup key, has newly increased multitask key.Android wishes that developer can put into menu setup key in the display interface of program for the program of new system update oneself.For the program that cannot update, Android devises system-level virtual menu bar in new system, for user.
But, while Android4.0 operating system reduces entity key, the appearance of virtual menu bar brings a lot of trouble to cell phone manufacturer when actual design product: cell phone manufacturer has to mark one piece of region on the display screen and places virtual menu bar, this virtual menu bar is in the bottom of screen, can account for one piece of valuable viewing area, this makes mobile phone screen viewing area diminish on the contrary.
Summary of the invention
The technical problem that present invention mainly solves is to provide the operational approach of virtual menu bar in a kind of mobile phone interface, it is possible to shows flexibly and closes virtual menu bar, it is to avoid program takies mobile phone display screen curtain when running.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: provide the operational approach of virtual menu bar in a kind of mobile phone interface.Comprising: the generation of secondary or physical bond event is double-clicked in detection;The calling system function when double-clicking secondary or physical bond event and occurring;Show according to system function or close virtual menu bar.
Wherein, before the generation of secondary or physical bond event is double-clicked in detection, also including: system is that each program sets up a variable list, variable list records the state of virtual menu bar when each program is run.
Wherein, variable list is realized by two-dimensional array, and the Section 1 of two-dimensional array records the program name of each program, and the Section 2 of two-dimensional array records the state value of virtual menu bar when each program is run.
Wherein, when the state value of virtual menu bar is 1, represent display virtual menu bar;When the state value of virtual menu bar is 0, represents and close virtual menu bar;The state value of virtual menu bar is binary form.
Wherein, when program starts, the operational approach of virtual menu bar includes: check variable list, searches the state value of the virtual menu bar corresponding with program in variable list;State value according to virtual menu bar calls corresponding system function, produces display screen parameter;Receive display screen parameter, call the display interface of drawing function drawing program.
Wherein, the state value of virtual menu bar is 1, calls bottom and draws function, and the bottommost at screen draws virtual menu bar;Calling application screen and arrange function, application screen arranges function and includes the first parameter and the second parameter, application screen arranges the first parameter in function and the second parameter sends to program;First parameter is the width of display screen, and the second parameter is the height of display screen.
Wherein, the state value of virtual menu bar is 0, calls application screen and arranges function, and application screen arranges function and includes the 3rd parameter and the 4th parameter, application screen arranges the 3rd parameter in function and the 4th parameter sends to program;3rd parameter is complete display screen width, and the 4th parameter is complete display screen height.
Wherein, when program is run, the operational approach of virtual menu bar includes: the generation of secondary or physical bond event is double-clicked in detection;Check variable list, variable list is searched the state value of the virtual menu bar corresponding with program;The state value of virtual menu bar is negated, and records the state value of the virtual menu bar negated;State value according to the virtual menu bar negated calls corresponding system function, produces display screen parameter;Receive display screen parameter, call the display interface of drawing function drawing program.
Wherein, the state value of the virtual menu bar negated is 1, calls bottom and draws function, and the bottommost at screen draws virtual menu bar;Calling application screen and arrange function, application screen arranges function and includes the 5th parameter and the 6th parameter, application screen arranges the 5th parameter in function and the 6th parameter sends to program;5th parameter is the width of display screen, and the 6th parameter is the height of display screen.
Wherein, the state value of the virtual menu bar negated is 0, calls application screen and arranges function, and application screen arranges function and includes the 7th parameter and the 8th parameter, application screen arranges the 7th parameter in function and the 8th parameter sends to program;7th parameter is complete display screen width, and the 8th parameter is complete display screen height.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention double-clicks the generation of secondary or physical bond event by detection, virtual menu bar is shown and closes by calling system function, it is possible to shows flexibly and closes virtual menu bar, it is to avoid program takies mobile phone display screen curtain when running.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings, wherein:
Fig. 1 is the schematic flow sheet of operational approach one embodiment of virtual menu bar of the present invention;
Fig. 2 is the structural representation during operational approach embodiment virtual menu bar closedown of virtual menu bar of the present invention;
Fig. 3 is the schematic flow sheet of another embodiment of operational approach of virtual menu bar of the present invention;
Fig. 4 is the operational approach embodiment of the virtual menu bar of the present invention schematic flow sheet when program starts;
Fig. 5 is the operational approach embodiment of the virtual menu bar of the present invention schematic flow sheet when program is run.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Incorporated by reference to refering to Fig. 1 and Fig. 2, Fig. 1 being the schematic flow sheet of operational approach one embodiment of virtual menu bar of the present invention, Fig. 2 is the operational approach embodiment virtual menu bar of virtual menu bar of the present invention structural representation when closing.
In mobile phone interface disclosed by the invention, the operational approach of virtual menu bar comprises the following steps:
Step S101: the generation of secondary or physical bond event is double-clicked in detection.
As in figure 2 it is shown, Android4.0 operating system has three secondary or physical bonds 10, in the present embodiment, can double-click any one in three secondary or physical bonds 10, this is not construed as limiting by the present invention.
Step S102: the calling system function when double-clicking secondary or physical bond event and occurring.
Modern operating system controls all of program in its intrasystem operation, can be carried out intervening from startup program to operation program.Such as operating system can be with the viewing area of designated program, operating system is carried out advising process by control system event and is completed to order accordingly, system event can be by system calling system API(ApplicationProgrammingInterface, application programming interface) function completes, operating system is by using the event that various API calls notice present procedure is new, and present procedure timely responds to this system event and makes corresponding reaction.
When double-clicking secondary or physical bond event and occurring, the present embodiment is according to system event calling system api function so that present procedure timely responds to this double-click secondary or physical bond event and makes corresponding reaction.
Step S103: show according to system function or close virtual menu bar.
When virtual menu bar is in display state, after double-clicking the generation of secondary or physical bond event, calling system function is allowed to close;When virtual menu bar is closed, after double-clicking the generation of secondary or physical bond event, calling system function is allowed to show, it is worth mentioning that, when double-clicking secondary or physical bond event and again occurring, virtual menu bar can again show according to system function or close virtual menu bar, i.e. the embodiment of the present invention can be with repetitive operation.
Be described below close this virtual menu bar work process:
As in figure 2 it is shown, current virtual menu bar 20 is in display state, by double-clicking any one in three secondary or physical bonds 10, operating system i.e. calling system function so that virtual menu bar 20 is closed, and program is displayed in full screen.
By the way, in a kind of mobile phone interface of the present invention, the operational approach of virtual menu bar can show flexibly and close virtual menu bar, it is to avoid program takies mobile phone display screen curtain when running.
Refer to the schematic flow sheet that Fig. 3, Fig. 3 are another embodiments of operational approach of virtual menu bar of the present invention.In the present embodiment, the operational approach of virtual menu bar includes:
Step S201: system is that each program sets up a variable list, variable list records the state of virtual menu bar when each program is run.
When certain program is run, if user closes virtual menu bar, the display state of system recordable present procedure virtual menu bar.When again running this program next time, whether system is this program display virtual menu bar according to the condition adjudgement of last registration, and this makes user need not show every time or close virtual menu bar.
In order to complete above-mentioned functions, system can be one variable list of each operation program maintenance, and this variable list have recorded virtual menu bar state when each program is run.This variable list was just set up at the initial stage that operating system is run, and general two-dimensional array can be used to realize such list.The Section 1 of two-dimensional array, records the program name of each program, the state of Section 2 record virtual menu bar.Whenever a program is mounted in an operating system, will increase a project newly for this program in this variable list, record the virtual menu bar state of this program, state value is 1 expression display virtual menu bar, if state value becomes 0, then it represents that hide virtual menu bar.The situation of this list records can be as follows:
Program name | Virtual menu state value |
Notepad | 1 |
Alarm clock | 1 |
Browser | 1 |
Computer | 1 |
Above virtual menu bar state value is binary expression form.
Step S202: the generation of secondary or physical bond event is double-clicked in detection.
Step S203: the calling system function when double-clicking secondary or physical bond event and occurring.
Step S204: show according to system function or close virtual menu bar.
By the way, the operational approach of virtual menu bar of the present invention can be the virtual menu bar state during operation of each program logging program, when next time is run, user need not be shown by double-click secondary or physical bond or be closed virtual menu bar every time, user also can change the state of virtual menu bar from main separation, therefore, it is possible to show flexibly and close virtual menu bar, it is to avoid program takies mobile phone display screen curtain when running.
Refer to operational approach embodiment that Fig. 4, Fig. 4 the are virtual menu bar of the present invention schematic flow sheet when program starts.Including:
Step S301: program starts.
Step S302: check variable list, searches the state value of the virtual menu bar corresponding with program in variable list.
Step S303: judge the state value of virtual menu bar.
If the state value of virtual menu bar is 1, then carry out step S304;If the state value of virtual menu bar is 0, then carry out step S307.
Step S304: call bottom and draw function.
Call bottom and draw function in the bottom of mobile phone interface drafting virtual menu bar.
Step S305: call application screen and function is set.
Wherein, application screen arranges function and comprises display screen parameter (the first parameter, the second parameter).
Step S306: transmission screen display parameters (the first parameter, the second parameter).
Wherein, the first parameter is the width of display screen, and the second parameter is the height of display screen.
Step S307: call application screen and function is set.
Wherein, application screen arranges function and comprises display screen parameter (the 3rd parameter, the 4th parameter).
Step S308: transmission screen display parameters (the 3rd parameter, the 4th parameter).
Wherein, the 3rd parameter is complete display screen width, and the 4th parameter is complete display screen height.
Step S309: receive screen display parameters, call drawing function drawing program screen display interface.
When the state value of virtual menu bar is 1, receives screen display parameters (the first parameter, the second parameter), and call drawing function drawing program screen display interface according to screen display parameters (the first parameter, the second parameter);When the state value of virtual menu bar is 0, receives screen display parameters (the 3rd parameter, the 4th parameter), and call drawing function drawing program screen display interface according to screen display parameters (the 3rd parameter, the 4th parameter).
It should be noted that; in the present embodiment; bottom is drawn function, application screen arrange the name of the system function such as function, drawing function and be not restricted; in other instances; as long as playing same effect; the function using different names reaches the purpose identical with the present invention, should be within protection scope of the present invention.
Refer to operational approach embodiment that Fig. 5, Fig. 5 the are virtual menu bar of the present invention schematic flow sheet when program is run.Including:
Step S401: program is run.
Step S402: detection is double-clicked secondary or physical bond event and occurred.
Step S403: check variable list, searches the state value of the virtual menu bar corresponding with program in variable list.
Step 404: the state value of virtual menu bar is negated.
If the state value of virtual menu bar is 1, then negating is 0;If the state value of virtual menu bar is 0, then negating is 1.
Step S405: judge value of the inverted.
If value of the inverted is 1, then carry out step S406;If value of the inverted is 0, then carry out step S409.
Step S406;Call bottom and draw function.
Step S407: call application screen and function is set.
Wherein, application screen arranges function and comprises display screen parameter (the 5th parameter, the 6th parameter).
Step S408: transmission screen display parameters (the 5th parameter, the 6th parameter).
Wherein, the 5th parameter is the width of display screen, and the 6th parameter is the height of display screen.
Step S409: call application screen and function is set.
Wherein, application screen arranges function and comprises display screen parameter (the 7th parameter, the 8th parameter)
Step S410: transmission screen display parameters (the 7th parameter, the 8th parameter).
Wherein, the 7th parameter is complete display screen width, and the 8th parameter is complete display screen height.
Step S411: receive screen display parameters, call drawing function drawing program screen display interface.
When the state value of virtual menu bar is 1, receives screen display parameters (the 5th parameter, the 6th parameter), and call drawing function drawing program screen display interface according to screen display parameters (the 5th parameter, the 6th parameter);When the state value of virtual menu bar is 0, receives screen display parameters (the 7th parameter, the 8th parameter), and call drawing function drawing program screen display interface according to screen display parameters (the 7th parameter, the 8th parameter).
It should be noted that; in the present embodiment; bottom is drawn function, application screen arrange the name of the system function such as function, drawing function and be not restricted; in other instances; as long as playing same effect; the function using different names reaches the purpose identical with the present invention, should be within protection scope of the present invention.
In sum, the operational approach of virtual menu bar of the present invention is by double-clicking secondary or physical bond, virtual menu bar is shown and closes by calling system function, and record the virtual menu bar state of each program, can show flexibly and close virtual menu bar, farthest utilize mobile phone screen viewing area.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the scope of patent protection of the present invention.
Claims (7)
1. the operational approach of virtual menu bar in a mobile phone interface, it is characterised in that including:
System is that each program sets up a variable list, the state of described virtual menu bar when each program described in described variable list record is run;
The generation of secondary or physical bond event is double-clicked in detection;
The calling system function when described double-click secondary or physical bond event occurs;
Show according to described system function or close described virtual menu bar;
When program starts, the operational approach of described virtual menu bar includes:
Check described variable list, described variable list is searched the state value of the described virtual menu bar corresponding with described program;
State value according to described virtual menu bar calls corresponding system function, produces display screen parameter;
Receive described display screen parameter, call drawing function and draw the display interface of described program;
When program is run, the operational approach of described virtual menu bar includes:
The generation of secondary or physical bond event is double-clicked in detection;
Check described variable list, described variable list is searched the state value of the described virtual menu bar corresponding with program;
The state value of described virtual menu bar is negated, and the state value of the described virtual menu bar negated described in record;
State value according to the described described virtual menu bar negated calls corresponding system function, produces display screen parameter;
Receive described display screen parameter, call described drawing function and draw the display interface of described program.
Operational approach the most according to claim 1, it is characterized in that, described variable list is realized by two-dimensional array, the program name of each program described in the Section 1 record of described two-dimensional array, the state value of described virtual menu bar when each program described in the Section 2 record of described two-dimensional array is run.
Operational approach the most according to claim 2, it is characterised in that
When the state value of described virtual menu bar is 1, represents and show described virtual menu bar;
When the state value of described virtual menu bar is 0, represents and close described virtual menu bar;
Wherein, the state value of described virtual menu bar is binary form.
Operational approach the most according to claim 3, it is characterised in that the state value of described virtual menu bar is 1, calls bottom and draws function, and the bottommost at screen draws described virtual menu bar;Calling application screen and arrange function, described application screen arranges function and includes the first parameter and the second parameter, described application screen arranges described first parameter in function and described second parameter sends to described program;
Wherein, described first parameter is the width of display screen, and described second parameter is the height of display screen.
Operational approach the most according to claim 4, it is characterized in that, the state value of described virtual menu bar is 0, call described application screen and function is set, described application screen arranges function and includes the 3rd parameter and the 4th parameter, described application screen arranges described 3rd parameter in function and the 4th parameter sends to described program;
Wherein, described 3rd parameter is complete display screen width, and described 4th parameter is complete display screen height.
Operational approach the most according to claim 1, it is characterised in that described in the state value of described virtual menu bar that negates be 1, call bottom and draw function, the bottommost at screen draws described virtual menu bar;Calling application screen and arrange function, described application screen arranges function and includes the 5th parameter and the 6th parameter, described application screen arranges described 5th parameter in function and described 6th parameter sends to described program;
Wherein, described 5th parameter is the width of display screen, and described 6th parameter is the height of display screen.
Operational approach the most according to claim 1, it is characterized in that, the state value of the described described virtual menu bar negated is 0, call application screen and function is set, described application screen arranges function and includes the 7th parameter and the 8th parameter, described application screen arranges described 7th parameter in function and the 8th parameter sends to described program;
Wherein, described 7th parameter is complete display screen width, and described 8th parameter is complete display screen height.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210345125.9A CN102915241B (en) | 2012-09-17 | 2012-09-17 | The operational approach of virtual menu bar in a kind of mobile phone interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210345125.9A CN102915241B (en) | 2012-09-17 | 2012-09-17 | The operational approach of virtual menu bar in a kind of mobile phone interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102915241A CN102915241A (en) | 2013-02-06 |
CN102915241B true CN102915241B (en) | 2016-08-03 |
Family
ID=47613615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210345125.9A Active CN102915241B (en) | 2012-09-17 | 2012-09-17 | The operational approach of virtual menu bar in a kind of mobile phone interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102915241B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103440081A (en) * | 2013-07-19 | 2013-12-11 | 张佳佩 | Control method and control device for mobile terminal interface control |
CN104866184B (en) * | 2015-04-27 | 2019-05-10 | 努比亚技术有限公司 | A kind of edit menu column shows the method and device of content |
CN106933553A (en) * | 2015-12-29 | 2017-07-07 | 研祥智能科技股份有限公司 | The method and system that a kind of basic input output system is set |
CN107544733A (en) * | 2017-09-07 | 2018-01-05 | 广州视源电子科技股份有限公司 | Menu managing method, device, multimedia touch control device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201226148Y (en) * | 2007-11-22 | 2009-04-22 | 群科数位科技有限公司 | System for switching window |
CN102508610A (en) * | 2011-11-17 | 2012-06-20 | 合一网络技术(北京)有限公司 | Media device and method for interaction between media device and user |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5090161B2 (en) * | 2004-06-29 | 2012-12-05 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | Multi-level display of graphical user interface |
-
2012
- 2012-09-17 CN CN201210345125.9A patent/CN102915241B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201226148Y (en) * | 2007-11-22 | 2009-04-22 | 群科数位科技有限公司 | System for switching window |
CN102508610A (en) * | 2011-11-17 | 2012-06-20 | 合一网络技术(北京)有限公司 | Media device and method for interaction between media device and user |
Also Published As
Publication number | Publication date |
---|---|
CN102915241A (en) | 2013-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102915241B (en) | The operational approach of virtual menu bar in a kind of mobile phone interface | |
CN102768617B (en) | Hand-held electronic equipment and the method for list items editor based on touch screen | |
CN104484099A (en) | Menu displaying method and apparatus | |
CN102622210B (en) | Method for displaying help information and device | |
CN1922609A (en) | Rendering a user interface | |
CN102279720B (en) | Method and system for updating screen display contents | |
CN107659624A (en) | A kind of isomery cloud management system and method suitable for cloud computing | |
CN101246495A (en) | Method for constructing query scheme and executing data query and statistics | |
CN103763433A (en) | Method and system for controlling operation of terminal applications | |
CN104978411A (en) | Train model development method and apparatus for high-speed train | |
CN103927185A (en) | Network topology modeling device based on energy management and guiding method thereof | |
CN104571928A (en) | Interface display control method and device | |
CN103577191A (en) | Configurable instrument menu system | |
CN105992066A (en) | Character input method and character input device applied to intelligent device | |
CN104571801A (en) | Information processing method and electronic equipment | |
CN104331244B (en) | The execution method of application program | |
CN108959064A (en) | The pop-up processing method and processing device of automatic test | |
CN104571802A (en) | Information processing method and electronic equipment | |
CN105786829A (en) | Tree-form data structure display method and device | |
CN102467366A (en) | Page developing method and device based on wireless application protocol (WAP) | |
CN105100208A (en) | Communication method of mobile terminal and wearable device | |
CN104915412A (en) | Method and system for connecting dynamic management database | |
CN103092615A (en) | Task preview method and device | |
CN107124292B (en) | Method for dynamically generating incidence relation of information system operation modes | |
CN102999371B (en) | Interface Development method and system based on Lua script |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |