CN110837406A - A method for displaying a floating ball view and a terminal - Google Patents
A method for displaying a floating ball view and a terminal Download PDFInfo
- Publication number
- CN110837406A CN110837406A CN201911094562.6A CN201911094562A CN110837406A CN 110837406 A CN110837406 A CN 110837406A CN 201911094562 A CN201911094562 A CN 201911094562A CN 110837406 A CN110837406 A CN 110837406A
- Authority
- CN
- China
- Prior art keywords
- floating ball
- view
- function control
- terminal
- function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及终端显示技术领域,尤其涉及一种悬浮球视图的显示方法以及终端。The present invention relates to the technical field of terminal display, and in particular, to a method for displaying a floating ball view and a terminal.
背景技术Background technique
悬浮球是可以替代终端物理按键的一个功能,开启后以悬浮图标的形式展示在终端的操作界面上,用户可以点击悬浮球视图中的悬浮球切换为包括悬浮球和功能控件的展开状态,通过功能控件对应的功能应用对终端进行相应的操作和控制。The floating ball is a function that can replace the physical buttons of the terminal. After it is turned on, it is displayed on the operation interface of the terminal in the form of a floating icon. The user can click the floating ball in the floating ball view to switch to the expanded state including the floating ball and function controls. The function application corresponding to the function control performs corresponding operation and control on the terminal.
目前,现有技术中在悬浮球处于展开状态下,用户不可以对悬浮球进行移动位置的操作;只有用户手动点击悬浮球,将悬浮球展开状态下显示的功能控件移除后,才能移动悬浮球以改变悬浮球在终端显示界面上的位置;并且拖动悬浮球移动到新的位置后,还需要用户再次点击悬浮球才能够展示功能控件。因此,目前在悬浮球展开状态时无法对悬浮球的位置进行移动。At present, in the prior art, when the suspension ball is in the unfolded state, the user cannot move the position of the suspension ball; only after the user manually clicks the suspension ball and removes the function controls displayed in the unfolded state of the suspension ball, the suspension ball can be moved. To change the position of the floating ball on the terminal display interface; and after dragging the floating ball to a new position, the user needs to click the floating ball again to display the functional controls. Therefore, currently, the position of the suspension ball cannot be moved when the suspension ball is in the unfolded state.
发明内容SUMMARY OF THE INVENTION
本发明涉及网络应用技术领域,尤其涉及一种悬浮球视图的显示方法以及终端,用以解决目前在悬浮球展开状态时无法对悬浮球的位置进行移动的问题。The invention relates to the technical field of network applications, in particular to a display method and a terminal of a floating ball view, which are used to solve the problem that the position of the floating ball cannot be moved when the floating ball is in an unfolded state.
基于上述问题,第一方面,在具有至少一个处理单元和至少一个存储单元的终端处,本发明实施例提供一种移动悬浮球位置的方法,包括:Based on the above problems, in a first aspect, at a terminal having at least one processing unit and at least one storage unit, an embodiment of the present invention provides a method for moving the position of a levitation ball, including:
终端在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应于用户在功能控件上的触发操作,执行与所述功能控件对应的功能;When the floating ball view is in the expanded state including the floating ball and the function control, the terminal executes the function corresponding to the function control in response to the user's triggering operation on the function control;
在用户移动悬浮球的过程中,隐藏显示所述悬浮球视图中的功能控件;In the process of the user moving the floating ball, the function controls in the floating ball view are hidden and displayed;
在确定移动结束时,恢复显示所述悬浮球视图中的功能控件。When it is determined that the movement ends, the display of the function controls in the floating ball view is resumed.
第二方面,本发明实施例提供一种终端,包括至少一个处理单元和至少一个存储单元;In a second aspect, an embodiment of the present invention provides a terminal, including at least one processing unit and at least one storage unit;
其中,所述存储单元存储有程序代码,当所述程序代码被所述处理单元执行时,使得所述处理单元执行下列过程:Wherein, the storage unit stores program codes, and when the program codes are executed by the processing unit, the processing unit is caused to perform the following processes:
在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应于用户在功能控件上的触发操作,执行与所述功能控件对应的功能;When the floating ball view is in the expanded state including the floating ball and the function control, in response to the user's triggering operation on the function control, execute the function corresponding to the function control;
在用户移动悬浮球的过程中,隐藏显示所述悬浮球视图中的功能控件;In the process of the user moving the floating ball, the function controls in the floating ball view are hidden and displayed;
在确定移动结束时,恢复显示所述悬浮球视图中的功能控件。When it is determined that the movement ends, the display of the function controls in the floating ball view is resumed.
第三方面,本发明实施例提供一种移动悬浮球位置的装置,可以应用于终端,包括:In a third aspect, an embodiment of the present invention provides a device for moving the position of a levitation ball, which can be applied to a terminal, including:
执行模块,用于在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应于用户在功能控件上的触发操作,执行与所述功能控件对应的功能;an execution module, configured to execute a function corresponding to the function control in response to a user's triggering operation on the function control when the suspension ball view is in an expanded state including the suspension ball and the function control;
隐藏模块,用于在用户移动悬浮球的过程中,隐藏显示所述悬浮球视图中的功能控件;The hiding module is used to hide and display the functional controls in the floating ball view when the user moves the floating ball;
恢复模块,用于在确定移动结束时,恢复显示所述悬浮球视图中的功能控件。The restoring module is used for restoring and displaying the function controls in the floating ball view when it is determined that the movement ends.
第四方面,本发明实施例提供一种计算机可存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述第一方面所述方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-storable medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method described in the first aspect.
本发明实施例提供的悬浮球视图的显示方法,终端在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应用户在功能控件上的触发操作,执行功能控件对应的功能;在用户移动悬浮球的过程中,将悬浮球视图中的功能控件隐藏,在确定用户的移动操作结束后,恢复显示悬浮球视图中的功能控件。由于本发明实施例能够在悬浮球视图的展开状态下响应用户触发的移动操作,自动将显示界面中的功能控件移除,并根据用户的移动操作对悬浮球视图的位置进行移动,省去了移动悬浮球前后用户手动切换悬浮球状态的操作,方便用户灵活操作悬浮球,提升用户体验;且终端在对悬浮球视图移动完成后自动恢复功能控件的状态,能够提供给用户功能控件对应的功能应用的开启信息,便于用户进行后续操作。In the display method of the floating ball view provided by the embodiment of the present invention, when the floating ball view is in the expanded state including the floating ball and the function control, the terminal responds to the user's trigger operation on the function control, and executes the function corresponding to the function control; In the process of suspending the ball, the function controls in the floating ball view are hidden, and after it is determined that the user's movement operation is completed, the function controls in the floating ball view are restored to be displayed. Because the embodiment of the present invention can respond to the movement operation triggered by the user in the expanded state of the floating ball view, automatically remove the function controls in the display interface, and move the position of the floating ball view according to the user's movement operation, eliminating the need for The operation of manually switching the status of the suspension ball before and after moving the suspension ball is convenient for the user to operate the suspension ball flexibly and improve the user experience; and the terminal automatically restores the state of the function control after the movement of the suspension ball view is completed, which can provide the user with the corresponding function of the function control. The opening information of the application is convenient for users to perform subsequent operations.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例一种悬浮球视图显示示意图;1 is a schematic diagram showing a view of a suspension ball according to an embodiment of the present invention;
图2为本发明实施例一种悬浮球视图展开状态示意图;FIG. 2 is a schematic diagram of an expanded state of a view of a suspension ball according to an embodiment of the present invention;
图3为本发明实施例一种悬浮球显示的方法流程图;3 is a flowchart of a method for displaying a suspended ball according to an embodiment of the present invention;
图4为本发明实施例一种悬浮球设置界面示意图;4 is a schematic diagram of a suspension ball setting interface according to an embodiment of the present invention;
图5为本发明实施例一种功能控件示意图;5 is a schematic diagram of a functional control according to an embodiment of the present invention;
图6为本发明实施例一种移动悬浮球操作示意图;6 is a schematic diagram of an operation of a moving suspension ball according to an embodiment of the present invention;
图7为本发明实施例一种正在移动悬浮球操作示意图;7 is a schematic diagram of an operation of a moving suspension ball according to an embodiment of the present invention;
图8为本发明实施例第一种功能控件的显示示意图;FIG. 8 is a schematic display diagram of a first functional control according to an embodiment of the present invention;
图9为本发明实施例第二种功能控件的显示示意图;FIG. 9 is a schematic display diagram of a second functional control according to an embodiment of the present invention;
图10为本发明实施例第一种功能控件状态示意图;FIG. 10 is a schematic diagram of the state of the first functional control according to the embodiment of the present invention;
图11为本发明实施例第二种功能控件状态示意图;11 is a schematic diagram of the state of a second functional control according to an embodiment of the present invention;
图12为本发明实施例一种完整的悬浮球显示的流程图;12 is a flowchart of a complete floating ball display according to an embodiment of the present invention;
图13为本发明实施例一种终端的结构示意图;FIG. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图14为本发明实施例一种悬浮球显示的装置示意图;14 is a schematic diagram of a device for displaying a floating ball according to an embodiment of the present invention;
图15为本发明实施例一种手机终端的结构示意图。FIG. 15 is a schematic structural diagram of a mobile phone terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本发明的技术方案,下面将结合附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.
下面对文中出现的一些术语进行解释:Some terms that appear in the text are explained below:
1、本发明实施例中术语“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。1. The term "and/or" in the embodiment of the present invention describes the association relationship of the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist simultaneously, and a separate relationship exists. There are three cases of B. The character "/" generally indicates that the associated objects are an "or" relationship.
2、本发明实施例中术语“终端”,为可以安装各类应用程序,并且能够将已安装的应用程序中提供的对象进行显示的设备,该终端设备可以是移动的,也可以是固定的。例如,手机、平板电脑、各类可穿戴设备、车载设备、个人数字助理(personal digitalassistant,PDA)、销售终端(point of sales,POS)或其它能够实现上述功能的终端设备等。2. The term "terminal" in this embodiment of the present invention refers to a device that can install various application programs and can display objects provided in the installed application programs. The terminal device may be mobile or fixed. . For example, mobile phones, tablet computers, various types of wearable devices, vehicle-mounted devices, personal digital assistants (personal digital assistants, PDA), point of sales (point of sales, POS) or other terminal devices capable of realizing the above functions, etc.
3、本发明实施例中术语“悬浮球”,为可以替代终端物理按键的一个功能,开启后以悬浮图标的形式展示在终端的操作界面上,用户可以点击悬浮球切换悬浮球视图为包括悬浮球和功能控件的展开状态,用户可以通过功能控件对应的功能对终端进行相应的操作和控制。3. The term "floating ball" in the embodiment of the present invention is a function that can replace the physical buttons of the terminal. After being turned on, it is displayed on the operation interface of the terminal in the form of a floating icon. The user can click the floating ball to switch the view of the floating ball to include the floating In the expanded state of the ball and the function controls, the user can perform corresponding operations and control on the terminal through the functions corresponding to the function controls.
4、本发明实施例中术语“控件”,控件也称为组件或者构件,通常俗称第三方开发控件,是软件中可重复使用的功能模块,如具有复杂功能的菜单、表格、报表或者用户界面等,可广泛应用于各类软件中。4. In the embodiment of the present invention, the term "control", the control is also called a component or a component, commonly known as a third-party development control, is a reusable functional module in the software, such as a menu, form, report or user interface with complex functions. etc., can be widely used in various software.
5、本发明实施例中术语“布尔变量”,为有两种逻辑状态的变量,它包含两个值:true和false。5. The term "Boolean variable" in the embodiment of the present invention is a variable with two logical states, and it contains two values: true and false.
本发明实施例中,终端支持悬浮球功能,如图1所示,悬浮球视图可以显示在终端的显示界面上;用户在显示界面的悬浮球视图上触发的开启指令,该开启指令具体可以是用户点击悬浮球视图触发,悬浮球视图切换为包括悬浮球和功能控件的展开状态,在显示界面上显示处于展开状态的悬浮球视图;如图2所示的悬浮球视图,包括悬浮球和多个功能控件,例如,功能控件分别为快捷按键功能控件、瞳孔灯功能控件、手电筒功能控件、连续扫描功能控件、单次扫描功能控件。用户可以通过点击功能控件进行相应功能的操作,例如点击手电筒功能控件,则会打开终端上的手电筒。In this embodiment of the present invention, the terminal supports the floating ball function. As shown in FIG. 1 , the floating ball view can be displayed on the display interface of the terminal; the opening command triggered by the user on the floating ball view of the display interface may specifically be: When the user clicks on the floating ball view, the floating ball view switches to the expanded state including the floating ball and function controls, and the floating ball view in the expanded state is displayed on the display interface; A function control, for example, the function control is a shortcut key function control, a pupil light function control, a torch function control, a continuous scan function control, and a single scan function control. The user can operate the corresponding function by clicking the function control, for example, clicking the torch function control will turn on the torch on the terminal.
目前,现有技术中在悬浮球展开状态下,用户不可以直接将悬浮球视图的位置进行移动,只有用户手动点击悬浮球视图,将悬浮球展开状态下显示的功能控件移除后,才能移动悬浮球视图以改变悬浮球视图在终端显示界面上的位置,并且拖动悬浮球视图到新的位置后,还需要用户再次点击悬浮球视图才能够将悬浮球视图切换为展开状态。At present, in the prior art, when the floating ball is in an expanded state, the user cannot directly move the position of the floating ball view. Only after the user manually clicks on the floating ball view and removes the functional controls displayed in the expanded state of the floating ball, the user can move the view. The floating ball view is used to change the position of the floating ball view on the terminal display interface, and after dragging the floating ball view to a new position, the user needs to click the floating ball view again to switch the floating ball view to the expanded state.
基于上述问题,本发明提供一种移动悬浮球位置的方法,如图3所示,包括以下步骤:Based on the above problems, the present invention provides a method for moving the position of the suspension ball, as shown in FIG. 3 , comprising the following steps:
步骤S301、终端在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应于用户在功能控件上的触发操作,执行与功能控件对应的功能;Step S301, when the floating ball view is in the expanded state including the floating ball and the function control, in response to the user's triggering operation on the function control, the terminal executes the function corresponding to the function control;
步骤S302、在用户移动悬浮球的过程中,隐藏显示悬浮球视图中的功能控件;Step S302, in the process of the user moving the suspension ball, hide and display the function controls in the suspension ball view;
步骤S303、在确定移动结束时,恢复显示悬浮球视图中的功能控件。Step S303 , when it is determined that the movement ends, restore the display of the function controls in the floating ball view.
本发明实施例提供的悬浮球视图的显示方法,终端在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应用户在功能控件上的触发操作,执行功能控件对应的功能;在用户移动悬浮球的过程中,将悬浮球视图中的功能控件隐藏,在确定用户的移动操作结束后,恢复显示悬浮球视图中的功能控件。由于本发明实施例能够在悬浮球视图的展开状态下响应用户触发的移动操作,自动将显示界面中的功能控件隐藏显示,并根据用户的移动操作对悬浮球视图的位置进行移动,省去了移动悬浮球前后用户手动切换悬浮球状态的操作,方便用户灵活操作悬浮球,提升用户体验。In the display method of the floating ball view provided by the embodiment of the present invention, when the floating ball view is in the expanded state including the floating ball and the function control, the terminal responds to the user's trigger operation on the function control, and executes the function corresponding to the function control; In the process of suspending the ball, the function controls in the floating ball view are hidden, and after it is determined that the user's movement operation is completed, the function controls in the floating ball view are restored to be displayed. Because the embodiment of the present invention can respond to the movement operation triggered by the user in the expanded state of the floating ball view, automatically hide and display the function controls in the display interface, and move the position of the floating ball view according to the user's movement operation, eliminating the need for The operation of manually switching the status of the suspension ball before and after moving the suspension ball facilitates the user to operate the suspension ball flexibly and improves the user experience.
一种可能的实施方式,在系统设置界面中,选择悬浮球选项,可进入悬浮球设置页面,在悬浮球设置页面中,用户开启悬浮球选项后,终端在显示界面上展示包括悬浮球和功能控件的展开状态下的悬浮球视图;终端响应于用户点击悬浮球视图中的悬浮球的操作,会隐藏显示悬浮球视图中的功能控件,只显示悬浮球;在显示界面上展示只包括悬浮球的悬浮球视图时,响应于用户点击悬浮球的操作,在显示界面上展示展开状态下的悬浮球视图;In a possible implementation, in the system setting interface, select the suspension ball option to enter the suspension ball setting page. In the suspension ball setting page, after the user enables the suspension ball option, the terminal displays the suspension ball and functions on the display interface. The floating ball view in the expanded state of the control; in response to the user's operation of clicking the floating ball in the floating ball view, the terminal will hide and display the functional controls in the floating ball view, and only display the floating ball; only the floating ball is displayed on the display interface. When the floating ball view is displayed, in response to the user's operation of clicking the floating ball, the floating ball view in the expanded state is displayed on the display interface;
其中,功能控件可以包括终端系统提供的快捷按键、瞳孔灯、手电筒、连续扫描和单次扫描等功能应用对应的功能控件中的至少一种。The functional controls may include at least one of functional controls corresponding to functional applications such as shortcut keys, pupil light, flashlight, continuous scan and single scan provided by the terminal system.
实施中,用户可以对悬浮球视图中包含的功能控件进行动态调整,具体可以通过下列方式进行调整。During the implementation, the user can dynamically adjust the functional controls included in the floating ball view, and the specific adjustment can be made in the following ways.
一种可能的实施方式,响应于用户在终端的用于设置悬浮球视图的设置界面上触发的开启功能控件的开启指令,在悬浮球视图中显示开启操作对应的功能控件;或,响应于用户在终端的用于设置悬浮球视图的设置界面上触发的关闭功能控件的移除指令,在悬浮球视图中移除移除操作对应的功能控件。A possible implementation manner, in response to a user triggering an opening instruction to enable a function control on a setting interface of the terminal for setting the floating ball view, display the function control corresponding to the opening operation in the floating ball view; or, in response to the user The removal instruction for closing the function control is triggered on the setting interface for setting the floating ball view of the terminal, and the function control corresponding to the removal operation is removed in the floating ball view.
具体的,用户可以自定义悬浮球展开状态下显示的功能控件;具体的,终端提供可以在显示界面上显示的可选功能控件列表,且每一个可选功能控件对应一个开关按钮;在可选功能控件对应的开关按钮打开时,在悬浮球处于展开状态下在显示界面显示该功能控件;若用户将可选功能控件对应的开关按钮由打开切换为关闭,则在悬浮球处于展开状态时将在显示界面显示的该功能控件移除。Specifically, the user can customize the function controls displayed in the expanded state of the floating ball; specifically, the terminal provides a list of optional function controls that can be displayed on the display interface, and each optional function control corresponds to a switch button; When the switch button corresponding to the function control is turned on, the function control will be displayed on the display interface when the floating ball is in the expanded state; if the user switches the switch button corresponding to the optional function control from on to off, when the floating ball is in the expanded state, the function control will be displayed on the display interface. This function control displayed on the display interface is removed.
在具体实施中,如图4所示,用户可以在系统设置中开启悬浮球选项,并且可以选择能够在悬浮球视图展开状态时显示在显示界面上的功能控件,针对应用于不同行业的终端,可以设置在显示界面上显示不同的功能控件;例如,医疗终端提供的可以在显示界面显示的功能控件包括:快捷按键、瞳孔灯、手电筒、连续扫描和单次扫描等。且每一个功能控件在系统设置中对应有一个开关,若功能控件对应的开关为开启状态,则可以在悬浮球视图展开状态时显示该功能控件,若功能控件对应的开关为关闭,则在悬浮球视图展开状态时不再显示该功能控件;如图4所示,如果开启“单次扫描”对应的开关,则在显示界面显示的功能控件中包含“单次扫描”对应的功能控件;如果关闭“连续扫描”对应的开关,则在显示界面显示的功能控件中将不再显示“连续扫描”对应的功能控件;In a specific implementation, as shown in Figure 4, the user can enable the floating ball option in the system settings, and can select the function controls that can be displayed on the display interface when the floating ball view is expanded. For terminals applied to different industries, Different functional controls can be set to be displayed on the display interface; for example, the functional controls provided by the medical terminal that can be displayed on the display interface include: shortcut keys, pupil light, flashlight, continuous scan and single scan. And each function control has a corresponding switch in the system settings. If the switch corresponding to the function control is on, the function control can be displayed when the floating ball view is expanded. This function control is no longer displayed when the spherical view is expanded; as shown in Figure 4, if the switch corresponding to "Single Scan" is turned on, the function controls displayed on the display interface include the function controls corresponding to "Single Scan"; if If the switch corresponding to "Continuous Scan" is turned off, the function controls corresponding to "Continuous Scan" will no longer be displayed in the function controls displayed on the display interface;
终端响应用户在显示界面的悬浮球视图上触发的开启指令,在显示界面上显示用户在系统设置中选择开启的功能控件。例如,用户选择开启了“瞳孔灯”、“手电筒”和“单次扫描”对应的功能控件,则终端响应用户在悬浮球视图的悬浮球上触发的开启指令后显示如图5所示的展开状态下的悬浮球视图。The terminal responds to the opening instruction triggered by the user on the floating ball view of the display interface, and displays on the display interface the function controls selected to be enabled by the user in the system settings. For example, if the user chooses to turn on the function controls corresponding to "pupil light", "torch" and "single scan", the terminal responds to the opening command triggered by the user on the floating ball of the floating ball view and displays the expansion shown in Figure 5. Floating ball view in state.
在显示界面上显示展开状态的悬浮球视图时,若检测到用户在悬浮球视图上触发的移动操作,则终端隐藏显示悬浮球视图中的功能控件,并根据用户触发的移动操作对悬浮球在显示界面中的位置进行移动。When the floating ball view in the expanded state is displayed on the display interface, if a movement operation triggered by the user on the floating ball view is detected, the terminal hides the function controls in the floating ball view, and adjusts the floating ball in the floating ball view according to the movement operation triggered by the user. Move the position in the display interface.
一种可能的实施方式,终端根据下列方式检测用户在悬浮球视图上触发的移动操作:In a possible implementation manner, the terminal detects the movement operation triggered by the user on the floating ball view according to the following methods:
终端实时检测显示界面上在悬浮球视图上是否有用户触发的触摸操作,若触摸操作的划动距离大于预设阈值则确定检测到用户触发的移动操作。The terminal detects in real time whether there is a user-triggered touch operation on the floating ball view on the display interface, and determines that a user-triggered movement operation is detected if the stroke distance of the touch operation is greater than a preset threshold.
需要说明的是,预设阈值可以为本领域技术人员预先设定的数值,且该数值可以是本领域技术人员的经验数值。It should be noted that the preset threshold may be a value preset by a person skilled in the art, and the value may be an empirical value of a person skilled in the art.
终端在确定用户在悬浮球视图上触发移动操作后,隐藏显示悬浮球视图中的功能控件。After determining that the user triggers a movement operation on the floating ball view, the terminal hides and displays the functional controls in the floating ball view.
一种可能的实施方式,终端通过View类的setVisibility方法在显示界面布局中隐藏显示悬浮球视图中的功能控件,终端通过setVisibility方法修改功能控件的可视性,从而隐藏显示悬浮球视图中的功能控件,释放功能控件在显示界面的布局中占用的空间;A possible implementation is that the terminal hides the function controls in the display floating ball view in the display interface layout through the setVisibility method of the View class, and the terminal modifies the visibility of the function controls through the setVisibility method, thereby hiding the functions in the floating ball view. controls, release the space occupied by functional controls in the layout of the display interface;
例如,如图6所示,用户在终端的显示界面中悬浮球视图上触发的移动操作,该移动操作用于对悬浮球的位置进行移动;如图7所示,终端在检测到移动操作后,隐藏显示悬浮球视图中的功能控件,并且悬浮球视图跟随用户的拖动更新位置。For example, as shown in Figure 6, the user triggers a movement operation on the floating ball view in the display interface of the terminal, and the movement operation is used to move the position of the floating ball; as shown in Figure 7, after the terminal detects the movement operation , hides and displays the functional controls in the floating ball view, and the floating ball view updates the position with the user's drag.
在确定移动结束时,终端在显示界面上恢复显示悬浮球视图中的功能控件;When it is determined that the movement ends, the terminal resumes displaying the function controls in the floating ball view on the display interface;
一种可能的实施方式,终端通过View类的setVisibility方法在显示界面布局中添加功能控件,终端通过setVisibility方法修改功能控件的可视性,将悬浮球视图中的功能控件显示在终端的显示界面上。A possible implementation is that the terminal adds functional controls to the display interface layout through the setVisibility method of the View class, the terminal modifies the visibility of the functional controls through the setVisibility method, and displays the functional controls in the floating ball view on the display interface of the terminal. .
一种可能的实施方式,终端在确定移动操作结束后,根据移动后悬浮球视图在显示界面上的位置参数,在显示界面上恢复显示悬浮球视图中的功能控件;In a possible implementation manner, after determining that the moving operation is over, the terminal restores the display of the function controls in the floating ball view on the display interface according to the position parameter of the floating ball view on the display interface after the movement;
具体的,终端实时检测显示界面,若确定用户触发的移动操作后,检测到显示界面上的电压不再发生变化,则确定用户结束了移动操作;Specifically, the terminal detects the display interface in real time, and if it detects that the voltage on the display interface no longer changes after determining the movement operation triggered by the user, it is determined that the user has ended the movement operation;
终端响应用户结束移动操作,根据移动后悬浮球视图在显示界面上的位置参数,在显示界面上恢复显示悬浮球视图中的功能控件。In response to the user ending the moving operation, the terminal resumes displaying the function controls in the floating ball view on the display interface according to the position parameter of the floating ball view on the display interface after the movement.
下面详细说明终端在显示界面上恢复显示悬浮球视图中的功能控件的方法:The following describes in detail the method for the terminal to restore the display of the function controls in the floating ball view on the display interface:
终端根据悬浮球视图中的悬浮球在显示界面上的位置参数,确定悬浮球的中心点与显示界面顶端的第一距离,以及确定所述悬浮球的中心点与显示界面底端的第二距离;The terminal determines the first distance between the center point of the suspension ball and the top of the display interface, and determines the second distance between the center point of the suspension ball and the bottom end of the display interface according to the position parameter of the suspension ball in the suspension ball view on the display interface;
若第一距离不大于第二距离,则在悬浮球的靠近显示界面底端的一侧恢复显示功能控件;If the first distance is not greater than the second distance, restore the display function controls on the side of the floating ball close to the bottom of the display interface;
若第一距离大于第二距离,则在悬浮球的靠近显示界面顶端的一侧恢复显示功能控件。If the first distance is greater than the second distance, the display of the function controls is restored on the side of the floating ball close to the top of the display interface.
在悬浮球视图显示在显示界面上时,由于悬浮球视图展开状态下的功能控件在显示界面上占用的空间较大,为了能够完整显示功能控件且保证显示界面的美观,在悬浮球视图展开前,还需要根据悬浮球视图中的悬浮球当前的位置信息,确定悬浮球视图展开状态下的功能控件的显示位置。若悬浮球和显示界面顶端的距离大于悬浮球和显示界面底端的距离,则在悬浮球的上方展开显示功能控件,若悬浮球和显示界面顶端的距离不大于悬浮球和显示界面底端的距离,则在悬浮球的下方展开显示功能控件。When the floating ball view is displayed on the display interface, since the function controls in the expanded state of the floating ball view occupy a large space on the display interface, in order to fully display the function controls and ensure the beauty of the display interface, before the floating ball view is expanded , it is also necessary to determine the display position of the function control in the expanded state of the floating ball view according to the current position information of the floating ball in the floating ball view. If the distance between the suspension ball and the top of the display interface is greater than the distance between the suspension ball and the bottom of the display interface, expand the display function controls above the suspension ball. If the distance between the suspension ball and the top of the display interface is not greater than the distance between the suspension ball and the bottom of the display interface, Then expand the display function control below the floating ball.
在具体实施中,悬浮球视图中的悬浮球在显示界面上的位置参数可以用悬浮球中心点和显示界面顶端之间的像素点坐标来表示,例如,假设终端的显示屏幕的分辨率为1080*530。In a specific implementation, the position parameter of the floating ball in the floating ball view on the display interface can be represented by the coordinates of the pixel point between the center point of the floating ball and the top of the display interface. For example, it is assumed that the resolution of the display screen of the terminal is 1080 *530.
定义终端显示界面的顶端为上方、底端为下方;获取悬浮球在显示界面上的位置参数,如图8所示,假设以显示界面左下角建立直角坐标系,若检测到悬浮球中心点的位置纵坐标为730,则确定悬浮球中心点距离显示界面顶端的第一距离为1080-730=350个像素,距离显示界面底端的第二距离为730-0=730个像素,比较可得第一距离小于第二距离,则在悬浮球的下方区域恢复显示功能控件。如图9所示,若检测到悬浮球中心点的位置纵坐标为280,则确定悬浮球中心点距离显示界面顶端的第一距离为1080-280=800个像素,距离显示界面底端的第二距离为280-0=280个像素,比较可得第一距离大于第二距离,则在悬浮球的上方区域恢复显示功能控件。Define the top of the terminal display interface as the top and the bottom as the bottom; obtain the position parameters of the suspension ball on the display interface, as shown in Figure 8, assuming that a rectangular coordinate system is established at the lower left corner of the display interface, if the center point of the suspension ball is detected. The vertical coordinate of the position is 730, then the first distance from the center of the floating ball to the top of the display interface is 1080-730=350 pixels, and the second distance from the bottom of the display interface is 730-0=730 pixels. If the first distance is smaller than the second distance, the function control will be displayed in the area below the floating ball. As shown in Figure 9, if it is detected that the ordinate of the center point of the floating ball is 280, the first distance from the center of the floating ball to the top of the display interface is 1080-280=800 pixels, and the second distance from the bottom of the display interface is 1080-280=800 pixels. The distance is 280-0=280 pixels, and it can be seen that the first distance is greater than the second distance, and the display function controls are restored in the area above the floating ball.
由于功能应用在不同状态下,对应的功能控件在终端显示界面的显示形式不同;例如,功能应用在开启和关闭两种状态下显示不同形式的功能控件。Since the function application is in different states, the corresponding function controls are displayed in different forms on the terminal display interface; for example, the function application displays different forms of function controls in two states: on and off.
功能应用“手电筒”在打开时,在终端显示界面上显示的功能控件如图10所示,功能应用“手电筒”在关闭时,在终端显示界面上显示的功能控件如图11所示。When the function application "torch" is turned on, the function controls displayed on the terminal display interface are shown in Figure 10, and when the function application "torch" is turned off, the function controls displayed on the terminal display interface are shown in Figure 11.
一种可能的实施方式,终端在隐藏显示悬浮球视图中的功能控件之前,存储功能控件对应的功能应用的状态信息;终端在恢复显示悬浮球视图中的功能控件时,根据功能控件对应的功能应用的状态信息,在显示界面上恢复显示功能控件。A possible implementation manner, the terminal stores the status information of the function application corresponding to the function control before hiding and displaying the function control in the floating ball view; when the terminal restores and displays the function control in the floating ball view, according to the function corresponding to the function control. The status information of the application, and the display function controls are restored on the display interface.
在具体实施中,可以使用布尔变量存储功能控件对应的功能应用的状态,true表示该功能控件对应的功能应用状态为开启,false表示该功能控件对应的功能应用状态为关闭,例如,当“手电筒”功能应用开启时,功能控件“手电筒”对应的布尔变量的值为“true”。In a specific implementation, a Boolean variable can be used to store the state of the function application corresponding to the function control, true indicates that the function application state corresponding to the function control is on, and false indicates that the function application state corresponding to the function control is closed. ” When the function application is opened, the value of the boolean variable corresponding to the function control “torch” is “true”.
一种可能的实施方式,终端在隐藏显示悬浮球视图中的功能控件之前,为每个功能控件存储一个布尔变量,分别记录每个功能控件对应的功能应用的状态;确定移动操作结束后,终端读取每个功能控件对应的布尔变量的值,在显示界面上恢复显示功能控件。A possible implementation is that before the terminal hides and displays the function controls in the floating ball view, a Boolean variable is stored for each function control, and the state of the function application corresponding to each function control is respectively recorded; Read the value of the Boolean variable corresponding to each function control, and restore the display function control on the display interface.
如图12所示,为本发明实施例一种完整的悬浮球显示方法的流程图,具体包括以下步骤:As shown in FIG. 12 , it is a flowchart of a complete floating ball display method according to an embodiment of the present invention, which specifically includes the following steps:
步骤S1201、终端响应用户在显示界面的悬浮球视图上触发的开启指令,在显示界面上显示包括悬浮球和功能控件的展开状态下的悬浮球视图;Step S1201, the terminal responds to the opening instruction triggered by the user on the floating ball view of the display interface, and displays the floating ball view in the expanded state including the floating ball and the function controls on the display interface;
步骤S1202、若检测到用户在悬浮球视图上触发的移动操作,存储功能控件对应的功能应用的状态信息;Step S1202, if a movement operation triggered by the user on the floating ball view is detected, store the status information of the function application corresponding to the function control;
步骤S1203、终端隐藏显示悬浮球视图中的功能控件;Step S1203, the terminal hides and displays the function controls in the floating ball view;
步骤S1204、在确定移动结束时,终端获取移动后悬浮球视图中的悬浮球在显示界面上的位置参数,确定功能控件在显示界面的显示位置;Step S1204, when it is determined that the movement ends, the terminal obtains the position parameters of the floating ball in the floating ball view after the movement on the display interface, and determines the display position of the function control on the display interface;
步骤S1205、终端根据功能控件对应的功能应用的状态信息,在确定出的显示位置上恢复显示功能控件。Step S1205, the terminal restores the display of the function control on the determined display position according to the state information of the function application corresponding to the function control.
如图13所示,本发明实施例一种终端,包括至少一个处理单元1300和至少一个存储单元1301;As shown in FIG. 13 , a terminal according to an embodiment of the present invention includes at least one
其中,所述存储单元1301存储有程序代码,当所述程序代码被所述处理单元1300执行时,使得所述处理单元1300执行下列过程:Wherein, the
在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应于用户在功能控件上的触发操作,执行与所述功能控件对应的功能;在用户移动悬浮球的过程中,隐藏显示所述悬浮球视图中的功能控件;在确定移动结束时,恢复显示所述悬浮球视图中的功能控件。When the floating ball view is in the expanded state including the floating ball and the function control, in response to the user's triggering operation on the function control, the function corresponding to the function control is executed; in the process of the user moving the floating ball, the function control is hidden and displayed. The function controls in the floating ball view; when it is determined that the movement ends, the function controls in the floating ball view are restored to be displayed.
可选的,所述处理单元1300还用于:Optionally, the
响应于用户在所述终端的用于设置悬浮球视图的设置界面上触发的开启功能控件的开启指令,在所述悬浮球视图中显示所述开启操作对应的功能控件。In response to a user triggering an opening instruction to enable a function control on a setting interface of the terminal for setting a floating ball view, the function control corresponding to the opening operation is displayed in the floating ball view.
可选的,所述处理单元1300还用于:Optionally, the
响应于用户在所述终端的用于设置悬浮球视图的设置界面上触发的关闭功能控件的移除指令,在所述悬浮球视图中移除所述移除操作对应的功能控件。In response to a removal instruction for closing a function control triggered by a user on a setting interface of the terminal for setting a floating ball view, the function control corresponding to the removal operation is removed in the floating ball view.
可选的,所述处理单元1300具体用于:Optionally, the
根据移动后所述悬浮球视图中的悬浮球在显示界面上的位置参数,在所述显示界面上恢复显示所述功能控件。According to the position parameter of the floating ball in the floating ball view on the display interface after the movement, the function control is restored and displayed on the display interface.
可选的,所述处理单元1300具体用于:Optionally, the
根据所述悬浮球视图中的悬浮球在显示界面上的位置参数,确定所述悬浮球的中心点与所述显示界面顶端的第一距离,以及确定所述悬浮球的中心点与所述显示界面底端的第二距离;According to the position parameters of the floating ball in the floating ball view on the display interface, determine the first distance between the center point of the floating ball and the top of the display interface, and determine the center point of the floating ball and the display interface. the second distance at the bottom of the interface;
若所述第一距离不大于所述第二距离,则在所述悬浮球的靠近所述显示界面底端的一侧恢复显示所述功能控件;If the first distance is not greater than the second distance, restore the display of the function control on the side of the floating ball close to the bottom end of the display interface;
若所述第一距离大于所述第二距离,则在所述悬浮球的靠近所述显示界面顶端的一侧恢复显示所述功能控件。If the first distance is greater than the second distance, the function control is resumed on the side of the floating ball close to the top of the display interface.
可选的,所述处理单元1300还用于:Optionally, the
在隐藏显示所述悬浮球视图中的功能控件之前,存储所述功能控件对应的功能应用的状态信息;Before hiding and displaying the function control in the floating ball view, storing the state information of the function application corresponding to the function control;
在恢复显示所述悬浮球视图中的功能控件时,根据所述功能控件对应的功能应用的状态信息,在所述显示界面上恢复显示所述功能控件。When the function controls in the floating ball view are resumed to be displayed, the function controls are resumed to be displayed on the display interface according to the state information of the function application corresponding to the function controls.
可选的,所述处理单元1300具体用于:Optionally, the
在所述隐藏显示所述悬浮球视图中的功能控件时,通过View类的setVisibility方法隐藏显示所述悬浮球视图中的功能控件;When the function controls in the floating ball view are hidden and displayed, the function controls in the floating ball view are hidden and displayed through the setVisibility method of the View class;
在所述恢复显示所述悬浮球视图中的功能控件时,通过View类的setVisibility方法恢复显示所述悬浮球视图中的功能控件。When the display of the functional controls in the floating ball view is restored, the setVisibility method of the View class is used to restore the display of the functional controls in the floating ball view.
如图14所示,本发明实施例提供一种悬浮球视图的显示装置,可以应用于终端,包括:As shown in FIG. 14 , an embodiment of the present invention provides a display device for a floating ball view, which can be applied to a terminal, including:
执行模块1401,用于在悬浮球视图处于包括悬浮球和功能控件的展开状态时,响应于用户在功能控件上的触发操作,执行与所述功能控件对应的功能;an execution module 1401, configured to execute a function corresponding to the function control in response to a user's triggering operation on the function control when the floating ball view is in an expanded state including the floating ball and the function control;
隐藏模块1402,用于在用户移动悬浮球的过程中,隐藏显示所述悬浮球视图中的功能控件;The hiding module 1402 is used to hide and display the function controls in the floating ball view when the user moves the floating ball;
恢复模块1403,用于在确定移动结束时,恢复显示所述悬浮球视图中的功能控件。The restoring module 1403 is configured to restore and display the function controls in the floating ball view when it is determined that the movement ends.
可选的,所述执行模块1401还用于:Optionally, the execution module 1401 is also used for:
响应于用户在所述终端的用于设置悬浮球视图的设置界面上触发的开启功能控件的开启指令,在所述悬浮球视图中显示所述开启操作对应的功能控件。In response to a user triggering an opening instruction to enable a function control on a setting interface of the terminal for setting a floating ball view, the function control corresponding to the opening operation is displayed in the floating ball view.
可选的,所述执行模块1401还用于:Optionally, the execution module 1401 is also used for:
响应于用户在所述终端的用于设置悬浮球视图的设置界面上触发的关闭功能控件的移除指令,在所述悬浮球视图中移除所述移除操作对应的功能控件。In response to a removal instruction for closing a function control triggered by a user on a setting interface of the terminal for setting a floating ball view, the function control corresponding to the removal operation is removed in the floating ball view.
可选的,所述恢复模块1403具体用于:Optionally, the recovery module 1403 is specifically used for:
根据移动后所述悬浮球视图中的悬浮球在显示界面上的位置参数,在所述显示界面上恢复显示所述功能控件。According to the position parameter of the floating ball in the floating ball view on the display interface after the movement, the function control is restored and displayed on the display interface.
可选的,所述恢复模块1403具体用于:Optionally, the recovery module 1403 is specifically used for:
根据所述悬浮球视图中的悬浮球在显示界面上的位置参数,确定所述悬浮球的中心点与所述显示界面顶端的第一距离,以及确定所述悬浮球的中心点与所述显示界面底端的第二距离;According to the position parameters of the floating ball in the floating ball view on the display interface, determine the first distance between the center point of the floating ball and the top of the display interface, and determine the center point of the floating ball and the display interface. the second distance at the bottom of the interface;
若所述第一距离不大于所述第二距离,则在所述悬浮球的靠近所述显示界面底端的一侧恢复显示所述功能控件;If the first distance is not greater than the second distance, restore the display of the function control on the side of the floating ball close to the bottom end of the display interface;
若所述第一距离大于所述第二距离,则在所述悬浮球的靠近所述显示界面顶端的一侧恢复显示所述功能控件。If the first distance is greater than the second distance, the function control is resumed on the side of the floating ball close to the top of the display interface.
可选的,所述隐藏模块1402还用于:Optionally, the hiding module 1402 is also used for:
在隐藏显示所述悬浮球视图中的功能控件之前,存储所述功能控件对应的功能应用的状态信息;Before hiding and displaying the function control in the floating ball view, storing the state information of the function application corresponding to the function control;
所述恢复模块1403还用于:The recovery module 1403 is also used for:
在恢复显示所述悬浮球视图中的功能控件时,根据所述功能控件对应的功能应用的状态信息,在所述显示界面上恢复显示所述功能控件。When the function controls in the floating ball view are resumed to be displayed, the function controls are resumed to be displayed on the display interface according to the state information of the function application corresponding to the function controls.
可选的,所述隐藏模块1402具体用于:Optionally, the hiding module 1402 is specifically used for:
在所述隐藏显示所述悬浮球视图中的功能控件时,通过View类的setVisibility方法隐藏显示所述悬浮球视图中的功能控件;When the function controls in the floating ball view are hidden and displayed, the function controls in the floating ball view are hidden and displayed through the setVisibility method of the View class;
所述恢复模块1403具体用于:The recovery module 1403 is specifically used for:
在所述恢复显示所述悬浮球视图中的功能控件时,通过View类的setVisibility方法恢复显示所述悬浮球视图中的功能控件。When the display of the functional controls in the floating ball view is restored, the setVisibility method of the View class is used to restore the display of the functional controls in the floating ball view.
需要说明的是,在本发明实施例的移动终端为手机时,手机1500包括:射频(RadioFrequency,RF)电路1510、电源1520、处理器1530、存储器1540、输入单元1550、显示单元1560、摄像头1570、通信接口1580、以及无线保真(Wireless Fidelity,WiFi)模块1590等部件。本领域技术人员可以理解,图15中示出的终端的结构并不构成对终端的限定,本申请实施例提供的终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that when the mobile terminal in the embodiment of the present invention is a mobile phone, the
下面结合图15对所述手机1500的各个构成部件进行具体的介绍:In the following, each component of the
所述RF电路1510可用于通信或通话过程中,数据的接收和发送。特别地,所述RF电路1510在接收到基站的下行数据后,发送给所述处理器1530处理;另外,将待发送的上行数据发送给基站。通常,所述RF电路1510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。The RF circuit 1510 can be used for data reception and transmission during communication or conversation. In particular, after receiving the downlink data of the base station, the RF circuit 1510 sends it to the
此外,RF电路1510还可以通过无线通信与网络和其他终端通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。In addition, the RF circuit 1510 can also communicate with the network and other terminals through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
WiFi技术属于短距离无线传输技术,所述手机1500通过WiFi模块1590可以连接的接入点(Access Point,AP),从而实现数据网络的访问。所述WiFi模块1590可用于通信过程中,数据的接收和发送。The WiFi technology belongs to the short-distance wireless transmission technology, and the
所述手机1500可以通过所述通信接口1580与其他终端实现物理连接。可选的,所述通信接口1580与所述其他终端的通信接口通过电缆连接,实现所述手机1500和其他终端之间的数据传输。The
由于在本申请实施例中,所述手机1500能够实现通信业务,向其他联系人发送信息,因此所述手机1500需要具有数据传输功能,即所述手机1500内部需要包含通信模块。虽然图15示出了所述RF电路1510、所述WiFi模块1590、和所述通信接口1580等通信模块,但是可以理解的是,所述手机1500中存在上述部件中的至少一个或者其他用于实现通信的通信模块(如蓝牙模块),以进行数据传输。In this embodiment of the present application, the
例如,所述手机1500可以包含所述RF电路1510,还可以包含所述WiFi模块1590;当所述手机1500为计算机时,所述手机1500可以包含所述通信接口1580,还可以包含所述WiFi模块1590。For example, the
所述存储器1540可用于存储软件程序以及模块。所述处理器1530通过运行存储在所述存储器1540的软件程序以及模块,从而执行所述手机1500的各种功能应用以及数据处理,并且当处理器1530执行存储器1540中的程序代码后,可以实现本发明实施例图3、图11中的部分或全部过程。The
可选的,所述存储器1540可以主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、各种应用程序(比如通信应用)以及进行WLAN连接的各个模块等;存储数据区可存储根据所述终端的使用所创建的数据等。Optionally, the
此外,所述存储器1540可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。In addition, the
所述输入单元1550可用于接收用户输入的数字或字符信息,以及产生与所述手机1500的用户设置以及功能控制有关的键信号输入。The
可选的,输入单元1550可包括触控面板1551以及其他输入终端1552。Optionally, the
其中,所述触控面板1551,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触控面板1551上或在所述触控面板1551附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,所述触控面板1551可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给所述处理器1530,并能接收所述处理器1530发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触控面板1551。Wherein, the
可选的,所述其他输入终端1552可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Optionally, the
所述显示单元1560可用于显示由用户输入的信息或提供给用户的信息以及所述手机1500的各种菜单。所述显示单元1560即为所述手机1500的显示系统,用于呈现界面,实现人机交互。The display unit 1560 may be used to display information input by the user or information provided to the user and various menus of the
所述显示单元1560可以包括显示面板1561。可选的,所述显示面板1561可以采用液晶显示屏(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-EmittingDiode,OLED)等形式来配置。The display unit 1560 may include a
进一步的,所述触控面板1551可覆盖所述显示面板1561,当所述触控面板1551检测到在其上或附近的触摸操作后,传送给所述处理器1530以确定触摸事件的类型,随后所述处理器1530根据触摸事件的类型在所述显示面板1561上提供相应的视觉输出。Further, the
虽然在图15中,所述触控面板1551与所述显示面板1561是作为两个独立的部件来实现所述手机1500的输入和输入功能,但是在某些实施例中,可以将所述触控面板1551与所述显示面板1561集成而实现所述手机1500的输入和输出功能。Although in FIG. 15 , the
所述处理器1530是所述手机1500的控制中心,利用各种接口和线路连接各个部件,通过运行或执行存储在所述存储器1540内的软件程序和/或模块,以及调用存储在所述存储器1540内的数据,执行所述手机1500的各种功能和处理数据,从而实现基于所述终端的多种业务。The
可选的,所述处理器1530可包括一个或多个处理单元。可选的,所述处理器1530可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到所述处理器1530中。Optionally, the
所述摄像头1570,用于实现所述手机1500的拍摄功能,拍摄图片或视频。The
所述手机1500还包括用于给各个部件供电的电源1520(比如电池)。可选的,所述电源1520可以通过电源管理系统与所述处理器1530逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The
尽管未示出,所述手机1500还可以包括至少一种传感器、音频电路等,在此不再赘述。Although not shown, the
本发明实施例还提供一种计算机可存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述任一方法的步骤。Embodiments of the present invention further provide a computer-storable medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of any of the foregoing methods.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911094562.6A CN110837406B (en) | 2019-11-11 | 2019-11-11 | Suspension ball view display method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911094562.6A CN110837406B (en) | 2019-11-11 | 2019-11-11 | Suspension ball view display method and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110837406A true CN110837406A (en) | 2020-02-25 |
| CN110837406B CN110837406B (en) | 2024-02-20 |
Family
ID=69574807
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911094562.6A Active CN110837406B (en) | 2019-11-11 | 2019-11-11 | Suspension ball view display method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110837406B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111443956A (en) * | 2020-03-23 | 2020-07-24 | Oppo广东移动通信有限公司 | Setting control display method, device, storage medium and electronic device |
| CN113010073A (en) * | 2021-04-27 | 2021-06-22 | 北京字节跳动网络技术有限公司 | Screen recording interaction method and device, electronic equipment and computer readable storage medium |
| CN113521740A (en) * | 2021-07-28 | 2021-10-22 | 北京达佳互联信息技术有限公司 | Control method and control device of cloud game |
| CN115314725A (en) * | 2022-07-15 | 2022-11-08 | 一点灵犀信息技术(广州)有限公司 | Interaction method based on anchor application and terminal equipment |
| CN115857779A (en) * | 2022-12-27 | 2023-03-28 | 北京新纽科技有限公司 | Assembly system for drag-and-drop managing page button and message |
| CN116048358A (en) * | 2022-07-13 | 2023-05-02 | 荣耀终端有限公司 | Control method and related device for suspended ball |
| US12481842B2 (en) | 2021-09-02 | 2025-11-25 | Honor Device Co., Ltd. | Translation method and electronic device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103472981A (en) * | 2013-09-30 | 2013-12-25 | 深圳市中兴移动通信有限公司 | Moving method and moving device of mobile device UI (User Interface) operation region |
| CN106980445A (en) * | 2017-03-27 | 2017-07-25 | 北京小米移动软件有限公司 | Manipulate the awaking method and device, electronic equipment of menu |
| CN106980441A (en) * | 2017-03-29 | 2017-07-25 | 杭州弗凡科技有限公司 | The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal |
| CN107562336A (en) * | 2017-08-01 | 2018-01-09 | 努比亚技术有限公司 | A kind of method, equipment and computer-readable recording medium for controlling suspension ball |
| CN107861679A (en) * | 2017-09-18 | 2018-03-30 | 深圳市金立通信设备有限公司 | A kind of operation processing method, terminal and computer-readable recording medium |
-
2019
- 2019-11-11 CN CN201911094562.6A patent/CN110837406B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103472981A (en) * | 2013-09-30 | 2013-12-25 | 深圳市中兴移动通信有限公司 | Moving method and moving device of mobile device UI (User Interface) operation region |
| CN106980445A (en) * | 2017-03-27 | 2017-07-25 | 北京小米移动软件有限公司 | Manipulate the awaking method and device, electronic equipment of menu |
| CN106980441A (en) * | 2017-03-29 | 2017-07-25 | 杭州弗凡科技有限公司 | The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal |
| CN107562336A (en) * | 2017-08-01 | 2018-01-09 | 努比亚技术有限公司 | A kind of method, equipment and computer-readable recording medium for controlling suspension ball |
| CN107861679A (en) * | 2017-09-18 | 2018-03-30 | 深圳市金立通信设备有限公司 | A kind of operation processing method, terminal and computer-readable recording medium |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111443956A (en) * | 2020-03-23 | 2020-07-24 | Oppo广东移动通信有限公司 | Setting control display method, device, storage medium and electronic device |
| CN111443956B (en) * | 2020-03-23 | 2023-02-03 | Oppo广东移动通信有限公司 | Setting control display method and device, storage medium and electronic equipment |
| US12019859B2 (en) | 2020-03-23 | 2024-06-25 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Setting control display method and apparatus, storage medium, and electronic apparatus |
| CN113010073A (en) * | 2021-04-27 | 2021-06-22 | 北京字节跳动网络技术有限公司 | Screen recording interaction method and device, electronic equipment and computer readable storage medium |
| CN113521740A (en) * | 2021-07-28 | 2021-10-22 | 北京达佳互联信息技术有限公司 | Control method and control device of cloud game |
| CN113521740B (en) * | 2021-07-28 | 2024-06-11 | 北京达佳互联信息技术有限公司 | Cloud game control method and control device |
| US12481842B2 (en) | 2021-09-02 | 2025-11-25 | Honor Device Co., Ltd. | Translation method and electronic device |
| CN116048358A (en) * | 2022-07-13 | 2023-05-02 | 荣耀终端有限公司 | Control method and related device for suspended ball |
| CN116048358B (en) * | 2022-07-13 | 2023-11-14 | 荣耀终端有限公司 | Method and related device for controlling suspension ball |
| CN115314725A (en) * | 2022-07-15 | 2022-11-08 | 一点灵犀信息技术(广州)有限公司 | Interaction method based on anchor application and terminal equipment |
| CN115857779A (en) * | 2022-12-27 | 2023-03-28 | 北京新纽科技有限公司 | Assembly system for drag-and-drop managing page button and message |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110837406B (en) | 2024-02-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110837406A (en) | A method for displaying a floating ball view and a terminal | |
| US11169659B2 (en) | Method and device for folder management by controlling arrangements of icons | |
| CN104169856B (en) | Side menu display method, apparatus and terminal | |
| CN110515579A (en) | Screen projection method, device, terminal and storage medium | |
| US10725646B2 (en) | Method and apparatus for switching screen interface and terminal | |
| US20150089418A1 (en) | Method for managing icon on user interface, and touch-control device | |
| CN107870723B (en) | A floating button display method and terminal device | |
| WO2015039445A1 (en) | Notification message display method and apparatus, and electronic device | |
| JP2019500688A (en) | Rapid screen division method, apparatus, and electronic device, display UI, and storage medium | |
| CN109309752B (en) | Mobile terminal and method and device for operating screen with one hand | |
| CN107168609A (en) | Status bar display method, device and terminal | |
| CN110706705A (en) | A voice control method, terminal and computer storage medium | |
| CN106385485A (en) | Call recording method, device and mobile terminal | |
| CN108170329B (en) | Display control method and terminal equipment | |
| CN106598382A (en) | Icon sorting method, device and mobile terminal | |
| CN104793879B (en) | Object selection method and terminal device on terminal device | |
| CN104238931B (en) | Information input method and device and electronic equipment | |
| CN107797723B (en) | Display style switching method and terminal | |
| CN106855776A (en) | The batch processing method and device of application program in mobile terminal and its file | |
| CN104951178A (en) | Processing method, device and system for desktop data | |
| CN107544740B (en) | Application processing method and device, storage medium and electronic equipment | |
| CN106484260A (en) | A kind of applied program processing method of mobile terminal, device and mobile terminal | |
| CN106878546A (en) | Graphic display method and terminal | |
| WO2022161218A1 (en) | Icon moving method and apparatus, and electronic device | |
| CN111880920B (en) | Control method for application shortcut key, terminal equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |