CN105808032A - Focus control method and device based on android control - Google Patents

Focus control method and device based on android control Download PDF

Info

Publication number
CN105808032A
CN105808032A CN201410849217.XA CN201410849217A CN105808032A CN 105808032 A CN105808032 A CN 105808032A CN 201410849217 A CN201410849217 A CN 201410849217A CN 105808032 A CN105808032 A CN 105808032A
Authority
CN
China
Prior art keywords
fragment control
actuation
keys
control
fragment
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
CN201410849217.XA
Other languages
Chinese (zh)
Other versions
CN105808032B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410849217.XA priority Critical patent/CN105808032B/en
Publication of CN105808032A publication Critical patent/CN105808032A/en
Application granted granted Critical
Publication of CN105808032B publication Critical patent/CN105808032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention is applied to the control field of android controls and provides a focus control method and a focus control device based on an android control. The method comprises the following steps of: after a user enters an interface, loading and displaying fragment controls of a first layer in the interface, wherein each fragment control corresponds to an id (identification) of one fragment control; monitoring a keying action of a user in the displayed fragment control, wherein the keying action includes an opening action and a returning action; when the keying action is the opening action, a focus is moved to a target fragment control according to a preset opening method and the id of the fragment control of the keying action so as to open a menu; when the keying action is the returning action, the focus is moved to the target fragment control according to a preset returning method and the id of the fragment control of the keying action so as to return to the menu. According to the embodiment of the invention, the focus can be rapidly moved to the target control.

Description

Focus control method and device based on android control
Technical field
The invention belongs to the control field of android control, particularly relate to a kind of focus control method based on android control and device.
Background technology
Fragment (fragment) control is a kind of region display control in android, and this fragment can at any one based on, in the terminal of android, completing layout complexity, multi-level.Utilize fragment, developer is possible not only to an overall flexible layout is split into multiple independent region, and can particularly simple add different animations, therefore, use fragment can improve development efficiency greatly and reduce the maintenance cost in later stage.
But, fragment has a very big defect: when multilevel menu Overlapping display, when receiving the instruction that user sends by directionkeys or back spacer, android can move the focus to the region at nearest control place according to the focus rule of oneself.For example, it is assumed that there are three controls inside fragment, it is A (input frame) respectively, B (OK button), C (Cancel button), B and C is positioned at below A, and B control than C control distance A control closer to, after user presses "enter" key", focus is moved directly in OK button by its hope, but, default rule is, focus is also on A, it is necessary to user is again by a down Arrow, according to nearby principle, just can move the focus on B.
To sum up, the existing focus control method based on android control, when multilevel menu Overlapping display, it is difficult to quickly move the focus in target widget.
Summary of the invention
Embodiments provide a kind of focus control method based on android control and device, it is intended to solve existing method when multilevel menu Overlapping display, it is difficult to quickly move the focus to the problem in target widget.
The embodiment of the present invention is achieved in that a kind of focus control method based on android control, and described method includes:
When user enters interface, load and show the fragment control of ground floor in described interface;Each fragment control is corresponding with a fragment control id;
Monitoring users is in the actuation of keys of the fragment control of display, and described actuation of keys includes: opening action and return action;
When actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, move the focus to target fragment control to open menu;
When actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, move the focus to target fragment control to return menu.
The another object of the embodiment of the present invention is in that to provide a kind of focal point control device based on android control, and described device includes:
Main interface loading unit, for when user enters interface, loading and show the fragment control of ground floor in described interface;Each fragment control is corresponding with a fragment control id;
Actuation of keys monitoring unit, for the monitoring users actuation of keys of fragment control in display, described actuation of keys includes: opening action and return action;
Unit opened by menu, for when actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, moving the focus to target fragment control to open menu;
Menu returns unit, for when actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, moving the focus to target fragment control to return menu.
In embodiments of the present invention, due to when multilevel menu Overlapping display, target fragment control can be directly moved the focus to according to actuation of keys, the id of current clip control and default deployment method, to open menu or to return menu, therefore, without successively opening menu or successively returning menu such that it is able to quickly move the focus in target widget.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of focus control method based on android control that first embodiment of the invention provides;
Fig. 2 is the schematic diagram of the layout of the activity that first embodiment of the invention provides;
Fig. 3 is the structure chart of a kind of focal point control device based on android control that second embodiment of the invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
In the embodiment of the present invention, when user enters interface, load and show the fragment control of ground floor in described interface, monitoring users is in the actuation of keys of the fragment control of display, when actuation of keys is opening action, the id of the fragment control according to actuation of keys place and default deployment method, move the focus to target fragment control to open menu, when actuation of keys is return action, the id of the fragment control according to actuation of keys place and default return method, move the focus to target fragment control to return menu.
In order to technical solutions according to the invention are described, illustrate below by specific embodiment.
Embodiment one:
Fig. 1 illustrates the flow chart of a kind of focus control method based on android control that first embodiment of the invention provides, and details are as follows:
Step S11, when user enters interface, loads and shows the fragment control of ground floor in described interface;Each control is corresponding with a control id (i.e. identifier).
Wherein, user enters interface and is the main interface entering the activity software realized.
In this step, the ground floor of system loads activity, and in the ground floor loaded, add the fragment control of this ground floor, when adding control to each layer, can be added by dynamic mode, it is possible to added by static mode.Wherein, dynamic addition manner refers to that the program according to presetting is added one by one, namely shows the fragment control of interpolation one by one;And the addition manner of static state refers to the mode according to xml layout, after being loaded by whole fragment controls, another rising shows.The ground floor of the activity of system loads is the level defined first, and after this ground floor, the level of definition is the second layer, other the like.Wherein, all corresponding level of each layer of activity uniquely identifies, in order to distinguish different layers.Described activity includes least one layer of fragment control, and each layer includes at least one fragment control.Assume that activity has N shell, the fragment control of ground floor is Fragment_1, and the fragment control of the second layer is Fragment_2, and the fragment control of third layer is Fragment_3, ... the fragment space of n-th layer is Fragment_N, then the layout of activity is as shown in Figure 2.In embodiments of the present invention, relation between the fragment control of adjacent two layers is not filiation, the simply quantitative relation between simple identifier, once enter into the fragment control of lower floor, just it doesn't matter with a upper fragment control, and in existing method, the relation between the fragment control of adjacent two layers is filiation, and it must one-level one-level upwards be looked for.
Alternatively, in described loading and when showing the fragment control of ground floor in described interface, including:
Initialization level variable, and focus is arranged on the fragment control of display, described level variable is for identifying the level residing for fragment control of display.This level variable defines in advance in activity, specifically, when loading and show the fragment control of ground floor in described activity, it is 1 by level initialization of variable,, focus is arranged in the fragment control of ground floor, so that user knows the position of the fragment control of display according to the focus arranged meanwhile, during default initialization, focus is arranged in first fragment control of ground floor.Correspondingly, when focus is in the second layer, this level variable becomes 2, other the like.
Step S12, monitoring users is in the actuation of keys of the fragment control of display, and described actuation of keys includes: opening action and return action.The button that wherein opening action is corresponding can be through the entrance key on controller or down Arrow, and the button that return action is corresponding can be the return key on controller or upwarding key.
In this step, predefined fragment control base class (Basefragment class), this Basefragment Similar integral, from fragment, defines button (onKeyDown) method at this Basefragment apoplexy due to endogenous wind, opens (openSubMenu) method and (goBack) method of return.Certainly, in a practical situation, it is also possible to realize by defining multiple or other keying method.Wherein, onKeyDown method is used for processing the key-press event of the fragment control of display, and openSubMenu method and goBack method are respectively intended to process and open submenu and rollback operation.
Alternatively, at described monitoring users when the actuation of keys of the fragment control of display, including:
The key-press event of the fragment control of display is injected into keying method default in interface, to monitor the actuation of keys of each layer in interface.Specifically, the onKeyDown event of the fragment control of display is injected into the onKeyDown in activity, thus can listen to the actuation of keys of each layer in activity.And existing method is the key-press event of acquisition to be injected in current fragment control, thus the actuation of keys of other layers can not be listened to.
Step S13, when actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, moves the focus to target fragment control to open menu.
Wherein, the deployment method preset can be: by pressing down Arrow, focus circulation in the fragment control set in advance corresponding relation list with fragment control id is made to select certain fragment control, as when focus is in list last fragment control, continue pressing down Arrow, then focus will be moved into first fragment control in list.
Alternatively, described when actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, move the focus to target fragment control to open menu, specifically include:
A1, when actuation of keys is opening action, determine the level residing for the fragment control at actuation of keys place according to described level variable, and forbid all focuses and the click event of the level residing for fragment control at described actuation of keys place.By forbidding all focuses and the click event of the level residing for the fragment control at actuation of keys place so that focus can not return the level residing for fragment control at actuation of keys place, so that focus is in controllable state.
The id of the fragment control at A2, level residing for the fragment control at the actuation of keys place determined and described actuation of keys place determines the fragment control of the next level of the level residing for fragment control at described actuation of keys place, loads and show the fragment control of next level of the level residing for fragment control at the described actuation of keys place determined.
The fragment control of the next level of the level residing for fragment control at the described actuation of keys place of A3, the deployment method that basis is preset and display, moves the focus to target fragment control to open menu.
In above-mentioned steps A1~A3, such as, when user presses down button (actuation of keys is opening action), the level residing for fragment control at actuation of keys place is the 2nd layer, then forbid all focuses and the click event of the 2nd layer, load and show the fragment control of the 3rd layer, finally according to default deployment method, as moved the focus to first fragment control of the 3rd layer, now, if receiving the confirmation instruction that user sends, then open the menu that first fragment control of the 3rd layer is corresponding.Repeat step A1~A3, it is possible to constantly open level, and allow focus all the time on the fragment control of topmost a layer.
Step S14, when actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, moves the focus to target fragment control to return menu.
Alternatively, described when actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, move the focus to target fragment control to return menu, specifically include:
B1, when actuation of keys is return action, determine the level residing for the fragment control at actuation of keys place according to described level variable.The value assuming level variable is 2, it is determined that the level residing for fragment control at actuation of keys place is the 2nd layer.
The id of the fragment control at B2, level residing for the fragment control at the actuation of keys place determined and described actuation of keys place determines the fragment control of a upper level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of a upper level of the level residing for fragment control at the described actuation of keys place determined, and, decontrol all focuses and the click event of a upper level of the level residing for fragment control at described actuation of keys place.Due to when opening actuation of keys and being opening action, forbid all focuses and the click event of a upper level of the level residing for fragment control at described actuation of keys place, therefore, when actuation of keys is return action, all focuses and the click event of a upper level of the level residing for fragment control at the actuation of keys place forbidden need to be decontroled.
The fragment control of a upper level of the level residing for fragment control at the described actuation of keys place of B3, the return method that basis is preset and display, moves the focus to target fragment control to return menu.According to default return method, as focus moved to first fragment control of the 1st layer from first fragment control of the 2nd layer, then return the menu that first fragment control of the 1st layer is corresponding.
B4, remove the fragment control that the level residing for fragment control at the actuation of keys place determined shows.Assume that focus moves to first fragment control of the 1st layer from first fragment control of the 2nd layer, then remove the fragment control of the 2nd layer of display.
In the first embodiment of the invention, when user enters interface, load and show the fragment control of middle ground floor at described actuation of keys place, monitoring users is in the actuation of keys of the fragment control of display, when actuation of keys is opening action, the id of the fragment control according to actuation of keys place and default deployment method, move the focus to target fragment control to open menu, when actuation of keys is return action, the id of the fragment control according to actuation of keys place and default return method, move the focus to target fragment control to return menu.Due to when multilevel menu Overlapping display, target fragment control can be directly moved the focus to according to actuation of keys, the id of the fragment control at actuation of keys place and default deployment method, to open menu or to return menu, therefore, without successively opening menu or successively returning menu such that it is able to quickly move the focus in target widget.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and the implementation process of the embodiment of the present invention should not constituted any restriction.
Embodiment two:
Fig. 3 illustrates the structure chart of a kind of focal point control device based on android control that second embodiment of the invention provides, this a kind of focal point control device based on android control can apply in terminal, this terminal can include through the radio access network RAN subscriber equipment communicated with one or more core net, this subscriber equipment can be mobile phone (or being called " honeycomb " phone), there is the computer etc. of mobile equipment, such as, subscriber equipment can also is that portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they are with wireless access network switched voice and/or data.Again such as, this moves equipment and can include smart mobile phone, panel computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..For the ease of illustrating, illustrate only the part relevant to the embodiment of the present invention.
Should include based on the focal point control device of android control: unit 33 opened by main interface loading unit 31, actuation of keys monitoring unit 32, menu, menu returns unit 34.Wherein:
Main interface loading unit 31, for when user enters interface, loading and show the fragment control of ground floor in described interface;Each fragment control is corresponding with a fragment control id.
Specifically, the ground floor at the interface that loading is realized by activity, and in the ground floor loaded, add the fragment control of this ground floor, when adding control to each layer, can be added by dynamic mode, it is possible to added by static mode.Wherein, dynamic addition manner refers to that the program according to presetting is added one by one, namely shows the fragment control of interpolation one by one;And the addition manner of static state refers to the mode according to xml layout, after being loaded by whole fragment controls, another rising shows.The ground floor of the activity loaded is the level defined first, and after this ground floor, the level of definition is the second layer, other the like.
Alternatively, the described focal point control device based on android control includes:
Initialization unit, is used for initializing level variable, and focus is arranged on the fragment control of display, and described level variable is for identifying the level residing for fragment control of display.When loading and show the control of ground floor in described activity, it is 1 by level initialization of variable, simultaneously, focus is arranged in the control of ground floor, so that user knows the position of current control according to the focus arranged, during default initialization, focus is arranged in first control of ground floor.
Actuation of keys monitoring unit 32, for the monitoring users actuation of keys of fragment control in display, described actuation of keys includes: opening action and return action.
Define button (onKeyDown) method at Basefragment apoplexy due to endogenous wind in advance, open (openSubMenu) method and (goBack) method of return.
Alternatively, the described focal point control device based on android control includes:
Key-press event injection unit, the keying method preset for being injected in interface by the key-press event of the fragment control of display, to monitor the actuation of keys of each layer in interface.Specifically, the onKeyDown event of current clip control is injected into the onKeyDown in activity, thus can listen to the actuation of keys of each layer in activity.
Unit 33 opened by menu, for when actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, moving the focus to target fragment control to open menu.
Wherein, the deployment method preset can be: by pressing down Arrow, focus circulation in the fragment control set in advance corresponding relation list with fragment control id is made to select certain fragment control, as when focus is in list last fragment control, continue pressing down Arrow, then focus will be moved into first fragment control in list.
Alternatively, described menu is opened unit 33 and is included:
Click event disabled module, for when actuation of keys is opening action, determining the level residing for the fragment control at actuation of keys place, and forbid all focuses and the click event of the level residing for fragment control at described actuation of keys place according to described level variable.
Next layer menu load-on module, level residing for the fragment control according to the actuation of keys place determined and the id of the fragment control at described actuation of keys place determine the fragment control of the next level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of next level of the level residing for fragment control at the described actuation of keys place determined.
First focus mobile module, the deployment method preset for basis and the fragment control of the next level of the level residing for fragment control at the described actuation of keys place of display, move the focus to target fragment control to open menu.
Menu returns unit 34, for when actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, moving the focus to target fragment control to return menu.
Alternatively, described menu return unit 34 includes:
Level determines module, for when actuation of keys is return action, determining the level residing for the fragment control at actuation of keys place according to described level variable.
Click event decontrols module, level residing for the fragment control according to the actuation of keys place determined and the id of the fragment control at described actuation of keys place determine the fragment control of a upper level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of a upper level of the level residing for fragment control at the described actuation of keys place determined, and, decontrol all focuses and the click event of a upper level of the level residing for fragment control at described actuation of keys place.
Second focus mobile module, the return method preset for basis and the fragment control of a upper level of the level residing for fragment control at the described actuation of keys place of display, move the focus to target fragment control to return menu.
Fragment control removes module, for removing the fragment control that the level residing for fragment control at the actuation of keys place determined shows.
In second embodiment of the invention, due to when multilevel menu Overlapping display, target fragment control can be directly moved the focus to according to actuation of keys, the id of the fragment control at actuation of keys place and default deployment method, to open menu or to return menu, therefore, without successively opening menu or successively returning menu such that it is able to quickly move the focus in target widget.
Those of ordinary skill in the art are it is to be appreciated that the unit of each example that describes in conjunction with the embodiments described herein and algorithm steps, it is possible to being implemented in combination in of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel specifically can should be used for using different methods to realize described function to each, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the specific works process of the system of foregoing description, device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.
If described function is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or the part of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.

Claims (10)

1. the focus control method based on android control, it is characterised in that described method includes:
When user enters interface, load and show the fragment control of ground floor in described interface;Each fragment control is corresponding with a fragment control id;
Monitoring users is in the actuation of keys of the fragment control of display, and described actuation of keys includes: opening action and return action;
When actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, move the focus to target fragment control to open menu;
When actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, move the focus to target fragment control to return menu.
2. method according to claim 1, it is characterised in that in described loading and when showing the fragment control of ground floor in described interface, including:
Initialization level variable, and focus is arranged on the fragment control of display, described level variable is for identifying the level residing for fragment control of display.
3. method according to claim 2, it is characterised in that at described monitoring users when the actuation of keys of the fragment control of display, including:
The key-press event of the fragment control of display is injected into keying method default in interface, to monitor the actuation of keys of each layer in interface.
4. method according to claim 2, it is characterised in that described when actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, moves the focus to target fragment control to open menu, specifically includes:
When actuation of keys is opening action, determines the level residing for the fragment control at actuation of keys place according to described level variable, and forbid all focuses and the click event of the level residing for fragment control at described actuation of keys place;
Level residing for the fragment control at the actuation of keys place determined and the id of the fragment control at described actuation of keys place determine the fragment control of the next level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of next level of the level residing for fragment control at the described actuation of keys place determined;
The fragment control of the next level of the level residing for fragment control according to default deployment method and the described actuation of keys place of display, moves the focus to target fragment control to open menu.
5. method according to claim 2, it is characterised in that described when actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, moves the focus to target fragment control to return menu, specifically includes:
When actuation of keys is return action, determine the level residing for the fragment control at actuation of keys place according to described level variable;
Level residing for the fragment control at the actuation of keys place determined and the id of the fragment control at described actuation of keys place determine the fragment control of a upper level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of a upper level of the level residing for fragment control at the described actuation of keys place determined, and, decontrol all focuses and the click event of a upper level of the level residing for fragment control at described actuation of keys place;
The fragment control of a upper level of the level residing for fragment control according to default return method and the described actuation of keys place of display, moves the focus to target fragment control to return menu;
Remove the fragment control that the level residing for fragment control at the actuation of keys place determined shows.
6. the focal point control device based on android control, it is characterised in that described device includes:
Main interface loading unit, for when user enters interface, loading and show the fragment control of ground floor in described interface;Each fragment control is corresponding with a fragment control id;
Actuation of keys monitoring unit, for the monitoring users actuation of keys of fragment control in display, described actuation of keys includes: opening action and return action;
Unit opened by menu, for when actuation of keys is opening action, according to the id of the fragment control at actuation of keys place and default deployment method, moving the focus to target fragment control to open menu;
Menu returns unit, for when actuation of keys is return action, according to the id of the fragment control at actuation of keys place and default return method, moving the focus to target fragment control to return menu.
7. device according to claim 6, it is characterised in that described device includes:
Initialization unit, is used for initializing level variable, and focus is arranged on the fragment control of display, and described level variable is for identifying the level residing for fragment control of display.
8. device according to claim 7, it is characterised in that described device includes:
Key-press event injection unit, the keying method preset for being injected in interface by the key-press event of the fragment control fragment control of display, to monitor the actuation of keys of each layer in interface.
9. device according to claim 7, it is characterised in that described menu is opened unit and included:
Click event disabled module, for when actuation of keys is opening action, determining the level residing for the fragment control at actuation of keys place, and forbid all focuses and the click event of the level residing for fragment control at described actuation of keys place according to described level variable;
Next layer menu load-on module, level residing for the fragment control according to the actuation of keys place determined and the id of the fragment control at described actuation of keys place determine the fragment control of the next level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of next level of the level residing for fragment control at the described actuation of keys place determined;
First focus mobile module, the deployment method preset for basis and the fragment control of the next level of the level residing for fragment control at the described actuation of keys place of display, move the focus to target fragment control to open menu.
10. device according to claim 7, it is characterised in that described menu returns unit and includes:
Level determines module, for when actuation of keys is return action, determining the level residing for the fragment control at actuation of keys place according to described level variable;
Click event decontrols module, level residing for the fragment control according to the actuation of keys place determined and the id of the fragment control at described actuation of keys place determine the fragment control of a upper level of the level residing for fragment control at described actuation of keys place, load and show the fragment control of a upper level of the level residing for fragment control at the described actuation of keys place determined, and, decontrol all focuses and the click event of a upper level of the level residing for fragment control at described actuation of keys place;
Second focus mobile module, the return method preset for basis and the fragment control of a upper level of the level residing for fragment control at the described actuation of keys place of display, move the focus to target fragment control to return menu;
Fragment control removes module, for removing the fragment control that the level residing for fragment control at the actuation of keys place determined shows.
CN201410849217.XA 2014-12-30 2014-12-30 Focus control method and device based on android control Active CN105808032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849217.XA CN105808032B (en) 2014-12-30 2014-12-30 Focus control method and device based on android control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849217.XA CN105808032B (en) 2014-12-30 2014-12-30 Focus control method and device based on android control

