CN106911969B - A kind of focus searching method, device and electronic equipment - Google Patents
A kind of focus searching method, device and electronic equipment Download PDFInfo
- Publication number
- CN106911969B CN106911969B CN201710163632.3A CN201710163632A CN106911969B CN 106911969 B CN106911969 B CN 106911969B CN 201710163632 A CN201710163632 A CN 201710163632A CN 106911969 B CN106911969 B CN 106911969B
- Authority
- CN
- China
- Prior art keywords
- focus
- view
- search
- viewgroup
- sub
- 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
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000008859 change Effects 0.000 claims abstract description 11
- 230000006870 function Effects 0.000 claims description 16
- 239000000571 coke Substances 0.000 claims description 8
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 13
- 230000008569 process Effects 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Optical Recording Or Reproduction (AREA)
Abstract
The embodiment of the present invention provides a kind of focus searching method, device and electronic equipment, is related to smart television and TV box technical field.Focus searching method of the invention includes: the information that focus is read using the focus archive device established when ViewGroup is initialized;If reading the information success of focus, change focal position;If reading the information failure of focus, and the view of ViewGroup is changed by the sub- View number in refreshing or ViewGroup, it is then scanned for using focused search engine focus point View, and the burnt View that falls of search is stored in focus archive device when focused search engine is searched for successfully.Searching method, device and electronic equipment of the invention can be improved the search efficiency of focus, moreover it is possible to which the information accuracy for guaranteeing focus improves the success rate of focus search.
Description
Technical field
The present invention relates to smart television and TV box technical fields, in particular to a kind of focus searching method, device
And electronic equipment.
Background technique
Need to rely on remote controler or mobile phone in Android TV (TV)/box interactive mode, and entire is electric to Android
Depending on control model be: user presses remote controller key or clicks mobile phone, and television equipment receives the signal of remote controler or mobile phone
Analytic signal source is key-press event instruction set afterwards.Then, Android TV or Android box are done according to key-press event instruction set discharges of the coke
The search operation of point, finally, View can make the response for updating view after obtaining focus.Wherein, View is android system
A superclass it be android system application layer interface visualization basic module unit.In the prior art, Android TV or
The focused search engine of Android box lacks memory mechanism during searching for focus, and every secondary focal point can rescan whole when playbacking
A ViewGroup, and focused search engine can traverse entirely in the case of current ViewGroup scanning is had no result
ViewTree, inefficiency are easy to cause focus entanglement and focus loss problem.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of focus searching method, device and electronic equipment,
To improve the prior art when carrying out focus search, inefficiency is easy to cause focus entanglement and focus loss problem.
A kind of focus searching method provided in an embodiment of the present invention, including the use of what is established when ViewGroup is initialized
The information of focus archive device reading focus;If reading the information success of focus, controls the focal position and change;If reading burnt
The information failure of point, and the view of ViewGroup is changed by the sub- View quantity in refreshing or ViewGroup, then utilizes
Focused search engine focus point View is scanned for, and is stored in the burnt View that falls of search when focused search engine is searched for successfully
The focus archive device.
The present invention also embodiment provides a kind of focus search device, and described device includes: read module, for utilizing
The focus archive device that ViewGroup is established when initializing reads the information of focus;First execution module, if for reading focus
Information success then controls the focal position and changes;Second execution module, if the information for reading focus fails, and
The view of ViewGroup is changed by the sub- View quantity in refreshing or ViewGroup, then is focused using focused search engine
Point View is scanned for, and the burnt View that falls of search is stored in the focus archive device when focused search engine is searched for successfully.
The present invention also embodiment provides a kind of electronic equipment, and the electronic equipment includes: memory;Processor;And focus
Searcher, the focus search device are installed in the memory and are executed by the processor including one or more
Software function module, the focus search device includes: read module, is established for utilization when ViewGroup is initialized
The information of focus archive device reading focus;First execution module, if the information success for reading focus, controls the focus
Position change;Second execution module, if the information for reading focus fails, and the view of ViewGroup refreshed or
Sub- View quantity in ViewGroup changes, then is scanned for using focused search engine focus point View, and in focus
The burnt View that falls of search is stored in the focus archive device when search engine is searched for successfully.
Compared with prior art, focus searching method of the invention, device and electronic equipment are calculated by being added using FIFO
The focus archive device that method is established, the relevant information of View can be stored, and focus archive device, which has, to be achieved, deletes shelves and reading
Function, when carrying out focus search, first with focus archive device read focus information, can be improved the reading of focus
Speed, if reading the information failure of focus, the system for recycling electronic equipment carries the search that focused search engine carries out focus,
Prevent focus loss.And after focused search engine searches focus, first the relevant information for reading the successful View of focus is deposited
It stores up into focus archive device, focus archive device is recycled to be read out, can prevent from refreshing the focus entanglement problem caused because of view.
Searching method, device and the electronic equipment of the embodiment of the present invention can be improved the search efficiency of focus, moreover it is possible to guarantee the letter of focus
Accuracy is ceased, the success rate of focus search is improved.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the structural block diagram for the electronic equipment that first embodiment of the invention provides.
Fig. 2 shows the multiple View shown in the display unit of the electronic equipment of first embodiment of the invention offer.
Fig. 3 is the functional block diagram for the focus search device that first embodiment of the invention provides.
Fig. 4 is the block diagram for the focus archive device that first embodiment of the invention provides.
Fig. 5 is the flow chart for the focus searching method that second embodiment of the invention provides.
Fig. 6 is the flow chart for the focus searching method that third embodiment of the invention provides.
Icon: 10- electronic equipment;101- memory;102- storage control;103- processor;104- Peripheral Interface;
105- display unit;106- audio unit;107- input-output unit;200- focus search device;201- read module;202-
First execution module;The second execution module of 203-;204- establishes module;205- focus local search module;300- focus achieves
Device.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, with+under claimed invention is not intended to limit to the detailed description of the embodiment of the present invention provided in the accompanying drawings
Range, but be merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Referring to FIG. 1, being the structural block diagram for the electronic equipment 10 that first embodiment of the invention provides, the embodiment of the present invention is mentioned
The focus search device 200 of confession can be applied in electronic equipment 10.The electronic equipment 10 may be, but not limited to, intelligent electricity
Depending on, TV box etc..The operating system of the electronic equipment 10 may be, but not limited to, Android (Android) system etc..It is excellent
Choosing, the electronic equipment 10 of the embodiment of the present invention is Android TV or Android box.
In the embodiment of the present invention, the electronic equipment 10 further includes memory 101, storage control 102, processor
103, Peripheral Interface 104, display unit 105, audio unit 106 and input-output unit 107.
The memory 101, storage control 102, processor 103, Peripheral Interface 104, display unit 105, audio list
Member 106 and input-output unit 107, each element are directly or indirectly electrically connected between each other, to realize the transmission of data
Or interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.It is described
Focus search device 200 include at least one the memory can be stored in the form of software or firmware (firmware)
In 101 or the software function module that is solidificated in the operating system (operating system, OS) of the electronic equipment 10.Institute
Processor 103 is stated for executing the executable module stored in memory 101, for example, the focus search device 200 includes
Software function module or computer program.
Processor 103 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 103 can
To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit
(Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), specific integrated circuit (ASIC),
Ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard
Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor
It can be microprocessor or the processor 103 be also possible to any conventional processor etc..
Various input/output devices are couple processor 103 and memory 101 by the Peripheral Interface 104.Some
In embodiment, Peripheral Interface 104, processor 103 and storage control 102 can be realized in one single chip.Other one
In a little examples, they can be realized by independent chip respectively.
Display unit 105 provides an interactive interface (such as user's operation circle between the electronic equipment 10 and user
Face) or for display image data give user reference.In the present embodiment, the display unit 105 can be liquid crystal display
Or touch control display.
Audio unit 106 provides a user audio interface, may include one or more microphones, one or more raises
Sound device and voicefrequency circuit.
Input-output unit 107 is used to be supplied to the interaction that user input data realizes user and the electronic equipment 10.
The input-output unit 107 may be, but not limited to, remote controler and smart phone etc..
The focus search device 200 in ViewGroup for carrying out the search of focus, so that after obtaining focus
View makes view update, and shows on display unit 105.View and ViewGroup is the basic module of Android UI,
ViewGroup is the basic container unit of View, may include one group of View, and ViewGroup itself is exactly View
Extension, View indicate one piece of rectangular area on screen, are responsible for drawing this region and event handling.
As shown in Fig. 2, showing the image of the View1-View4 shown in display unit 105, each View indicates aobvious
Show one piece of region on unit 105 (such as video screen), the View1-View4 in figure can be the son in a ViewGroup
View。
Referring to FIG. 3, being the functional block diagram for the focus search device 200 that first embodiment of the invention provides.This
In embodiment, the focus search device 200 includes establishing module 204, read module 201, the first execution module 202 and second
Execution module 203.
It is described to establish module 204, for establishing focus archive device 300 (please referring to Fig. 4) according to FIFO algorithm.Specifically,
Focus archive device 300 is established when ViewGroup initialization, it is preferred that the capacity of the focus archive device 300 is
The sub- View quantity of the sub- View quantity of ViewGroup, ViewGroup can be transferred directly by the data of ViewGroup.
Referring to FIG. 4, the block diagram for the embodiment of the present invention focus archive device 300 states focus archive device 300 for depositing
The relevant information for storing up the sub- View in ViewGroup, could quilt when needing to obtain focus due to the relevant information of sub- View
The focus search device 200 knows, therefore focus archive device 300 is for storing the relevant information for falling burnt View.Wherein, coke is fallen
View is the sub- View for once obtaining overfocus.It is described fall burnt View relevant information include the title for falling burnt View, type,
Position and coordinate value.
There are the focus archive device 300 established using FIFO algorithm the mobile Container elements in a manner of queue first to eliminate bottom
Portion's element is inserted into new element, i.e., first eliminates the access time longest relevant information for falling burnt View, is inserted into and new falls coke
The relevant information of View, therefore focus archive device 300 has the function of deleting shelves and archive.
Referring again to Fig. 3, the read module 201, for reading the information of focus using focus archive device 300.It reads
The process for taking focus information is exactly to judge whether according to the relevant information for falling burnt View stored in focus archive device 300 in fact
Having can make focus fall burnt View.It is at the time of reading to prevent concurrent bring memory overflow risk from can use weak reference (Weak
Refernece) object reference for falling burnt View is wrapped up.
First execution module 202, when reading the information success of focus for the read module 201, described in control
Focal position changes.That is, being moved to focus on the View for getting focus at this time from View before.
Second execution module 203, when for reading the information failure of focus when the read module 201, and
The view of ViewGroup is changed by the sub- View quantity in refreshing or ViewGroup, then is focused using focused search engine
Point View is scanned for.Wherein, focused search engine is the system foundation nearby principle of electronic equipment 10 according to counterclockwise
Carry out the capture of focus View.Wherein, focus View is that can get focus condition to obtain coke-like state, belongs to the son of ViewGroup
View。
If focused search engine is searched for successfully, the relevant information that burnt View will be fallen when focus search is successful is stored in the focus
Archive device 300.Make and the matched focus View of focus, the related letter of this focus View due to existing after focus search success
Breath can be acquired, the relevant information of this focus View is stored in focus archive device 300, this process is to fall burnt View deposit institute
State focus archive device 300.
In this way, the system of electronic equipment 10 can also be passed through even if focus archive device 300 cannot successfully read focus information
Included focused search engine carries out the search of focus View again, and finding out can make focus successfully fall burnt View, on the one hand may be used
On the other hand focus archive device 300 can be made more by effectivelying prevent focus information to refresh bring archive device search Problem of Failure
It is perfect, have the function of self-teaching, is provided when searching for focus for next time conveniently.
In the embodiment of the present invention, the focus search device 200 further includes focus local search module 205, in institute
It states and carries out focus local search in ViewGroup.Specifically, the quantity according to the sub- View in ViewGroup is judged, if
The quantity of sub- View is 0, then terminates focus local search;If the quantity of sub- View is greater than 0, and all sub- View obtain coke-like state
For unavailable focus condition (focusable=false), then focus local search is terminated;If the quantity of sub- View is greater than 0,
And there are the sub- View that focus View, focus View are available focus, then focus is read using the focus archive device 300
Information.
Second embodiment
Referring to FIG. 5, being the flow diagram for the focus searching method that second embodiment of the invention provides.It needs to illustrate
It is that focus searching method of the present invention is not limitation with Fig. 5 and specific order as described below.It should be appreciated that
In other embodiments, the sequence of focus searching method part step of the present invention can be handed over mutually according to actual needs
It changes or part steps therein also can be omitted or delete.Detailed process shown in fig. 5 will be described in detail below.
Referring to Fig. 5, the focus searching method includes:
Do step S101, the information that focus archive device 300 reads focus succeed?
Read module 201 is read out using the information of 300 focus point of focus archive device, judges that the information for reading focus is
Whether no success, i.e., having in the described focus archive device 300 can make focus successfully fall burnt View.The focus archive device 300
Multiple relevant informations for falling burnt View are stored with, falling burnt View is the sub- View for once obtaining overfocus, falls burnt View correlation letter
Breath includes title, type, position and the coordinate value for falling burnt View.
If focus archive device 300 reads the information success of focus, step S102 is carried out, if reading failure, into
Row step S103.
Step S102, after focus archive device 300 reads the information success of focus, View in focus archive device 300 at
Function obtains focus, shifts focus to this View, the displacement of focus changes.In the present embodiment, the step S102 can be by
One execution module 202 executes.
It needs to prevent it is to be noted that obtaining the relevant information of focal View in focus archive device 300 can be deleted
When lower secondary focal point archive device 300 reads the information of focus, make to obtain focal View and obtain focus again, focus entanglement occurs
The problem of.
Step S103, focus archive device 300 read focus information failure when, judge ViewGroup view whether by
Refresh or sub- View quantity change?
Due to focus archive device 300 store be sub- View in ViewGroup relevant information, if focus archive device
300 read the information failure of focus, when the view of ViewGroup is refreshed or sub- View quantity changes, ViewGroup
Inside being also likely to be present can make focus successfully fall burnt sub- View.If the view of ViewGroup is not refreshed or sub- View number
No change has taken place for amount, then terminates the search of focus;If the view of ViewGroup is refreshed or sub- View quantity changes,
In order to guarantee the comprehensive, complete of search, scanned for using focused search engine focus point View.
Are step S104, focused search engine focus point View searched for successfully?
If focused search engine focus point View search failure, terminates search;If focused search engine searches out focus
View, and this focus can make focus successfully fall coke, then enter step S105.
The burnt View that falls of search is stored in the focus archive device 300 by step S105.
Focus can be made successfully to fall burnt focus View since focused search engine searches, focus archive device 300 can incite somebody to action
The relevant information of this View stores.After needing it is to be noted that the relevant information of this View is stored, focus archive device is recycled
300 go to read the information of focus, in this way, can prevent from refreshing the focus entanglement problem caused because of view.
In the present embodiment, step S105 can be executed by the second execution module 203.
3rd embodiment
Referring to FIG. 6, being the flow diagram for the focus searching method that third embodiment of the invention provides.It needs to illustrate
It is that focus searching method of the present invention is not limitation with Fig. 6 and specific order as described below.It should be appreciated that
In other embodiments, the sequence of focus searching method part step of the present invention can be handed over mutually according to actual needs
It changes or part steps therein also can be omitted or delete.Detailed process shown in fig. 6 will be described in detail below.
Referring to Fig. 6, the focus searching method of the present embodiment and the difference of second embodiment are, the present embodiment is in the step S101
It before further include step S106 and in step S107.
Step S106 carries out focus local search in ViewGroup.
Specifically, can be scanned for the focus in ViewGroup according to focused search engine, can find out described
Whether the sub- View of available focus is had in ViewGroup.
In the present embodiment, the step S106 can be executed by focus local search module 205.
Step S107, the quantity of sub- View is greater than 0 and there are focus View?
Quantity according to the sub- View in ViewGroup is judged, if the quantity of sub- View is 0, terminates focus office
Portion's search;If the quantity of sub- View is greater than 0, and the coke-like state that obtains of all sub- View is unavailable focus condition (focusable
=false), then terminate focus local search;If the quantity of sub- View is greater than 0, and is that can obtain there are focus View, focus View
The sub- View of focus is obtained, then reads the information of focus using the focus archive device 300.
It needs it is to be noted that the focus archive device 300 is built when ViewGroup is initialized using FIFO algorithm
Vertical, when being scanned for for the first time using the focus searching method of the present embodiment, may not have in the focus archive device 300
There is storage to fall the relevant information of burnt View.It is greater than 0 in the quantity of sub- View and local foci search module searches and can make coke
When putting the View for successfully falling coke, then the relevant information that focus can be made successfully to fall burnt View is stored to focus archive device 300,
Step 101 is executed again.
In conclusion focus searching method provided in an embodiment of the present invention, device and electronic equipment, are utilized by being added
The focus archive device that FIFO algorithm is established, the relevant information of View can be stored, and focus archive device, which has, to be achieved, deletes shelves
The information of focus is read first with focus archive device, can be improved focus when carrying out focus search with the function of reading
Reading speed, if read focus information failure, recycle electronic equipment system carry focused search engine carry out focus
Search, prevent focus loss.And after focused search engine searches focus, the correlation of the successful View of focus will be first read
Information is stored into focus archive device, and focus archive device is recycled to be read out, and can prevent from refreshing the focus caused mistake because of view
Random problem.Searching method, device and the electronic equipment of the embodiment of the present invention can be improved the search efficiency of focus, moreover it is possible to guarantee burnt
The information accuracy of point, improves the success rate of focus search.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of focus searching method characterized by comprising
The information of focus is read using the focus archive device established when ViewGroup is initialized;
If reading the information success of focus, controls the focal position and change;
If reading the information failure of focus, and the view of ViewGroup is occurred by the sub- View quantity in refreshing or ViewGroup
Change, is then scanned for using focused search engine focus point View, and when focused search engine is searched for successfully by search
It falls burnt View and is stored in the focus archive device.
2. focus searching method according to claim 1, which is characterized in that described using when ViewGroup is initialized
The focus archive device of foundation was read before the step of information of focus, further includes:
Obtain the quantity of the sub- View in the ViewGroup;
Focus archive device is established based on FIFO algorithm, the capacity of the focus archive device is arranged in the quantity according to sub- View.
3. focus searching method according to claim 2, which is characterized in that the son obtained in the ViewGroup
It further include that focus local search is carried out in the ViewGroup is described to find before the step of quantity of View
The sub- View of available focus in ViewGroup, comprising:
If the quantity of the sub- View is 0, focus local search is terminated;
If the quantity of the sub- View is greater than 0, and the coke-like state that obtains of all sub- View is unavailable focus condition, then terminates coke
Point local search;
If the quantity of the sub- View is greater than 0, and is the sub- View that can get focus there are focus View, focus View, then hold
It goes described the step of reading the information of focus using the focus archive device established in ViewGroup initialization.
4. focus searching method according to claim 1, which is characterized in that the focus archive device is used for falling burnt View
Relevant information stored, it is described that fall burnt View relevant information include title, type, position and the coordinate for falling burnt View
Value, it is described to fall the sub- View that burnt View is acquisition overfocus.
5. focus searching method according to claim 1, which is characterized in that the focus searching method further include: in coke
When point search engine search fails, terminates and search for and keep the position of focus constant.
6. a kind of focus search device, which is characterized in that described device includes:
Read module, for reading the information of focus using the focus archive device established when ViewGroup is initialized;
First execution module, if the information success for reading focus, controls the focal position and change;
Second execution module, if the information for reading focus fails, and the view of ViewGroup is refreshed or ViewGroup
Interior sub- View quantity changes, then is scanned for using focused search engine focus point View, and in focused search engine
The burnt View that falls of search is stored in the focus archive device when searching for successfully.
7. focus search device according to claim 6, which is characterized in that described device further includes establishing module, is used for
Obtain the quantity of the sub- View in the ViewGroup;And
Focus archive device is established based on FIFO algorithm, the capacity of the focus archive device is arranged in the quantity according to sub- View.
8. focus search device according to claim 7, which is characterized in that further include focus local search module, be used for
Focus local search is carried out in the ViewGroup to find the sub- View of the available focus in the ViewGroup,
In:
If the quantity of the sub- View is 0, focus local search end-of-module focus local search;
If the quantity of the sub- View is greater than 0, and the coke-like state that obtains of all sub- View is unavailable focus condition, focus part
Search module terminates focus local search;
If the quantity of the sub- View is greater than 0, and is the sub- View that can get focus there are focus View, focus View, described
The information of focus archive device reading focus.
9. focus search device according to claim 6, which is characterized in that the focus archive device is used for falling burnt View
Relevant information stored, it is described that fall burnt View relevant information include title, type, position and the coordinate for falling burnt View
Value, it is described to fall the sub- View that burnt View is acquisition overfocus.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory;
Processor;And
Focus search device, the focus search device are installed in the memory and including one or more by the processing
The software function module that device executes, the focus search device include:
Read module, for reading the information of focus using the focus archive device established when ViewGroup is initialized;
First execution module, if the information success for reading focus, controls the focal position and change;
Second execution module, if the information for reading focus fails, and the view of ViewGroup is refreshed or ViewGroup
Interior sub- View quantity changes, then is scanned for using focused search engine focus point View, and in focused search engine
The burnt View that falls of search is stored in the focus archive device when searching for successfully.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710163632.3A CN106911969B (en) | 2017-03-17 | 2017-03-17 | A kind of focus searching method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710163632.3A CN106911969B (en) | 2017-03-17 | 2017-03-17 | A kind of focus searching method, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106911969A CN106911969A (en) | 2017-06-30 |
CN106911969B true CN106911969B (en) | 2019-09-20 |
Family
ID=59187347
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710163632.3A Active CN106911969B (en) | 2017-03-17 | 2017-03-17 | A kind of focus searching method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106911969B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107368243B (en) * | 2017-07-05 | 2019-09-10 | 武汉斗鱼网络科技有限公司 | View scrolling method, device and smart television |
CN110286973B (en) * | 2019-05-14 | 2022-10-04 | 深圳康佳电子科技有限公司 | Key triggering event processing method, intelligent terminal and storage medium |
-
2017
- 2017-03-17 CN CN201710163632.3A patent/CN106911969B/en active Active
Non-Patent Citations (3)
Title |
---|
Android View框架总结(二)View焦点;逆流的鱼yuiop;《https://blog.csdn.net/hejjunlin/article/details/52263256》;20160820;全文 * |
android 焦点获取流程;程序园;《android 焦点获取流程》;20140715;全文 * |
从源码出发浅析Android TV的焦点移动原理;疯狂大剑豪;《https://blog.csdn.net/archer_zoro/article/details/60605578》;20170306;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN106911969A (en) | 2017-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106126108B (en) | A kind of generation method and mobile terminal of thumbnail | |
US8356753B2 (en) | Method for multi-type barcode recognition, computer readable medium, and barcode recognition apparatus | |
CN103902158A (en) | Method and terminal for managing application icon | |
CN105868353A (en) | Photograph clearing method and terminal | |
CN106033418B (en) | Voice adding and playing method and device, and picture classifying and retrieving method and device | |
CN110018920A (en) | A kind of detection method, device and the equipment of page presentation exception | |
CN108171267A (en) | User group partitioning method and device, information push method and device | |
CN110688009B (en) | Application program access method and device for folding screen terminal | |
CN111857508A (en) | Task management method and device and electronic equipment | |
CN109922298A (en) | Meeting room monitoring method and device | |
KR20150063953A (en) | Apparatus and method for displaying images | |
CN109947671A (en) | A kind of address conversion method, device, electronic equipment and storage medium | |
CN106911969B (en) | A kind of focus searching method, device and electronic equipment | |
CN115830776A (en) | Method and device for accessing parts based on shared storage cabinet and electronic equipment | |
WO2022041609A1 (en) | Icon arrangement method and apparatus, storage medium, and electronic device | |
CN103677519A (en) | Method for collecting multimedia resource, terminal and server | |
CN1929663B (en) | Mobile communication terminal and data processing method using thereof | |
CN105808674A (en) | Picture display method and device and electronic equipment | |
CN110413577A (en) | Data-erasure method, device, electronic equipment and computer readable storage medium | |
CN106973164B (en) | A kind of take pictures weakening method and the mobile terminal of mobile terminal | |
CN106998489B (en) | A kind of focus is crossed the border searching method and device | |
CN109697264A (en) | The method for arranging of page elements, calculates equipment and storage medium at device | |
CN105786986A (en) | Photo search method and device | |
CN111813988B (en) | HNSW node deletion method, system, device and medium for image feature library | |
CN108388462A (en) | Element alteration notification method, device and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |