WO2019006958A1 - View scrolling method and apparatus, and smart television - Google Patents

View scrolling method and apparatus, and smart television Download PDF

Info

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
Application number
PCT/CN2017/112212
Other languages
French (fr)
Chinese (zh)
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 武汉斗鱼网络科技有限公司
Publication of WO2019006958A1 publication Critical patent/WO2019006958A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0485Scrolling or panning
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42212Specific keyboard arrangements
    • H04N21/42213Specific keyboard arrangements for facilitating data entry
    • H04N21/42215Specific 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
    • 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

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)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A view scrolling method and apparatus, and a smart television. A unit scrolling distance value corresponding to a short key event and the number of steps of view scrolling corresponding to a long key event are pre-configured in the smart television, wherein the unit scrolling distance value corresponds to a distance value when the view scrolls by one step. The method comprises: detecting a received key event (S210); when the key event is detected as a long key event, controlling the view to scroll by a view distance corresponding to the number of steps of view scrolling (S220); when the view completes scrolling by the view distance corresponding to the number of steps of view scrolling, displaying a view after scrolling (S230). According to the view scrolling method and apparatus, and the smart television, a problem of view overloading brought about when an Android television receives a long key event can be solved, and the user experience is improved.

Description

视图滚动方法、装置及智能电视View scrolling method, device and smart TV
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年07月05日提交中国专利局的申请号为2017105440209、名称为“视图滚动方法、装置及智能电视”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 2017105440209, entitled "View Rolling Method, Apparatus, and Smart TV", filed on July 5, 2017, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本申请涉及视图滚动领域,具体而言,涉及一种视图滚动方法、装置及智能电视。The present application relates to the field of view scrolling, and in particular to a view scrolling method, device, and smart TV.
背景技术Background technique
目前大多数安卓智能电视是根据遥控设备上的按键来控制视图的滚动。由于视图的加载由按键进行控制,因此电视机与用户之间无法进行直接交互。经申请人研究发现,当用户在长按按键时,视图的滚动距离会超过理想距离值而出现无限滑动的情况,从而导致视图出现过度加载,严重影响用户体验。At present, most Android smart TVs control the scrolling of views according to the buttons on the remote control device. Since the loading of the view is controlled by the buttons, there is no direct interaction between the TV and the user. According to the applicant's research, when the user presses a button for a long time, the scrolling distance of the view will exceed the ideal distance value and the infinite sliding will occur, resulting in excessive loading of the view, which seriously affects the user experience.
发明内容Summary of the invention
为了克服现有技术中的上述不足,本申请的目的之一在于提供一种视图滚动方法,以改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。In order to overcome the above-mentioned deficiencies in the prior art, 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.
为了实现上述目的,本申请较佳实施例采用的技术方案如下:In order to achieve the above object, the technical solution adopted by the preferred embodiment of the present application is as follows:
本申请较佳实施例提供一种视图滚动方法,应用于智能电视。所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数,其中,所述单位滚动距离值对应视图滚动一步的距离值。所述方法包括: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:
对接收的按键事件进行检测;Detecting received key events;
在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;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.
进一步地,在本申请较佳实施例中,所述方法还包括:Further, in a preferred embodiment of the present application, the method further includes:
对所述单位滚动距离值进行设置;Setting the unit scroll distance value;
所述对所述单位滚动距离值进行设置的方式,包括:The manner of setting the unit scroll distance value includes:
计算像素密度的最大近似值;Calculate the maximum approximation of the pixel density;
根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值。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.
进一步地,在本申请较佳实施例中,所述根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值的步骤中,所述单位滚动距离值的计算公式为:Further, in the preferred embodiment of the present application, in the step of calculating the unit scroll distance value according to the maximum approximation value of the unit pixel length and the pixel density of the smart TV, the calculation formula of the unit scroll distance value is :
Figure PCTCN2017112212-appb-000001
Figure PCTCN2017112212-appb-000001
其中,USV为单位滚动距离值,PPIMAX为像素密度的最大近似值,HPX为单位像素长度,Px为分辨率横向取值、Py为分辨率纵向取值,C为显示屏幕对角线长度。Among them, 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, and C is the display screen diagonal length.
进一步地,在本申请较佳实施例中,所述像素密度的最大近似值的计算方式,包括:Further, in the preferred embodiment of the present application, the calculation method of the maximum approximation of the pixel density includes:
建立ldpi-xxhdpi的分辨率离散点集;Establish a resolution point set of ldpi-xxhdpi;
对ldpi-xxhdpi的分辨率离散点集进行拟合,得到拟合后的ldpi-xxhdpi分布曲线;Fitting the resolution discrete point set of ldpi-xxhdpi to obtain a fitted ldpi-xxhdpi distribution curve;
根据拟合后的ldpi-xxhdpi分布曲线,将像素密度标记在拟合后的ldpi-xxhdpi分布曲线的坐标上;Marking the pixel density on the coordinates of the fitted ldpi-xxhdpi distribution curve according to the fitted ldpi-xxhdpi distribution curve;
求取像素密度在拟合后的ldpi-xxhdpi分布曲线的点坐标与ldpi-xxhdpi分布曲线的垂直焦点;Calculate the pixel focus of the point coordinates of the fitted ldpi-xxhdpi distribution curve and the vertical focus of the ldpi-xxhdpi distribution curve;
根据所述垂直焦点得到所述像素密度的最大近似值。A maximum approximation of the pixel density is obtained from the vertical focus.
进一步地,在本申请较佳实施例中,所述方法还包括;Further, in a preferred embodiment of the present application, the method further includes:
对所述视图滚动步数进行设置;Setting the number of scroll steps of the view;
所述对所述视图滚动步数进行设置的方式,包括:The manner of setting the number of scrolling steps of the view includes:
计算视图滚动的初始距离值,其中,所述初始距离值包括初始高度值或者初始宽度值;Calculating an initial distance value of the view scroll, wherein 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.
进一步地,在本申请较佳实施例中,所述根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数的步骤中,所述视图滚动步数的计算公式为:Further, in the preferred embodiment of the present application, in the step of calculating the number of scrolling steps of the view according to the initial distance value and the preset unit rolling distance value, the calculation formula of the number of scrolling steps of the view is :
Figure PCTCN2017112212-appb-000002
Figure PCTCN2017112212-appb-000002
其中,VH为视图滚动的初始距离值,USV为预设的单位滚动距离值。Among them, VH is the initial distance value of the view scroll, and USV is the preset unit scroll distance value.
进一步地,在本申请较佳实施例中,若所述初始距离值为初始高度值,则所述视图滚 动的初始距离值的计算方式,包括:Further, in the preferred embodiment of the present application, if the initial distance value is an initial height value, the view scrolls The calculation of the initial distance value of the motion includes:
对图片载体控件进行检测;Detecting the picture carrier control;
若所述图片载体控件处于创建阶段,则调用getHeigth函数获取所述图片载体控件的第一高度值;If the picture carrier control is in the creation phase, the getHeigth function is called to obtain the first height value of the picture carrier control;
判断所述第一高度值是否大于0,若大于0,则将所述第一高度值作为所述视图滚动的初始高度值;以及Determining whether the first height value is greater than 0, and if greater than 0, using the first height value as an initial height value for scrolling the view;
若所述图片载体控件创建完成并被容纳入滚动控件,则调用getMeasureHeight函数获取所述图片载体控件的第二高度值;If the picture carrier control is created and is received into the scroll control, the getMeasureHeight function is called to obtain the second height value of the picture carrier control;
判断所述第二高度值是否大于所述第一高度值,若大于所述第一高度值,则将所述第二高度值作为所述视图滚动的初始高度值。Determining whether the second height value is greater than the first height value, and if greater than the first height value, using the second height value as an initial height value for scrolling the view.
进一步地,在本申请较佳实施例中,所述对接收的按键事件进行检测的步骤,包括:Further, in the preferred embodiment of the present application, the step of detecting the received key event includes:
获取所述按键事件对应的按键时长;Obtaining a button duration corresponding to the button event;
将所述按键事件对应的按键时长与预设时长阈值进行比对;Comparing the duration of the button corresponding to the button event with a preset duration threshold;
根据比对结果判断是否为长按键事件。It is judged based on the comparison result whether it is a long button event.
进一步地,在本申请较佳实施例中,所述在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:Further, in the preferred embodiment of the present application, when the detecting that the button event is a long button event, the controlling the view scrolling the view distance corresponding to the view scrolling step includes:
解析所述按键事件对应的按键事件指令;Parsing a button event instruction corresponding to the button event;
响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。In response to the button event instruction, the control view scrolls the view distance corresponding to the number of view scroll steps.
进一步地,在本申请较佳实施例中,所述解析所述按键事件对应的按键事件指令的步骤包括:Further, in the preferred embodiment of the present application, the step of parsing the button event instruction corresponding to the button event includes:
将遥控设备发送的按键事件转化为对应的按键事件指令,其中,所述按键事件包括上方向按键、下方向按键、左方向按键、右方向按键、确定按键以及返回按键,其对应的按键事件指令分别为FOCUS_UP、FOCUS_DOWN、FOCUS_LEFT、FOCUS_RIGHT、FOCUS_FORWORD以及FOCUS_BACKWORD。Converting a key event sent by the remote control device into a corresponding key event command, wherein 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, and the corresponding button event instruction They are FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_FORWORD, and FOCUS_BACKWORD.
进一步地,在本申请较佳实施例中,所述响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离的步骤包括:Further, in a preferred embodiment of the present application, 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:
在解析得到所述按键事件对应的按键事件指令后,响应所述按键事件指令,按照所述按键事件指令的对应方向控制视图滚动所述视图滚动步数对应的视图距离。After parsing the button event command corresponding to the button event, in response to the button event command, controlling the view to scroll the view distance corresponding to the view scroll step according to the corresponding direction of the button event command.
进一步地,在本申请较佳实施例中,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:Further, in the preferred embodiment of the present application, the step of the control view scrolling the view distance corresponding to the number of step scrolling steps includes:
调用滚动监控器对视图的滚动过程进行监控;Calling the scroll monitor to monitor the scrolling process of the view;
若在视图的滚动过程中接收到重绘视图指令,则在所述视图滚动结束后处理所述重绘 视图指令对应的重绘事件。If 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.
进一步地,在本申请较佳实施例中,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:Further, in the preferred embodiment of the present application, the step of the control view scrolling the view distance corresponding to the number of step scrolling steps includes:
调用滚动监控器来监控所述视图的滚动,并检测滚动过程中是否接收到重绘视图指令;Invoking a scroll monitor to monitor scrolling of the view 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 monitors that the scrolling of the view ends, processing the weight corresponding to the redrawing view instruction Paint the event.
进一步地,在本申请较佳实施例中,所述在所述视图滚动完所述视图滚动步数对应的视图距离时显示滚动后的视图的步骤包括:Further, in the preferred embodiment of the present application, the step of displaying the scrolled view when the view scrolls the view distance corresponding to the view scrolling step number includes:
在所述视图滚动完所述视图滚动步数对应的视图距离后,所述视图完成最大滚动距离,以使所述视图在用户继续长按按键时不再继续滚动。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.
进一步地,在本申请较佳实施例中,所述装置还包括:Further, in a preferred embodiment of the present application, the device further includes:
设置模块,配置为对所述单位滚动距离值进行设置。A setting module configured to set the unit scroll distance value.
进一步地,在本申请较佳实施例中,所述检测模块包括:Further, in the preferred embodiment of the present application, 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.
进一步地,在本申请较佳实施例中,所述滚动模块包括:Further, in a preferred embodiment of the present application, the scrolling module includes:
解析模块,配置为解析所述按键事件对应的按键事件指令;An analysis module configured to parse a key event instruction corresponding to the button event;
控制模块,配置为响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。And a 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:
存储器; Memory
处理器;以及Processor;
视图滚动装置,所述视图滚动装置安装于所述存储器中并包括一个或多个由所述处理器执行的软件功能模块,所述装置包括:a view scrolling device, the view scrolling device being 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.
相对于现有技术而言,本申请具有以下有益效果:Compared with the prior art, the present application has the following beneficial effects:
本申请实施例提供的视图滚动方法、装置及智能电视。该方法包括:对接收的按键事件进行检测;在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。基于上述设计,本申请提供的技术方案可以改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验,提高了用户体验。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. Based on the above design, 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.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present application, and therefore It should be seen as a limitation on the scope, and those skilled in the art can obtain other related drawings according to these drawings without any creative work.
图1为本申请较佳实施例提供的智能电视的一种方框示意图;1 is a block diagram of a smart television provided by a preferred embodiment of the present application;
图2为本申请较佳实施例提供的视图滚动方法的一种流程示意图;2 is a schematic flowchart of a view scrolling method according to a preferred embodiment of the present application;
图3为图2中所示的步骤S210包括的各个子步骤的一种流程示意图;3 is a schematic flow chart of each sub-step included in step S210 shown in FIG. 2;
图4为图2中所示的步骤S220包括的各个子步骤的一种流程示意图;4 is a schematic flow chart of each sub-step included in step S220 shown in FIG. 2;
图5为图2中所示的步骤S220包括的各个子步骤的另一种流程示意图;FIG. 5 is another schematic flowchart of each sub-step included in step S220 shown in FIG. 2;
图6为本申请较佳实施例提供的视图滚动装置的一种功能模块图。FIG. 6 is a functional block diagram of a view scrolling device according to a preferred embodiment of the present application.
图标:100-智能电视;110-存储器;120-处理器;130-通信单元;140-存储控制器;150-显示单元;200-视图滚动装置;210-检测模块;220-滚动模块;230-显示模块。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.
具体实施方式 Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The detailed description of the embodiments of the present application, which is set forth in the claims All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语"第一"、"第二"等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures. Therefore, once an item is defined in one figure, it is not necessary to further define and explain it in the subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below can be combined with each other without conflict.
本申请较佳实施例提供的视图滚动方法和视图滚动装置可以应用于显示单元的智能设备中,用于控制显示单元所显示的视图的滚动,其能够改善长按控制设备带来的视图过度加载的问题,以提高用户体验。所述智能设备可以是智能电视、智能机顶盒、电视机盒子、平板电脑、移动终端等。所述智能设备可以是基于安卓(Android)***的电子设备,也可以是基于其他智能操作***的电子设备。以下以智能设备为智能电视为例,对本申请的方案作具体说明: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 problem to improve the user experience. 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:
请参阅图1,为本申请较佳实施例提供的智能电视100的方框示意图。本申请实施例中,所述智能电视100为安卓(Android)智能电视。所述智能电视100可以与遥控设备(例如,遥控器,移动终端等)连接,以接收遥控设备发送的按键信号。Please refer to FIG. 1 , which is a block diagram of a smart television 100 according to a preferred embodiment of the present application. In the 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.
如图1所示,所述智能电视100可以包括存储器110、处理器120、通信单元130、存储控制器140以及显示单元150。所述存储器110、处理器120、通信单元130、存储控制器140以及显示单元150相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。存储器110中存储有视图滚动装置200,所述视图滚动装置200包括至少一个可以软件或固件(Firmware)的形式存储于所述存储器110中的软件功能模块,所述处理器120通过运行存储在存储器110内的软件程序以及模块,如本申请实施例中的视图滚动装置200,从而执行各种功能应用以及数据处理,即实现本申请实施例中的视图滚动方法。As shown in FIG. 1, 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. For example, 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.
其中,所述存储器110可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器110可进一步包括相对于处理器120远程设置的远程存储器,这些远程存储器可以通过网络连接至所述智能电视100。其中,存储器110配置为存储程序,所述处理器120在接收到执 行指令后,执行所述程序。进一步地,通信单元130将各种输入/输入装置耦合至处理器120以及存储器110,上述存储器110内的软件程序以及模块还可包括操作***,其可包括各种用于管理***任务(例如内存管理、存储设备控制、电源管理等)的软件组件和/或驱动,并可与各种硬件或软件组件相互通讯,从而提供其他软件组件的运行环境。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. In some examples, 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. Wherein, the memory 110 is configured to store a program, and the processor 120 receives the execution After the line instruction, the program is executed. Further, 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.
所述处理器120可以是一种集成电路芯片,具有信号的处理能力。上述的处理器120可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等。还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器120也可以是任何常规的处理器等。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. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor 120 may be any conventional processor or the like.
所述显示单元150可以在所述智能电视100与用户之间同时提供一个输出及输入界面。具体地,所述显示单元150向用户显示视频或者图像输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。此外,所述显示单元150还可以接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。可选地,所述显示单元150的具体实例可以包括但并不限于液晶显示器或发光聚合物显示器。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.
可以理解,图1所示的结构仅为示意,所述智能电视100还可以包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that 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.
请参阅图2,为本申请较佳实施例提供的视图滚动方法的一种流程示意图,所述方法由图1所示的智能电视100执行。所应说明的是,本申请实施例提供的方法不以图2及以下所述的具体顺序为限制。所述方法的具体流程如下:Please refer to FIG. 2 , which 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 . It should be noted that 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:
步骤S210,对接收的按键事件进行检测。Step S210, detecting the received key event.
其中,按键事件表征用户通过按动遥控设备上的控制键以控制智能电视100的显示单元150执行相应的显示任务。本实施例中,按键事件可以为用户通过按动遥控设备上的控制键来控制智能电视100的显示单元150执行视图滚动。Wherein, 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. In this embodiment, 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.
本实施例中,作为一种实施方式,请参阅图3,所述步骤S210可以包括以下子步骤:In this embodiment, as an implementation manner, referring to FIG. 3, the step S210 may include the following sub-steps:
子步骤S211,获取按键事件对应的按键时长。Sub-step S211, obtaining the button duration corresponding to the button event.
其中,本实施例中,按键时长表征用户按动遥控设备上的控制键的时长。应当理解,按键时长可以为用户按动遥控设备的控制键直至松开控制键之间所耗费的时间。根据不同 的按键时长,可以设置不同的显示任务,例如视图的滚动。In this embodiment, 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.
子步骤S212,将所述按键事件对应的按键时长与预设时长阈值进行比对。Sub-step S212, comparing the button duration corresponding to the button event with a preset duration threshold.
本实施例中,在接收到遥控设备发送的按键事件(KeyEvent)时,将所述按键事件对应的按键时长与预设时长阈值进行比对。其中,所述预设时长阈值可以根据设计需求进行设置,本实施例对此不作具体限制。作为一种可选的实施方式,所述预设时长阈值可以设置为120ms。In this embodiment, when a key event (KeyEvent) sent by the remote control device is received, 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.
子步骤S213,根据比对结果判断所述按键事件是否为长按键事件。Sub-step S213, determining whether the button event is a long button event according to the comparison result.
本实施例中,若所述按键事件对应的按键时长大于所述预设时长阈值,则判定所述按键事件为长按键事件。In this embodiment, if 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.
步骤S220,在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离。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.
现有的智能电视的视图的加载都由按键进行控制,由于绝大多数智能电视没有屏幕压力传感器,且人与智能电视之间通过遥控设备进行意图传输,因此智能电视与人之间无法进行直接交互,从而导致的一个问题是,当用户按下按键(例如,向下按键),假设视图滚动20个单位距离(像素密度PPI);如果用户长按向下按键一秒,按照手指按遥控按键的最快频率为20ms,那么1s内会触发50次按键,因此1s理想滚动距离为50*20=1000个单位距离,但经申请人实际测试发现视图快速滚动了至少6000个单位距离,远远超过理想滚动距离。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 One problem caused by interaction is that when the user presses 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 fastest frequency is 20ms, then 50 keys will be triggered within 1s, so the ideal rolling distance of 1s is 50*20=1000 unit distance, but the actual test shows that the view has quickly scrolled at least 6000 unit distances. Exceed the ideal rolling distance.
上述按键模式中,长按1秒导致滑动距离远远超过理想距离值,经发明人研究发现根本原因在于按键指令在分发消费的过程中是以一种队列进行先进先出的处理,而长按按键将导致按键事件大批量地进入按键队列,从而导致在极短的时间内按键事件队列出现阻塞,而阻塞的后果就是View无法获取按键事件结束指令(KeyUp),进而导致视图出现无限滑动,视图容器控件顶部或底部容易出现空白,尤其是在某些情况(例如,高清大图的视图加载过程中),长按按键很容易出现应用程序无响应(Application Not Responsed,ANR)异常或内存溢出(Out Of Memery,OOM)异常。In the above button mode, long press for 1 second causes the sliding distance to far exceed the ideal distance value. The inventor's research found that the root cause is that the button command is a queue for FIFO processing in the process of distribution and consumption, and long press The button will cause the button event to enter the button queue in large quantities, resulting in blocking of the button event queue in a very short time. The result of blocking is that the View cannot obtain the key event end command (KeyUp), which causes the view to slide infinitely. It is easy to appear blank at the top or bottom of the container control, especially in some cases (for example, during the view loading of high-definition large images), long-pressing the button is prone to Application Unscheduled (ANR) exception or memory overflow ( Out Of Memery, OOM) is abnormal.
而本实施例可以完美解决上述长按键事件带来的视图过度加载的问题。在本实施例中,所述智能电视100预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数。其中,所述短按键事件由将所述按键事件对应的按键时长与预设时长阈值进行比对,并根据比对结果判断得到。例如,若所述按键事件对应的按键时长小于所述预设时长阈值,则判定所述按键事件为短按键事件。另外,所述单位滚动距离值对应视图滚动一步的距离值。The embodiment can perfectly solve the problem of excessive loading of the view caused by the long button event. In this embodiment, 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. In addition, the unit scroll distance value corresponds to a distance value in which the view scrolls one step.
进一步地,本实施例可以对所述单位滚动距离值进行设置。本实施例中,对所述单位 滚动距离值进行设置的步骤可以包括:Further, the embodiment may set the unit scroll distance value. In this embodiment, the unit is The steps of setting the scroll distance value may include:
计算所述智能电视100的显示屏幕的像素密度的最大近似值。A maximum approximation of the pixel density of the display screen of the smart television 100 is calculated.
根据所述智能电视100的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值。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.
本实施例中,所述单位滚动距离值的计算公式可以为:In this embodiment, the calculation formula of the unit rolling distance value may be:
Figure PCTCN2017112212-appb-000003
Figure PCTCN2017112212-appb-000003
其中,USV为单位滚动距离值,PPIMAX为像素密度最大近似值,HPX为单位像素长度,Px为分辨率横向取值、Py为分辨率纵向取值,C为显示屏幕对角线长度。Among them, 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, and C is the display screen diagonal length.
在一般情况下,所述像素密度为默认值,例如,以47英寸,1920*1080分辨率的智能电视100为例,其像素密度为320,单位像素长度为2.559,根据上述计算式可以计算出所述USV=320*2.55=818.97英寸,因此每按下一次向下按键(KeyDown),那么视图就向上滚动818.97英寸的距离。但是由于电视市场的杂乱无章,导致部分电视的像素密度并非标准的像素密度取值。In general, the pixel density is a default value. For example, 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 USV=320*2.55=818.97 inches, so each time the down button (KeyDown) is pressed, the view scrolls up by 818.97 inches. However, due to the disorder of the TV market, the pixel density of some TVs is not the standard pixel density.
鉴于此,本实施例还可以解决部分电视的显示屏幕每英寸所拥有的像素数目(Pixels Per Inch,PPI)为非标准值的问题。作为一种实施方式,本实施例可以通过计算像素密度的最大近似值来解决非标准像素密度的智能电视100的单位滚动距离值计算问题,从而覆盖兼容目前所有的智能电视100。In view of this, 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. As an embodiment, 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.
本实施例中,所述计算像素密度的最大近似值的步骤可以包括:In this embodiment, the step of calculating a maximum approximation of the pixel density may include:
建立ldpi-xxhdpi的分辨率离散点集,其中,所述离散点集集合可以为:{[240,320],[320,480],[480,800],[720,1280],[1080,1920]}。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]}.
对ldpi-xxhdpi的分辨率离散点集进行拟合,得到拟合后的ldpi-xxhdpi分布曲线。The ldpi-xxhdpi resolution point set is fitted to obtain the fitted ldpi-xxhdpi distribution curve.
根据上述拟合后的ldpi-xxhdpi分布曲线,将像素密度标记在拟合后的ldpi-xxhdpi分布曲线的坐标上。Based on the above-described fitted ldpi-xxhdpi distribution curve, the pixel density is marked on the coordinates of the fitted ldpi-xxhdpi distribution curve.
求取像素密度在拟合后的ldpi-xxhdpi分布曲线的点坐标与ldpi-xxhdpi分布曲线的垂直焦点。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.
根据所述垂直焦点得到所述像素密度的最大近似值。A maximum approximation of the pixel density is obtained from the vertical focus.
进一步地,本实施例中还可以对所述视图滚动步数进行设置。所述对所述视图滚动步数进行设置可以包括:Further, in the embodiment, the number of scrolling steps of the view may also be set. The setting the number of scrolling steps of the view may include:
计算视图滚动的初始距离值。Calculates the initial distance value for the view scroll.
根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数。 The number of view scroll steps is calculated according to the initial distance value and a preset unit scroll distance value.
本实施例中,所述视图滚动步数的计算公式为:In this embodiment, the calculation formula of the number of scroll steps of the view is:
Figure PCTCN2017112212-appb-000004
Figure PCTCN2017112212-appb-000004
其中,VH为视图滚动的初始距离值,USV为预设的单位滚动距离值。Among them, VH is the initial distance value of the view scroll, and USV is the preset unit scroll distance value.
以47英寸,1920*1080分辨率的智能电视100为例,屏幕高度方向最大可显示1080像素的视图,在上下滚动高度为1920像素时,单位滚动距离值USV=818.97<1080,因此USV计算合理,则所述视图滚动步数SP的计算公式为:Take the 47-inch, 1920*1080 resolution smart TV 100 as an example. The screen height direction can display up to 1080 pixels. When the scroll height is 1920 pixels, the unit scroll distance value is USV=818.97<1080, so the USV calculation is reasonable. , the calculation formula of the view scroll step SP is:
Figure PCTCN2017112212-appb-000005
Figure PCTCN2017112212-appb-000005
计算SP=1920/818.97≈3,其中VH为视图的初始距离值。那么所述视图滚动步数则为三步。Calculate SP=1920/818.97≈3, where VH is the initial distance value of the view. Then the number of view scroll steps is three steps.
本实施例中,所述初始距离值可以包括初始高度值或者初始宽度值。若视图进行上下滚动,则所述初始距离值为初始高度值,若视图进行左右滚动,则所述初始距离值为初始宽度值。In this embodiment, 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.
可选地,以所述初始距离值为初始高度值为例,所述视图滚动的初始距离值的计算方式可以包括:Optionally, the initial distance value is an initial height value, and the initial distance value of the view scroll may be calculated by:
对图片载体控件(ImageView)进行检测。The image carrier control (ImageView) is detected.
若所述图片载体控件处于创建阶段,则调用getHeigth函数获取所述图片载体控件的第一高度值。If the picture carrier control is in the creation phase, the getHeigth function is called to obtain the first height value of the picture carrier control.
判断所述第一高度值是否大于0,若大于0,则将所述第一高度值作为所述视图滚动的初始高度值。Determining whether the first height value is greater than 0, and if greater than 0, using the first height value as an initial height value for scrolling the view.
若所述图片载体控件创建完成并被容纳入滚动控件,也就是视图滚动之前的阶段,此时则调用getMeasureHeight函数获取所述图片载体控件的第二高度值。If the picture carrier control is created and is accommodated in the scroll control, that is, the stage before the view scrolling, then the getMeasureHeight function is called to obtain the second height value of the picture carrier control.
判断所述第二高度值是否大于所述第一高度值,若大于所述第一高度值,则将所述第二高度值作为所述视图滚动的初始高度值;若不大于所述第一高度值,则将所述第一高度值作为所述视图滚动的初始高度值。Determining whether the second height value is greater than the first height value, and if greater than the first height value, using the second height value as an initial height value of the view scroll; if not greater than the first The height value is used as the initial height value for scrolling the view.
本实施例中,在检测到所述按键时间为长按键事件时,可以根据上述设置的单位滚动距离值和视图滚动步数,控制视图对应进行滚动。本实施例中,请参阅图4,所述步骤S220可以包括以下子步骤:In this embodiment, 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. In this embodiment, referring to FIG. 4, the step S220 may include the following sub-steps:
子步骤S221,解析所述按键事件对应的按键事件指令。Sub-step S221, parsing the key event instruction corresponding to the button event.
本实施例中,可以将遥控设备发送的按键事件转化为对应的按键事件指令。其中,所述按键事件可以包括上方向按键、下方向按键、左方向按键、右方向按键、确定按键以及返回按键。所述按键事件与按键事件指令的对应关系可以参阅下表。 In this embodiment, 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.
Figure PCTCN2017112212-appb-000006
Figure PCTCN2017112212-appb-000006
子步骤S222,响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。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.
本实施例中,在解析得到所述按键事件对应的按键事件指令后,响应所述按键事件指令,按照所述按键事件指令的对应方向控制视图滚动所述视图滚动步数对应的视图距离。例如,若所述按键事件指令为FOCUS_DOWN,那么就控制所述视图向上滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_UP,那么就控制所述视图向下滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_LEFT,那么就控制所述视图向右滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_RIGHT,那么就控制所述视图向左滑动所述视图滚动步数对应的视图距离。若所述按键事件指令为FOCUS_FORWORD,那么就控制所述视图停止滑动。若所述按键事件指令为FOCUS_BACKWORD,那么就控制所述视图切换至前一目录的视图。In this embodiment, after the button event command corresponding to the button event is parsed, in response to the button event command, 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. If the button event command is FOCUS_RIGHT, then 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.
需要注意的是,视图在滚动过程中一旦出现重绘,那么其初始长度值会发生变化,因此计算的单位滚动距离值USV会失效。为了防止视图重绘导致的单位滚动距离值计算失效的问题,请参阅图5,所述步骤S220还可以包括以下子步骤:It should be noted that once the view is redrawn during the scrolling process, its initial length value will change, so the calculated unit scroll distance value USV will be invalid. In order to prevent the problem that the unit scroll distance value calculation fails due to view redrawing, please refer to FIG. 5, and the step S220 may further include the following sub-steps:
子步骤S223,调用滚动监控器对视图的滚动过程进行监控。Sub-step S223, the scroll monitor is called to monitor the scrolling process of the view.
子步骤S224,若在视图的滚动过程中接收到重绘视图指令,则在所述视图滚动结束后处理所述重绘视图指令对应的重绘事件。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.
本实施例中,可以通过调用滚动监控器(ScrollListener)来监控所述视图的滚动,并检测滚动过程中是否接收到重绘视图指令。若检测到滚动过程中接收到重绘视图指令,则延迟对重绘事件进行处理,直到所述滚动监控器(ScrollListener)监控到所述视图滚动结束后,开始处理所述重绘视图指令对应的重绘事件。In this embodiment, 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.
请再次参阅图2,步骤S230,在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。Referring to FIG. 2 again, in step S230, when the view scrolls the view distance corresponding to the number of scroll steps of the view, the scrolled view is displayed.
本实施例中,在所述视图滚动完所述视图滚动步数对应的视图距离后,所述视图完成最大滚动距离,即使用户继续长按按键,视图不再继续滚动,从而解决了现有的长按键事件带来的视图过度加载的问题。In this embodiment, 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.
值得注意的是,在其它实施方式中,所述单位滚动距离值和所述视图滚动步数也可以 不仅限于本实施例提供的计算方式,例如,还可以由用户直接进行设置,或者由电视厂商进行设置。此外,还需要注意的是,本实施例提供的方法也可以不仅限于应用于智能电视100,还可以应用于智能机顶盒、电视机盒子等设备上。It should be noted that in other embodiments, 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. In addition, it should be noted that 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.
进一步地,请参阅图6,本申请较佳实施例还提供一种视图滚动装置200,所述装置安装于所述存储器110中并包括一个或多个可由所述处理器120执行的软件功能模块,所述装置包括:Further, referring to FIG. 6, 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:
检测模块210,配置为对接收的按键事件进行检测。The detecting module 210 is configured to detect the received key event.
在本申请实施例中,步骤S210由检测模块210执行。In the embodiment of the present application, step S210 is performed by the detecting module 210.
进一步地,本实施例中,检测模块210可以包括获取模块、比对模块和判定模块。Further, in this embodiment, 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.
在本申请实施例中,子步骤S211由获取模块执行。In the embodiment of the present application, 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.
在本申请实施例中,子步骤S212由比对模块执行。In the embodiment of the present application, 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.
在本申请实施例中,子步骤S213由判定模块执行。滚动模块220,配置为在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离。In the embodiment of the present application, 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.
在本申请实施例中,步骤S220由检测模块220执行。In the embodiment of the present application, step S220 is performed by the detecting module 220.
所述装置还可以包括设置模块。The device may also include a setup module.
设置模块,配置为对单位滚动距离值进行设置。其中单位滚动距离值的设置方式可以参见上述视图滚动方法,在此不再赘述。Set the module to be configured to set the unit scroll distance value. For the setting method of the unit scroll distance value, refer to the above view scrolling method, and details are not described herein again.
进一步地,本实施例中,滚动模块220可以包括解析模块、控制模块、调用模块和重绘处理模块。Further, in this embodiment, 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.
在本申请实施例中,子步骤S221由解析模块执行。In the embodiment of the present application, the sub-step S221 is performed by the parsing module.
控制模块,配置为响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。And a 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.
在本申请实施例中,子步骤S222由控制模块执行。In the embodiment of the present application, 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.
在本申请实施例中,子步骤S223由调用模块执行。In the embodiment of the present application, 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.
在本申请实施例中,子步骤S224由重绘处理模块执行。 In the embodiment of the present application, the sub-step S224 is performed by the redraw processing module.
显示模块230,配置为在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。The display module 230 is configured to display the scrolled view when the view scrolls the view distance corresponding to the view scrolling step.
在本申请实施例中,步骤S230由检测模块230执行。In the embodiment of the present application, step S230 is performed by the detecting module 230.
本实施例中的各功能模块的具体操作方法可参照上述方法实施例中相应步骤的详细描述,在此不再重复赘述。For the specific operation method of each function module in this embodiment, reference may be made to the detailed description of the corresponding steps in the foregoing method embodiments, and details are not repeated herein.
综上所述,本申请实施例提供的视图滚动方法、装置及智能电视100。该方法包括:对接收的按键事件进行检测;在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;在所述视图滚动完所述视图滚动步数对应的视图距离时,显示滚动后的视图。基于上述设计,本申请提供的技术方案改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验。In summary, 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. Based on the above design, 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.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置和方法实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个配置为实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided by the present application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The above described apparatus and method embodiments are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture of possible implementations of systems, methods, and computer program products according to various embodiments of the present application, Features and operations. In this regard, 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. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that 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.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, 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. Based on such understanding, 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.
需要说明的是,在本文中,术语"包括"、"包含"或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句"包括一个……"限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。 It is to be understood that the term "comprising", "comprising", or any other variants thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional elements in the process, method, item, or device that comprises the element.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It is obvious to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the appended claims instead All changes in the meaning and scope of equivalent elements are included in this application. Any reference signs in the claims should not be construed as limiting the claim.
工业实用性Industrial applicability
本申请提供的视图滚动方法、装置及智能电视能够改善现有的安卓电视在接收到长按键事件时带来的视图过度加载的问题,提高了用户体验,提高了用户体验。 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.

Claims (20)

  1. 一种视图滚动方法,应用于智能电视,其特征在于,所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数,其中,所述单位滚动距离值对应视图滚动一步的距离值,所述方法包括:A view scrolling method is applied to a smart TV, wherein the smart TV is pre-configured with a unit scroll distance value corresponding to a short button event and a view scroll step corresponding to a long button event, wherein the unit scroll distance The value corresponds to the distance value of the scrolling step of the view, and the method includes:
    对接收的按键事件进行检测;Detecting received key events;
    在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离;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.
  2. 根据权利要求1所述的视图滚动方法,其特征在于,所述方法还包括:The view scrolling method according to claim 1, wherein the method further comprises:
    对所述单位滚动距离值进行设置;Setting the unit scroll distance value;
    所述对所述单位滚动距离值进行设置的方式,包括:The manner of setting the unit scroll distance value includes:
    计算所述智能电视的显示屏幕的像素密度的最大近似值;Calculating a maximum approximation of a pixel density of a display screen of the smart television;
    根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值。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.
  3. 根据权利要求2所述的视图滚动方法,其特征在于,所述根据所述智能电视的单位像素长度和像素密度的最大近似值计算所述单位滚动距离值的步骤中,所述单位滚动距离值的计算公式为:The view scrolling method according to claim 2, wherein in the step of calculating the unit scroll distance value according to a maximum approximation value of a unit pixel length and a pixel density of the smart television, the unit scroll distance value is The calculation formula is:
    USV=PPIMAX*HPXUSV=PPIMAX*HPX
    Figure PCTCN2017112212-appb-100001
    Figure PCTCN2017112212-appb-100001
    其中,USV为单位滚动距离值,PPIMAX为像素密度的最大近似值,HPX为单位像素长度,Px为分辨率横向取值、Py为分辨率纵向取值,C为显示屏幕对角线长度。Among them, 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, and C is the display screen diagonal length.
  4. 根据权利要求2所述的视图滚动方法,其特征在于,所述像素密度的最大近似值的计算方式,包括:The view scrolling method according to claim 2, wherein the calculation method of the maximum approximation of the pixel density comprises:
    建立ldpi-xxhdpi的分辨率离散点集;Establish a resolution point set of ldpi-xxhdpi;
    对ldpi-xxhdpi的分辨率离散点集进行拟合,得到拟合后的ldpi-xxhdpi分布曲线;Fitting the resolution discrete point set of ldpi-xxhdpi to obtain a fitted ldpi-xxhdpi distribution curve;
    根据拟合后的ldpi-xxhdpi分布曲线,将像素密度标记在拟合后的ldpi-xxhdpi分布曲线的坐标上;Marking the pixel density on the coordinates of the fitted ldpi-xxhdpi distribution curve according to the fitted ldpi-xxhdpi distribution curve;
    求取像素密度在拟合后的ldpi-xxhdpi分布曲线的点坐标与ldpi-xxhdpi分布曲线的垂直焦点;Calculate the pixel focus of the point coordinates of the fitted ldpi-xxhdpi distribution curve and the vertical focus of the ldpi-xxhdpi distribution curve;
    根据所述垂直焦点得到所述像素密度的最大近似值。A maximum approximation of the pixel density is obtained from the vertical focus.
  5. 根据权利要求2所述的视图滚动方法,其特征在于,所述方法还包括; The view scrolling method according to claim 2, wherein the method further comprises:
    对所述视图滚动步数进行设置;Setting the number of scroll steps of the view;
    所述对所述视图滚动步数进行设置的方式,包括:The manner of setting the number of scrolling steps of the view includes:
    计算视图滚动的初始距离值,其中,所述初始距离值包括初始高度值或者初始宽度值;Calculating an initial distance value of the view scroll, wherein 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.
  6. 根据权利要求5所述的视图滚动方法,其特征在于,所述根据所述初始距离值和预设的单位滚动距离值,计算所述视图滚动步数的步骤中,所述视图滚动步数的计算公式为:The view scrolling method according to claim 5, wherein in the step of calculating the number of scroll steps of the view according to the initial distance value and a preset unit scroll distance value, the number of steps of the view scrolling The calculation formula is:
    Figure PCTCN2017112212-appb-100002
    Figure PCTCN2017112212-appb-100002
    其中,VH为视图滚动的初始距离值,USV为预设的单位滚动距离值。Among them, VH is the initial distance value of the view scroll, and USV is the preset unit scroll distance value.
  7. 根据权利要求5所述的视图滚动方法,其特征在于,若所述初始距离值为初始高度值,则所述视图滚动的初始距离值的计算方式,包括:The view scrolling method according to claim 5, wherein if the initial distance value is an initial height value, the calculation of the initial distance value of the view scroll includes:
    对图片载体控件进行检测;Detecting the picture carrier control;
    若所述图片载体控件处于创建阶段,则调用getHeigth函数获取所述图片载体控件的第一高度值;If the picture carrier control is in the creation phase, the getHeigth function is called to obtain the first height value of the picture carrier control;
    判断所述第一高度值是否大于0,若大于0,则将所述第一高度值作为所述视图滚动的初始高度值;以及Determining whether the first height value is greater than 0, and if greater than 0, using the first height value as an initial height value for scrolling the view;
    若所述图片载体控件创建完成并被容纳入滚动控件,则调用getMeasureHeight函数获取所述图片载体控件的第二高度值;If the picture carrier control is created and is received into the scroll control, the getMeasureHeight function is called to obtain the second height value of the picture carrier control;
    判断所述第二高度值是否大于所述第一高度值,若大于所述第一高度值,则将所述第二高度值作为所述视图滚动的初始高度值。Determining whether the second height value is greater than the first height value, and if greater than the first height value, using the second height value as an initial height value for scrolling the view.
  8. 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述对接收的按键事件进行检测的步骤,包括:The view scrolling method according to any one of claims 1 to 7, wherein the step of detecting the received key event comprises:
    获取所述按键事件对应的按键时长;Obtaining a button duration corresponding to the button event;
    将所述按键事件对应的按键时长与预设时长阈值进行比对;Comparing the duration of the button corresponding to the button event with a preset duration threshold;
    根据比对结果判断是否为长按键事件。It is judged based on the comparison result whether it is a long button event.
  9. 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述在检测到所述按键事件为长按键事件时,控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:The view scrolling method according to any one of claims 1 to 7, wherein the step of controlling 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 ,include:
    解析所述按键事件对应的按键事件指令;Parsing a button event instruction corresponding to the button event;
    响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。In response to the button event instruction, the control view scrolls the view distance corresponding to the number of view scroll steps.
  10. 根据权利要求9所述的视图滚动方法,其特征在于,所述解析所述按键事件对 应的按键事件指令的步骤包括:The view scrolling method according to claim 9, wherein said parsing said button event pair The steps of the key event command should include:
    将所述遥控设备发送的按键事件转化为对应的按键事件指令,其中,所述按键事件包括上方向按键、下方向按键、左方向按键、右方向按键、确定按键以及返回按键,其对应的所述按键事件指令分别为FOCUS_UP、FOCUS_DOWN、FOCUS_LEFT、FOCUS_RIGHT、FOCUS_FORWORD以及FOCUS_BACKWORD。Converting a button event sent by the remote control device into a corresponding button event command, wherein the button 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, and the corresponding button The key event instructions are FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_FORWORD, and FOCUS_BACKWORD.
  11. 根据权利要求9所述的视图滚动方法,其特征在于,所述响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离的步骤包括:The view scrolling method according to claim 9, wherein 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 comprises:
    在解析得到所述按键事件对应的按键事件指令后,响应所述按键事件指令,按照所述按键事件指令的对应方向控制视图滚动所述视图滚动步数对应的视图距离。After parsing the button event command corresponding to the button event, in response to the button event command, controlling the view to scroll the view distance corresponding to the view scroll step according to the corresponding direction of the button event command.
  12. 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:The method of scrolling the view according to any one of claims 1 to 7, wherein the step of controlling the view view to scroll the view distance corresponding to the number of steps of the view comprises:
    调用滚动监控器对视图的滚动过程进行监控;Calling the scroll monitor to monitor the scrolling process of the view;
    若在视图的滚动过程中接收到重绘视图指令,则在所述视图滚动结束后处理所述重绘视图指令对应的重绘事件。If a redraw view instruction is received during scrolling of the view, the redraw event corresponding to the redraw view instruction is processed after the view scroll ends.
  13. 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述控制视图滚动所述视图滚动步数对应的视图距离的步骤,包括:The method of scrolling the view according to any one of claims 1 to 7, wherein the step of controlling the view view to scroll the view distance corresponding to the number of steps of the view comprises:
    调用滚动监控器来监控所述视图的滚动,并检测滚动过程中是否接收到重绘视图指令;Invoking a scroll monitor to monitor scrolling of the view 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 monitors that the scrolling of the view ends, processing the weight corresponding to the redrawing view instruction Paint the event.
  14. 根据权利要求1-7任一项所述的视图滚动方法,其特征在于,所述在所述视图滚动完所述视图滚动步数对应的视图距离时显示滚动后的视图的步骤包括:The view scrolling method according to any one of claims 1 to 7, wherein the step of displaying the scrolled view when the view scrolls the view distance corresponding to the view scrolling step number comprises:
    在所述视图滚动完所述视图滚动步数对应的视图距离后,所述视图完成最大滚动距离,以使所述视图在用户继续长按按键时不再继续滚动。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.
  15. 一种视图滚动装置,应用于智能电视,其特征在于,所述智能电视预先配置有短按键事件对应的单位滚动距离值,以及长按键事件对应的视图滚动步数,其中,所述单位滚动距离值对应视图滚动一步的距离值,所述装置包括:A view scrolling device is applied to a smart TV, wherein the smart TV is pre-configured with a unit scroll distance value corresponding to a short button event and a view scroll step corresponding to a long button event, wherein the unit scroll distance The value corresponds to the distance value of the scrolling step of the view, and the device comprises:
    检测模块,配置为对接收的按键事件进行检测;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 when the view scrolls the view distance corresponding to the number of scroll steps of the view The view after scrolling.
  16. 根据权利要求15所述的视图滚动装置,其特征在于,所述装置还包括:The view scrolling device according to claim 15, wherein the device further comprises:
    设置模块,配置为对所述单位滚动距离值进行设置。A setting module configured to set the unit scroll distance value.
  17. 根据权利要求15所述的视图滚动装置,其特征在于,所述检测模块包括:The view scrolling device according to claim 15, wherein the detecting module comprises:
    获取模块,配置为获取所述按键事件对应的按键时长;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.
  18. 根据权利要求15所述的视图滚动装置,其特征在于,所述滚动模块包括:The view scrolling device according to claim 15, wherein the scrolling module comprises:
    解析模块,配置为解析所述按键事件对应的按键事件指令;An analysis module configured to parse a key event instruction corresponding to the button event;
    控制模块,配置为响应所述按键事件指令,控制视图滚动所述视图滚动步数对应的视图距离。And a 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.
  19. 一种智能电视,其特征在于,所述智能电视包括:A smart television, characterized in that the smart television comprises:
    存储器;Memory
    处理器;以及Processor;
    视图滚动装置,所述视图滚动装置安装于所述存储器中并包括一个或多个由所述处理器执行的软件功能模块,所述装置包括:a view scrolling device, the view scrolling device being 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.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1~14任一项所述方法的步骤。 A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the steps of the method of any of claims 1-14.
PCT/CN2017/112212 2017-07-05 2017-11-22 View scrolling method and apparatus, and smart television WO2019006958A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710544020.9 2017-07-05
CN201710544020.9A CN107368243B (en) 2017-07-05 2017-07-05 View scrolling method, device and smart television

Publications (1)

Publication Number Publication Date
WO2019006958A1 true WO2019006958A1 (en) 2019-01-10

Family

ID=60305877

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/112212 WO2019006958A1 (en) 2017-07-05 2017-11-22 View scrolling method and apparatus, and smart television

Country Status (2)

Country Link
CN (1) CN107368243B (en)
WO (1) WO2019006958A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368243B (en) * 2017-07-05 2019-09-10 武汉斗鱼网络科技有限公司 View scrolling method, device and smart television
CN108279821B (en) * 2017-12-19 2020-08-04 福建天泉教育科技有限公司 Rolling effect implementation method based on Unity3D engine and terminal
CN109656639B (en) * 2018-12-25 2022-04-15 深圳创维数字技术有限公司 Interface rolling method, device, equipment and medium
CN112055241B (en) * 2020-09-17 2021-11-09 四川长虹电器股份有限公司 Intelligent television air mouse remote controller and control method thereof
CN113225602A (en) * 2021-05-27 2021-08-06 Vidaa美国公司 Display equipment and control method for loading and displaying television homepage content

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273633A (en) * 2005-09-27 2008-09-24 汤姆森许可贸易公司 Method for browsing through a list by continuous scrolling of a graphic feature and related terminal
CN102375662A (en) * 2010-08-20 2012-03-14 浪潮乐金数字移动通信有限公司 Mobile terminal scroll bar controller and control method thereof
CN105308550A (en) * 2013-06-17 2016-02-03 日立麦克赛尔株式会社 Information display terminal
CN105760066A (en) * 2016-02-15 2016-07-13 广州阿里巴巴文学信息技术有限公司 Method and device for updating page
CN107368243A (en) * 2017-07-05 2017-11-21 武汉斗鱼网络科技有限公司 view scrolling method, device and intelligent television

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102905183A (en) * 2012-10-11 2013-01-30 中兴通讯股份有限公司 Method for implementing split watching of TV programs, set top box, and TV system
CN106911969B (en) * 2017-03-17 2019-09-20 武汉斗鱼网络科技有限公司 A kind of focus searching method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273633A (en) * 2005-09-27 2008-09-24 汤姆森许可贸易公司 Method for browsing through a list by continuous scrolling of a graphic feature and related terminal
CN102375662A (en) * 2010-08-20 2012-03-14 浪潮乐金数字移动通信有限公司 Mobile terminal scroll bar controller and control method thereof
CN105308550A (en) * 2013-06-17 2016-02-03 日立麦克赛尔株式会社 Information display terminal
CN105760066A (en) * 2016-02-15 2016-07-13 广州阿里巴巴文学信息技术有限公司 Method and device for updating page
CN107368243A (en) * 2017-07-05 2017-11-21 武汉斗鱼网络科技有限公司 view scrolling method, device and intelligent television

Also Published As

Publication number Publication date
CN107368243A (en) 2017-11-21
CN107368243B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
WO2019006958A1 (en) View scrolling method and apparatus, and smart television
US11262968B2 (en) Method and system for wireless screen transmission
CN109144396B (en) Touch information processing method, device, equipment and storage medium
US20130088429A1 (en) Apparatus and method for recognizing user input
WO2020098605A1 (en) Method and apparatus for displaying menu, device, and storage medium
US20190302985A1 (en) Data Processing Method, and Apparatus
US8896611B2 (en) Bi-directional data transmission system and method
GB2519558A (en) Touchscreen device with motion sensor
WO2017054142A1 (en) Video data acquisition method, apparatus and system, and computer readable storage medium
CN111026480A (en) Content display method and electronic equipment
EP2362305A1 (en) Display control method according to operation mode of display apparatus and digital device with multiple displays using the same
JP2015088085A (en) Display device and display method
US20200387301A1 (en) Electronic apparatus and method for controlling thereof
AU2023309624A1 (en) Video processing method and apparatus, electronic device, and storage medium
WO2020133141A1 (en) Display method, electronic device and computer-readable storage medium
US9658734B2 (en) Information processing method and electronic device
KR102101432B1 (en) Method for controlling display of pointer and displaying the pointer, and apparatus thereof
US20190087077A1 (en) Information processing apparatus, screen control method
WO2018205745A1 (en) Input interface display system and method for portable device
WO2016095515A1 (en) Display method and display terminal
US11989475B2 (en) Selecting a display with machine learning
US11482193B2 (en) Positioning video signals
CN111045563A (en) Display control method, electronic equipment and storage medium
CN106095163B (en) Driving device, the display device of touch screen
KR20130017339A (en) Portable electric device for providing mouse function and operating method thereof

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