Publications (2)

Publication Number Publication Date
CN105808032A true CN105808032A (en) 2016-07-27
CN105808032B CN105808032B (en) 2019-04-26

Family

ID=56420573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849217.XA Active CN105808032B (en) 2014-12-30 2014-12-30 Focus control method and device based on android control

Country Status (1)

Country Link
CN (1) CN105808032B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658139A (en) * 2016-10-18 2017-05-10 Tcl集团股份有限公司 Focus control method and device
CN107277601A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Video broadcasting method and device
CN107341016A (en) * 2017-06-30 2017-11-10 百度在线网络技术(北京)有限公司 Focus state implementation method, device, terminal and storage medium under split screen mechanism
CN108153564A (en) * 2016-12-02 2018-06-12 北京京东尚科信息技术有限公司 Methods for interface management, equipment and system
CN115079893A (en) * 2021-03-11 2022-09-20 杭州康晟健康管理咨询有限公司 Focus switching method, device, terminal and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546816A (en) * 2013-05-02 2014-01-29 乐视网信息技术(北京)股份有限公司 User interface processing and video playing method and user interface system
CN103546813A (en) * 2013-08-16 2014-01-29 Tcl集团股份有限公司 Android platform based video preview method and smart television
CN103927186A (en) * 2014-04-30 2014-07-16 广州视源电子科技股份有限公司 Function key control method based on Android system
US20140304659A1 (en) * 2013-03-15 2014-10-09 Abdul El-Zarif Multimedia early chilhood journal tablet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304659A1 (en) * 2013-03-15 2014-10-09 Abdul El-Zarif Multimedia early chilhood journal tablet
CN103546816A (en) * 2013-05-02 2014-01-29 乐视网信息技术(北京)股份有限公司 User interface processing and video playing method and user interface system
CN103546813A (en) * 2013-08-16 2014-01-29 Tcl集团股份有限公司 Android platform based video preview method and smart television
CN103927186A (en) * 2014-04-30 2014-07-16 广州视源电子科技股份有限公司 Function key control method based on Android system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王超斌: "基于Android的移动点菜系统的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658139A (en) * 2016-10-18 2017-05-10 Tcl集团股份有限公司 Focus control method and device
CN106658139B (en) * 2016-10-18 2021-04-06 Tcl科技集团股份有限公司 Focus control method and device
CN108153564A (en) * 2016-12-02 2018-06-12 北京京东尚科信息技术有限公司 Methods for interface management, equipment and system
CN107341016A (en) * 2017-06-30 2017-11-10 百度在线网络技术(北京)有限公司 Focus state implementation method, device, terminal and storage medium under split screen mechanism
CN107341016B (en) * 2017-06-30 2020-09-04 百度在线网络技术(北京)有限公司 Focus state implementation method and device under split screen mechanism, terminal and storage medium
CN107277601A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Video broadcasting method and device
CN115079893A (en) * 2021-03-11 2022-09-20 杭州康晟健康管理咨询有限公司 Focus switching method, device, terminal and medium

