WO2019006958A1 - 视图滚动方法、装置及智能电视 - Google Patents
视图滚动方法、装置及智能电视 Download PDFInfo
- Publication number
- WO2019006958A1 WO2019006958A1 PCT/CN2017/112212 CN2017112212W WO2019006958A1 WO 2019006958 A1 WO2019006958 A1 WO 2019006958A1 CN 2017112212 W CN2017112212 W CN 2017112212W WO 2019006958 A1 WO2019006958 A1 WO 2019006958A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- view
- scrolling
- scroll
- button
- event
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- 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
- H04N21/42206—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
- H04N21/42212—Specific keyboard arrangements
- H04N21/42213—Specific keyboard arrangements for facilitating data entry
- H04N21/42215—Specific keyboard arrangements for facilitating data entry by measuring the time interval during which a key is pressed, e.g. for inputting sequences of digits when selecting a television channel
-
- 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
Definitions
- the present application relates to the field of view scrolling, and in particular to a view scrolling method, device, and smart TV.
- one of the purposes of the present application is to provide a view scrolling method to improve the over-loading of views caused by an existing Android TV when receiving a long button event, and improve the user. Experience.
- Another object of the present application is to provide a view scrolling device to improve the problem of over-loading of views caused by an existing Android TV when receiving a long button event, thereby improving the user experience.
- Another object of the present application is to provide a smart TV to improve the problem of excessive loading of views caused by an existing Android TV when receiving a long button event, and improve the user experience.
- the preferred embodiment of the present application provides a view scrolling method applied to a smart TV.
- the smart TV is pre-configured with a unit scroll distance value corresponding to the short button event and a view scroll step corresponding to the long button event, wherein the unit scroll distance value corresponds to the distance value of the view scrolling one step.
- the method includes:
- the control view When detecting that the button event is a long button event, the control view scrolls the view distance corresponding to the number of scrolling steps of the view;
- the scrolled view is displayed when the view scrolls through the view distance corresponding to the number of scroll steps of the view.
- the method further includes:
- the manner of setting the unit scroll distance value includes:
- the unit scroll distance value is calculated according to a maximum approximation of a unit pixel length and a pixel density of the smart television.
- the calculation formula of the unit scroll distance value is :
- USV is the unit rolling distance value
- PPIMAX is the maximum approximation of pixel density
- HPX is the unit pixel length
- Px is the resolution horizontal value
- Py is the resolution vertical value
- C is the display screen diagonal length.
- the calculation method of the maximum approximation of the pixel density includes:
- the method further includes:
- the manner of setting the number of scrolling steps of the view includes:
- the initial distance value includes an initial height value or an initial width value
- the number of view scroll steps is calculated according to the initial distance value and a preset unit scroll distance value.
- the calculation formula of the number of scrolling steps of the view is :
- VH is the initial distance value of the view scroll
- USV is the preset unit scroll distance value.
- the view scrolls
- the calculation of the initial distance value of the motion includes:
- the getHeigth function is called to obtain the first height value of the picture carrier control
- the getMeasureHeight function is called to obtain the second height value of the picture carrier control
- the step of detecting the received key event includes:
- the controlling the view scrolling the view distance corresponding to the view scrolling step includes:
- control view In response to the button event instruction, the control view scrolls the view distance corresponding to the number of view scroll steps.
- the step of parsing the button event instruction corresponding to the button event includes:
- a key event sent by the remote control device into a corresponding key event command
- the key event includes an up direction button, a down direction button, a left direction button, a right direction button, a determining button, and a return button
- the corresponding button event instruction are FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_FORWORD, and FOCUS_BACKWORD.
- the step of controlling the view to scroll the view distance corresponding to the number of scrolling steps of the view in response to the button event instruction includes:
- the step of the control view scrolling the view distance corresponding to the number of step scrolling steps includes:
- a redraw view instruction is received during scrolling of the view, the redraw is processed after the view scroll ends The redraw event corresponding to the view directive.
- the step of the control view scrolling the view distance corresponding to the number of step scrolling steps includes:
- the step of displaying the scrolled view when the view scrolls the view distance corresponding to the view scrolling step number includes:
- the view After the view scrolls through the view distance corresponding to the number of view scroll steps, the view completes the maximum scroll distance so that the view does not continue scrolling when the user continues to press and hold the button.
- the preferred embodiment of the present application further provides a view scrolling device for use in a smart TV.
- the smart TV is pre-configured with a unit scroll distance value corresponding to a short button event and a view scroll step number corresponding to the long button event.
- the unit scroll distance value corresponds to a distance value of one step of scrolling through the view.
- the device includes:
- a detection module configured to detect a received key event
- a scrolling module configured to: when detecting that the button event is a long button event, control the view to scroll the view distance corresponding to the number of scrolling steps of the view;
- a display module configured to display the scrolled view when the view scrolls the view distance corresponding to the number of scroll steps of the view.
- the device further includes:
- a setting module configured to set the unit scroll distance value.
- the detecting module includes:
- Obtaining a module configured to obtain a button duration corresponding to the button event
- the comparison module is configured to compare the duration of the button corresponding to the button event with a preset duration threshold
- the determining module is configured to determine whether the long button event is based on the comparison result.
- the scrolling module includes:
- An analysis module configured to parse a key event instruction corresponding to the button event
- control module configured to, in response to the button event instruction, control the view to scroll the view distance corresponding to the number of scroll steps of the view.
- the preferred embodiment of the present application further provides a smart television, where the smart television includes:
- a view scrolling device installed in the memory and comprising one or more software function modules executed by the processor, the device comprising:
- a detection module configured to detect a received key event
- a scrolling module configured to: when detecting that the button event is a long button event, control the view to scroll the view distance corresponding to the number of scrolling steps of the view;
- a display module configured to display the scrolled view when the view scrolls the view distance corresponding to the number of scroll steps of the view.
- the preferred embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method described above.
- the view scrolling method, device and smart TV provided by the embodiments of the present application.
- the method includes: detecting a received key event; and detecting that the key event is a long key event, the control view scrolling the view distance corresponding to the view scrolling step; and scrolling the view scrolling step in the view When scrolling the corresponding view distance, the scrolled view is displayed.
- the technical solution provided by the present application can improve the problem of over-loading of the view caused by the existing Android TV when receiving a long button event, improve the user experience, and improve the user experience.
- FIG. 1 is a block diagram of a smart television provided by a preferred embodiment of the present application.
- FIG. 2 is a schematic flowchart of a view scrolling method according to a preferred embodiment of the present application
- step S210 shown in FIG. 2;
- step S220 shown in FIG. 2;
- FIG. 5 is another schematic flowchart of each sub-step included in step S220 shown in FIG. 2;
- FIG. 6 is a functional block diagram of a view scrolling device according to a preferred embodiment of the present application.
- Icon 100-smart TV; 110-memory; 120-processor; 130-communication unit; 140-storage controller; 150-display unit; 200-view scrolling device; 210-detection module; 220-scrolling module; Display module.
- the view scrolling method and the view scrolling device provided by the preferred embodiment of the present application can be applied to the smart device of the display unit for controlling the scrolling of the view displayed by the display unit, which can improve the view over loading caused by the long press control device.
- the smart device may be a smart TV, a smart set top box, a television box, a tablet computer, a mobile terminal, or the like.
- the smart device may be an electronic device based on an Android system, or may be an electronic device based on other smart operating systems.
- the following takes the smart device as a smart TV as an example, and specifically describes the solution of the present application:
- FIG. 1 is a block diagram of a smart television 100 according to a preferred embodiment of the present application.
- the smart TV 100 is an Android smart TV.
- the smart TV 100 can be connected to a remote control device (eg, a remote controller, a mobile terminal, etc.) to receive a button signal transmitted by the remote control device.
- a remote control device eg, a remote controller, a mobile terminal, etc.
- the smart TV 100 may include a memory 110, a processor 120, a communication unit 130, a memory controller 140, and a display unit 150.
- the memory 110, the processor 120, the communication unit 130, the storage controller 140, and the display unit 150 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
- the components can be electrically connected to one another via one or more communication buses or signal lines.
- a view scrolling device 200 is stored in the memory 110.
- the view scrolling device 200 includes at least one software function module that can be stored in the memory 110 in the form of software or firmware, and the processor 120 is stored in the memory by running.
- the software program and the module in the first embodiment, such as the view scrolling device 200 in the embodiment of the present application perform various function applications and data processing, that is, the view scrolling method in the embodiment of the present application.
- the memory 110 may include a high speed random access memory, and may also include a non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 110 can further include remote memory remotely located relative to processor 120, which can be connected to the smart television 100 over a network.
- processor 120 can be connected to the smart television 100 over a network.
- the memory 110 is configured to store a program, and the processor 120 receives the execution After the line instruction, the program is executed.
- communication unit 130 couples various input/output devices to processor 120 and memory 110, and the software programs and modules within memory 110 described above may also include an operating system, which may include various functions for managing system functions (eg, memory) Software components and/or drivers for management, storage device control, power management, etc., and can communicate with various hardware or software components to provide an operating environment for other software components.
- operating system may include various functions for managing system functions (eg, memory)
- Software components and/or drivers for management, storage device control, power management, etc. can communicate with various hardware or software components to provide an operating environment for other software components.
- the processor 120 can be an integrated circuit chip with signal processing capabilities.
- the processor 120 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), and the like. It can also be a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, and a discrete gate. Or transistor logic devices, discrete hardware components.
- DSP Digital Signal Processing
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- the general purpose processor may be a microprocessor or the processor 120 may be any conventional processor or the like.
- the display unit 150 can simultaneously provide an output and input interface between the smart TV 100 and the user. Specifically, the display unit 150 displays a video or image output to a user, and the content of the video output may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. In addition, the display unit 150 can also receive user input, such as user's gestures such as clicks, slides, etc., so that the user interface objects respond to the input of these users. The technique of detecting user input can be based on resistive, capacitive or any other possible touch detection technique. Optionally, specific examples of the display unit 150 may include, but are not limited to, a liquid crystal display or a light emitting polymer display.
- the structure shown in FIG. 1 is merely illustrative, and the smart TV 100 may further include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1.
- the components shown in Figure 1 can be implemented in hardware, software, or a combination thereof.
- FIG. 2 is a schematic flowchart of a view scrolling method provided by the preferred embodiment of the present application, which is performed by the smart TV 100 shown in FIG. 1 .
- the method provided in the embodiments of the present application is not limited to the specific order described in FIG. 2 and the following.
- the specific process of the method is as follows:
- Step S210 detecting the received key event.
- the button event indicates that the user controls the display unit 150 of the smart television 100 to perform a corresponding display task by pressing a control button on the remote control device.
- the button event may be that the user controls the display unit 150 of the smart TV 100 to perform view scrolling by pressing a control button on the remote control device.
- the step S210 may include the following sub-steps:
- Sub-step S211 obtaining the button duration corresponding to the button event.
- the duration of the button indicates the duration of the user pressing the control button on the remote control device. It should be understood that the duration of the button may be the time it takes for the user to press the control button of the remote control device until the control button is released. According to different The duration of the button can be set to different display tasks, such as the scrolling of the view.
- Sub-step S212 comparing the button duration corresponding to the button event with a preset duration threshold.
- the button duration corresponding to the button event is compared with a preset duration threshold.
- the preset duration threshold may be set according to the design requirement, which is not specifically limited in this embodiment. As an optional implementation manner, the preset duration threshold may be set to 120 ms.
- the button duration corresponding to the button event is greater than the preset duration threshold, it is determined that the button event is a long button event.
- Step S220 when it is detected that the button event is a long button event, the control view scrolls the view distance corresponding to the number of view scroll steps.
- the loading of the existing smart TV view is controlled by the button. Since most smart TVs do not have a screen pressure sensor, and the intentional transmission between the person and the smart TV through the remote control device is impossible, the smart TV and the person cannot directly
- a button for example, down button
- the view is assumed to scroll by 20 unit distances (pixel density PPI); if the user presses the down button for one second, press the remote button according to the finger.
- the smart TV 100 is pre-configured with a unit scroll distance value corresponding to a short button event and a view scroll step corresponding to the long button event.
- the short button event is compared with a preset duration threshold by the button duration corresponding to the button event, and is determined according to the comparison result. For example, if the button duration corresponding to the button event is less than the preset duration threshold, it is determined that the button event is a short button event.
- the unit scroll distance value corresponds to a distance value in which the view scrolls one step.
- the embodiment may set the unit scroll distance value.
- the unit is The steps of setting the scroll distance value may include:
- a maximum approximation of the pixel density of the display screen of the smart television 100 is calculated.
- the unit scroll distance value is calculated based on a maximum approximation of the unit pixel length and the pixel density of the smart TV 100.
- the calculation formula of the unit rolling distance value may be:
- USV is the unit rolling distance value
- PPIMAX is the maximum approximation of pixel density
- HPX is the unit pixel length
- Px is the resolution horizontal value
- Py is the resolution vertical value
- C is the display screen diagonal length.
- the pixel density is a default value.
- a smart TV 100 with a resolution of 47 inches and 1920*1080 is taken as an example.
- the pixel density is 320, and the unit pixel length is 2.559. According to the above calculation formula, the calculation can be calculated.
- the pixel density of some TVs is not the standard pixel density.
- the embodiment can also solve the problem that the number of pixels (Pixels Per Inch, PPI) per inch of the display screen of some televisions is a non-standard value.
- the present embodiment can solve the problem of calculating the unit scroll distance value of the non-standard pixel density smart television 100 by calculating the maximum approximation of the pixel density, thereby covering all smart TVs 100 compatible.
- the step of calculating a maximum approximation of the pixel density may include:
- a resolution discrete point set of ldpi-xxhdpi is established, wherein the discrete point set set can be: ⁇ [240, 320], [320, 480], [480, 800], [720, 1280], [1080, 1920] ⁇ .
- the ldpi-xxhdpi resolution point set is fitted to obtain the fitted ldpi-xxhdpi distribution curve.
- the pixel density is marked on the coordinates of the fitted ldpi-xxhdpi distribution curve.
- the pixel focus is obtained from the point coordinates of the fitted ldpi-xxhdpi distribution curve and the vertical focus of the ldpi-xxhdpi distribution curve.
- the number of scrolling steps of the view may also be set.
- the setting the number of scrolling steps of the view may include:
- the number of view scroll steps is calculated according to the initial distance value and a preset unit scroll distance value.
- VH is the initial distance value of the view scroll
- USV is the preset unit scroll distance value.
- the screen height direction can display up to 1080 pixels.
- the calculation formula of the view scroll step SP is:
- the initial distance value may include an initial height value or an initial width value. If the view is scrolled up and down, the initial distance value is an initial height value, and if the view is scrolled left and right, the initial distance value is an initial width value.
- the initial distance value is an initial height value
- the initial distance value of the view scroll may be calculated by:
- the image carrier control (ImageView) is detected.
- the getHeigth function is called to obtain the first height value of the picture carrier control.
- the getMeasureHeight function is called to obtain the second height value of the picture carrier control.
- the control view when it is detected that the button time is a long button event, the control view may be scrolled according to the set unit scroll distance value and the view scroll step number.
- the step S220 may include the following sub-steps:
- Sub-step S221 parsing the key event instruction corresponding to the button event.
- the key event sent by the remote control device can be converted into a corresponding key event instruction.
- the button event may include an up direction button, a down direction button, a left direction button, a right direction button, a determine button, and a return button.
- the correspondence between the button event and the button event command can be referred to the following table.
- Sub-step S222 in response to the button event instruction, the control view scrolls the view distance corresponding to the number of view scroll steps.
- the view distance corresponding to the view scroll step is scrolled according to the corresponding direction control view of the button event command. For example, if the button event command is FOCUS_DOWN, then the view is controlled to slide up the view distance corresponding to the number of view scroll steps. If the button event command is FOCUS_UP, then the view is controlled to slide down the view distance corresponding to the view scrolling step number. If the button event instruction is FOCUS_LEFT, then the view is controlled to slide the view distance corresponding to the number of steps of the view to the right.
- button event command is FOCUS_RIGHT
- the view is controlled to slide the view distance corresponding to the number of view scroll steps to the left. If the button event command is FOCUS_FORWORD, then the view is controlled to stop sliding. If the button event command is FOCUS_BACKWORD, then the view is controlled to switch to the view of the previous directory.
- step S220 may further include the following sub-steps:
- Sub-step S223, the scroll monitor is called to monitor the scrolling process of the view.
- Sub-step S224 if a redraw view instruction is received during the scrolling of the view, the redraw event corresponding to the redraw view instruction is processed after the view scroll ends.
- the scrolling of the view can be monitored by calling a scroll monitor (ScrollListener), and detecting whether a redraw view instruction is received during scrolling. If it is detected that the redrawing view instruction is received during the scrolling process, delaying the redrawing event processing, until the scrolling monitor (ScrollListener) monitors that the scrolling of the view ends, processing the processing corresponding to the redrawing view instruction Redraw the event.
- a scroll monitor ScrollListener
- step S230 when the view scrolls the view distance corresponding to the number of scroll steps of the view, the scrolled view is displayed.
- the view after the view scrolls the view distance corresponding to the number of scroll steps of the view, the view completes the maximum scroll distance, and even if the user continues to press the button, the view does not continue to scroll, thereby solving the existing The problem of over-loading the view caused by long button events.
- the unit scroll distance value and the view scroll step number may also be It is not limited to the calculation method provided by this embodiment, for example, it can also be set directly by the user or set by the TV manufacturer.
- the method provided in this embodiment may not be limited to the smart television 100, and may also be applied to devices such as a smart set top box and a television box.
- a preferred embodiment of the present application further provides a view scrolling apparatus 200 installed in the memory 110 and including one or more software function modules executable by the processor 120.
- the device includes:
- the detecting module 210 is configured to detect the received key event.
- step S210 is performed by the detecting module 210.
- the detecting module 210 may include an obtaining module, a comparing module, and a determining module.
- the acquiring module is configured to obtain a button duration corresponding to the button event.
- the sub-step S211 is performed by the obtaining module.
- the comparison module is configured to compare the duration of the button corresponding to the button event with a preset duration threshold.
- the sub-step S212 is performed by the comparison module.
- the determining module is configured to determine whether the long button event is based on the comparison result.
- the sub-step S213 is performed by the determination module.
- the scrolling module 220 is configured to control the view to scroll the view distance corresponding to the number of scrolling steps of the view when the button event is detected as a long button event.
- step S220 is performed by the detecting module 220.
- the device may also include a setup module.
- the scrolling module 220 may include a parsing module, a control module, a calling module, and a redraw processing module.
- the parsing module is configured to parse the key event instruction corresponding to the button event.
- the sub-step S221 is performed by the parsing module.
- control module configured to, in response to the button event instruction, control the view to scroll the view distance corresponding to the number of scroll steps of the view.
- the sub-step S222 is performed by the control module.
- the calling module is configured to call the scroll monitor to monitor the scrolling process of the view.
- the sub-step S223 is performed by the calling module.
- the redrawing processing module is configured to process the redrawing event corresponding to the redrawing view instruction after the scrolling of the view ends when the redrawing view instruction is received during the scrolling of the view.
- the sub-step S224 is performed by the redraw processing module.
- the display module 230 is configured to display the scrolled view when the view scrolls the view distance corresponding to the view scrolling step.
- step S230 is performed by the detecting module 230.
- the view scrolling method and apparatus provided by the embodiments of the present application and the smart TV 100 are provided.
- the method includes: detecting a received key event; and detecting that the key event is a long key event, the control view scrolling the view distance corresponding to the view scrolling step; and scrolling the view scrolling step in the view When scrolling the corresponding view distance, the scrolled view is displayed.
- the technical solution provided by the present application improves the problem of excessive loading of the view caused by the existing Android TV when receiving a long button event, and improves the user experience.
- each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more configurations configured to perform the specified logical functions. Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
- each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or action. Or it can be implemented by a combination of dedicated hardware and computer instructions.
- each functional module in each embodiment of the present application may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
- the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
- the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
- the instructions are used to cause a computing device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
- the view scrolling method, device and smart TV provided by the present application can improve the problem of over-loading of the view caused by the existing Android TV when receiving a long button event, thereby improving the user experience and improving the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种视图滚动方法、装置及智能电视,所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数。其中,所述单位滚动距离值对应视图滚动一步的距离值。该方法包括:对接收的按键事件进行检测(S210);在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离(S220);在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图(S230)。上述视图滚动方法、装置及智能电视可以解决现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。
Description
相关申请的交叉引用
本申请要求于2017年07月05日提交中国专利局的申请号为2017105440209、名称为“视图滚动方法、装置及智能电视”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及视图滚动领域,具体而言,涉及一种视图滚动方法、装置及智能电视。
目前大多数安卓智能电视是根据遥控设备上的按键来控制视图的滚动。由于视图的加载由按键进行控制,因此电视机与用户之间无法进行直接交互。经申请人研究发现,当用户在长按按键时,视图的滚动距离会超过理想距离值而出现无限滑动的情况,从而导致视图出现过度加载,严重影响用户体验。
发明内容
为了克服现有技术中的上述不足,本申请的目的之一在于提供一种视图滚动方法,以改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。
本申请的另一目的在于提供一种视图滚动装置,以改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。
本申请的又一目的在于提供一种智能电视,以改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。
为了实现上述目的,本申请较佳实施例采用的技术方案如下:
本申请较佳实施例提供一种视图滚动方法,应用于智能电视。所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数,其中,所述单位滚动距离值对应视图滚动一步的距离值。所述方法包括:
对接收的按键事件进行检测;
在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;
在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
进一步地,在本申请较佳实施例中,所述方法还包括:
对所述单位滚动距离值进行设置;
所述对所述单位滚动距离值进行设置的方式,包括:
计算像素密度的最大近似值;
根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值。
进一步地,在本申请较佳实施例中,所述根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值的步骤中,所述单位滚动距离值的计算公式为:
其中,USV为单位滚动距离值,PPIMAX为像素密度的最大近似值,HPX为单位像素长度,Px为分辨率横向取值、Py为分辨率纵向取值,C为显示屏幕对角线长度。
进一步地,在本申请较佳实施例中,所述像素密度的最大近似值的计算方式,包括:
建立ldpi-xxhdpi的分辨率离散点集;
对ldpi-xxhdpi的分辨率离散点集进行拟合,得到拟合后的ldpi-xxhdpi分布曲线;
根据拟合后的ldpi-xxhdpi分布曲线,将像素密度标记在拟合后的ldpi-xxhdpi分布曲线的坐标上;
求取像素密度在拟合后的ldpi-xxhdpi分布曲线的点坐标与ldpi-xxhdpi分布曲线的垂直焦点;
根据所述垂直焦点得到所述像素密度的最大近似值。
进一步地,在本申请较佳实施例中,所述方法还包括;
对所述视图滚动步数进行设置;
所述对所述视图滚动步数进行设置的方式,包括:
计算视图滚动的初始距离值,其中,所述初始距离值包括初始高度值或者初始宽度值;
根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数。
进一步地,在本申请较佳实施例中,所述根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数的步骤中,所述视图滚动步数的计算公式为:
其中,VH为视图滚动的初始距离值,USV为预设的单位滚动距离值。
进一步地,在本申请较佳实施例中,若所述初始距离值为初始高度值,则所述视图滚
动的初始距离值的计算方式,包括:
对图片载体控件进行检测;
若所述图片载体控件处于创建阶段,则调用getHeigth函数获取所述图片载体控件的第一高度值;
判断所述第一高度值是否大于0,若大于0,则将所述第一高度值作为所述视图滚动的初始高度值;以及
若所述图片载体控件创建完成并被容纳入滚动控件,则调用getMeasureHeight函数获取所述图片载体控件的第二高度值;
判断所述第二高度值是否大于所述第一高度值,若大于所述第一高度值,则将所述第二高度值作为所述视图滚动的初始高度值。
进一步地,在本申请较佳实施例中,所述对接收的按键事件进行检测的步骤,包括:
获取所述按键事件对应的按键时长;
将所述按键事件对应的按键时长与预设时长阈值进行比对;
根据比对结果判断是否为长按键事件。
进一步地,在本申请较佳实施例中,所述在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:
解析所述按键事件对应的按键事件指令;
响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。
进一步地,在本申请较佳实施例中,所述解析所述按键事件对应的按键事件指令的步骤包括:
将遥控设备发送的按键事件转化为对应的按键事件指令,其中,所述按键事件包括上方向按键、下方向按键、左方向按键、右方向按键、确定按键以及返回按键,其对应的按键事件指令分别为FOCUS_UP、FOCUS_DOWN、FOCUS_LEFT、FOCUS_RIGHT、FOCUS_FORWORD以及FOCUS_BACKWORD。
进一步地,在本申请较佳实施例中,所述响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离的步骤包括:
在解析得到所述按键事件对应的按键事件指令后,响应所述按键事件指令,按照所述按键事件指令的对应方向控制视图滚动所述视图滚动步数对应的视图距离。
进一步地,在本申请较佳实施例中,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:
调用滚动监控器对视图的滚动过程进行监控;
若在视图的滚动过程中接收到重绘视图指令,则在所述视图滚动结束后处理所述重绘
视图指令对应的重绘事件。
进一步地,在本申请较佳实施例中,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:
调用滚动监控器来监控所述视图的滚动,并检测滚动过程中是否接收到重绘视图指令;
若检测到滚动过程中接收到所述重绘视图指令,则延迟对重绘事件进行处理,直到所述滚动监控器监控到所述视图滚动结束后,开始处理所述重绘视图指令对应的重绘事件。
进一步地,在本申请较佳实施例中,所述在所述视图滚动完所述视图滚动步数对应的视图距离时显示滚动后的视图的步骤包括:
在所述视图滚动完所述视图滚动步数对应的视图距离后,所述视图完成最大滚动距离,以使所述视图在用户继续长按按键时不再继续滚动。
本申请较佳实施例还提供一种视图滚动装置,应用于智能电视,。所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数。其中,所述单位滚动距离值对应视图滚动一步的距离值。所述装置包括:
检测模块,配置为对接收的按键事件进行检测;
滚动模块,配置为在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;
显示模块,配置为在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
进一步地,在本申请较佳实施例中,所述装置还包括:
设置模块,配置为对所述单位滚动距离值进行设置。
进一步地,在本申请较佳实施例中,所述检测模块包括:
获取模块,配置为获取所述按键事件对应的按键时长;
比对模块,配置为将所述按键事件对应的按键时长与预设时长阈值进行比对;
判定模块,配置为根据比对结果判断是否为长按键事件。
进一步地,在本申请较佳实施例中,所述滚动模块包括:
解析模块,配置为解析所述按键事件对应的按键事件指令;
控制模块,配置为响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。
本申请较佳实施例还提供一种智能电视,所述智能电视包括:
存储器;
处理器;以及
视图滚动装置,所述视图滚动装置安装于所述存储器中并包括一个或多个由所述处理器执行的软件功能模块,所述装置包括:
检测模块,配置为对接收的按键事件进行检测;
滚动模块,配置为在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;
显示模块,配置为在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
本申请较佳实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述所述方法的步骤。
相对于现有技术而言,本申请具有以下有益效果:
本申请实施例提供的视图滚动方法、装置及智能电视。该方法包括:对接收的按键事件进行检测;在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。基于上述设计,本申请提供的技术方案可以改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验,提高了用户体验。
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1为本申请较佳实施例提供的智能电视的一种方框示意图;
图2为本申请较佳实施例提供的视图滚动方法的一种流程示意图;
图3为图2中所示的步骤S210包括的各个子步骤的一种流程示意图;
图4为图2中所示的步骤S220包括的各个子步骤的一种流程示意图;
图5为图2中所示的步骤S220包括的各个子步骤的另一种流程示意图;
图6为本申请较佳实施例提供的视图滚动装置的一种功能模块图。
图标:100-智能电视;110-存储器;120-处理器;130-通信单元;140-存储控制器;150-显示单元;200-视图滚动装置;210-检测模块;220-滚动模块;230-显示模块。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语"第一"、"第二"等仅用于区分描述,而不能理解为指示或暗示相对重要性。
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
本申请较佳实施例提供的视图滚动方法和视图滚动装置可以应用于显示单元的智能设备中,用于控制显示单元所显示的视图的滚动,其能够改善长按控制设备带来的视图过度加载的问题,以提高用户体验。所述智能设备可以是智能电视、智能机顶盒、电视机盒子、平板电脑、移动终端等。所述智能设备可以是基于安卓(Android)系统的电子设备,也可以是基于其他智能操作系统的电子设备。以下以智能设备为智能电视为例,对本申请的方案作具体说明:
请参阅图1,为本申请较佳实施例提供的智能电视100的方框示意图。本申请实施例中,所述智能电视100为安卓(Android)智能电视。所述智能电视100可以与遥控设备(例如,遥控器,移动终端等)连接,以接收遥控设备发送的按键信号。
如图1所示,所述智能电视100可以包括存储器110、处理器120、通信单元130、存储控制器140以及显示单元150。所述存储器110、处理器120、通信单元130、存储控制器140以及显示单元150相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。存储器110中存储有视图滚动装置200,所述视图滚动装置200包括至少一个可以软件或固件(Firmware)的形式存储于所述存储器110中的软件功能模块,所述处理器120通过运行存储在存储器110内的软件程序以及模块,如本申请实施例中的视图滚动装置200,从而执行各种功能应用以及数据处理,即实现本申请实施例中的视图滚动方法。
其中,所述存储器110可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器110可进一步包括相对于处理器120远程设置的远程存储器,这些远程存储器可以通过网络连接至所述智能电视100。其中,存储器110配置为存储程序,所述处理器120在接收到执
行指令后,执行所述程序。进一步地,通信单元130将各种输入/输入装置耦合至处理器120以及存储器110,上述存储器110内的软件程序以及模块还可包括操作系统,其可包括各种用于管理系统任务(例如内存管理、存储设备控制、电源管理等)的软件组件和/或驱动,并可与各种硬件或软件组件相互通讯,从而提供其他软件组件的运行环境。
所述处理器120可以是一种集成电路芯片,具有信号的处理能力。上述的处理器120可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等。还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器120也可以是任何常规的处理器等。
所述显示单元150可以在所述智能电视100与用户之间同时提供一个输出及输入界面。具体地,所述显示单元150向用户显示视频或者图像输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。此外,所述显示单元150还可以接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。可选地,所述显示单元150的具体实例可以包括但并不限于液晶显示器或发光聚合物显示器。
可以理解,图1所示的结构仅为示意,所述智能电视100还可以包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。
请参阅图2,为本申请较佳实施例提供的视图滚动方法的一种流程示意图,所述方法由图1所示的智能电视100执行。所应说明的是,本申请实施例提供的方法不以图2及以下所述的具体顺序为限制。所述方法的具体流程如下:
步骤S210,对接收的按键事件进行检测。
其中,按键事件表征用户通过按动遥控设备上的控制键以控制智能电视100的显示单元150执行相应的显示任务。本实施例中,按键事件可以为用户通过按动遥控设备上的控制键来控制智能电视100的显示单元150执行视图滚动。
本实施例中,作为一种实施方式,请参阅图3,所述步骤S210可以包括以下子步骤:
子步骤S211,获取按键事件对应的按键时长。
其中,本实施例中,按键时长表征用户按动遥控设备上的控制键的时长。应当理解,按键时长可以为用户按动遥控设备的控制键直至松开控制键之间所耗费的时间。根据不同
的按键时长,可以设置不同的显示任务,例如视图的滚动。
子步骤S212,将所述按键事件对应的按键时长与预设时长阈值进行比对。
本实施例中,在接收到遥控设备发送的按键事件(KeyEvent)时,将所述按键事件对应的按键时长与预设时长阈值进行比对。其中,所述预设时长阈值可以根据设计需求进行设置,本实施例对此不作具体限制。作为一种可选的实施方式,所述预设时长阈值可以设置为120ms。
子步骤S213,根据比对结果判断所述按键事件是否为长按键事件。
本实施例中,若所述按键事件对应的按键时长大于所述预设时长阈值,则判定所述按键事件为长按键事件。
步骤S220,在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离。
现有的智能电视的视图的加载都由按键进行控制,由于绝大多数智能电视没有屏幕压力传感器,且人与智能电视之间通过遥控设备进行意图传输,因此智能电视与人之间无法进行直接交互,从而导致的一个问题是,当用户按下按键(例如,向下按键),假设视图滚动20个单位距离(像素密度PPI);如果用户长按向下按键一秒,按照手指按遥控按键的最快频率为20ms,那么1s内会触发50次按键,因此1s理想滚动距离为50*20=1000个单位距离,但经申请人实际测试发现视图快速滚动了至少6000个单位距离,远远超过理想滚动距离。
上述按键模式中,长按1秒导致滑动距离远远超过理想距离值,经发明人研究发现根本原因在于按键指令在分发消费的过程中是以一种队列进行先进先出的处理,而长按按键将导致按键事件大批量地进入按键队列,从而导致在极短的时间内按键事件队列出现阻塞,而阻塞的后果就是View无法获取按键事件结束指令(KeyUp),进而导致视图出现无限滑动,视图容器控件顶部或底部容易出现空白,尤其是在某些情况(例如,高清大图的视图加载过程中),长按按键很容易出现应用程序无响应(Application Not Responsed,ANR)异常或内存溢出(Out Of Memery,OOM)异常。
而本实施例可以完美解决上述长按键事件带来的视图过度加载的问题。在本实施例中,所述智能电视100预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数。其中,所述短按键事件由将所述按键事件对应的按键时长与预设时长阈值进行比对,并根据比对结果判断得到。例如,若所述按键事件对应的按键时长小于所述预设时长阈值,则判定所述按键事件为短按键事件。另外,所述单位滚动距离值对应视图滚动一步的距离值。
进一步地,本实施例可以对所述单位滚动距离值进行设置。本实施例中,对所述单位
滚动距离值进行设置的步骤可以包括:
计算所述智能电视100的显示屏幕的像素密度的最大近似值。
根据所述智能电视100的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值。
本实施例中,所述单位滚动距离值的计算公式可以为:
其中,USV为单位滚动距离值,PPIMAX为像素密度最大近似值,HPX为单位像素长度,Px为分辨率横向取值、Py为分辨率纵向取值,C为显示屏幕对角线长度。
在一般情况下,所述像素密度为默认值,例如,以47英寸,1920*1080分辨率的智能电视100为例,其像素密度为320,单位像素长度为2.559,根据上述计算式可以计算出所述USV=320*2.55=818.97英寸,因此每按下一次向下按键(KeyDown),那么视图就向上滚动818.97英寸的距离。但是由于电视市场的杂乱无章,导致部分电视的像素密度并非标准的像素密度取值。
鉴于此,本实施例还可以解决部分电视的显示屏幕每英寸所拥有的像素数目(Pixels Per Inch,PPI)为非标准值的问题。作为一种实施方式,本实施例可以通过计算像素密度的最大近似值来解决非标准像素密度的智能电视100的单位滚动距离值计算问题,从而覆盖兼容目前所有的智能电视100。
本实施例中,所述计算像素密度的最大近似值的步骤可以包括:
建立ldpi-xxhdpi的分辨率离散点集,其中,所述离散点集集合可以为:{[240,320],[320,480],[480,800],[720,1280],[1080,1920]}。
对ldpi-xxhdpi的分辨率离散点集进行拟合,得到拟合后的ldpi-xxhdpi分布曲线。
根据上述拟合后的ldpi-xxhdpi分布曲线,将像素密度标记在拟合后的ldpi-xxhdpi分布曲线的坐标上。
求取像素密度在拟合后的ldpi-xxhdpi分布曲线的点坐标与ldpi-xxhdpi分布曲线的垂直焦点。
根据所述垂直焦点得到所述像素密度的最大近似值。
进一步地,本实施例中还可以对所述视图滚动步数进行设置。所述对所述视图滚动步数进行设置可以包括:
计算视图滚动的初始距离值。
根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数。
本实施例中,所述视图滚动步数的计算公式为:
其中,VH为视图滚动的初始距离值,USV为预设的单位滚动距离值。
以47英寸,1920*1080分辨率的智能电视100为例,屏幕高度方向最大可显示1080像素的视图,在上下滚动高度为1920像素时,单位滚动距离值USV=818.97<1080,因此USV计算合理,则所述视图滚动步数SP的计算公式为:
计算SP=1920/818.97≈3,其中VH为视图的初始距离值。那么所述视图滚动步数则为三步。
本实施例中,所述初始距离值可以包括初始高度值或者初始宽度值。若视图进行上下滚动,则所述初始距离值为初始高度值,若视图进行左右滚动,则所述初始距离值为初始宽度值。
可选地,以所述初始距离值为初始高度值为例,所述视图滚动的初始距离值的计算方式可以包括:
对图片载体控件(ImageView)进行检测。
若所述图片载体控件处于创建阶段,则调用getHeigth函数获取所述图片载体控件的第一高度值。
判断所述第一高度值是否大于0,若大于0,则将所述第一高度值作为所述视图滚动的初始高度值。
若所述图片载体控件创建完成并被容纳入滚动控件,也就是视图滚动之前的阶段,此时则调用getMeasureHeight函数获取所述图片载体控件的第二高度值。
判断所述第二高度值是否大于所述第一高度值,若大于所述第一高度值,则将所述第二高度值作为所述视图滚动的初始高度值;若不大于所述第一高度值,则将所述第一高度值作为所述视图滚动的初始高度值。
本实施例中,在检测到所述按键时间为长按键事件时,可以根据上述设置的单位滚动距离值和视图滚动步数,控制视图对应进行滚动。本实施例中,请参阅图4,所述步骤S220可以包括以下子步骤:
子步骤S221,解析所述按键事件对应的按键事件指令。
本实施例中,可以将遥控设备发送的按键事件转化为对应的按键事件指令。其中,所述按键事件可以包括上方向按键、下方向按键、左方向按键、右方向按键、确定按键以及返回按键。所述按键事件与按键事件指令的对应关系可以参阅下表。
子步骤S222,响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。
本实施例中,在解析得到所述按键事件对应的按键事件指令后,响应所述按键事件指令,按照所述按键事件指令的对应方向控制视图滚动所述视图滚动步数对应的视图距离。例如,若所述按键事件指令为FOCUS_DOWN,那么就控制所述视图向上滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_UP,那么就控制所述视图向下滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_LEFT,那么就控制所述视图向右滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_RIGHT,那么就控制所述视图向左滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_FORWORD,那么就控制所述视图停止滑动。若所述按键事件指令为FOCUS_BACKWORD,那么就控制所述视图切换至前一目录的视图。
需要注意的是,视图在滚动过程中一旦出现重绘,那么其初始长度值会发生变化,因此计算的单位滚动距离值USV会失效。为了防止视图重绘导致的单位滚动距离值计算失效的问题,请参阅图5,所述步骤S220还可以包括以下子步骤:
子步骤S223,调用滚动监控器对视图的滚动过程进行监控。
子步骤S224,若在视图的滚动过程中接收到重绘视图指令,则在所述视图滚动结束后处理所述重绘视图指令对应的重绘事件。
本实施例中,可以通过调用滚动监控器(ScrollListener)来监控所述视图的滚动,并检测滚动过程中是否接收到重绘视图指令。若检测到滚动过程中接收到重绘视图指令,则延迟对重绘事件进行处理,直到所述滚动监控器(ScrollListener)监控到所述视图滚动结束后,开始处理所述重绘视图指令对应的重绘事件。
请再次参阅图2,步骤S230,在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
本实施例中,在所述视图滚动完所述视图滚动步数对应的视图距离后,所述视图完成最大滚动距离,即使用户继续长按按键,视图不再继续滚动,从而解决了现有的长按键事件带来的视图过度加载的问题。
值得注意的是,在其它实施方式中,所述单位滚动距离值和所述视图滚动步数也可以
不仅限于本实施例提供的计算方式,例如,还可以由用户直接进行设置,或者由电视厂商进行设置。此外,还需要注意的是,本实施例提供的方法也可以不仅限于应用于智能电视100,还可以应用于智能机顶盒、电视机盒子等设备上。
进一步地,请参阅图6,本申请较佳实施例还提供一种视图滚动装置200,所述装置安装于所述存储器110中并包括一个或多个可由所述处理器120执行的软件功能模块,所述装置包括:
检测模块210,配置为对接收的按键事件进行检测。
在本申请实施例中,步骤S210由检测模块210执行。
进一步地,本实施例中,检测模块210可以包括获取模块、比对模块和判定模块。
获取模块,配置为获取所述按键事件对应的按键时长。
在本申请实施例中,子步骤S211由获取模块执行。
比对模块,配置为将所述按键事件对应的按键时长与预设时长阈值进行比对。
在本申请实施例中,子步骤S212由比对模块执行。
判定模块,配置为根据比对结果判断是否为长按键事件。
在本申请实施例中,子步骤S213由判定模块执行。滚动模块220,配置为在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离。
在本申请实施例中,步骤S220由检测模块220执行。
所述装置还可以包括设置模块。
设置模块,配置为对单位滚动距离值进行设置。其中单位滚动距离值的设置方式可以参见上述视图滚动方法,在此不再赘述。
进一步地,本实施例中,滚动模块220可以包括解析模块、控制模块、调用模块和重绘处理模块。
解析模块,配置为解析所述按键事件对应的按键事件指令。
在本申请实施例中,子步骤S221由解析模块执行。
控制模块,配置为响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。
在本申请实施例中,子步骤S222由控制模块执行。
调用模块,配置为调用滚动监控器对视图的滚动过程进行监控。
在本申请实施例中,子步骤S223由调用模块执行。
重绘处理模块,配置为在视图的滚动过程中接收到重绘视图指令时,在所述视图滚动结束后处理所述重绘视图指令对应的重绘事件。
在本申请实施例中,子步骤S224由重绘处理模块执行。
显示模块230,配置为在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
在本申请实施例中,步骤S230由检测模块230执行。
本实施例中的各功能模块的具体操作方法可参照上述方法实施例中相应步骤的详细描述,在此不再重复赘述。
综上所述,本申请实施例提供的视图滚动方法、装置及智能电视100。该方法包括:对接收的按键事件进行检测;在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。基于上述设计,本申请提供的技术方案改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置和方法实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个配置为实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算设备(可以是个人计算机,电子设备,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
需要说明的是,在本文中,术语"包括"、"包含"或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句"包括一个……"限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。
本申请提供的视图滚动方法、装置及智能电视能够改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验,提高了用户体验。
Claims (20)
- 一种视图滚动方法,应用于智能电视,其特征在于,所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数,其中,所述单位滚动距离值对应视图滚动一步的距离值,所述方法包括:对接收的按键事件进行检测;在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
- 根据权利要求1所述的视图滚动方法,其特征在于,所述方法还包括:对所述单位滚动距离值进行设置;所述对所述单位滚动距离值进行设置的方式,包括:计算所述智能电视的显示屏幕的像素密度的最大近似值;根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值。
- 根据权利要求2所述的视图滚动方法,其特征在于,所述像素密度的最大近似值的计算方式,包括:建立ldpi-xxhdpi的分辨率离散点集;对ldpi-xxhdpi的分辨率离散点集进行拟合,得到拟合后的ldpi-xxhdpi分布曲线;根据拟合后的ldpi-xxhdpi分布曲线,将像素密度标记在拟合后的ldpi-xxhdpi分布曲线的坐标上;求取像素密度在拟合后的ldpi-xxhdpi分布曲线的点坐标与ldpi-xxhdpi分布曲线的垂直焦点;根据所述垂直焦点得到所述像素密度的最大近似值。
- 根据权利要求2所述的视图滚动方法,其特征在于,所述方法还包括;对所述视图滚动步数进行设置;所述对所述视图滚动步数进行设置的方式,包括:计算视图滚动的初始距离值,其中,所述初始距离值包括初始高度值或者初始宽度值;根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数。
- 根据权利要求5所述的视图滚动方法,其特征在于,若所述初始距离值为初始高度值,则所述视图滚动的初始距离值的计算方式,包括:对图片载体控件进行检测;若所述图片载体控件处于创建阶段,则调用getHeigth函数获取所述图片载体控件的第一高度值;判断所述第一高度值是否大于0,若大于0,则将所述第一高度值作为所述视图滚动的初始高度值;以及若所述图片载体控件创建完成并被容纳入滚动控件,则调用getMeasureHeight函数获取所述图片载体控件的第二高度值;判断所述第二高度值是否大于所述第一高度值,若大于所述第一高度值,则将所述第二高度值作为所述视图滚动的初始高度值。
- 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述对接收的按键事件进行检测的步骤,包括:获取所述按键事件对应的按键时长;将所述按键事件对应的按键时长与预设时长阈值进行比对;根据比对结果判断是否为长按键事件。
- 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:解析所述按键事件对应的按键事件指令;响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。
- 根据权利要求9所述的视图滚动方法,其特征在于,所述解析所述按键事件对 应的按键事件指令的步骤包括:将所述遥控设备发送的按键事件转化为对应的按键事件指令,其中,所述按键事件包括上方向按键、下方向按键、左方向按键、右方向按键、确定按键以及返回按键,其对应的所述按键事件指令分别为FOCUS_UP、FOCUS_DOWN、FOCUS_LEFT、FOCUS_RIGHT、FOCUS_FORWORD以及FOCUS_BACKWORD。
- 根据权利要求9所述的视图滚动方法,其特征在于,所述响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离的步骤包括:在解析得到所述按键事件对应的按键事件指令后,响应所述按键事件指令,按照所述按键事件指令的对应方向控制视图滚动所述视图滚动步数对应的视图距离。
- 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:调用滚动监控器对视图的滚动过程进行监控;若在视图的滚动过程中接收到重绘视图指令,则在所述视图滚动结束后处理所述重绘视图指令对应的重绘事件。
- 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:调用滚动监控器来监控所述视图的滚动,并检测滚动过程中是否接收到重绘视图指令;若检测到滚动过程中接收到所述重绘视图指令,则延迟对重绘事件进行处理,直到所述滚动监控器监控到所述视图滚动结束后,开始处理所述重绘视图指令对应的重绘事件。
- 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述在所述视图滚动完所述视图滚动步数对应的视图距离时显示滚动后的视图的步骤包括:在所述视图滚动完所述视图滚动步数对应的视图距离后,所述视图完成最大滚动距离,以使所述视图在用户继续长按按键时不再继续滚动。
- 一种视图滚动装置,应用于智能电视,其特征在于,所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数,其中,所述单位滚动距离值对应视图滚动一步的距离值,所述装置包括:检测模块,配置为对接收的按键事件进行检测;滚动模块,配置为在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;显示模块,配置为在所述视图滚动完所述视图滚动步数对应的视图距离时,显示 滚动后的视图。
- 根据权利要求15所述的视图滚动装置,其特征在于,所述装置还包括:设置模块,配置为对所述单位滚动距离值进行设置。
- 根据权利要求15所述的视图滚动装置,其特征在于,所述检测模块包括:获取模块,配置为获取所述按键事件对应的按键时长;比对模块,配置为将所述按键事件对应的按键时长与预设时长阈值进行比对;判定模块,配置为根据比对结果判断是否为长按键事件。
- 根据权利要求15所述的视图滚动装置,其特征在于,所述滚动模块包括:解析模块,配置为解析所述按键事件对应的按键事件指令;控制模块,配置为响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。
- 一种智能电视,其特征在于,所述智能电视包括:存储器;处理器;以及视图滚动装置,所述视图滚动装置安装于所述存储器中并包括一个或多个由所述处理器执行的软件功能模块,所述装置包括:检测模块,配置为对接收的按键事件进行检测;滚动模块,配置为在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;显示模块,配置为在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1~14任一项所述方法的步骤。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710544020.9A CN107368243B (zh) | 2017-07-05 | 2017-07-05 | 视图滚动方法、装置及智能电视 |
| CN201710544020.9 | 2017-07-05 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019006958A1 true WO2019006958A1 (zh) | 2019-01-10 |
Family
ID=60305877
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/112212 Ceased WO2019006958A1 (zh) | 2017-07-05 | 2017-11-22 | 视图滚动方法、装置及智能电视 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107368243B (zh) |
| WO (1) | WO2019006958A1 (zh) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107368243B (zh) * | 2017-07-05 | 2019-09-10 | 武汉斗鱼网络科技有限公司 | 视图滚动方法、装置及智能电视 |
| CN108279821B (zh) * | 2017-12-19 | 2020-08-04 | 福建天泉教育科技有限公司 | 一种基于Unity3D引擎的滚动效果实现方法及终端 |
| CN109656639B (zh) * | 2018-12-25 | 2022-04-15 | 深圳创维数字技术有限公司 | 一种界面滚动方法、装置、设备及介质 |
| CN112055241B (zh) * | 2020-09-17 | 2021-11-09 | 四川长虹电器股份有限公司 | 智能电视空鼠遥控器及其控制方法 |
| CN113225602A (zh) * | 2021-05-27 | 2021-08-06 | Vidaa美国公司 | 一种显示设备、及电视主页内容加载显示的控制方法 |
| WO2022165153A1 (en) | 2021-01-28 | 2022-08-04 | VIDAA USA, Inc. | Method for displaying media asset data and display apparatus |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101273633A (zh) * | 2005-09-27 | 2008-09-24 | 汤姆森许可贸易公司 | 通过图形特征的连续滚动来浏览列表的方法及相关终端 |
| CN102375662A (zh) * | 2010-08-20 | 2012-03-14 | 浪潮乐金数字移动通信有限公司 | 一种移动终端滚动条控制器及其控制方法 |
| CN105308550A (zh) * | 2013-06-17 | 2016-02-03 | 日立麦克赛尔株式会社 | 信息显示终端 |
| CN105760066A (zh) * | 2016-02-15 | 2016-07-13 | 广州阿里巴巴文学信息技术有限公司 | 一种页面更新方法及装置 |
| CN107368243A (zh) * | 2017-07-05 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | 视图滚动方法、装置及智能电视 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102905183A (zh) * | 2012-10-11 | 2013-01-30 | 中兴通讯股份有限公司 | 一种实现电视分屏观看的方法、机顶盒及电视系统 |
| CN106911969B (zh) * | 2017-03-17 | 2019-09-20 | 武汉斗鱼网络科技有限公司 | 一种焦点搜索方法、装置及电子设备 |
-
2017
- 2017-07-05 CN CN201710544020.9A patent/CN107368243B/zh active Active
- 2017-11-22 WO PCT/CN2017/112212 patent/WO2019006958A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101273633A (zh) * | 2005-09-27 | 2008-09-24 | 汤姆森许可贸易公司 | 通过图形特征的连续滚动来浏览列表的方法及相关终端 |
| CN102375662A (zh) * | 2010-08-20 | 2012-03-14 | 浪潮乐金数字移动通信有限公司 | 一种移动终端滚动条控制器及其控制方法 |
| CN105308550A (zh) * | 2013-06-17 | 2016-02-03 | 日立麦克赛尔株式会社 | 信息显示终端 |
| CN105760066A (zh) * | 2016-02-15 | 2016-07-13 | 广州阿里巴巴文学信息技术有限公司 | 一种页面更新方法及装置 |
| CN107368243A (zh) * | 2017-07-05 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | 视图滚动方法、装置及智能电视 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107368243B (zh) | 2019-09-10 |
| CN107368243A (zh) | 2017-11-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8686966B2 (en) | Information processing apparatus, information processing method and program | |
| US20180365086A1 (en) | Method for Processing Data Collected by Touch Panel, and Terminal Device | |
| US11262968B2 (en) | Method and system for wireless screen transmission | |
| EP3454185B1 (en) | Data processing method and device | |
| CN109508213B (zh) | 一种视图渲染方法、装置、介质及智能终端 | |
| WO2020098605A1 (zh) | 菜单显示方法、装置、设备及存储介质 | |
| GB2519558A (en) | Touchscreen device with motion sensor | |
| CN107368243B (zh) | 视图滚动方法、装置及智能电视 | |
| CN107148776A (zh) | 获取视频数据的方法、装置、系统及计算机可读存储介质 | |
| WO2016131274A1 (zh) | 一种终端显示控制方法、装置及终端 | |
| CN107968939B (zh) | 显示画面的处理方法、装置、存储介质及电子装置 | |
| JP2015088085A (ja) | 表示装置及び表示方法 | |
| CN105224208B (zh) | 一种页面显示的方法及智能手表 | |
| CN109634487B (zh) | 信息显示方法、装置及存储介质 | |
| US11733955B2 (en) | Split-screen display method, electronic device, and computer-readable medium | |
| KR20140098552A (ko) | 포인터 표시 제어 방법 및 포인터 표시 방법과 그 방법이 적용되는 장치 | |
| US20190087077A1 (en) | Information processing apparatus, screen control method | |
| KR101791222B1 (ko) | 마우스 기능 제공 휴대 전자기기 및 그 운용 방법 | |
| CN111427501A (zh) | 触控实现方法及交互智能设备 | |
| US20150234543A1 (en) | Information processing method and electronic device | |
| CN114286978A (zh) | 触摸屏刷新率的更新方法、装置、移动终端及存储介质 | |
| WO2020133141A1 (zh) | 一种显示方法、电子设备及计算机可读存储介质 | |
| WO2018205745A1 (zh) | 用于便携设备的输入界面显示系统及方法 | |
| US20160343104A1 (en) | Displaying Method and Display Terminal | |
| CN112005296B (zh) | 利用机器学习来选择显示器 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17917028 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17917028 Country of ref document: EP Kind code of ref document: A1 |



