WO2017161770A1 - 一种焦点框的控制方法及装置 - Google Patents

一种焦点框的控制方法及装置 Download PDF

Info

Publication number
WO2017161770A1
WO2017161770A1 PCT/CN2016/089323 CN2016089323W WO2017161770A1 WO 2017161770 A1 WO2017161770 A1 WO 2017161770A1 CN 2016089323 W CN2016089323 W CN 2016089323W WO 2017161770 A1 WO2017161770 A1 WO 2017161770A1
Authority
WO
WIPO (PCT)
Prior art keywords
focus frame
focus
item
list
recyclable
Prior art date
Application number
PCT/CN2016/089323
Other languages
English (en)
French (fr)
Inventor
郦龙
Original Assignee
乐视控股(北京)有限公司
乐视网信息技术(北京)股份有限公司
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 乐视控股(北京)有限公司, 乐视网信息技术(北京)股份有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/245,614 priority Critical patent/US20170277362A1/en
Publication of WO2017161770A1 publication Critical patent/WO2017161770A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-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

Definitions

  • the present invention relates to the field of multimedia technologies, and in particular to a method and an apparatus for controlling a focus frame.
  • the Android UI system running on the TV platform is based on the control as the basic display unit.
  • Each control has a property: focus, and each control has only two focus states: with or without, the control with focus, the default is in appearance. There is no change in it. In order to indicate to the user which control is currently in focus, it needs to be displayed through the focus frame. Therefore, when the focus shifts, the focus frame must appear on the newly focused control as soon as possible.
  • Android UI system in the Android slide control RecyclerView (recyclable list) you can easily achieve 1D and 2D list layout, set cell spacing, set focus transfer rules, etc., but when you keep pressing the select focus box button or continuous fast On time, the loss of the focus frame may occur.
  • the list does two things: (1) slides the fifth item into the screen; (2) lets the fifth item get the focus; but since the Android UI receives a key press event, the item that currently has the focus loses focus, then Search, find the right controls to receive, and RecyclerView will only cache the most recent off-screen items, items farther from the screen are not in the cache, so when the user presses the button quickly, or directly press and hold, the Android UI system will continue Received a lot of buttons Member, and another time interval Very short, when the Android UI system receives the first button event, let the fifth item slide into the screen, and let the fifth item get the focus, then the fifth item will get the focus quickly, but the sliding is slow, not yet Sliding completely into the screen, because the user presses the button, so there will be a second button event incoming, because the fifth item does not slide in place, the sixth item does not enter the buffer range of the RecyclerView (recyclable list), Android The UI system will let the fifth item lose focus, and then search for the nearest control on
  • this control does not exist (the sixth item does not enter the cache range).
  • the top left of the screen will be displayed.
  • the control A of the corner gets the focus. If you continue to press and hold the focus button to the right, the fifth item slides into the screen, and then the focus and focus frame are transferred to the A control, then the B control, and the focus frame does not move according to the user's needs. .
  • the probability of occurrence of the above problem depends on the length of time required for the RecyclerView to slide. In most cases, in order to display a smooth sliding effect, this time is set longer, so the focus is lost during use. The chances of occurrence are great.
  • an object of the present invention is to provide a method and apparatus for controlling a focus frame that prevents loss of focus.
  • the control method of the focus frame provided by the present invention based on the above object includes
  • the focus frame is frozen at the current position
  • the recyclable list item is placed at a position covered by the focus frame, so that the item covered by the focus frame acquires a focus.
  • the step of calculating the recyclable list item corresponding to the current position of the focus frame comprises:
  • the item is the recyclable list item corresponding to the current position of the focus frame.
  • the step of calculating the recyclable list item corresponding to the current position of the focus frame includes:
  • the item in the sliding direction is the recyclable list item corresponding to the current position of the focus frame.
  • the method further includes: unfreezing the focus frame, receiving a focus frame movement instruction, and moving the focus frame in accordance with the command direction.
  • the method of freezing the focus frame at a current position includes: disconnecting a focus monitor of the focus frame, and maintaining the focus frame position unchanged;
  • the method for unfreezing a focus frame includes reconnecting a focus monitor of the focus frame, and canceling an operation of maintaining the position of the focus frame unchanged.
  • the present invention also provides a control device for a focus frame, comprising:
  • a listening module for listening to a sliding event of a recyclable list
  • a focus frame control module configured to freeze the focus frame at the current position when the monitoring module monitors the start of the sliding of the recyclable list
  • Calculating a focus box corresponding item module configured to calculate the recyclable list item corresponding to a current position of the focus frame when the listening module monitors the end of sliding;
  • Obtaining a focus module configured to place the recyclable list item at a position covered by the focus frame, so that an item covered by the focus frame acquires a focus.
  • the calculating a focus box corresponding project module includes:
  • a first acquiring coordinate unit configured to acquire coordinates of four corners of the focus frame and center point coordinates of each item in the recyclable list
  • a first coordinate comparison unit for determining coordinates of four corners of the focus frame and center point coordinates of each item of the recyclable list
  • Determining a project unit wherein a rectangular area formed by coordinates of four corners of the focus frame includes a center point of one of the items of the recyclable list, and determining that the item is the recyclable list corresponding to a current position of the focus frame project.
  • the calculating a focus box corresponding project module includes:
  • a coordinate comparison unit configured to compare coordinates of four corners of the focus frame with four angular coordinates of each item in the recyclable list
  • Determining a project unit when the coordinates of the four corners of the focus frame are the same as the four corner coordinates of one of the items of the recyclable list, determining that the loop list item is the corresponding one of the current positions of the focus frame Loop list item;
  • the focus frame control module is further configured to: after the item acquires the focus, unfreeze the focus frame on the item, receive a focus frame movement instruction, and move the focus frame according to the instruction direction.
  • the focus frame control module is configured to: when the focus frame needs to be frozen: disconnect the focus monitor of the focus frame, and keep the focus frame position unchanged;
  • the control method and apparatus for the focus frame provided by the present invention provide the focus frame control module to freeze the focus frame at the current position after the monitor module monitors the rotatable list and starts sliding.
  • the monitoring module monitors the end of the recyclable list, and the corresponding project module of the focus frame calculates an item of the recyclable list under the focus frame according to the position of the focus frame, and sets the item by acquiring the focus module.
  • the position covered by the focus frame allows the focus to be obtained, and the result that the final focus frame and the focus are all on the same item is solved, and the focus frame is misplaced when the focus button is pressed continuously, and the screen slides into the screen. The project unexpectedly lost focus on the issue.
  • a second determining item unit is set in the calculation focus block corresponding item module, and is used to determine that when two adjacent items of the same angle coordinate fall within the coordinate range of the four corners of the focus frame, the sliding direction is
  • the item is the recyclable list item corresponding to the current position of the focus frame, which is visually smoother and improves the user experience.
  • FIG. 1 is a schematic diagram of a focus frame of a recyclable list of an Android TV system in the prior art
  • FIG. 2 is a schematic diagram of a focus frame provided by the present invention.
  • Embodiment 3 is a flowchart of Embodiment 1 of a method for controlling a focus frame provided by the present invention
  • Embodiment 4 is a flowchart of Embodiment 2 of a method for controlling a focus frame provided by the present invention
  • FIG. 5 is a schematic diagram of Embodiment 1 of a control device for a focus frame provided by the present invention.
  • FIG. 6 is a schematic diagram of Embodiment 2 of a control device for a focus frame provided by the present invention.
  • FIG. 7 is a schematic diagram of an embodiment of a smart terminal provided by the present invention.
  • the method for controlling a focus frame includes:
  • Step 101 Listen to a sliding event of the recyclable list, where the sliding event includes a sliding start and a sliding end;
  • a listening module can be set for monitoring a sliding event of a recyclable list.
  • Step 102 When the sliding of the recyclable list is started, the focus frame is frozen at a current position
  • Step 103 When the sliding end is monitored, calculate the recyclable list item corresponding to the current position of the focus frame;
  • Step 104 The recyclable list item is placed at a position covered by the focus frame, so that the item covered by the focus frame acquires a focus.
  • the present invention sets the listening module, when the focus frame has moved to the edge of the screen (as shown in item 1 of FIG. 1), if the user presses the right selection button, he wants to select other items in the recyclable list, such as items 5, 6. 7, (as shown in Figure 2), etc., after the listening module listens to the start of the rotatable list, the system freezes the focus frame at the current position. Since the focus frame is set on the upper layer of the recyclable list, it can be cycled. The list continues to slide. When the user releases the button, the loop list stops sliding. According to the position of the focus frame, the number of items under the focus frame is calculated, for example, the sixth item, and the item 6 of the recyclable list is placed in the focus frame to be covered. The location allows Project 6 to get the focus.
  • step 103 the step of calculating the recyclable list item corresponding to the current position of the focus frame in step 103 is:
  • Step 103a acquiring coordinates of four corners of the focus frame and center point coordinates of each item in the recyclable list
  • Step 103b using the coordinates of the four corners of the focus frame and the center point coordinates of each item of the recyclable list to make an inclusion judgment
  • Step 103c If the rectangular area formed by the coordinates of the four corners of the focus frame contains the center point of one of the items of the recyclable list, it is determined that the item is the recyclable list item corresponding to the current position of the focus frame.
  • the coordinates of the four corners defining the focus frame are (a, i) (a, j) (b, i) (b, j) and the coordinates of the center point defining each item in the recyclable list are (x1, y1) (x2, y2) (x3, y3) (x4, y4) (x5, y5) (x6, y6)........; for example, when the center point of one of the items of the recyclable list (x3 , y3), when x3 ⁇ (a,b), y3 ⁇ (i,j), the rectangular area formed by the coordinates of the four corners of the visible focus frame contains the center point (x3, y3) of one of the items in the recyclable list. And determining that the center point coordinate is (x3, y3), the item is the recyclable list item corresponding to the current position of the focus frame.
  • the size of the focus frame is the same as the size of a single recyclable list item.
  • the loop list stops sliding.
  • the recurring list item displayed below the focus frame may be a complete item or a phase. Part of the two adjacent items, the coordinates of the four corners of the focus frame and the coordinates of each item center point of the recyclable list are used to determine the inclusion, and the item in the center refocus frame is selected as the current position of the focus frame.
  • the project avoids the fact that part of the two items are displayed in the focus frame at the same time, the focus is selected in a disordered state, and the item corresponding to the focus frame is accurately selected.
  • the step of calculating the recyclable list item corresponding to the current position of the focus frame as described in step 103 of FIG. 4 is:
  • Step 103d acquiring coordinates of four corners of the focus frame and each item in the recyclable list Four angular coordinates
  • Step 103e comparing coordinates of four corners of the focus frame with four angular coordinates of each item in the recyclable list
  • Step 103f when the four corner coordinates of one of the items of the recyclable list are the same as the four corner coordinates of the focus frame (the focus frame displays a complete item), determining that the loop list item is the focus box corresponding to The recyclable list item;
  • step 103g when the adjacent angular coordinates of the two items fall within the coordinate range of the four corners of the focus frame at the same time, it is determined that the item in the sliding direction is the recyclable list item corresponding to the current position of the focus frame.
  • the corresponding item in the recyclable list is placed at the position covered by the focus frame, so that the item covered by the focus frame acquires a focus, for example, as shown in FIG. Left sliding, if the adjacent two items 6 and 7 are displayed below the focus frame when the slide is stopped, if it is calculated that the reversible list item corresponding to the current position of the focus frame is 6, then the slide list needs to be right Sliding, so that item 6 completely enters the coverage of the focus frame, at this time, there will be a visual sensation, which affects the user's visual experience.
  • the method further includes:
  • Step 105 Unfreeze the focus frame, receive a focus frame movement instruction, and move the focus frame according to the command direction.
  • the method of freezing the focus frame further includes: breaking the focus monitor of the focus frame to keep the focus frame position unchanged; and the method of releasing the focus frame includes: reconnecting the focus of the focus frame Listening, undoing the operation of keeping the position of the focus frame unchanged.
  • the control method of the focus frame provided by the present invention, after setting the listening module, after the snooping list is started to slide, the system freezes the focus frame at the current position, and when the user releases the button, the listening module listens to the recyclable list and ends the sliding. After that, the item of the recyclable list under the focus frame is calculated according to the position of the focus frame, and the item is placed at the position covered by the focus frame to obtain the focus, and the result that the final focus frame and the focus are all on the same item is obtained. Simple and efficient solution to the continuous selection of focus frames When the button is pressed, the focus frame is misplaced, and the item that slides into the screen unexpectedly loses focus.
  • the focus box control method provided by the present invention is applied to an Android TV system, including:
  • Step 101 Listening to a sliding event of a recyclable list (RecyclerView), the sliding event including a sliding start and a sliding end;
  • a sliding listener can be set for listening to the sliding event of the recyclable list.
  • Step 102 When the sliding of the recyclable list (RecyclerView) is started, the focus frame is frozen at a current position;
  • the method of freezing the focus frame at the current position in the step includes: focusing the focus of the focus frame, and maintaining the position of the focus frame unchanged.
  • Step 103 When the sliding end is monitored, calculate the recyclable list item corresponding to the current position of the focus frame;
  • the method for calculating the recyclable list item corresponding to the current position of the focus frame in the step includes:
  • Step 103a acquiring coordinates of four corners of the focus frame and center point coordinates of each item in the recyclable list
  • Step 103b using the coordinates of the four corners of the focus frame and the center point coordinates of each item of the recyclable list (RecyclerView) to make an inclusion judgment;
  • Step 103c if the rectangular area formed by the coordinates of the four corners of the focus frame contains the center point of one of the items of the recyclable list, determining that the item is the recyclable list item corresponding to the current position of the focus frame;
  • the coordinates of the four corners defining the focus frame are (a, i) (a, j) (b, i) (b, j) and the coordinates of the center point defining each item in the recyclable list are (x1, y1) (x2, y2) (x3, y3) (x4, y4) (x5, y5) (x6, y6)........; for example, when the center point of one of the items of the recyclable list (x3 , y3), when x3 ⁇ (a,b), y3 ⁇ (i,j), the rectangular area formed by the coordinates of the four corners of the visible focus frame contains the center point (x3, y3) of one of the items in the recyclable list. And determining that the center point coordinate is (x3, y3), the item is the recyclable list item corresponding to the current position of the focus frame.
  • Step 104 The RecyclerView item is placed at a position covered by the focus frame, so that the item covered by the focus frame acquires a focus.
  • the method further includes:
  • Step 105 unfreezing the focus frame, and receiving a focus frame movement instruction according to the instruction side Move the focus frame;
  • the method for releasing the focus frame in the step includes: reconnecting the focus monitor of the focus frame, and canceling the operation of keeping the position of the focus frame unchanged.
  • the present invention further provides a control device 20 for a focus frame, comprising:
  • the monitoring module 201 is configured to listen to a sliding event of the recyclable list
  • the focus frame control module 202 is configured to freeze the focus frame at the current position when the monitoring module monitors the start of the sliding of the recyclable list;
  • the focus frame corresponding item module 203 is configured to calculate the recyclable list item corresponding to the current position of the focus frame when the monitoring module monitors the end of the sliding;
  • the focus module 204 is configured to place the recyclable list item at a position covered by the focus frame, so that an item covered by the focus frame acquires a focus.
  • the present invention sets the sliding monitoring module 201, when the focus frame has moved to the edge of the screen (as shown in item 1 of FIG. 1), if the user presses the right selection button, he wants to select other items in the recyclable list, such as item 5. , 6, 7 (as shown in FIG. 2), etc., after the listening module 201 monitors the start of the rotatable list, the focus frame control module 202 freezes the focus frame at the current position, because the focus frame is set on the upper layer of the recyclable list. Therefore, the recurring list continues to slide. When the user releases the button, the loop list stops sliding.
  • the calculation of the focus frame corresponding item module 203 calculates the number of items under the focus frame according to the position of the focus frame. For example, after the sixth item, the focus module is acquired. 204 places item 6 of the recyclable list at the position covered by the focus frame, and causes item 6 to acquire the focus.
  • the focus frame control module 202 is based on the specific The business scenario (such as the continuous sliding of the RecyclerView in the Android UI system) transfers the focus to the control that it should go to (the calculated reversible list item corresponding to the current position of the focus frame), and the focus is on the actual application.
  • the box saves the position information of the item that should be in focus after sliding, and then the focus module 204 corrects the focus according to the information, and gives up the focus of the system error search result, and the final focus frame and the focus are all located in the same item. As a result, the situation in which the focus frame is misplaced is avoided.
  • the calculating the focus frame corresponding item module 203 includes:
  • a first acquiring coordinate unit 203a configured to acquire coordinates of four corners of the focus frame and center point coordinates of each item in the recyclable list
  • a first coordinate comparing unit 203b configured to determine a coordinate of the four corners of the focus frame and a center point coordinate of each item of the recyclable list
  • Determining a project unit 203c wherein a rectangular area formed by coordinates of four corners of the focus frame includes a center point of one of the items of the recyclable list, and determining that the item is the recyclable corresponding to a current position of the focus frame List item.
  • the size of the focus frame is the same as the size of a single recyclable list item, when the user releases the right selection button, the circular list stops sliding, and the recurring list item displayed below the focus frame may be a complete item, or it may be A part of two adjacent items is determined by the coordinate comparing unit 203b to determine the coordinates of the four corners of the focus frame and the coordinates of each item center point of the recyclable list, and the determining item unit 203c selects the center in the focus frame.
  • the item is used as the item corresponding to the current position of the focus frame, and when part of the contents of the two items are simultaneously displayed in the focus frame, the focus selection is disordered, and the item corresponding to the focus frame is accurately selected.
  • the calculation of the focus frame corresponding item module 203 includes:
  • a second acquiring coordinate unit 203d configured to acquire coordinates of four corners of the focus frame and four angular coordinates of each item in the recyclable list;
  • a second coordinate comparing unit 203e configured to compare coordinates of four corners of the focus frame with four angular coordinates of each item in the recyclable list;
  • a second determining item unit 203f configured to determine, when the coordinates of the four corners of the focus frame are the same as the four corner coordinates of one of the items of the recyclable list, the loop list item is corresponding to the current position of the focus frame The recyclable list item;
  • Determining the second item unit 203f further configured to: when the adjacent angular coordinates of the two items fall within the coordinate range of the four corners of the focus frame, determining that the circular list item is the corresponding one of the current positions of the focus frame Loop list items.
  • the focus module 204 is obtained, and the corresponding item in the recyclable list is placed at the position covered by the focus frame, so that the item covered by the focus frame acquires a focus, for example, As shown in FIG. 2, the sliding list is slid to the left. If the two adjacent items 6 and 7 are displayed below the focus frame when the sliding is stopped, if the reversible list item corresponding to the current position of the focus frame is calculated as 6 Then, you need to slide the slide list to the right to make the item 6 completely enter the coverage of the focus frame. At this time, the video will appear to be stuck, which will affect the user's visual experience.
  • Coordinates of the four corners of the focus frame and the recyclable column by the second coordinate comparison unit 203e The four angular coordinates of each item in the table are respectively compared; the second determining item unit 203f determines that the adjacent angular coordinates of the two items fall within the coordinate range of the four corners of the focus frame at the same time (the focus frame display portion) In the case of two adjacent items 6 and 7), the item in the sliding direction is the recyclable list item corresponding to the current position of the focus frame, which is visually smoother and improves the user experience.
  • the focus frame control module 203 is further configured to: after the item acquires the focus, release the focus frame on the item, receive the focus frame movement instruction, and move the focus frame according to the command direction.
  • the focus frame control module 203 is further configured to: when the focus frame needs to be frozen: disconnect the focus monitor of the focus frame, keep the focus frame position unchanged; and when unfreezing the focus frame: reconnect the focus frame The focus monitor cancels the operation of keeping the position of the focus frame unchanged.
  • the method and device for controlling the focus frame provided by the present invention, by setting the monitoring module 201, after the monitoring module monitors the rotatable list and starts sliding, the focus frame control module 202 freezes the focus frame at the current position, and when the user releases the button, the user listens.
  • the calculation focus frame corresponding item module 203 calculates an item of the recyclable list under the focus frame according to the position of the focus frame, and places the item in the focus frame by the acquisition focus module 204.
  • a second determination item unit 203f is provided for determining that when two adjacent items of the same angle coordinate fall within the coordinate range of the four corners of the focus frame, the sliding direction is The item is the recyclable list item corresponding to the current position of the focus frame, which is visually smoother and improves the user experience.
  • the present invention also provides an intelligent terminal.
  • FIG. 7 is a smart terminal according to an embodiment of the present invention.
  • the smart terminal 10 includes:
  • a memory 11 for storing an executable program
  • the processor 12 is configured to execute an executable program stored in the memory 11 to listen for a sliding event of the recyclable list; to listen to the start of the recyclable list sliding, to freeze the focus frame at the current position; Calculating the recyclable list item corresponding to the current position of the focus frame; placing the recyclable list item at a position covered by the focus frame, so that an item covered by the focus frame acquires a focus;
  • the display device 13 is configured to display a user interaction interface.
  • the memory 11 of the smart terminal may be a non-transitory computer readable storage medium for storage
  • Computer-executable instructions when executed by one or more central processors, for example, may cause a central processor to perform the method steps 101-104 (FIG. 3) described above, or steps 101-105 (FIG. 4) or apparatus
  • the functions of the units 201-204 Figs.
  • computer executable instructions may also be stored and/or transmitted in any non-transitory computer readable storage medium for use by the instruction execution system, apparatus or device, or In conjunction with an instruction execution system, apparatus, or device, the instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or other system that can obtain instructions from, and execute an instruction from, an instruction execution system, apparatus, or device.
  • a "non-transitory computer readable storage medium" can be any medium that tangibly contains or stores computer-executable instructions, which can be used by an instruction execution system, device, or system Or use in conjunction with an instruction execution system, device, or device.
  • Non-volatile computer readable storage media may include, but are not limited to, magnetic, optical, and/or semiconductor storage devices. Examples of such storage devices include magnetic disks, CD-ROM based on CD, DVD or Blu-ray technology, and persistent solid-state memories (such as flash memory, solid state drives, etc.).
  • the processor 12 can be a central processing unit (Centrral Processing Unit, abbreviated as "CPU”).
  • the processor 12 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete Hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • a direct or indirect communication connection can be implemented between the processor and the memory by any suitable means in the prior art to accomplish data transfer, including but not limited to physical bus system connections or other intangible network connections.
  • the bus system can include: a power bus, a control bus, and a status signal bus.
  • the smart terminal provided by the embodiment solves the problem that the focus frame is misplaced when the focus button is continuously pressed, and the item that slides into the screen unexpectedly loses focus.
  • a second determining item unit is set in the calculation focus block corresponding item module, and is used to determine that when two adjacent items of the same angle coordinate fall within the coordinate range of the four corners of the focus frame, the sliding direction is
  • the item is the recyclable list item corresponding to the current position of the focus frame, which is visually smoother and improves the user experience.
  • the computer software can be stored in a computer readable storage medium, which, when executed, can include the flow of an embodiment of the methods described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only storage memory, or a random storage memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种焦点框的控制方法及装置,通过设置监听模块,用于监听可循环列表的滑动事件;当所述监听模块监听到所述可循环列表滑动开始时,焦点框控制模块将所述焦点框冻结在当前位置;当所述监听模块监听到滑动结束时,计算焦点框对应项目模块计算出所述焦点框当前位置对应的所述可循环列表项目后;获取焦点模块,将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点,简单高效的解决了在连续按选择焦点框按键时焦点框错位,新滑入屏幕的项目意外失去焦点的问题。

Description

一种焦点框的控制方法及装置
本申请要求于2016年03月22日提交中国专利局、申请号为2016101666625、发明名称为“焦点框的控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及多媒体技术领域,特别是指一种焦点框的控制方法及装置。
背景技术
在电视平台上运行的Android UI系统是以控件为基本显示单位的,每个控件都有一个属性:焦点,每个控件的焦点状态只有两个:有或者没有,拥有焦点的控件,默认在外观上没有任何变化,为了指示给用户目前是哪个控件拥有焦点,需要通过焦点框来显示,因此当焦点发生转移时,焦点框必须尽快的出现在新获得焦点的控件上。
Android UI系统中的Android滑动控件RecyclerView(可循环列表),可以轻松实现一维和二维的列表布局,设置单元格间距,设置焦点转移规则等,但是,当持续按住选择焦点框按键或连续快速按时,可能会发生焦点框丢失的现象。例如,如图1所示屏幕左上角有两个固定控件A和B,下方有个一维的RecyclerView(可循环列表)控件,其中显示在屏幕上的有4个项目,1到4,实际上还有第5、6、7项甚至更多相在屏幕外,此时焦点和焦点框都在第4项上,用户按下向右选择焦点框键,列表即将滑入第5项,Android UI系统收到按键事件,第4项会立即失去焦点,然后开始搜索应当接收焦点的控件,虽然第5项还在屏幕外,但它是按键方向上离第4项最近的,于是RecyclerView(可循环列表)做了两件事:(1)将第5项滑入屏幕;(2)让第5项获得焦点;但是由于Android UI每收到一次按键事件,当前拥有焦点的项会失去焦点,然后进行搜索,找到合适的控件来接收,且RecyclerView仅会缓存屏幕外最近一项,离屏幕更远的项不在缓存范围内,因此当用户快速按键,或者直接按住不放,Android UI系统会连续收到很多个按键事件,而且彼此时间间隔 很短,这时Android UI系统收到第一个按键事件,让第5项滑入屏幕,并让第5项获得焦点,此时第5项会很快获得焦点,但滑动较慢,还没完全滑入屏幕,因为用户按住按键,所以此时会有第二个按键事件传入,因为第5项未滑动到位,第6项也就未进入RecyclerView(可循环列表)的缓存范围,Android UI系统会让第5项失去焦点,然后搜索它右方最近的控件,然而这个控件并不存在(第6项未进入缓存范围),这时按照Android UI系统的焦点转移规则,会让屏幕左上角的控件A获取焦点,如果继续按住向右选择焦点框键,第5项滑入屏幕,随即焦点和焦点框都转移到了A控件上,然后是B控件,焦点框没有按照用户的需求移动。上述问题的发生几率,取决于RecyclerView(可循环列表)滑动一项所需的时间长短,大部分情况下为了显示流畅的滑动效果,这个时间都设置的比较长,因此在使用过程中焦点丢失问题发生的几率很大。
发明内容
有鉴于此,本发明的目的在于提出一种防止焦点丢失的焦点框的控制方法及装置。
基于上述目的本发明提供的焦点框的控制方法,包括
监听可循环列表的滑动事件;
监听到所述可循环列表滑动开始时,将所述焦点框冻结在当前位置;
监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
进一步的,所述计算所述焦点框当前位置对应的所述可循环列表项目的步骤包括:
获取所述焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
用所述焦点框四个角的坐标和所述可循环列表每个项目的中心点坐标做包含判断;
如果焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目。
进一步的,所述计算所述焦点框当前位置对应的所述可循环列表项目的步 骤包括:
获取所述焦点框四个角的坐标和所述可循环列表中每个项目四个角坐标;
对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;
当所述可循环列表其中一个项目的四个角坐标与所述焦点框四个角坐标相同时,确定该循环列表项目为所述焦点框对应的所述可循环列表项目;
当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内,确定沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目。
该方法进一步包括:解除冻结所述焦点框,接收焦点框移动指令,按照所述指令方向移动焦点框。
将所述焦点框冻结在当前位置的方法包括:断开所述焦点框的焦点监听,保持所述焦点框位置不变;
所述解除冻结焦点框的方法包括:重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
另一方面,本发明还提供了焦点框的控制装置,包括:
监听模块,用于监听可循环列表的滑动事件;
焦点框控制模块,用于当所述监听模块监听到所述可循环列表的滑动开始时,将焦点框冻结在当前位置;
计算焦点框对应项目模块,用于当所述监听模块监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
获取焦点模块,用于将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
进一步的,所述计算焦点框对应项目模块包括:
第一获取坐标单元,用于获取焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
第一坐标比较单元,用于所述焦点框四个角的坐标和所述可循环列表每个项目的中心点坐标做包含判断;
确定项目单元,用于当焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目。
进一步的,所述计算焦点框对应项目模块包括:
获取坐标单元,用于获取焦点框四个角的坐标和所述可循环列表中每个项目四个角坐标;
坐标比较单元,用于对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;
确定项目单元,用于当所述焦点框四个角的坐标与所述可循环列表其中一个项目的四个角坐标相同时,确定该循环列表项目为所述焦点框当前位置对应的所述可循环列表项目;
确定项目单元,还用于当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内,确定该循环列表项目为所述焦点框当前位置对应的所述可循环列表项目。
更进一步的,所述焦点框控制模块,还用于项目获取焦点后,解除冻结该项目上的所述焦点框,接收焦点框移动指令,按照所述指令方向移动焦点框。
所述焦点框控制模块,用于需要冻结焦点框时:断开所述焦点框的焦点监听,保持所述焦点框位置不变;
以及进一步用于解除冻结焦点框时:重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
从上面所述可以看出,本发明提供的本发明提供的焦点框的控制方法及装置,通过设置监听模块监听到可循环列表开始滑动后,焦点框控制模块将所述焦点框冻结在当前位置,当用户松开按键,所述监听模块监听到可循环列表结束滑动后,计算焦点框对应项目模块根据焦点框的位置算出焦点框下可循环列表的项目,并通过获取焦点模块将该项目置于所述焦点框覆盖的位置让其获取焦点,得到最终的焦点框和焦点都位于同一个项目上的结果,简单高效的解决了在连续按选择焦点框按键时焦点框错位,新滑入屏幕的项目意外失去焦点的问题。
同时在计算焦点框对应项目模块中设置第二确定项目单元,用于确定当有两个项目的相邻角坐标同时落入所述焦点框四个角的坐标范围内时,沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目,在视觉上更流畅,提升了用户体验。
附图说明
图1为现有技术中Android TV系统可循环列表焦点框的示意图;
图2为本发明提供的焦点框示意图;
图3为本发明提供的焦点框的控制方法的实施例1流程图;
图4为本发明提供的焦点框的控制方法的实施例2流程图;
图5为本发明提供的焦点框的控制装置实施例1示意图。
图6为本发明提供的焦点框的控制装置实施例2示意图。
图7为本发明提供的智能终端的实施例示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明
如图3所示,本发明提供的焦点框的控制方法,包括:
步骤101,监听可循环列表的滑动事件,滑动事件包括滑动开始和滑动结束;
具体应用中,可以设置监听模块,用于监听可循环列表的滑动事件。
步骤102,监听到所述可循环列表滑动开始时,将所述焦点框冻结在当前位置;
步骤103,监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
步骤104,将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
本发明通过设置监听模块,当焦点框已经移动到屏幕边缘(如图1所示的项目4上),如果用户按住向右选择按键,想要选可循环列表中其它项目例如项目5、6、7(如图2所示)等,此时所述监听模块监听到可循环列表的开始滑动后,系统将焦点框冻结在当前位置,由于焦点框设置在可循环列表的上层,因此可循环列表继续滑动,当用户松开按键,可循环列表停止滑动,根据焦点框的位置算出焦点框下是第几项,例如是第6项,将可循环列表的项目6置于所述焦点框覆盖的位置,让项目6获取焦点。
相当于根据现有的焦点转移规则转移了焦点(在连续按向右滑动按键时焦点从可循环列表的项目4转到了第5相,再到固定列表项目A和B上)后,我们根据具体的业务场景(比如可循环列表连续滑动)再转移一次焦点到它应该到的控件(计算出的所述焦点框当前位置对应的所述可循环列表项目)上,在实际应用中是用焦点框来保存了滑动后应该获得焦点的项的位置信息,然后根据这个信息来正确的恢复焦点,放弃了错误的焦点搜索结果,得到最终的焦点框和焦点都位于同一个项目上的结果,避免了焦点框发生错位丢失的状况。
进一步的,步骤103中所述计算所述焦点框当前位置对应的所述可循环列表项目的步骤为:
步骤103a,获取所述焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
步骤103b,用所述焦点框四个角的坐标和所述可循环列表每个项目的中心点坐标做包含判断;
步骤103c,如果焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目。
具体的,定义所述焦点框四个角的坐标为(a,i)(a,j)(b,i)(b,j)和定义所述可循环列表中每个项目的中心点坐标为(x1,y1)(x2,y2)(x3,y3)(x4,y4)(x5,y5)(x6,y6)……..;例如当所述可循环列表其中一个项目的中心点(x3,y3),当x3∈(a,b),y3∈(i,j),可见焦点框的四个角的坐标构成的矩形区域包含了可循环列表其中一个项目的中心点(x3,y3),确定该中心点坐标为(x3,y3),的项目是所述焦点框当前位置对应的所述可循环列表项目。
焦点框的大小与单个的可循环列表项目大小相同,当用户松开向右选择按键,可循环列表停止滑动,焦点框下方显示的可循环列表项目可能是完整的某个项目,也可能是相邻的两个项目的一部分,采用所述焦点框四个角的坐标与可循环列表每个项目中心点坐标进行包含判断的方式,选择中心再焦点框内的项目作为所述焦点框当前位置对应的项目,避免两个项目的部分内容同时显示在焦点框时,焦点选择错乱的状况,准确的选择焦点框对应的项目。
本发明提供的另一个实施例中,如图4所示步骤103中所述计算所述焦点框当前位置对应的所述可循环列表项目的步骤为:
步骤103d,获取所述焦点框四个角的坐标和所述可循环列表中每个项目 四个角坐标;
步骤103e,对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;
步骤103f,当所述可循环列表其中一个项目的四个角坐标与所述焦点框四个角坐标相同(焦点框显示完整的某一个项目)时,确定该循环列表项目为所述焦点框对应的所述可循环列表项目;
步骤103g,当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内,确定沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目。
是由于在确定焦点框对应的项目后,将所述可循环列表中对应的项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点,例如,如图2滑动列表向左滑动,当滑动停止时若所述焦点框下方显示相邻两个项目6和7,如果计算出所述焦点框当前位置对应的所述可循环列表项目为6,那么需要将滑动列表向右滑动,使项目6完全进入焦点框的覆盖范围,此时视觉上会出现卡顿,影响用户的视觉感受。
通过对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内(焦点框显示部分相邻的两个项目6和7),确定沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目,在视觉上更流畅,提升了用户体验。
更进一步的,步骤104中获取焦点后,该方法进一步包括:
步骤105,解除冻结所述焦点框,接收焦点框移动指令,按照所述指令方向移动焦点框。
更详细的,冻结焦点框的方法为进一步包括:断开所述焦点框的焦点监听,保持所述焦点框位置不变;所述解除冻结焦点框的方法包括:重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
本发明提供的焦点框的控制方法,通过设置监听模块,监听到可循环列表开始滑动后,系统将焦点框冻结在当前位置,当用户松开按键,所述监听模块监听到可循环列表结束滑动后,根据焦点框的位置算出焦点框下可循环列表的项目,并将该项目置于所述焦点框覆盖的位置让其获取焦点,得到最终的焦点框和焦点都位于同一个项目上的结果,简单高效的解决了在连续按选择焦点框 按键时焦点框错位,新滑入屏幕的项目意外失去焦点的问题。
以Android系统为例,本发明提供的焦点框的控制方法应用于Android TV系统,包括:
步骤101,监听可循环列表(RecyclerView)的滑动事件,滑动事件包括滑动开始和滑动结束;
具体的,可以设置滑动监听器,用于监听可循环列表的滑动事件。
步骤102,监听到所述可循环列表(RecyclerView)滑动开始时,将所述焦点框冻结在当前位置;
该步骤中将所述焦点框冻结在当前位置方法包括:所述焦点框的焦点监听,保持所述焦点框位置不变。
步骤103,监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
该步骤中所述计算所述焦点框当前位置对应的所述可循环列表项目方法包括:
步骤103a,获取所述焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
步骤103b,用所述焦点框四个角的坐标和所述可循环列表(RecyclerView)每个项目的中心点坐标做包含判断;
步骤103c,如果焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目;
具体的,定义所述焦点框四个角的坐标为(a,i)(a,j)(b,i)(b,j)和定义所述可循环列表中每个项目的中心点坐标为(x1,y1)(x2,y2)(x3,y3)(x4,y4)(x5,y5)(x6,y6)……..;例如当所述可循环列表其中一个项目的中心点(x3,y3),当x3∈(a,b),y3∈(i,j),可见焦点框的四个角的坐标构成的矩形区域包含了可循环列表其中一个项目的中心点(x3,y3),确定该中心点坐标为(x3,y3),的项目是所述焦点框当前位置对应的所述可循环列表项目。
步骤104,将所述可循环列表(RecyclerView)项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
该方法进一步包括:
步骤105,解除冻结所述焦点框,接收焦点框移动指令,按照所述指令方 向移动焦点框;
该步骤中所述解除冻结焦点框的方法包括:重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
另一方面,如图5所示,本发明还提供了一种焦点框的控制装置20,包括:
监听模块201,用于监听可循环列表的滑动事件;
焦点框控制模块202,用于当所述监听模块监听到可循环列表的滑动开始时,将焦点框冻结在当前位置;
计算焦点框对应项目模块203,用于当所述监听模块监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
获取焦点模块204,用于将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
本发明通过设置滑动监听模块201,当焦点框已经移动到屏幕边缘(如图1所示的项目4上),如果用户按住向右选择按键,想要选可循环列表中其它项目例如项目5、6、7(如图2)等,此时监听模块201监听到可循环列表的开始滑动后,焦点框控制模块202将焦点框冻结在当前位置,由于焦点框设置在可循环列表的上层,因此可循环列表继续滑动,当用户松开按键,可循环列表停止滑动,计算焦点框对应项目模块203根据焦点框的位置算出焦点框下是第几项,例如是第6项后,获取焦点模块204将可循环列表的项目6置于所述焦点框覆盖的位置,让项目6获取焦点。
也就是系统根据现有的焦点转移规则转移了焦点(在连续按向右滑动按键时焦点从可循环列表的项目4转到了固定列表项目A或B上)后,焦点框控制模块202根据具体的业务场景(比如Android UI系统中RecyclerView连续滑动)再转移一次焦点到它应该到的控件(计算出的所述焦点框当前位置对应的所述可循环列表项目)上,在实际应用中是用焦点框来保存了滑动后应该获得焦点的项的位置信息,然后获取焦点模块204根据这个信息来正确的恢复焦点,放弃了系统错误的焦点搜索结果,得到最终的焦点框和焦点都位于同一个项目上的结果,避免了焦点框发生错位丢失的状况。
进一步的,所述计算焦点框对应项目模块203包括:
第一获取坐标单元203a,用于获取焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
第一坐标比较单元203b,用于所述焦点框四个角的坐标和所述可循环列表每个项目的中心点坐标做包含判断;
确定项目单元203c,用于当焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目。
由于焦点框的大小与单个的可循环列表项目大小相同,当用户松开向右选择按键,可循环列表停止滑动,焦点框下方显示的可循环列表项目可能是完整的某个项目,也可能是相邻的两个项目的一部分,通过坐标比较单元203b将所述焦点框四个角的坐标与可循环列表每个项目中心点坐标进行包含判断的方式,确定项目单元203c选择中心再焦点框内的项目作为所述焦点框当前位置对应的项目,避免两个项目的部分内容同时显示在焦点框时,焦点选择错乱的状况,准确的选择焦点框对应的项目。
本发明提供的焦点框的控制装置20的另一个实施例中,计算焦点框对应项目模块203包括:
第二获取坐标单元203d,用于获取焦点框四个角的坐标和所述可循环列表中每个项目四个角坐标;
第二坐标比较单元203e,用于对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;
第二确定项目单元203f,用于当所述焦点框四个角的坐标与所述可循环列表其中一个项目的四个角坐标相同时,确定该循环列表项目为所述焦点框当前位置对应的所述可循环列表项目;
确定第二项目单元203f,还用于当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内,确定该循环列表项目为所述焦点框当前位置对应的所述可循环列表项目。
是由于在确定焦点框对应的项目后,获取焦点模块204,将所述可循环列表中对应的项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点,例如,如图2所示,滑动列表向左滑动,当滑动停止时若所述焦点框下方显示相邻两个项目6和7,如果计算出所述焦点框当前位置对应的所述可循环列表项目为6,那么需要将滑动列表向右滑动,使项目6完全进入焦点框的覆盖范围,此时视觉上会出现卡顿,影响用户的视觉感受。
通过第二坐标比较单元203e对所述焦点框四个角的坐标与所述可循环列 表中每个项目的四个角坐标分别进行比对;第二确定项目单元203f,确定当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内(焦点框显示部分相邻的两个项目6和7)时,沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目,在视觉上更流畅,提升了用户体验。
进一步的,焦点框控制模块203,还用于项目获取焦点后,解除冻结该项目上的所述焦点框,接收焦点框移动指令,按照所述指令方向移动焦点框。
焦点框控制模块203,进一步用于需要冻结焦点框时:断开所述焦点框的焦点监听,保持所述焦点框位置不变;以及用于解除冻结焦点框时:重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
本发明提供的焦点框的控制方法及装置,通过设置监听模块201,在监听模块监听到可循环列表开始滑动后,焦点框控制模块202将焦点框冻结在当前位置,当用户松开按键,监听模块201监听到可循环列表结束滑动后,计算焦点框对应项目模块203根据焦点框的位置算出焦点框下可循环列表的项目,并通过获取焦点模块204将该项目置于所述焦点框覆盖的位置让其获取焦点,得到最终的焦点框和焦点都位于同一个项目上的结果,简单高效的解决了在连续按选择焦点框按键时焦点框错位,新滑入屏幕的项目意外失去焦点的问题。同时在计算焦点框对应项目模块203中设置第二确定项目单元203f,用于确定当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内时,沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目,在视觉上更流畅,提升了用户体验。
另一方面,本发明还提供了一种智能终端。图7为本发明实施例的智能终端。
请参照图7所示,该智能终端10包括:
存储器11,用于存储可执行程序;
处理器12,用于执行存储器11存储的可执行程序,从而监听可循环列表的滑动事件;监听到所述可循环列表滑动开始时,将所述焦点框冻结在当前位置;监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点;
显示装置13,用于显示用户交互界面。
智能终端的存储器11可以是非易失性计算机可读存储介质,以用于存储 计算机可执行指令,该指令当由一个或多个中央处理器执行时,例如可以使得中央处理器执行以上描述的方法步骤101-104(图3),或步骤101-105(图4)或装置单元201-204(图5及图6)的功能,计算机可执行指令也可以在任何非易失性计算机可读存储介质内存储和/或传输,以便由指令执行系统、装置或设备使用,或者结合指令执行系统、装置或设备使用,其中该指令执行系统、装置或设备诸如基于计算机的系统、包含处理器的系统或可以从指令执行系统、装置或设备获取指令并执行该指令的其他系统。出于本文档的目的,“非易失性计算机可读存储介质”可以是有形地包含或存储计算机可执行指令的任何介质,该计算机可执行指令可以用于由指令执行系统、设备或系统使用或者结合指令执行系统、装置或设备使用。非易失性计算机可读存着介质可以包括但不限于磁的、光的和/或半导体存储装置。这些存储装置的示例包括磁盘、基于CD、DVD或蓝光技术的光盘以及持久性固态存储器(诸如,闪存、固态驱动器等)。
该处理器12可以是中央处理单元(Centrral Processing Unit,简称为“CPU”)。该处理器12还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该处理器和存储器之间可以通过现有技术中任何合适的方式,实现直接或者间接的通讯连接,完成数据传输,包括但不限于有形的总线系统连接或者其它无形的网络连接。该总线系统可以包括:电源总线、控制总线和状态信号总线等。
本实施例提供的智能终端,简单高效的解决了在连续按选择焦点框按键时焦点框错位,新滑入屏幕的项目意外失去焦点的问题。
同时在计算焦点框对应项目模块中设置第二确定项目单元,用于确定当有两个项目的相邻角坐标同时落入所述焦点框四个角的坐标范围内时,沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目,在视觉上更流畅,提升了用户体验。
本领域技术人员应该意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述 了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。所述的计算机软件可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体或随机存储记忆体等。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上所述的本发明的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种焦点框的控制方法,其特征在于,包括:
    监听可循环列表的滑动事件;
    监听到所述可循环列表滑动开始时,将所述焦点框冻结在当前位置;
    监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
    将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
  2. 根据权利要求1所述的焦点框的控制方法,其特征在于,所述计算所述焦点框当前位置对应的所述可循环列表项目的步骤包括:
    获取所述焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
    用所述焦点框四个角的坐标和所述可循环列表每个项目的中心点坐标做包含判断;
    如果焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目。
  3. 根据权利要求1所述的焦点框的控制方法,其特征在于,所述计算所述焦点框当前位置对应的所述可循环列表项目的步骤包括:
    获取所述焦点框四个角的坐标和所述可循环列表中每个项目四个角坐标;
    对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;
    当所述可循环列表其中一个项目的四个角坐标与所述焦点框四个角坐标相同时,确定该循环列表项目为所述焦点框对应的所述可循环列表项目;
    当有两个项目的相邻角坐标同时落入焦点框四个角的坐标范围内,确定沿滑动方向上的项目为所述焦点框当前位置对应的所述可循环列表项目。
  4. 根据权利要求1所述的焦点框的控制方法,其特征在于,该方法进一步包括:解除冻结所述焦点框,接收焦点框移动指令,按照所述指令方向移动焦点框。
  5. 根据权利要求4所述的焦点框的控制方法,其特征在于,所述将所述 焦点框冻结在当前位置的方法包括:断开所述焦点框的焦点监听,保持所述焦点框位置不变;则,
    所述解除冻结焦点框的方法包括:重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
  6. 一种焦点框的控制装置,其特征在于,包括:
    监听模块,用于监听可循环列表的滑动事件;
    焦点框控制模块,用于当所述监听模块监听到所述可循环列表的滑动开始时,将焦点框冻结在当前位置;
    计算焦点框对应项目模块,用于当所述监听模块监听到滑动结束时,计算所述焦点框当前位置对应的所述可循环列表项目;
    获取焦点模块,用于将所述可循环列表项目置于所述焦点框覆盖的位置,使所述焦点框覆盖的项目获取焦点。
  7. 根据权利要求6所述的焦点框的控制装置,其特征在于,所述计算焦点框对应项目模块包括:
    第一获取坐标单元,用于获取焦点框四个角的坐标和所述可循环列表中每个项目的中心点坐标;
    第一坐标比较单元,用于所述焦点框四个角的坐标和所述可循环列表每个项目的中心点坐标做包含判断;
    确定项目单元,用于当焦点框的四个角的坐标构成的矩形区域包含了所述可循环列表其中一个项目的中心点,确定该项目是所述焦点框当前位置对应的所述可循环列表项目。
  8. 根据权利要求6所述的焦点框的控制装置,其特征在于,所述计算焦点框对应项目模块包括:
    第二获取坐标单元,用于获取所述焦点框四个角的坐标和所述可循环列表中每个项目四个角坐标;
    第二坐标比较单元,用于对所述焦点框四个角的坐标与所述可循环列表中每个项目的四个角坐标分别进行比对;
    第二确定项目单元,用于当所述焦点框四个角的坐标与所述可循环列表其中一个项目的四个角坐标相同时,确定该循环列表项目为所述焦点框当前位置对应的所述可循环列表项目;
    第二确定项目单元,还用于当有两个项目的相邻角坐标同时落入所述焦点 框四个角的坐标范围内,确定该循环列表项目为所述焦点框当前位置对应的所述可循环列表项目。
  9. 根据权利要求6所述的焦点框的控制装置,其特征在于,所述焦点框控制模块,还用于项目获取焦点后,解除冻结该项目上的所述焦点框,接收焦点框移动指令,按照所述指令方向移动焦点框。
  10. 根据权利要求9所述的焦点框的控制装置,其特征在于,所述焦点框控制模块,用于需要冻结焦点框时,断开所述焦点框的焦点监听,保持所述焦点框位置不变;
    以及进一步用于解除冻结焦点框时,重新连接所述焦点框的焦点监听,撤销保持所述焦点框位置不变的操作。
PCT/CN2016/089323 2016-03-22 2016-07-08 一种焦点框的控制方法及装置 WO2017161770A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/245,614 US20170277362A1 (en) 2016-03-22 2016-08-24 Method and electronic device for controlling focus box

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610166662.5 2016-03-22
CN201610166662.5A CN105847930A (zh) 2016-03-22 2016-03-22 一种焦点框的控制方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/245,614 Continuation US20170277362A1 (en) 2016-03-22 2016-08-24 Method and electronic device for controlling focus box

Publications (1)

Publication Number Publication Date
WO2017161770A1 true WO2017161770A1 (zh) 2017-09-28

Family

ID=56582977

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089323 WO2017161770A1 (zh) 2016-03-22 2016-07-08 一种焦点框的控制方法及装置

Country Status (2)

Country Link
CN (1) CN105847930A (zh)
WO (1) WO2017161770A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629245A (zh) * 2020-05-29 2020-09-04 深圳Tcl数字技术有限公司 焦点控制方法、电视机及存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835461B (zh) * 2017-11-02 2021-09-28 深圳市雷鸟网络传媒有限公司 焦点移动控制方法、智能电视及计算机可读存储介质
CN109343923B (zh) * 2018-09-20 2023-04-07 聚好看科技股份有限公司 一种智能电视机的用户界面焦点框缩放方法及设备
CN109683793B (zh) * 2018-12-24 2022-04-19 努比亚技术有限公司 一种内容翻转显示方法、设备及计算机可读存储介质
CN110337034B (zh) * 2019-07-12 2022-02-11 青岛海信传媒网络技术有限公司 用户界面显示方法及显示设备
US11093108B2 (en) 2019-07-12 2021-08-17 Qingdao Hisense Media Networks Ltd. Method for displaying user interface and display device
CN112351347B (zh) * 2020-10-26 2024-02-09 深圳Tcl新技术有限公司 屏幕焦点移动显示方法、显示设备及存储介质
CN112272329B (zh) * 2020-10-28 2023-02-28 海看网络科技(山东)股份有限公司 一种加快安卓列表显示速度的方法
CN112882780A (zh) * 2021-02-05 2021-06-01 Vidaa美国公司 设置页面显示方法及显示设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5677708A (en) * 1995-05-05 1997-10-14 Microsoft Corporation System for displaying a list on a display screen
CN101635768A (zh) * 2008-07-22 2010-01-27 Lg电子株式会社 移动终端及其显示信息列表的方法
CN101681248A (zh) * 2007-06-27 2010-03-24 微软公司 中心锁定列表
US20110307784A1 (en) * 2010-06-10 2011-12-15 Alpine Electronics, Inc. Av apparatus
US20140089851A1 (en) * 2012-09-27 2014-03-27 Advanced Digital Broadcast S.A. Method for generating a graphical user interface menu
CN104038834A (zh) * 2014-05-19 2014-09-10 乐视网信息技术(北京)股份有限公司 一种视频定位方法和装置
CN105357589A (zh) * 2015-09-18 2016-02-24 成都视达科信息技术有限公司 Stb按键控制的处理系统及方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677392B (zh) * 2008-09-19 2011-11-30 中兴通讯股份有限公司 用于交互式个人电视终端的当前焦点移动方法及装置
CN103455254B (zh) * 2012-06-05 2018-05-22 腾讯科技(深圳)有限公司 界面焦点移动控制方法及控制装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5677708A (en) * 1995-05-05 1997-10-14 Microsoft Corporation System for displaying a list on a display screen
CN101681248A (zh) * 2007-06-27 2010-03-24 微软公司 中心锁定列表
CN101635768A (zh) * 2008-07-22 2010-01-27 Lg电子株式会社 移动终端及其显示信息列表的方法
US20110307784A1 (en) * 2010-06-10 2011-12-15 Alpine Electronics, Inc. Av apparatus
US20140089851A1 (en) * 2012-09-27 2014-03-27 Advanced Digital Broadcast S.A. Method for generating a graphical user interface menu
CN104038834A (zh) * 2014-05-19 2014-09-10 乐视网信息技术(北京)股份有限公司 一种视频定位方法和装置
CN105357589A (zh) * 2015-09-18 2016-02-24 成都视达科信息技术有限公司 Stb按键控制的处理系统及方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629245A (zh) * 2020-05-29 2020-09-04 深圳Tcl数字技术有限公司 焦点控制方法、电视机及存储介质
CN111629245B (zh) * 2020-05-29 2022-12-13 深圳Tcl数字技术有限公司 焦点控制方法、电视机及存储介质

Also Published As

Publication number Publication date
CN105847930A (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2017161770A1 (zh) 一种焦点框的控制方法及装置
US11310413B2 (en) Device and method for photo and video capture
US9456130B2 (en) Apparatus for processing a service and method thereof
KR101590341B1 (ko) 휴대용 단말기에서 인터럽트 제어 방법 및 장치
US8880648B1 (en) Automated transition of content consumption across devices
TWI489371B (zh) 用以執行無線顯示控制之方法與裝置
EP2858322B1 (en) Method and terminal for sharing media stream
EP2670132B1 (en) Method and apparatus for playing video in portable terminal
JP6378357B2 (ja) 単一のインタフェース要素を用いて視覚媒体を選択的に捕捉する方法
US20160295294A1 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
US20160210016A1 (en) Apparatus and method for sharing contents
US10045286B2 (en) Method and apparatus for selecting network
KR101512918B1 (ko) 미디어 검출에 기초한 시스템 타임아웃 리셋
JP6345238B2 (ja) インタフェース表示方法及び装置
CA2777586A1 (en) Method for controlling portable device, display device, and video system
JP2017536783A (ja) ビデオ特効処理方法、装置、端末機器、プログラム、及び記録媒体
US20230119300A1 (en) Method for Resuming Playing Multimedia Content Between Devices
RU2643447C2 (ru) Способ и устройство для определения символа
KR101821721B1 (ko) 목표 대상의 표시 방법 및 장치
US20170134789A1 (en) Operation instructing method and apparatus for remote controller of intelligent television
WO2016106934A1 (zh) 切换操作系统的方法、装置及终端
WO2015089993A1 (zh) 一种终端及触摸屏下实现批量操作的方法
WO2023005277A1 (zh) 信息提示方法和信息提示装置
WO2018106307A1 (en) Long-hold video surfing
WO2015062506A1 (zh) 多图标选择方法与终端

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16895120

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16895120

Country of ref document: EP

Kind code of ref document: A1