Also Published As

Publication number Publication date
CN105808032B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN105808032A (en) Focus control method and device based on android control
CN105740078B (en) Memory management method, device and terminal
CN103456298A (en) Method of providing voice recognition service and electronic device therefore
KR102078753B1 (en) Method for controlling layout and an electronic device thereof
RU2677393C2 (en) Method and apparatus for providing graphical user interface
CN105144036A (en) Method for displaying and electronic device thereof
US20130268853A1 (en) Mobile terminal comprising a man/machine interface
CN104360805A (en) Application icon management method and application icon management device
CN105373419A (en) Background application operation method and system
CN103456296A (en) Method for providing voice recognition function and electronic device thereof
CN104238897A (en) Menu item displaying method and device
CN103809871A (en) Processing method and mobile terminal for icon of application program
KR20130041484A (en) Method and apparatus for operating menu screen of user device
CN102937913B (en) A kind of method and device managing default application
WO2015183433A1 (en) Application suggestion features
CN103218128A (en) Method of displaying graphic user interface using time difference and terminal supporting the same
CN106528210A (en) Application running method and apparatus
CN103502933A (en) Dynamically redirecting boot to another operating system
CN109271223A (en) Windows switching method, device, terminal and computer readable storage medium
CN104462496A (en) Search method, device and mobile terminal
CN104007873A (en) Method for determining touch input object and electronic device thereof
CN103135934A (en) Touch-screen mobile device and method and device for switching application program quickly
US20120072458A1 (en) System and method for providing search keyword list
CN104794412A (en) Information input method and device and mobile terminal
CN106293813A (en) A kind of application recommendation method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant