WO2018126828A1 - 一种虚拟按键显示方法和终端 - Google Patents

一种虚拟按键显示方法和终端 Download PDF

Info

Publication number
WO2018126828A1
WO2018126828A1 PCT/CN2017/114308 CN2017114308W WO2018126828A1 WO 2018126828 A1 WO2018126828 A1 WO 2018126828A1 CN 2017114308 W CN2017114308 W CN 2017114308W WO 2018126828 A1 WO2018126828 A1 WO 2018126828A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
virtual button
application
virtual
user
Prior art date
Application number
PCT/CN2017/114308
Other languages
English (en)
French (fr)
Inventor
高娜
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018126828A1 publication Critical patent/WO2018126828A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present disclosure relates to, but is not limited to, the field of terminal technologies, and in particular, to a virtual button display method and terminal.
  • the display scheme of the virtual button may be: after the terminal is turned on, the virtual button is fixedly displayed at a certain position on the screen, and the virtual button can only be moved by manual operation. This kind of scheme is relatively simple and rude.
  • the fixed display of the virtual button may cause great trouble, for example, in use.
  • the mobile terminal plays the game, it often accidentally touches the virtual button, causing the game to be interrupted. It is necessary to manually close the virtual button or move the position of the virtual button, which seriously affects the user's use; or the virtual button occludes the full-screen video for viewing. Brought a lot of inconvenience.
  • the embodiment of the present invention provides a virtual button display method and a terminal, which can avoid the manual movement of the virtual button position by the virtual button fixed display.
  • An embodiment of the present disclosure provides a virtual button display method, including:
  • the target display position of the virtual button is determined according to any one or a combination of the application type of the application and the user's usage habit of the virtual button.
  • the embodiment of the present disclosure further provides a terminal, including:
  • the receiving module is configured to: receive a display request of the application for the virtual button;
  • the query module is configured to: query the virtual button display scheme authorized by the application;
  • the processing module is configured to: if the virtual button display scheme is smart display, determine the target display position of the virtual button according to any one or a combination of the application type of the application and the user's usage habit of the virtual button.
  • Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that implement the virtual key display method when executed.
  • the virtual button display method and the terminal provided by the embodiment of the present disclosure can query the virtual button display scheme authorized by the application after receiving the display request of the virtual button by the application; if it is for intelligent display, according to the application type of the application
  • the target display position of the virtual key is determined by any one or a combination of the user's usage habits of the virtual key, whereby the application can display the virtual key according to the target display position. Since the target display position is related to the application type and user habits, the virtual button can obtain different display positions in different applications, and the virtual button display position can be manually moved only by the user after the display position is fixed.
  • the button display scheme is more intelligent and more user-friendly, bringing a better experience to the user.
  • FIG. 1 is a flowchart of a virtual button display method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of another virtual button display method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a module of a terminal according to an embodiment of the present disclosure.
  • an embodiment of the present disclosure provides a virtual button display method, which can be used to search for a virtual button display scheme of an application after receiving a virtual button display request of an application.
  • the target display position of the virtual button can be calculated according to the application type of the application and the user's usage habit of the virtual button or a combination thereof, thereby realizing intelligent management of the virtual button and enabling the virtual button Perform intelligent display.
  • the virtual key display method shown in this embodiment may include:
  • S101 Receive a display request of an application for a virtual button.
  • the virtual button display scheme is smart display, determining a target display position of the virtual button according to any one or a combination of an application type of the application and a usage habit of the virtual button. It can be understood that the target display position of the virtual button refers to the display position of the virtual button on the user interface of the application.
  • the application in the terminal may be an application corresponding to the icon displayed on the display interface of the terminal, or may be a system application on the terminal, for example, a system for managing the main interface of the terminal may also be viewed.
  • the main interface on the terminal can also apply the virtual button display scheme of the embodiment. That is, in the present disclosure, a corresponding virtual key display scheme can be set for the main interface.
  • the main interface needs to display a virtual key, for example, when the power is turned on, the target display position of the virtual key on the main interface can be obtained by the above solution.
  • the target display position can be sent to the application to realize the virtual key display of the management application.
  • the user's usage habit of the virtual button may be the usage habit of the virtual button during the historical use of the application by the user in S101.
  • the application when entering an application, the application can initiate a display request of the virtual button to the terminal system, so when the user triggers the application and enters the user interface of the application, the terminal can receive the application.
  • a display request for a virtual button The display request can be transmitted through communication between the terminal system and the application.
  • the virtual button of this embodiment may include a movable function button displayed on the screen.
  • the virtual button can stay anywhere on the terminal display, when the terminal is open
  • the application type of the application is special, for example, when the application is a game, the user may need to click frequently on the screen, or when the application is a video application (such as iQiyi, Sohu video, etc.), it may need to enter full screen.
  • the user may cause the virtual button to be triggered by mistake to cause an erroneous operation.
  • This embodiment provides a method for obtaining a target display position of a virtual button according to an application type of the application and a user's usage habit of the virtual button, or a combination thereof, which can effectively reduce the disadvantages caused by the virtual button fixed display.
  • the application type of the application may include games, video entertainment, social communication, learning office, shooting landscaping, financial management, and the like.
  • different target display positions can be set according to actual needs.
  • the user's usage habits for virtual keys can be obtained based on historical usage statistics of the application, such as historical relationship statistics of time and location.
  • At least one calculation method may be pre-determined according to the application type of the application and the user's usage habits of the virtual keys or a combination thereof.
  • the corresponding calculation method can be set at the same time.
  • the corresponding calculation method can be used for real-time calculation to obtain virtual The target display position of the button is sent to the application.
  • determining the use position of the virtual button according to any one or a combination of the application type of the application and the usage habit of the virtual button by the user includes: acquiring a preset calculation method corresponding to the application, and pre The design calculation method is determined according to any one or a combination of the application type of the application and the user's usage habit of the virtual key; the target display position of the virtual key is calculated according to the preset calculation method.
  • the display scheme of the virtual button further includes a normal display, and in S102, if the queried application is authorized, the virtual button display scheme is normally displayed.
  • the default position of the virtual button can be used as the target display position of the virtual button.
  • the target display position here can be understood as the target display position of the virtual button on the interface of the application, or the display position of the virtual button on the screen after the application is opened.
  • the default position Location_Standard of the virtual button can be sent to the application in S101 as the target display position of the virtual button.
  • the default location here can be the virtual button currently on the terminal before opening the application in S101. Display position.
  • the display scheme that the application is authorized may not be found, that is, the application does not authorize the virtual application display scheme.
  • the user may be prompted whether to authorize the virtual button display scheme for the application, display the selectable virtual button display scheme to the user, and set a virtual button display scheme for the application according to the user's selection.
  • the terminal may prompt by using a prompt box on the display interface, and the prompt box may display the following content: “Current Appx tries to display your virtual button, is it allowed?”, And provide users with optional options "Yes, normal display”, “Yes, smart display”, “No, not allowed” and other options.
  • the meaning of the option can be explained to the user at the position corresponding to each option or by using the pull-down method.
  • the intelligent display scheme of the virtual button display scheme there may be a plurality of selectable preset calculation methods. At least one of the following may be included: fixed position method, hidden position method, custom algorithm, intelligent algorithm.
  • the fixed position method is to set a fixed display position for the virtual button.
  • the target display position of the virtual button is calculated according to the preset calculation method.
  • the method may include: setting a preset fixed location Location_Fixed as a target display location of the virtual button.
  • the preset Location_Fixed may be the same or different for different applications.
  • the display position of the virtual button may be preset by Location_Fixed so as not to affect the user watching the video on the display screen.
  • the display position of the virtual button may change from the upper left corner to the lower right corner, which affects the user's use.
  • the display position of the virtual button may change accordingly. For example, after the screen is flipped, the display position of the virtual button may be in the upper left corner of the screen. .
  • the embodiment provides a hidden position method, that is, the virtual button is hidden. That is, when the preset calculation method corresponding to the intelligent display scheme of the authorized application is the hidden position method, calculating the target display position of the virtual button according to the preset calculation method may include: hiding the virtual button; The information returned is information that hides the virtual keys.
  • the display position of the virtual button is generally manually adjusted, so according to the user's habit of using the virtual button, It is also possible to know the display position of the virtual button that the user is accustomed to when using an application.
  • the present embodiment provides a custom algorithm.
  • the dwell time of the virtual button at a certain display position reflects the user's usage habit of displaying the position of the virtual button.
  • calculating the target display position of the virtual button according to the preset calculation method may include: acquiring, in the past, a preset time period, when the user is using the application, the virtual Each of the display positions of the at least one display position of the button and the accumulated duration of staying at each of the display positions will occupy the display position Location_weighting having the longest accumulated cumulative time as the target display position of the virtual button.
  • the preset time period may not be too short, otherwise the determination result of the target display position of the virtual button is not determined. Insufficient reliability.
  • the preset duration can be set to 120 hours, one week, etc. for a certain amount of time.
  • calculating the target display position of the virtual button according to the preset calculation method may include: acquiring, in a past preset period of time, the user is using Each display position of the at least one display position of the virtual button and the accumulated duration of staying at each display position during the application, weighting the at least one display position of the virtual button according to the dwell time of the virtual button at each display position to obtain a weighting
  • the average position Location_weighting is the target display position of the virtual button.
  • the preset duration is 120 hours.
  • the virtual button has a total stay time of 1.5 hours at point A, and the total stay time at point B is 1.
  • the preset calculation method in this embodiment may be set by the user in advance, or may be set by the terminal itself. It can be foreseen that when setting the virtual button display scheme corresponding to each application, if the smart display scheme is set, the corresponding calculation method can be set. If the preset calculation method is set by the terminal itself, the terminal can be based on the type of the application. Setting a corresponding preset calculation method, for example, setting a preset calculation method of the game application to a hidden position method; setting a preset calculation method of the audio-visual entertainment application to a fixed position method; and using a video communication application The preset calculation method is set to an intelligent algorithm and the like.
  • the embodiment may experience the calculation method according to the following rules:
  • the selected intelligent display algorithm assumes that the intelligent display algorithm is the Tth.
  • the T+1th algorithm is selected.
  • the first algorithm that is, the fixed algorithm
  • the selected T+1 algorithm is a custom algorithm or an intelligent algorithm
  • the user can use the virtual button to obtain the target display position of the virtual button in the past when the application is used.
  • the virtual button may be combined with the virtual button for a predetermined period of time in the past, when the user uses the application, the time at which the virtual button stays in each of the at least one display position.
  • the calculation method can be set according to the user's use of the virtual button.
  • an App initiates a virtual button display request
  • the App can be viewed.
  • the virtual button display scheme if it is a smart display, can determine the target display position of the virtual button according to any one or a combination of the application type of the application and the user's usage habit of the virtual button, thereby avoiding the virtual button fixed display band It is only possible to change the virtual button display position by human operation.
  • the display of the virtual button is more intelligent, more in line with the user's usage habits, and brings a better user experience.
  • an embodiment of the present disclosure further provides a virtual key display method, which may include:
  • the virtual button display scheme may include smart display and normal display.
  • the App requests the terminal to display the target display position of the virtual button.
  • the embodiment prompts the user “Current Appx tries to display your virtual button, is it allowed?”, and provides the user with optional options “Yes, normal display”, “Yes, smart display”, “No, no” allow”. Also explain the meaning of each option to the user.
  • the calculation method set for the application calculates the target display position of the virtual button.
  • the embodiment provides the following calculation methods:
  • Fixed position method that is, regardless of the default position of the user's virtual button, the virtual button position returned to the application each time is a fixed position. That is, a fixed location Location_Fixed is preset for the virtual button display position. If the application does not affect the upper left corner of the use, when the application requests the user's virtual button position, if the user authorizes the application Appx virtual button to intelligently display the rule, Location_Fixed is returned to Appx;
  • customary algorithm that is, according to the user in the past time when using the application virtual button The time at which the key's display position stays, providing the display position Location_weighting with the longest dwell time.
  • the principle of this selection is that the position where the virtual button is in the longest time in the past period of time is a convenient location for the user.
  • the intelligent algorithm that is, the weighted average position Location_weighting is obtained by weighting according to the time that the user stays in the display position of the virtual button when the application is used for a certain period of time.
  • the calculation method of Location_weighting it can be calculated according to the following detailed rules:
  • At least one display position Location_past120hour_list of the virtual key of the user for a certain period of time (such as 120 hours) is recorded, and the time Location_time_past120hour_list of the virtual key staying at each display position in the at least one display position is recorded.
  • Appx requests the location displayed by the user's virtual button, the weighting calculation is performed, and the average position is assigned to Location_weighting and returned to Appx.
  • the virtual button display scheme authorized by the application may be queried; if it is for intelligent display, according to the application type of the application and the user's use of the virtual button Any one of the habits or a combination thereof determines the target display position of the virtual button, and sends the target display position to the application; if it is a normal display, the default position of the virtual button is sent to the application. Since the target display position of the virtual button is determined by the application type and user habit, the virtual button has different target display positions in different applications, and the target display position conforms to the user's usage habit or applies to the current application, as opposed to virtual The button display position is fixed and can only be manually moved by the user.
  • the virtual button display of the present disclosure is more intelligent and more suitable for the user's needs, and brings a better user experience.
  • an embodiment of the present disclosure further provides a terminal, which may include:
  • the receiving module 31 is configured to: receive a display request of the application for the virtual button;
  • the query module 32 is configured to: query the virtual button display scheme authorized by the application;
  • the processing module 33 is configured to: if the virtual button display scheme is smart display, determine the target display position of the virtual button according to any one or a combination of the application type of the application and the user's usage habit of the virtual button.
  • the terminal may include, but is not limited to, a mobile phone, a tablet computer, an iPad, etc. Screen-enabled electronic devices.
  • the query module 32 and the processing module 33 can be implemented by a processor in the terminal.
  • the application can initiate a display request of the virtual button to the terminal system, so when the user triggers the application and enters the user interface of the application, the terminal can receive the display request of the application for the virtual button. .
  • the display request can be transmitted through communication between the terminal system and the application.
  • the target display position here can be understood as the target display position of the virtual button on the interface of the application, or the display position of the virtual button on the screen after the application is opened.
  • the application in the terminal may be an application corresponding to the icon displayed on the display interface of the terminal, or may be a system application on the terminal, for example, a system for managing the main interface of the terminal may also be viewed.
  • the main interface on the terminal can also apply the virtual button display scheme of the embodiment. That is, in the disclosure, the terminal can set a corresponding virtual button display scheme for the main interface.
  • the terminal can obtain the target display position of the virtual button on the main interface through the above module.
  • the receiving module 31 of the embodiment may be further configured to: after the processing module 33 obtains the target display location, send the target display location to the corresponding application.
  • the virtual button can stay anywhere on the terminal display.
  • the application type of the application opened on the terminal is special, for example, when the application is a game, the user may need to click frequently on the screen, or when the application is For video applications (such as iQiyi, Sohu video, etc.), you may need to enter the state of watching the video in full screen. After opening these applications, if the location of the virtual button staying on the terminal display is unreasonable, it may cause user error. Triggering a virtual key causes an erroneous operation.
  • the embodiment provides a terminal that can obtain a target display position of the virtual button according to any one or a combination of the application type of the application and the user's usage habit of the virtual button, thereby effectively reducing the disadvantages caused by the fixed display of the virtual button.
  • the application type of the application may include games, video entertainment, social communication, learning office, shooting landscaping, financial management, and the like.
  • different target display positions can be set according to actual needs.
  • the user's usage habits for virtual keys can be obtained based on historical usage statistics of the application, such as the historical relationship between time and location.
  • the processing module 33 may be in accordance with the application type of the application and the user's usage habits of the virtual keys. At least one calculation method is pre-defined by any one or a combination thereof, and when a virtual key display scheme is set for different applications, the corresponding calculation method can be set at the same time. If the virtual button display solution obtained by the query module 32 is an intelligent display, the processing module 33 can perform real-time calculation by using a corresponding calculation method, and obtain a target display position of the virtual button, and send the target display position to the application.
  • the processing module 33 is configured to: acquire a preset calculation method corresponding to the application, where the preset calculation method is according to an application type of the application and a usage habit of the user for the virtual button or The combination is formulated; the target display position of the virtual button is calculated according to a preset calculation method.
  • the processing module 33 may be further configured to: send the default location of the virtual button, Location_Standard, as the target display location of the virtual button to the application.
  • the default location here can be the current display position of the virtual button on the terminal before the application is opened.
  • the display scheme of the virtual button may further include a normal display
  • the query module 32 may be further configured to: perform a virtual button display scheme on the application.
  • the query if the queried virtual key display scheme of the queried application is normal display, the default position of the virtual key is taken as the target display position of the virtual key.
  • the processing module 33 can be configured to: if the application is not authorized to display the virtual key display scheme, prompt the user to authorize the virtual key display scheme for the application, display the selectable virtual key display scheme to the user, and select the application according to the user's selection. Set the virtual button display scheme.
  • the processing module 33 may prompt by using a prompt box on the display interface, and the following content may be displayed in the prompt box: “The current Appx attempts to display your virtual key, is it allowed? “, and provide users with optional options “Yes, normal display”, “Yes, smart display”, “No, not allowed” and other options.
  • the meaning of the option can be explained to the user at the position corresponding to each option or by using the pull-down method.
  • the need for a reasonable display position of the virtual key is selected in the smart display scheme of the virtual key display scheme in this embodiment.
  • preset calculation methods at least one of which can be included: fixed position method, hidden position method, custom algorithm, intelligent algorithm.
  • the fixed position method is to set a fixed display position for the virtual button.
  • the processing module 33 may be set to: preset the fixed The location Location_Fixed is the target display location of the virtual button. Among them, it can be understood that the preset Location_Fixed may be the same or different for different applications.
  • the preset location_Fixed of the virtual button may not affect the user watching the video on the display screen, or the user The position where it is not easy to click by mistake when playing a game, for example, in the upper left corner of the terminal display interface.
  • the display position of the virtual button may change from the upper left corner to the lower right corner, which affects the user's use.
  • the display position of the virtual button may change accordingly. For example, after the screen is flipped, the display position of the virtual button may be in the upper left corner of the screen. .
  • the embodiment provides a hidden position method, that is, Hide the virtual buttons. That is, when the preset calculation method corresponding to the smart display solution of the authorized application is the hidden location method, the processing module 33 may be configured to: hide the virtual key; at this time, the information returned by the processing module 33 to the application is Virtual buttons for hidden information.
  • the display position of the virtual button can be manually adjusted, so according to the user's habit of using the virtual button, It is also possible to know the display position of the virtual button that the user is accustomed to when using an application.
  • the present embodiment provides a custom algorithm.
  • the dwell time of the virtual button at a certain display position reflects the user's usage habit of displaying the position of the virtual button.
  • the processing module 33 may be configured to: acquire, in the past, a preset time period, when the user uses the application, each of the at least one display position of the virtual button The display position and the accumulated duration of staying at each display position, the position of the display position with the longest accumulated accumulation time, Location_weighting, as the virtual button The position is displayed.
  • the preset time period cannot be too short, otherwise the determination of the target display position of the virtual button is performed.
  • the result is insufficient reliability.
  • the preset duration can be set to 120 hours, one week, etc. for a certain amount of time.
  • an intelligent algorithm is further provided.
  • the processing module 33 may be configured to: acquire at least one virtual button when the user is using the application in a preset period of time in the past period of time. Displaying each display position in the position and the accumulated duration of staying at each display position, and weighting the at least one display position of the virtual button according to the staying time of the virtual button at each display position to obtain a weighted average position Location_weighting as a target of the virtual button Show location.
  • the processing module 33 may be configured to: acquire at least one virtual button when the user is using the application in a preset period of time in the past period of time. Displaying each display position in the position and the accumulated duration of staying at each display position, and weighting the at least one display position of the virtual button according to the staying time of the virtual button at each display position to obtain a weighted average position Location_weighting as a target of the virtual button Show location.
  • the preset calculation method in this embodiment may be set by the user in advance, or may be set by the terminal itself. It can be foreseen that when setting the virtual button display scheme corresponding to each application, if the smart display scheme is set, the corresponding calculation method can be set. If the preset calculation method is set by the terminal itself, the terminal can be based on the application program. Type, set the corresponding preset calculation method, for example, set the preset calculation method of the game application to the hidden position method; set the preset calculation method of the audio-visual entertainment application to the fixed position method; and apply the video communication application The preset calculation method of the program is set to an intelligent algorithm or the like.
  • the processing module 33 may be in the user.
  • the processing module 33 may experience the calculation method according to the following rules:
  • the smart display algorithm is selected when the last application request virtual button display position is acquired, and the intelligent display algorithm is assumed to be the Tth.
  • the T+1th algorithm is
  • the first algorithm can be selected this time, that is, solid Algorithm.
  • the selected T+1 algorithm is a custom algorithm or an intelligent algorithm
  • the user can use the virtual button to obtain the target display position of the virtual button in the past when the application is used.
  • the virtual button may be combined with the virtual button for a predetermined period of time in the past, when the user uses the application, the time at which the virtual button stays in each of the at least one display position.
  • this embodiment only provides several simple virtual key intelligent display algorithms, and those skilled in the art can perform corresponding expansion and transformation on this basis.
  • the calculation method of the virtual button usage habit can be set according to the user.
  • the virtual button display scheme corresponding to the App is viewed, and if it is an intelligent display, the application may be according to the application.
  • the application type and the user's usage habit of the virtual button calculate the target display position of the virtual button, thereby avoiding the virtual button display position caused by the only man-made operation caused by the virtual button fixed display.
  • the display of the virtual button is more intelligent, more in line with the user's usage habits, and brings a better user experience.
  • Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that implement the virtual key display method when executed.
  • modules or steps of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices, optionally They can be implemented by program code executable by the computing device so that they can be stored in a storage medium (ROM/RAM, disk, optical disk) by the computing device and, in some cases, can be different
  • ROM/RAM, disk, optical disk a storage medium
  • the steps shown or described are performed sequentially herein, or they are separately fabricated into different integrated circuit modules, or a plurality of modules or steps are fabricated into a single integrated circuit module. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
  • the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together.
  • Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
  • Such software can be distributed in The computer readable medium can comprise a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium).
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
  • the virtual button display method and the terminal provided by the embodiment of the present disclosure can query the virtual button display scheme authorized by the application after receiving the display request of the virtual button by the application; if it is for intelligent display, according to the application type of the application
  • the target display position of the virtual key is determined by any one or a combination of the user's usage habits of the virtual key, whereby the application can display the virtual key according to the target display position. Since the target display position is related to the application type and user habits, the virtual button can obtain different display positions in different applications, and the virtual button display position can be manually moved only by the user after the display position is fixed.
  • the button display scheme is more intelligent and more user-friendly, bringing a better experience to the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种虚拟按键显示方法包括:接收应用程序对虚拟按键的显示请求,查询应用程序被授权的虚拟按键显示方案;若为智能显示,则根据应用程序的应用类型和或用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置。

Description

一种虚拟按键显示方法和终端 技术领域
本公开涉及但不限于终端技术领域,尤其是一种虚拟按键显示方法和终端。
背景技术
随着移动通信终端的不断发展,尤其是智能手机和平板电脑的高速更新换代,移动终端虚拟按键的功能得到极大的重视并得到普遍的应用,方便了用户的快速设置,减少了硬件按键操作或虚拟功能键的案件操作,方便用户使用的同时延长了终端的使用寿命。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
虚拟按键的显示方案可以为:开启终端后,虚拟按键固定地显示在屏幕中的某一位置,只能通过人为手动操作移动虚拟按键。这种方案相对简单粗暴。
在终端的实际使用过程中,当当前打开的应用程序是需要在屏幕中进行点击操作的游戏,或者需要全屏显示的视频软件时,虚拟按键的固定显示会带来很大的困扰,例如在使用手机终端玩游戏的时候,经常会不小心碰到虚拟按键,导致游戏中断,需要手动关闭虚拟按键或挪动虚拟按键的位置,严重影响用户使用;或者虚拟按键对全屏显示的视频有遮挡,为观看带来了很大的不方便。
本公开实施例提供一种虚拟按键显示方法和终端,能够避免虚拟按键固定显示带来的只能人为手动移动虚拟按键位置。
本公开实施例提供一种虚拟按键显示方法,包括:
接收应用程序对虚拟按键的显示请求;
查询应用程序被授权的虚拟按键显示方案;
若虚拟按键显示方案为智能显示,根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置。
本公开实施例还提供一种终端,包括:
接收模块,设置为:接收应用程序对虚拟按键的显示请求;
查询模块,设置为:查询应用程序被授权的虚拟按键显示方案;
处理模块,设置为:若虚拟按键显示方案为智能显示,根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置。
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述虚拟按键显示方法。
采用本公开实施例提供的虚拟按键显示方法和终端,可以在接收应用程序对虚拟按键的显示请求后,查询应用程序被授权的虚拟按键显示方案;若为智能显示,则根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置,由此,应用程序可以按照目标显示位置显示虚拟按键。由于目标显示位置是与应用类型和用户习惯相关,虚拟按键在不同的应用中,可以得到不同的显示位置,相对于虚拟按键显示位置固定后只能由用户手动移动的方案,本实施例的虚拟按键显示方案更智能化,更贴合用户需求,为用户带来了更优质的体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本公开实施例提供的一种虚拟按键显示方法的流程图;
图2为本公开实施例提供的另一种虚拟按键显示方法的流程图;
图3为本公开实施例提供的一种终端的模块示意图。
本公开的较佳实施方式
下面结合附图对本公开的实施方式进行描述。
参见图1,本公开实施例提供一种虚拟按键显示方法,采用该虚拟按键显示方法,可以在接收到某应用程序的虚拟按键显示请求后,查找该应用程序被授权的虚拟按键显示方案,当为智能显示时,可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合计算得到虚拟按键的目标显示位置,由此实现了对虚拟按键的智能管理,能够对虚拟按键进行智能显示。
参见图1,本实施例示出的虚拟按键显示方法可以包括:
S101、接收应用程序对虚拟按键的显示请求;
S102、查询应用程序被授权的虚拟按键显示方案;
S103、若虚拟按键显示方案为智能显示,根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置。可以理解的是,虚拟按键的目标显示位置指的是虚拟按键在应用程序的用户界面上的显示位置。
其中,可以理解的是,在终端中的应用程序可以是在终端的显示界面上显示的图标对应的应用程序,也可以是终端上的系统应用程序,例如管理终端的主界面的系统也可以看作一个大的应用程序,即终端上的主界面也可以应用本实施例的虚拟按键显示方案。即本公开中可以为主界面设置对应的虚拟按键显示方案,当主界面需要显示虚拟按键,例如开机时,就可以通过上述的方案获取主界面上虚拟按键的目标显示位置。
可以预见当确定目标显示位置后,就可以将目标显示位置发送给应用程序,实现管理应用程序的虚拟按键显示。其中,为了目标显示位置更优,用户对虚拟按键的使用习惯可以是用户在S101中的应用程序的历史使用过程中,对虚拟按键的使用习惯。
在本实施例中,当进入某个应用程序时,该应用程序就可以向终端系统发起虚拟按键的显示请求,所以当用户触发应用,进入该应用的使用者界面时,终端可以接收到应用程序对虚拟按键的显示请求。该显示请求可通过终端系统与应用的通信实现传输。本实施例的虚拟按键可以包括在屏幕上显示的,可移动的功能按键。
一般地,虚拟按键可以在终端显示屏上任意位置停留,当终端上打开的 应用程序的应用类型比较特殊时,例如当应用程序为游戏时,可能需要用户在屏幕上频繁点击,或者当应用程序为视频应用(如爱奇艺、搜狐视频等等)时,可能需要进入全屏观看视频的状态,在打开这些应用程序后,虚拟按键在终端显示屏上停留的位置如果不合理,可能导致用户误触发虚拟按键导致错误的操作。本实施例提供了可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合,得到虚拟按键的目标显示位置的方法,能有效降低虚拟按键固定显示带来的缺点。其中,应用程序的应用类型可以包括游戏、影音娱乐、社交通讯、学习办公、拍摄美化、金融理财等等类型。对于不同的应用类型或者不同的应用,可以根据实际需要设置不同的目标显示位置。用户对虚拟按键的使用习惯则可以根据使用该应用程序的历史使用记录统计得到,例如时间与位置的历史关系统计。
其中,为了简化不同的应用程序的虚拟按键的目标显示位置的计算过程,可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合预先制定至少一个计算方法,在为不同的应用程序设置虚拟按键显示方案时,可以同时设置对应的计算方法,S102中,若查询得到的虚拟按键显示方案为智能显示,则在S103中,可以利用对应的计算方法进行实时计算,得到虚拟按键的目标显示位置,发送给应用程序。可选地,在本实施例中,根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的使用位置包括:获取与应用程序对应的预设计算方法,预设计算方法根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合制定;根据预设计算方法计算得到虚拟按键的目标显示位置。
可选地,为了使虚拟按键的显示方案更丰富,在本实施例中,虚拟按键的显示方案还包括正常显示,在S102中,若查询到的应用程序被授权的虚拟按键显示方案是正常显示,则可以将虚拟按键的默认位置作为虚拟按键的目标显示位置。这里的目标显示位置可以理解为虚拟按键在应用程序的界面上的目标显示位置,或者应用程序打开后,虚拟按键在屏幕上的显示位置。
若虚拟按键显示方案为正常显示,则可以将虚拟按键的默认位置Locat ion_Standard作为虚拟按键的目标显示位置发送给S101中的应用程序。这里的默认位置可以是在打开S101中的应用程序前终端上虚拟按键当前 的显示位置。
可以预见,在S102中对应用程序的虚拟按键显示方案进行查询时,可能查不到该应用程序被授权的显示方案,即该应用程序未授权虚拟应用显示方案,此时,本实施例中,可以提示用户是否对应用程序授权虚拟按键显示方案,将可选择的虚拟按键显示方案显示给用户,根据用户的选择为应用程序设置虚拟按键显示方案。
可选地,当应用程序未授权虚拟应用显示方案时,终端可以在显示界面上利用提示框进行提示,提示框中可以显示如下的内容“当前Appx试图显示您的虚拟按键,是否允许?”,并向用户提供可选选项“是,正常显示”、“是,智能显示”、“否,不允许”等选项。同时可以在每个选项对应的位置或者利用下拉方式为用户解释该选项的含义。
为了应对用户使用各种类型的应用程序时,对虚拟按键的合理显示位置的需求,在本实施例中,在虚拟按键显示方案的智能显示方案中,可选择的预设的计算方法可以有多种,至少可以包括以下之一:固定位置法、隐藏位置法、习惯算法、智能算法。
固定位置法,顾名思义,就是为虚拟按键设有固定显示的位置,当授权应用程序的智能显示方案对应的预设计算方法是固定位置算法时,根据预设计算方法计算得到虚拟按键的目标显示位置可以包括:将预设的固定位置Location_Fixed作为虚拟按键的目标显示位置。其中,可以理解的是,对于不同的应用程序,预设Location_Fixed可以相同,也可以不同。可选地,考虑到为了尽量减少虚拟按键的显示位置的设置对用户使用全屏模式观看视频或者玩游戏的影响,可以将虚拟按键的显示位置预设Location_Fixed为在显示屏幕上不影响用户观看视频,或者用户玩游戏时不易误点击的位置,例如在终端显示界面的左上角等位置。可选地,考虑到终端在使用过程中可能发生屏幕翻转的现象,虚拟按键的显示位置可能从左上角变为右下角,影响用户的使用。为了避免对用户的影响,在使用该应用程序的过程中,当终端发生屏幕翻转时,该虚拟按键的显示位置可以随之变化,如屏幕翻转后,虚拟按键的显示位置可以在屏幕的左上角。
其中,可选地,考虑到有些用户在使用某些应用,例如玩游戏,观看全 屏视频时,对使用感的要求更高,为了避免虚拟按键对用户使用的影响,本实施例提供了隐藏位置法,即将虚拟按键进行隐藏。也即当授权应用程序的智能显示方案对应的预设计算方法是隐藏位置法时,根据预设计算方法计算得到虚拟按键的目标显示位置可以包括:对虚拟按键进行隐藏;此时,向应用程序返回的信息是对虚拟按键进行隐藏的信息。
可选地,考虑到用户在过去使用虚拟按键的过程中,为了使得虚拟按键的显示位置更适合自己使用,一般会对虚拟按键的显示位置进行手动调节,所以根据用户对虚拟按键的使用习惯,也可以知道用户在使用某应用程序时,习惯的虚拟按键的显示位置,有鉴于此,本实施例提供了一种习惯算法。一般地,虚拟按键在某显示位置的停留时间反映了用户对虚拟按键显示位置的使用习惯。在本实施例中,当预设计算方法为习惯算法时,根据预设计算方法计算得到虚拟按键的目标显示位置可以包括:获取在过去一段预设时间段中,用户在使用应用程序时,虚拟按键的至少一个显示位置中每个显示位置以及在每个显示位置停留的累计时长,将停留累计时长最长的显示位置Location_weighting作为虚拟按键的目标显示位置。
其中,可选地,考虑到根据每个显示位置的累计时长确定用户最习惯的虚拟按键显示位置的指示性的可靠度,预设时间段不能太短,否则虚拟按键的目标显示位置的确定结果可靠性不足。预设时长可以设置为120小时、一周等等具有一定量的时间。
可选地,还提供一种智能算法,当预设计算方法为智能算法时,根据预设计算方法计算得到虚拟按键的目标显示位置可以包括:获取在过去一段预设时间段中,用户在使用应用程序时虚拟按键的至少一个显示位置中每个显示位置以及在每个显示位置停留的累计时长,根据虚拟按键在每个显示位置的停留时长对虚拟按键的至少一个显示位置进行加权计算得到加权平均位置Location_weighting作为虚拟按键的目标显示位置。
下面以智能算法为例进行说明,假设发送虚拟按键请求的是搜狐视频,预设时长是120个小时,在过去120个小时中,当用户使用搜狐视频时,虚拟按键停留的位置有4个,分别是A(x1,y1)、B(x2,y2)、C(x3,y3)、D(x4,y4),其中,可以以显示屏幕的任一点如中心点为原点,建立坐标系, 得到A、B、C、D四点的坐标,其中,在过去120小时中,当用户使用搜狐视频时,虚拟按键在A点的停留时间累计为1.5小时,在B点的停留时间累计为1小时,在C点的停留时长累计为0.5小时,在D点的停留时长累计为0.5小时,则加权平均位置E的坐标的计算方式可以为:E=(1.5(x1,y1)+(x2,y2)+0.5(x3,y3)+0.5(x4,y4))/(1.5+1+0.5+0.5)。
其中,在本实施例中的预设计算方法,可以是用户提前设定的,也可以是终端自身设置的。可以预见,在设置每个应用程序对应的虚拟按键显示方案时,若设置的是智能显示方案,可以设置对应的计算方法,若预设计算方法由终端自身设置,则终端可以根据应用程序的类型,设置对应的预设计算方法,例如,将游戏类应用程序的预设计算方法设置为隐藏位置法;将影音娱乐类应用程序的预设计算方法设置为固定位置法;将视频通讯类应用程序的预设计算方法设置为智能算法等等。
其中,当用户对应用程序授权的虚拟按键显示方案为智能显示,但没有限定该应用程序使用的预设计算方法时,为了使得用户对上述四种智能算法更有了解,可以在用户使用终端的过程中依次使用四种计算方法,用户在实际体验过后,可以了解四种计算方法的优缺点,以便进行计算方法的选择。可选地,本实施例可以按照以下规则体验计算方法:
当本次接收到应用程序的虚拟按键显示请求时,获取上次任意应用(App lication,简称为App)请求虚拟按键显示位置时,选取的智能显示算法,假设该智能显示算法是第T个,本次某APP请求时,选取第T+1个算法。
其中,当上次未使用智能显示算法时,本次可以选择第一个算法,即固定算法。当本次选取的第T+1个算法是习惯算法或智能算法时,可以结合该应用程序在过去使用时,用户对虚拟按键的使用习惯得到虚拟按键的目标显示位置。可选地,可以结合虚拟按键在过去一段预设时间段内,用户使用该应用程序时,虚拟按键在至少一个显示位置中每个显示位置停留的时间。
可以理解的是,本实施例只是给出了几种简单的虚拟按键智能显示算法,本领域技术人员可以在此基础上进行相应的扩展和变形。
采用本实施例的虚拟按键显示方法,可以根据用户对虚拟按键使用习惯设置计算方法,当某个App发起虚拟按键显示请求时,可以查看该App对应 的虚拟按键显示方案,若为智能显示,则可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置,由此避免了虚拟按键固定显示带来的只能人为操作改变虚拟按键显示位置。使得虚拟按键的显示更加智能化,更符合用户的使用习惯,带给用户更好的使用体验。
参见图2,本公开实施例还提供一种虚拟按键显示方法,可以包括:
S201,建立虚拟按键显示方案。
其中,虚拟按键显示方案可以包括智能显示和正常显示。
S202,App向终端请求虚拟按键的目标显示位置。
S203,查询Appx是否有授权的虚拟按键显示方案;是,进入S205、否则,进入S204。
S204,通过终端的显示屏幕提示用户是否对应用程序授权虚拟按键显示方案,将可选择的虚拟按键显示方案显示给用户,并根据用户的选择为所述应用程序设置虚拟按键显示方案;
可选地,本实施例向用户提示“当前Appx试图显示您的虚拟按键,是否允许?”,并向用户提供可选选项“是,正常显示”、“是,智能显示”、“否,不允许”。同时为用户解释每个选项的含义。
S205,若为Appx授权的虚拟按键显示方案为正常显示,则将虚拟按键的默认位置发送给应用程序;若为Appx授权的虚拟按键显示方案为智能显示,则转向智能定位的流程,根据智能显示方案中,为该应用程序设置的计算方法计算虚拟按键的目标显示位置。
可选地,本实施例提供以下几种计算方法:
1、固定位置法,即不考虑用户虚拟按键的默认位置,每次向应用程序返回的虚拟按键位置为固定位置。也就是为虚拟按键显示位置预置一个固定位置Location_Fixed,如较不影响使用的左上角,当应用程序请求用户的虚拟按键位置时,如果用户授权给此应用程序Appx虚拟按键智能显示规则时,将Location_Fixed返回给Appx;
2、隐藏位置法,即直接隐藏虚拟按键,适用有全屏操作需求的Appx。
3、习惯算法,即根据用户过去一段时间在使用该应用程序的时候虚拟按 键的显示位置所停留的时间,提供停留时间最长的显示位置Location_weighting。这样选取的原则是,过去一段时间内虚拟按键所处时间最长的位置,是相对用户使用较方便的一个位置。
4、智能算法,即根据用户过去一段时间在使用该应用的时候虚拟按键的显示位置所停留的时间,加权计算得到一个加权平均位置Location_weighting。关于Location_weighting的计算方法,可按照下面的详细规则进行计算:
记录用户在过去某段时间内(如120小时)的虚拟按键的至少一个显示位置Location_past120hour_list,并记录虚拟按键在至少一个显示位置中每个显示位置停留的时间Location_time_past120hour_list。当Appx请求用户虚拟按键显示的位置时,进行加权计算,求得平均值位置赋值给Location_weighting,并返回给Appx。
采用本实施例的方法,可以在接收应用程序对虚拟按键的显示请求后,查询应用程序被授权的虚拟按键显示方案;若为智能显示,则根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置,将目标显示位置发送给应用程序;若为正常显示,则将虚拟按键的默认位置发送给应用程序。由于虚拟按键的目标显示位置由与应用类型和用户习惯确定,虚拟按键在不同的应用有不同的目标显示位置,且该目标显示位置符合用户的使用习惯或者适用于当前的应用程序,相对于虚拟按键显示位置固定后只能由用户手动移动的方案,本公开的虚拟按键显示更智能化,更贴合用户需求,为用户带来了更优的使用体验。
参见图3,本公开实施例还提供一种终端,可以包括:
接收模块31,设置为:接收应用程序对虚拟按键的显示请求;
查询模块32,设置为:查询应用程序被授权的虚拟按键显示方案;
处理模块33,设置为:若虚拟按键显示方案为智能显示,根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置。
在本实施例中,终端可以包括但不限于手机、平板电脑、iPad等就有触 屏功能的电子设备。查询模块32和处理模块33可以由终端中的处理器实现。当进入某个应用程序时,该应用程序就可以向终端系统发起虚拟按键的显示请求,所以当用户触发应用,进入该应用的使用者界面时,终端可以接收到应用程序对虚拟按键的显示请求。该显示请求可通过终端系统与应用的通信实现传输。
其中,这里的目标显示位置可以理解为虚拟按键在应用程序的界面上的目标显示位置,或者应用程序打开后,虚拟按键在屏幕上的显示位置。
其中,可以理解的是,在终端中的应用程序可以是在终端的显示界面上显示的图标对应的应用程序,也可以是终端上的系统应用程序,例如管理终端的主界面的系统也可以看作一个大的应用程序,即终端上的主界面也可以应用本实施例的虚拟按键显示方案。即本公开中终端可以为主界面设置对应的虚拟按键显示方案,当主界面需要显示虚拟按键,例如开机时,终端就可以通过上述模块获取主界面上虚拟按键的目标显示位置。
可选地,本实施例的接收模块31还可以设置为:在处理模块33得到目标显示位置后,将目标显示位置发送给对应的应用程序。
一般地,虚拟按键可以在终端显示屏上任意位置停留,当终端上打开的应用程序的应用类型比较特殊时,例如当应用程序为游戏时,可能需要用户在屏幕上频繁点击,或者当应用程序为视频应用(如爱奇艺、搜狐视频等等)时,可能需要进入全屏观看视频的状态,在打开这些应用程序后,虚拟按键在终端显示屏上停留的位置如果不合理,可能导致用户误触发虚拟按键导致错误的操作。本实施例提供了可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合,得到虚拟按键的目标显示位置的终端,有效降低虚拟按键固定显示带来的缺点。其中,应用程序的应用类型可以包括游戏、影音娱乐、社交通讯、学习办公、拍摄美化、金融理财等等类型。对于不同的应用类型或者不同的应用,可以根据实际需要设置不同的目标显示位置。用户对虚拟按键的使用习惯则可以根据使用该应用程序的历史使用记录统计得到,例如时间与位置的历史关系。
其中,为了简化不同的应用程序的虚拟按键的目标显示位置的计算过程,处理模块33可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中 任意一个或其组合预先制定至少一个计算方法,在为不同的应用程序设置虚拟按键显示方案时,可以同时设置对应的计算方法。若查询模块32查询得到的虚拟按键显示方案为智能显示,则处理模块33可以利用对应的计算方法进行实时计算,得到虚拟按键的目标显示位置,发送给应用程序。可选地,在本实施例中,处理模块33是设置为:获取与应用程序对应的预设计算方法,预设计算方法根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合制定;根据预设计算方法计算得到虚拟按键的目标显示位置。
若虚拟按键显示方案为正常显示,处理模块33还可以设置为:将虚拟按键的默认位置Location_Standard作为虚拟按键的目标显示位置发送给应用程序。这里的默认位置可以是在打开应用程序前终端上虚拟按键当前的显示位置。
可选地,为了使虚拟按键的显示方案更丰富,在本实施例中,虚拟按键的显示方案还可以包括正常显示,查询模块32,还可以设置为:在对应用程序的虚拟按键显示方案进行查询时,若查询到的应用程序被授权的虚拟按键显示方案是正常显示,则将虚拟按键的默认位置作为虚拟按键的目标显示位置。
可以预见,在查询模块32对应用程序的虚拟按键显示方案进行查询时,可能查不到该应用程序被授权的显示方案,即该应用程序未授权虚拟应用显示方案,此时,本实施例中,处理模块33可以设置为:若应用程序未被授权虚拟按键显示方案,提示用户是否对应用程序授权虚拟按键显示方案,将可选择的虚拟按键显示方案显示给用户,根据用户的选择为应用程序设置虚拟按键显示方案。
可选地,当应用程序未授权虚拟应用显示方案时,处理模块33可以在显示界面上利用提示框进行提示,提示框中可以显示如下的内容“当前Appx试图显示您的虚拟按键,是否允许?”,并向用户提供可选选项“是,正常显示”、“是,智能显示”、“否,不允许”等选项。同时可以在每个选项对应的位置或者利用下拉方式为用户解释该选项的含义。
为了应对用户使用各种类型的应用程序时,对虚拟按键的合理显示位置的需求,在本实施例中,在虚拟按键显示方案的智能显示方案中,可选择的 预设的计算方法有多种,至少可以包括以下之一:固定位置法、隐藏位置法、习惯算法、智能算法。
固定位置法,顾名思义,就是为虚拟按键设有固定显示的位置,当授权应用程序的智能显示方案对应的预设计算方法是固定位置算法时,处理模块33可以是设置为:将预设的固定位置Location_Fixed作为虚拟按键的目标显示位置。其中,可以理解的是,对于不同的应用程序,预设Location_Fixed可以相同,也可以不同。可选地,考虑到为了尽量减少虚拟按键的显示位置的设置对用户使用全屏模式观看视频或者玩游戏的影响,可以将虚拟按键的预设Location_Fixed为在显示屏幕上不影响用户观看视频,或者用户玩游戏时不易误点击的位置,例如在终端显示界面的左上角等位置。可选地,考虑到终端在使用过程中可能发生屏幕翻转的现象,虚拟按键的显示位置可能从左上角变为右下角,影响用户的使用。为了避免对用户的影响,在使用该应用程序的过程中,当终端发生屏幕翻转时,该虚拟按键的显示位置可以随之变化,如屏幕翻转后,虚拟按键的显示位置可以在屏幕的左上角。
其中,考虑到有些用户在使用某些应用,例如玩游戏,观看全屏视频时,对使用感的要求更高,为了避免虚拟按键对用户使用的影响,本实施例提供了隐藏位置法,即可以将虚拟按键进行隐藏。也即当授权应用程序的智能显示方案对应的预设计算方法是隐藏位置法时,处理模块33可以是设置为:对虚拟按键进行隐藏;此时,处理模块33向应用程序返回的信息是对虚拟按键进行隐藏的信息。
可选地,考虑到用户在过去使用虚拟按键的过程中,为了使得虚拟按键的显示位置更适合自己使用,一般可以对虚拟按键的显示位置进行手动调节,所以根据用户对虚拟按键的使用习惯,也可以知道用户在使用某应用程序时,习惯的虚拟按键的显示位置,有鉴于此,本实施例提供了一种习惯算法。一般地,虚拟按键在某显示位置的停留时间反映了用户对虚拟按键显示位置的使用习惯。在本实施例中,当预设计算方法为习惯算法时,处理模块33可以是设置为:获取在过去一段预设时间段中,用户在使用应用程序时,虚拟按键的至少一个显示位置中每个显示位置以及在每个显示位置停留的累计时长,将停留累计时长最长的显示位置Location_weighting作为虚拟按键的目 标显示位置。
其中,考虑到根据至少一个显示位置中每个显示位置的累计时长确定用户最习惯的虚拟按键显示位置的指示性的可靠度,预设时间段不能太短,否则虚拟按键的目标显示位置的确定结果可靠性不足。预设时长可以设置为120小时、一周等等具有一定量的时间。
可选地,还提供一种智能算法,当预设计算方法为智能算法时,处理模块33可以是设置为:获取在过去一段预设时间段中,用户在使用应用程序时虚拟按键的至少一个显示位置中每个显示位置以及在每个显示位置停留的累计时长,根据虚拟按键在每个显示位置的停留时长对虚拟按键的至少一个显示位置进行加权计算得到加权平均位置Location_weighting作为虚拟按键的目标显示位置。加权平均位置的计算方法可以参考前述实施例中的相关记载。
其中,在本实施例中的预设计算方法,可以是用户提前设定的,也可以是终端自身设置的。可以预见,在设置每个应用程序对应的虚拟按键显示方案时,若设置的是智能显示方案,则可以设置对应的计算方法,若预设计算方法由终端自身设置,则终端可以根据应用程序的类型,设置对应的预设计算方法,例如,将游戏类应用程序的预设计算方法设置为隐藏位置法;将影音娱乐类应用程序的预设计算方法设置为固定位置法;将视频通讯类应用程序的预设计算方法设置为智能算法等等。
其中,当用户对应用程序授权的虚拟按键显示方案为智能显示,但没有限定该应用程序使用的预设计算方法时,为了使得用户对上述四种智能算法更有了解,处理模块33可以在用户使用终端的过程中,在不同的应用程序发起虚拟按键显示请求时,依次使用四种计算方法,用户在实际体验过后,可以了解四种计算方法的优缺点,以便进行计算方法的选择。可选地,本实施例可以按照以下规则体验计算方法:
当本次接收到应用程序的虚拟按键显示请求时,获取上次任意App请求虚拟按键显示位置时,选取的智能显示算法,假设该智能显示算法是第T个,本次某APP请求时,选取第T+1个算法。
其中,当上次未使用智能显示算法时,本次可以选择第一个算法,即固 定算法。当本次选取的第T+1个算法是习惯算法或智能算法时,可以结合该应用程序在过去使用时,用户对虚拟按键的使用习惯得到虚拟按键的目标显示位置。可选地,可以结合虚拟按键在过去一段预设时间段内,用户使用该应用程序时,虚拟按键在至少一个显示位置中每个显示位置停留的时间。
可以理解的是本实施例只是给出了几种简单的虚拟按键智能显示算法,本领域技术人员可以在此基础上进行相应的扩展和变形。
采用本实施例的终端,可以根据用户对虚拟按键使用习惯设置计算方法,当某个App发起虚拟按键显示请求时,查看该App对应的虚拟按键显示方案,若为智能显示,则可以根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合计算得到虚拟按键的目标显示位置,由此避免了虚拟按键固定显示带来的只能人为操作改变虚拟按键显示位置。使得虚拟按键的显示更加智能化,更符合用户的使用习惯,带给用户更好的使用体验。
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述虚拟按键显示方法。
本领域的技术人员可以明白,上述本公开的模块或步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成不同集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本公开不限制于任何特定的硬件和软件结合。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在 计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、电可擦除只读存储器(EEPROM,Electrically Erasable Programmable Read-only Memory)、闪存或其他存储器技术、光盘只读存储器(CD-ROM,Compact Disc Read-Only Memory)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
本领域的普通技术人员可以理解,可以对本公开的技术方案进行修改或者等同替换,而不脱离本公开技术方案的精神和范围,均应涵盖在本公开的权利要求范围当中。
工业实用性
采用本公开实施例提供的虚拟按键显示方法和终端,可以在接收应用程序对虚拟按键的显示请求后,查询应用程序被授权的虚拟按键显示方案;若为智能显示,则根据应用程序的应用类型和用户对虚拟按键的使用习惯中任意一个或其组合确定虚拟按键的目标显示位置,由此,应用程序可以按照目标显示位置显示虚拟按键。由于目标显示位置是与应用类型和用户习惯相关,虚拟按键在不同的应用中,可以得到不同的显示位置,相对于虚拟按键显示位置固定后只能由用户手动移动的方案,本实施例的虚拟按键显示方案更智能化,更贴合用户需求,为用户带来了更优质的体验。

Claims (11)

  1. 一种虚拟按键显示方法,包括:
    接收应用程序对虚拟按键的显示请求;
    查询所述应用程序被授权的虚拟按键显示方案;
    若所述虚拟按键显示方案为智能显示,根据所述应用程序的应用类型和用户对所述虚拟按键的使用习惯中任意一个或其组合确定所述虚拟按键的目标显示位置。
  2. 如权利要求1所述的虚拟按键显示方法,其中,所述根据所述应用程序的应用类型和用户对所述虚拟按键的使用习惯中任意一个或其组合确定所述虚拟按键的目标显示位置包括:
    获取与所述应用程序对应的预设计算方法,所述预设计算方法根据所述应用程序的应用类型和用户对所述虚拟按键的使用习惯中任意一个或其组合制定;
    根据所述预设计算方法计算得到所述虚拟按键的目标显示位置。
  3. 如权利要求2所述的虚拟按键显示方法,其中,所述预设计算方法包括以下之一:固定位置法、隐藏位置法、习惯算法、智能算法;
    当所述预设计算方法为所述固定位置法时,所述根据所述预设计算方法计算得到所述虚拟按键的目标显示位置包括:将预设的固定位置作为所述虚拟按键的目标显示位置;
    当所述预设计算方法为隐藏位置法时,所述根据所述预设计算方法计算得到所述虚拟按键的目标显示位置包括:对所述虚拟按键进行隐藏;
    当所述预设计算方法为习惯算法时,所述根据所述预设计算方法计算得到所述虚拟按键的目标显示位置包括:获取在过去一段预设时间段中,用户在使用所述应用程序时,所述虚拟按键的至少一个显示位置中每个显示位置以及在所述每个显示位置停留的累计时长,将停留累计时长最长的显示位置作为所述虚拟按键的目标显示位置;
    当所述预设计算方法为智能算法时,所述根据所述预设计算方法计算得 到所述虚拟按键的目标显示位置包括:获取在过去一段预设时间段中,用户在使用所述应用程序时,所述虚拟按键的至少一个显示位置中每个显示位置以及在所述每个显示位置停留的累计时长,根据所述虚拟按键在所述每个显示位置的停留时长对所述虚拟按键的所述至少一个显示位置进行加权计算,得到加权平均位置作为所述虚拟按键的目标显示位置。
  4. 如权利要求2所述的虚拟按键显示方法,其中,所述预设的计算方法的来源包括用户提前设定或终端自身预置。
  5. 如权利要求1-4任一项所述的虚拟按键显示方法,在查询所述应用程序被授权的虚拟按键显示方案后,还包括:
    若所述虚拟按键显示方案为正常显示,则将所述虚拟按键的默认位置作为所述虚拟按键的目标显示位置。
  6. 如权利要求1至4任一项所述的虚拟按键显示方法,在查询所述应用程序被授权的虚拟按键显示方案后,还包括:
    若所述应用程序未被授权虚拟按键显示方案,则提示用户是否对应用程序授权虚拟按键显示方案,将可选择的虚拟按键显示方案显示给用户,根据用户的选择为所述应用程序设置虚拟按键显示方案。
  7. 一种终端,包括:
    接收模块,设置为:接收应用程序对虚拟按键的显示请求;
    查询模块,设置为:查询所述应用程序被授权的虚拟按键显示方案;
    处理模块,设置为:若所述虚拟按键显示方案为智能显示,根据所述应用程序的应用类型和用户对所述虚拟按键的使用习惯中任意一个或其组合确定所述虚拟按键的目标显示位置。
  8. 如权利要求7所述的终端,其中,所述处理模块,是设置为:若所述虚拟按键显示方案为智能显示,获取与所述应用程序对应的预设计算方法,根据所述预设计算方法计算得到所述虚拟按键的目标显示位置;所述预设计算方法根据所述应用程序的应用类型和用户对所述虚拟按键的使用习惯中任意一个或其组合制定。
  9. 如权利要求8所述的终端,其中,所述处理模块获取的预设计算方法 包括以下之一:固定位置法、隐藏位置法、习惯算法、智能算法;
    当所述预设计算方法为所述固定位置法时,所述处理模块,是设置为:将预设的固定位置作为所述虚拟按键的目标显示位置;
    当所述预设计算方法为隐藏位置法时,所述处理模块,是设置为:对所述虚拟按键进行隐藏;
    当所述预设计算方法为习惯算法时,所述处理模块,是设置为:获取在过去一段预设时间段中,用户在使用所述应用程序时,所述虚拟按键的至少一个显示位置中每个显示位置以及在所述每个显示位置停留的累计时长,将停留累计时长最长的显示位置作为所述虚拟按键的目标显示位置;
    当所述预设计算方法为智能算法时,所述处理模块,是设置为:获取在过去一段预设时间段中,用户在使用所述应用程序时,所述虚拟按键的至少一个显示位置中每个显示位置以及在所述每个显示位置停留的累计时长,根据所述虚拟按键在所述每个显示位置的停留时长对所述虚拟按键的所述至少一个显示位置进行加权计算,得到加权平均位置作为所述虚拟按键的目标显示位置。
  10. 如权利要求7至9任一项所述的终端,所述处理模块,还设置为:若所述虚拟按键显示方案为正常显示,则将所述虚拟按键的默认位置作为所述虚拟按键的目标显示位置;或者,若所述应用程序未被授权虚拟按键显示方案,则提示用户是否对应用程序授权虚拟按键显示方案,将可选择的虚拟按键显示方案显示给用户,根据用户的选择为所述应用程序设置虚拟按键显示方案。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现如权利要求1至6中任一权利要求所述的虚拟按键显示方法。
PCT/CN2017/114308 2017-01-03 2017-12-01 一种虚拟按键显示方法和终端 WO2018126828A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710002566.1A CN108279957A (zh) 2017-01-03 2017-01-03 一种虚拟按键显示方法和终端
CN201710002566.1 2017-01-03

Publications (1)

Publication Number Publication Date
WO2018126828A1 true WO2018126828A1 (zh) 2018-07-12

Family

ID=62789037

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/114308 WO2018126828A1 (zh) 2017-01-03 2017-12-01 一种虚拟按键显示方法和终端

Country Status (2)

Country Link
CN (1) CN108279957A (zh)
WO (1) WO2018126828A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882620A (zh) * 2021-02-07 2021-06-01 维沃移动通信有限公司 虚拟按键的配置方法及配置装置、电子设备和存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196677A (zh) * 2019-05-24 2019-09-03 Oppo广东移动通信有限公司 虚拟按键的显示位置更新方法及相关设备
CN112181534A (zh) * 2020-10-21 2021-01-05 上海商米科技集团股份有限公司 一种动态管理电子设备显示界面的方法及设备
CN113608645A (zh) * 2021-08-26 2021-11-05 深圳市哈哈丫丫互联网有限公司 鼠标双击网页空白处切换全屏或窗口显示及默认全屏浏览器创新技术
CN116159301A (zh) * 2023-03-06 2023-05-26 网易(杭州)网络有限公司 虚拟按键的调整方法及装置、电子设备、存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186369A (zh) * 2011-12-28 2013-07-03 中兴通讯股份有限公司 终端上的虚拟按键的布局方法和装置
CN106126086A (zh) * 2016-06-14 2016-11-16 广东欧珀移动通信有限公司 终端设备及虚拟按键布局的调整方法
CN106155502A (zh) * 2015-03-25 2016-11-23 联想(北京)有限公司 一种信息处理方法及电子设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186369A (zh) * 2011-12-28 2013-07-03 中兴通讯股份有限公司 终端上的虚拟按键的布局方法和装置
CN106155502A (zh) * 2015-03-25 2016-11-23 联想(北京)有限公司 一种信息处理方法及电子设备
CN106126086A (zh) * 2016-06-14 2016-11-16 广东欧珀移动通信有限公司 终端设备及虚拟按键布局的调整方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882620A (zh) * 2021-02-07 2021-06-01 维沃移动通信有限公司 虚拟按键的配置方法及配置装置、电子设备和存储介质
CN112882620B (zh) * 2021-02-07 2022-09-20 维沃移动通信有限公司 虚拟按键的配置方法及配置装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN108279957A (zh) 2018-07-13

Similar Documents

Publication Publication Date Title
WO2018126828A1 (zh) 一种虚拟按键显示方法和终端
JP7042917B2 (ja) メッセージ処理方法、未読メッセージ表示方法、およびコンピュータ端末
US11086482B2 (en) Method and device for displaying history pages in application program and computer-readable medium
CN107741820B (zh) 一种输入法键盘显示方法及移动终端
US20110219312A1 (en) Apparatus and method for displaying user interface for transmitting contents
JP6240363B2 (ja) 番号マーキング方法、装置、プログラム及び記録媒体
WO2019109976A1 (zh) 多媒体文件播放记录保存方法、终端及存储介质
WO2015188588A1 (zh) 应用程序的删除提示方法和装置
EP3252584B1 (en) Method, apparatus and device for activating task management interface
US20170085697A1 (en) Method and device for extending call function
CN104954549B (zh) 电子装置以及通信方法
CN106201310A (zh) 通知消息的显示方法、装置及终端
US20130154981A1 (en) Method and apparatus for providing a shortcut number in a user device
CN107153546B (zh) 一种视频播放方法及移动设备
US20210326010A1 (en) Methods, systems, and media for navigating user interfaces
US20170192653A1 (en) Display area adjusting method and electronic device
WO2021258597A1 (zh) 遥控信号转触控操作方法、装置和显示设备
CN104951227A (zh) 电子装置以及显示切换方法
JP6250871B2 (ja) メッセージ送信方法、装置、プログラム及び記録媒体
WO2017113500A1 (zh) 通讯录的显示控制方法、通讯录的显示控制系统和终端
CN112333518B (zh) 用于视频的功能配置方法、装置及电子设备
US20180091636A1 (en) Call processing method and device
JP6407293B2 (ja) キーボード様式切り替え方法および装置
WO2016141822A1 (zh) 联系人的检索方法及装置
US20210274035A1 (en) Method for anti-disturbing, electronic device, and computer-readable storage medium

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: 17890147

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: 17890147

Country of ref document: EP

Kind code of ref document: A1