CN110837406B - Suspension ball view display method and terminal - Google Patents

Suspension ball view display method and terminal Download PDF

Info

Publication number
CN110837406B
CN110837406B CN201911094562.6A CN201911094562A CN110837406B CN 110837406 B CN110837406 B CN 110837406B CN 201911094562 A CN201911094562 A CN 201911094562A CN 110837406 B CN110837406 B CN 110837406B
Authority
CN
China
Prior art keywords
suspension ball
function control
view
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.)
Active
Application number
CN201911094562.6A
Other languages
Chinese (zh)
Other versions
CN110837406A (en
Inventor
张恩迪
李小玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201911094562.6A priority Critical patent/CN110837406B/en
Publication of CN110837406A publication Critical patent/CN110837406A/en
Application granted granted Critical
Publication of CN110837406B publication Critical patent/CN110837406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-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

The invention relates to the technical field of terminal display, in particular to a method for displaying a suspension ball view and a terminal, which are used for solving the problem that the position of a suspension ball cannot be moved when the suspension ball view is in an unfolding state at present. When the suspension ball view is in an unfolding state comprising a suspension ball and a function control, the terminal responds to the triggering operation of a user on the function control to execute the function corresponding to the function control; in the process that a user moves the suspension ball, hiding and displaying the function control in the suspension ball view; and when the movement is determined to be finished, restoring to display the function control in the suspension ball view. The embodiment of the invention can respond to the movement operation triggered by the user in the unfolding state of the suspension ball view, so that the operation of manually switching the suspension ball view state by the user before and after moving the suspension ball view is omitted, the suspension ball is convenient for the user to flexibly operate, and the user experience is improved.

Description

Suspension ball view display method and terminal
Technical Field
The invention relates to the technical field of terminal display, in particular to a suspension ball view display method and a terminal.
Background
The suspension ball can replace a function of a terminal physical button, is displayed on an operation interface of the terminal in a suspension icon mode after being opened, and a user can click the suspension ball in the suspension ball view to be switched into an unfolding state comprising the suspension ball and the function control, and performs corresponding operation and control on the terminal through a function application corresponding to the function control.
At present, in the prior art, when the suspension ball is in a unfolding state, a user cannot perform position moving operation on the suspension ball; only after a user manually clicks the suspension ball and removes the functional control displayed in the suspension ball unfolding state, the suspension ball can be moved to change the position of the suspension ball on the terminal display interface; and after dragging the suspension ball to move to a new position, the user also needs to click the suspension ball again to display the function control. Therefore, the position of the suspension ball cannot be moved in the suspension ball deployed state.
Disclosure of Invention
The invention relates to the technical field of network application, in particular to a method for displaying a suspension ball view and a terminal, which are used for solving the problem that the position of a suspension ball cannot be moved when the suspension ball is in a unfolding state at present.
Based on the above-mentioned 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 a position of a suspension ball, including:
when the suspension ball view is in an unfolding state comprising a suspension ball and a function control, the terminal responds to the triggering operation of a user on the function control to execute the function corresponding to the function control;
in the process that a user moves the suspension ball, hiding and displaying a function control in the suspension ball view;
and when the movement is determined to be ended, restoring to display the function control in the suspension ball view.
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 code which, when executed by the processing unit, causes the processing unit to perform the following process:
when the suspension ball view is in an unfolding state comprising a suspension ball and a function control, responding to the triggering operation of a user on the function control, and executing a function corresponding to the function control;
in the process that a user moves the suspension ball, hiding and displaying a function control in the suspension ball view;
and when the movement is determined to be ended, restoring to display the function control in the suspension ball view.
In a third aspect, an embodiment of the present invention provides a device for moving a position of a suspension ball, which may be applied to a terminal, including:
the executing module is used for responding to the triggering operation of a user on the function control when the suspension ball view is in the unfolding state comprising the suspension ball and the function control, and executing the function corresponding to the function control;
the hiding module is used for hiding and displaying the function control in the suspension ball view in the process that the user moves the suspension ball;
and the restoration module is used for restoring and displaying the function control in the suspension ball view when the movement is determined to be ended.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as described in the first aspect above.
According to the method for displaying the suspension ball view, when the suspension ball view is in the unfolding state comprising the suspension ball and the function control, the terminal responds to the triggering operation of the user on the function control and executes the function corresponding to the function control; hiding the function control in the suspension ball view in the process of moving the suspension ball by the user, and restoring to display the function control in the suspension ball view after the moving operation of the user is determined to be finished. The embodiment of the invention can respond to the movement operation triggered by the user in the unfolding state of the suspension ball view, automatically remove the functional control in the display interface, and move the position of the suspension ball view according to the movement operation of the user, thereby omitting the operation of manually switching the suspension ball state by the user before and after moving the suspension ball, facilitating the flexible operation of the suspension ball by the user and improving the user experience; and the terminal automatically restores the state of the function control after the suspension ball view is moved, can provide the opening information of the function application corresponding to the function control for the user, and is convenient for the user to carry out subsequent operation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration showing a floating ball view according to an embodiment of the present invention;
FIG. 2 is a schematic view showing an expanded state of a suspension ball according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for displaying a floating ball according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a suspension ball setting interface according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a functionality control according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an operation of a mobile suspension ball according to an embodiment of the present invention;
FIG. 7 is a schematic illustration of an embodiment of the present invention in which a floating ball is moving;
FIG. 8 is a schematic diagram illustrating a first functional control according to an embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating a second functional control according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a first functional control state according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a second functional control state according to an embodiment of the present invention;
FIG. 12 is a flow chart of a complete floating ball display according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 14 is a schematic view of a device for displaying a floating ball according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a mobile phone terminal according to an embodiment of the present invention.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions of the present invention, the technical solutions of 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 the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Some terms appearing hereinafter are explained:
1. in the embodiment of the invention, the term "and/or" describes the association relation of the association objects, which means that three relations can exist, for example, a and/or B can be expressed as follows: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
2. The term "terminal" in the embodiment of the present invention is a device that can install various applications and can display objects provided in the installed applications, where the terminal device may be mobile or fixed. For example, a mobile phone, a tablet computer, various wearable devices, a vehicle-mounted device, a personal digital assistant (personal digital assistant, PDA), a point of sale (POS), or other terminal devices capable of realizing the above functions, etc.
3. The term 'suspension ball' in the embodiment of the invention is a function which can replace a physical key of a terminal, and is displayed on an operation interface of the terminal in a suspension icon mode after being opened, a user can click the suspension ball to switch a suspension ball view into an unfolding state comprising the suspension ball and a function control, and the user can correspondingly operate and control the terminal through the function corresponding to the function control.
4. In the embodiment of the invention, the term control is also called a component or a member, is commonly called a third party development control, is a reusable functional module in software, such as a menu, a table, a report or a user interface with a complex function, and can be widely applied to various software.
5. The term "boolean variable" in the present embodiment is a variable having two logical states, which comprises two values: true and false.
In the embodiment of the invention, the terminal supports the function of the suspension ball, and as shown in fig. 1, the view of the suspension ball can be displayed on a display interface of the terminal; the opening instruction triggered by the user on the suspension ball view of the display interface can be specifically that the suspension ball view is triggered by clicking the suspension ball view by the user, the suspension ball view is switched to an unfolding state comprising a suspension ball and a function control, and the suspension ball view in the unfolding state is displayed on the display interface; the hover ball view shown in fig. 2 includes a hover ball and a plurality of functionality controls, for example, the functionality controls are a shortcut button functionality control, a pupil light functionality control, a flashlight functionality control, a continuous scan functionality control, and a single scan functionality control, respectively. The user can perform operation of the corresponding function by clicking the function control, for example, clicking the flashlight function control, and then turning on the flashlight on the terminal.
At present, in the prior art, in a suspension ball unfolding state, a user cannot directly move the position of a suspension ball view, and only after a user manually clicks the suspension ball view and removes a functional control displayed in the suspension ball unfolding state, the suspension ball view can be moved to change the position of the suspension ball view on a terminal display interface, and after dragging the suspension ball view to a new position, the user also needs to click the suspension ball view again to switch the suspension ball view into the unfolding state.
Based on the above-mentioned problems, the present invention provides a method for moving the position of a suspension ball, as shown in fig. 3, comprising the following steps:
step S301, when a suspension ball view is in an unfolding state comprising a suspension ball and a function control, the terminal responds to the triggering operation of a user on the function control to execute a function corresponding to the function control;
step S302, hiding and displaying the function control in the suspension ball view in the process of moving the suspension ball by a user;
and step S303, when the movement is determined to be finished, restoring and displaying the function control in the suspension ball view.
According to the method for displaying the suspension ball view, when the suspension ball view is in the unfolding state comprising the suspension ball and the function control, the terminal responds to the triggering operation of the user on the function control and executes the function corresponding to the function control; hiding the function control in the suspension ball view in the process of moving the suspension ball by the user, and restoring to display the function control in the suspension ball view after the moving operation of the user is determined to be finished. According to the embodiment of the invention, the function control in the display interface can be automatically hidden and displayed in response to the movement operation triggered by the user in the unfolding state of the suspension ball view, and the position of the suspension ball view is moved according to the movement operation of the user, so that the operation of manually switching the suspension ball state by the user before and after moving the suspension ball is omitted, the suspension ball is convenient for the user to flexibly operate, and the user experience is improved.
In a possible implementation manner, in a system setting interface, a hover ball option is selected, a hover ball setting page can be accessed, in the hover ball setting page, after a user opens the hover ball option, a hover ball view in an unfolded state including a hover ball and a function control is displayed on a display interface by a terminal; the terminal responds to the operation of clicking the suspension ball in the suspension ball view by a user, and can hide and display the function control in the suspension ball view, and only display the suspension ball; when a suspension ball view only comprising the suspension ball is displayed on the display interface, responding to the operation of clicking the suspension ball by a user, and displaying the suspension ball view in the unfolded state on the display interface;
the functional controls can comprise at least one of shortcut buttons, pupil lamps, flashlights, continuous scanning, single scanning and other functional application corresponding functional controls provided by the terminal system.
In implementation, the user may dynamically adjust the functionality control included in the hover sphere view, and may specifically adjust the functionality control in the following manner.
In one possible implementation manner, responding to an opening instruction of an opening function control triggered by a user on a setting interface of a terminal for setting a hover ball view, and displaying the function control corresponding to the opening operation in the hover ball view; or, responding to a removal instruction of closing the function control triggered by a user on a setting interface of the terminal for setting the hover ball view, and removing the function control corresponding to the removal operation in the hover ball view.
Specifically, the user can customize the functional control displayed in the expanded state of the suspension ball; specifically, the terminal provides a list of selectable function controls which can be displayed on the display interface, and each selectable function control corresponds to one switch button; when a switch button corresponding to the selectable function control is opened, displaying the function control on a display interface when the suspension ball is in a unfolding state; and if the user switches the switch button corresponding to the selectable function control from on to off, removing the function control displayed on the display interface when the suspension ball is in the unfolding state.
In specific implementation, as shown in fig. 4, a user may open a hover ball option in a system setting, may select a function control that may be displayed on a display interface when a hover ball view is in an expanded state, and may set to display different function controls on the display interface for terminals applied to different industries; for example, the functionality controls provided by the medical terminal that may be displayed on the display interface include: shortcut keys, pupil lamp, flashlight, continuous scan, single scan, etc. Each functional control is provided with a switch correspondingly in the system setting, if the switch corresponding to the functional control is in an on state, the functional control can be displayed in the suspension ball view unfolding state, and if the switch corresponding to the functional control is in an off state, the functional control is not displayed in the suspension ball view unfolding state; as shown in fig. 4, if the switch corresponding to "single scan" is turned on, the functional control displayed on the display interface includes the functional control corresponding to "single scan"; if the switch corresponding to the continuous scanning is closed, the functional control corresponding to the continuous scanning is not displayed in the functional controls displayed on the display interface;
and the terminal responds to an opening instruction triggered by the user on the suspension ball view of the display interface, and displays a function control selected to be opened by the user in system setting on the display interface. For example, when the user selects to turn on the functionality controls corresponding to "pupil light", "flashlight" and "single scan", the terminal responds to the turn-on command triggered by the user on the hover ball of the hover ball view, and displays the hover ball view in the expanded state as shown in fig. 5.
When a suspension ball view in an unfolded state is displayed on a display interface, if a movement operation triggered by a user on the suspension ball view is detected, the terminal conceals and displays a function control in the suspension ball view, and moves the position of the suspension ball in the display interface according to the movement operation triggered by the user.
In one possible implementation, the terminal detects a movement operation triggered by the user on the hover ball view according to the following manner:
the terminal detects whether a touch operation triggered by a user exists on the suspension ball view on the display interface in real time, and if the stroke distance of the touch operation is larger than a preset threshold value, the terminal determines that a movement operation triggered by the user is detected.
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 the person skilled in the art.
After determining that the user triggers the moving operation on the hover ball view, the terminal conceals and displays the function control in the hover ball view.
In a possible implementation manner, the terminal conceals and displays the function controls in the suspension ball View in the display interface layout by a setVisiability method of the View class, modifies the visibility of the function controls by the setVisiability method, so that the function controls in the suspension ball View are concealed and displayed, and the space occupied by the function controls in the layout of the display interface is released;
for example, as shown in fig. 6, a user performs a movement operation triggered on a hover sphere view in a display interface of a terminal, the movement operation being used to move a position of the hover sphere; as shown in fig. 7, after detecting the movement operation, the terminal conceals and displays the function control in the hover ball view, and the hover ball view updates the position following the drag of the user.
When the movement is determined to be finished, the terminal resumes displaying the function control in the suspension ball view on the display interface;
in one possible implementation manner, the terminal adds the function control in the layout of the display interface through a setVisiability method of the View class, and the terminal modifies the visibility of the function control through the setVisiability method to display the function control in the hover sphere View on the display interface of the terminal.
In one possible implementation manner, after determining that the moving operation is finished, the terminal resumes displaying the function control in the suspension ball view on the display interface according to the position parameter of the suspension ball view on the display interface after moving;
specifically, the terminal detects the display interface in real time, and if the voltage on the display interface is detected not to change after the mobile operation triggered by the user is determined, the user is determined to finish the mobile operation;
and the terminal responds to the end of the moving operation of the user, and resumes displaying the function control in the suspension ball view on the display interface according to the position parameter of the suspension ball view on the display interface after the movement.
The method for restoring and displaying the function control in the suspension ball view on the display interface by the terminal is described in detail below:
the terminal determines a first distance between the center point of the suspension ball and the top end of the display interface and a second distance between the center point of the suspension ball and the bottom end of the display interface according to the position parameters of the suspension ball on the display interface in the suspension ball view;
if the first distance is not greater than the second distance, restoring the display function control on one side of the suspension ball, which is close to the bottom end of the display interface;
and if the first distance is greater than the second distance, restoring the display function control on one side of the suspension ball, which is close to the top end of the display interface.
When the suspension ball view is displayed on the display interface, because the space occupied by the function control in the suspension ball view unfolding state on the display interface is large, in order to completely display the function control and ensure the attractive appearance of the display interface, before the suspension ball view is unfolded, the display position of the function control in the suspension ball view unfolding state is determined according to the current position information of the suspension ball in the suspension ball view. If the distance between the floating ball and the top end of the display interface is larger than the distance between the floating ball and the bottom end of the display interface, the display function control is unfolded above the floating ball, and if the distance between the floating ball and the top end of the display interface is not larger than the distance between the floating ball and the bottom end of the display interface, the display function control is unfolded below the floating ball.
In a specific implementation, the position parameter of the hover sphere on the display interface in the hover sphere view may be represented by coordinates of a pixel point between a center point of the hover sphere and a top end of the display interface, for example, assuming that a resolution of a display screen of the terminal is 1080×530.
Defining the top end of the terminal display interface as the upper part and the bottom end as the lower part; obtaining position parameters of the suspension ball on the display interface, as shown in fig. 8, assuming that a rectangular coordinate system is established at the lower left corner of the display interface, if the vertical coordinate of the position of the center point of the suspension ball is 730, determining that the first distance from the center point of the suspension ball to the top end of the display interface is 1080-730=350 pixels, the second distance from the bottom end of the display interface is 730-0=730 pixels, and restoring the display function control in the lower area of the suspension ball if the first distance is smaller than the second distance. As shown in fig. 9, if the ordinate of the position of the center point of the suspension ball is 280, it is determined that the first distance from the center point of the suspension ball to the top of the display interface is 1080-280=800 pixels, the second distance from the bottom of the display interface is 280-0=280 pixels, and if the first distance is greater than the second distance, the display function control is restored in the area above the suspension ball.
Because the function is applied in different states, the display forms of the corresponding function controls on the terminal display interface are different; for example, the function application displays different forms of function controls in both an on and off state.
The functional control displayed on the terminal display interface when the functional application flashlight is turned on is shown in fig. 10, and the functional control displayed on the terminal display interface when the functional application flashlight is turned off is shown in fig. 11.
In one possible implementation manner, before hiding and displaying the function control in the hover ball view, the terminal stores state information of a function application corresponding to the function control; and when the terminal resumes displaying the function control in the suspension ball view, resuming displaying the function control on the display interface according to the state information of the function application corresponding to the function control.
In a specific implementation, the state of the function application corresponding to the function control may be stored by using a boolean variable, true indicates that the state of the function application corresponding to the function control is on, false indicates that the state of the function application corresponding to the function control is off, for example, when the "flashlight" function application is on, the value of the boolean variable corresponding to the function control "flashlight" is "true".
In one possible implementation manner, before hiding and displaying the function controls in the suspension ball view, the terminal stores a Boolean variable for each function control and records the state of the function application corresponding to each function control; after the moving operation is finished, the terminal reads the value of the Boolean variable corresponding to each functional control, and the functional control is restored to be displayed on the display interface.
As shown in fig. 12, a flowchart of a complete floating ball display method according to an embodiment of the present invention specifically includes the following steps:
step S1201, a terminal responds to an opening instruction triggered by a user on a suspension ball view of a display interface, and the suspension ball view in an unfolding state comprising a suspension ball and a function control is displayed on the display interface;
step S1202, if the movement operation triggered by the user on the suspension ball view is detected, storing state information of the function application corresponding to the function control;
step S1203, the terminal conceals and displays the function control in the suspension ball view;
step S1204, when the movement is determined to be finished, the terminal acquires the position parameters of the suspension ball in the suspension ball view after the movement on the display interface, and determines the display position of the functional control on the display interface;
and step 1205, the terminal resumes displaying the function control on the determined display position according to the state information of the function application corresponding to the function control.
As shown in fig. 13, a terminal according to an embodiment of the present invention includes at least one processing unit 1300 and at least one storage unit 1301;
wherein the memory unit 1301 stores program code which, when executed by the processing unit 1300, causes the processing unit 1300 to perform the following procedure:
when the suspension ball view is in an unfolding state comprising a suspension ball and a function control, responding to the triggering operation of a user on the function control, and executing a function corresponding to the function control; in the process that a user moves the suspension ball, hiding and displaying a function control in the suspension ball view; and when the movement is determined to be ended, restoring to display the function control in the suspension ball view.
Optionally, the processing unit 1300 is further configured to:
responding to an opening instruction of an opening function control triggered on a setting interface of the terminal for setting a suspension ball view by a user, and displaying the function control corresponding to the opening operation in the suspension ball view.
Optionally, the processing unit 1300 is further configured to:
and responding to a removal instruction of closing the function control triggered by a user on a setting interface of the terminal for setting the hover ball view, and removing the function control corresponding to the removal operation in the hover ball view.
Optionally, the processing unit 1300 is specifically configured to:
and restoring to display the function control on the display interface according to the position parameters of the suspension ball in the suspension ball view on the display interface after the suspension ball is moved.
Optionally, the processing unit 1300 is specifically configured to:
determining a first distance between the center point of the suspension ball and the top end of the display interface and a second distance between the center point of the suspension ball and the bottom end of the display interface according to the position parameters of the suspension ball in the suspension ball view on the display interface;
if the first distance is not greater than the second distance, restoring to display the functional control on one side of the suspension ball, which is close to the bottom end of the display interface;
and if the first distance is greater than the second distance, restoring to display the functional control on one side of the suspension ball, which is close to the top end of the display interface.
Optionally, the processing unit 1300 is further configured to:
before hiding and displaying the function control in the suspension ball view, storing state information of a function application corresponding to the function control;
and when the function control in the suspension ball view is restored to be displayed, restoring to display the function control on the display interface according to the state information of the function application corresponding to the function control.
Optionally, the processing unit 1300 is specifically configured to:
when the function controls in the suspension ball View are displayed in a hiding mode, the function controls in the suspension ball View are displayed in a hiding mode through a setVisiability method of a View class;
and when the function controls in the hover ball View are restored to be displayed, restoring to display the function controls in the hover ball View through a setVisiability method of a View class.
As shown in fig. 14, an embodiment of the present invention provides a display device for a hover ball view, which may be applied to a terminal, including:
an execution module 1401, configured to execute, when the hover ball view is in an expanded state including a hover ball and a function control, a function corresponding to the function control in response to a triggering operation of a user on the function control;
a hiding module 1402, configured to hide and display a function control in the hover ball view during a process of a user moving the hover ball;
and a restoration module 1403, configured to restore and display the function control in the hover ball view when it is determined that the movement is ended.
Optionally, the execution module 1401 is further configured to:
responding to an opening instruction of an opening function control triggered on a setting interface of the terminal for setting a suspension ball view by a user, and displaying the function control corresponding to the opening operation in the suspension ball view.
Optionally, the execution module 1401 is further configured to:
and responding to a removal instruction of closing the function control triggered by a user on a setting interface of the terminal for setting the hover ball view, and removing the function control corresponding to the removal operation in the hover ball view.
Optionally, the recovery module 1403 is specifically configured to:
and restoring to display the function control on the display interface according to the position parameters of the suspension ball in the suspension ball view on the display interface after the suspension ball is moved.
Optionally, the recovery module 1403 is specifically configured to:
determining a first distance between the center point of the suspension ball and the top end of the display interface and a second distance between the center point of the suspension ball and the bottom end of the display interface according to the position parameters of the suspension ball in the suspension ball view on the display interface;
if the first distance is not greater than the second distance, restoring to display the functional control on one side of the suspension ball, which is close to the bottom end of the display interface;
and if the first distance is greater than the second distance, restoring to display the functional control on one side of the suspension ball, which is close to the top end of the display interface.
Optionally, the hiding module 1402 is further configured to:
before hiding and displaying the function control in the suspension ball view, storing state information of a function application corresponding to the function control;
the recovery module 1403 is further configured to:
and when the function control in the suspension ball view is restored to be displayed, restoring to display the function control on the display interface according to the state information of the function application corresponding to the function control.
Optionally, the hiding module 1402 is specifically configured to:
when the function controls in the suspension ball View are displayed in a hiding mode, the function controls in the suspension ball View are displayed in a hiding mode through a setVisiability method of a View class;
the recovery module 1403 is specifically configured to:
and when the function controls in the hover ball View are restored to be displayed, restoring to display the function controls in the hover ball View through a setVisiability method of a View class.
It should be noted that, when the mobile terminal in the embodiment of the present invention is a mobile phone, the mobile phone 1500 includes: radio Frequency (RF) circuitry 1510, a power source 1520, a processor 1530, memory 1540, an input unit 1550, a display unit 1560, a camera 1570, a communication interface 1580, and a wireless fidelity (Wireless Fidelity, wiFi) module 1590. It will be appreciated by those skilled in the art that the structure of the terminal shown in fig. 15 is not limiting of the terminal, and that the terminal provided by the embodiments of the present application may include more or less components than those illustrated, or may combine some components, or may be arranged in different components.
The following describes the components of the mobile phone 1500 in detail with reference to fig. 15:
the RF circuitry 1510 may be used for receiving and transmitting data during a communication or session. In particular, the RF circuitry 1510, upon receiving downlink data from a base station, sends the received downlink data to the processor 1530 for processing; in addition, uplink data to be transmitted is transmitted to the base station. Typically, the RF circuitry 1510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like.
In addition, the RF circuitry 1510 may also communicate with networks and other terminals via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (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 message service (Short Messaging Service, SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the mobile phone 1500 may be connected to an Access Point (AP) through a WiFi module 1590, so as to achieve Access to a data network. The WiFi module 1590 may be used for receiving and sending data in a communication process.
The mobile phone 1500 may be physically connected to other terminals through the communication interface 1580. Optionally, the communication interface 1580 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between the mobile phone 1500 and the other terminals.
Since in the embodiment of the present application, the mobile phone 1500 can implement a communication service and send information to other contacts, the mobile phone 1500 needs to have a data transmission function, that is, the mobile phone 1500 needs to include a communication module inside. Although fig. 15 illustrates the RF circuitry 1510, the WiFi module 1590, and the communication interface 1580, it is understood that at least one of the foregoing components or other communication modules (e.g., bluetooth module) for enabling communication are present in the handset 1500 for data transmission.
For example, the handset 1500 may include the RF circuitry 1510 and may also include the WiFi module 1590; when the mobile phone 1500 is a computer, the mobile phone 1500 may include the communication interface 1580 and may further include the WiFi module 1590.
The memory 1540 may be used for storing software programs and modules. The processor 1530 executes various functional applications and data processing of the mobile phone 1500 by running software programs and modules stored in the memory 1540, and when the processor 1530 executes the program codes in the memory 1540, part or all of the processes of fig. 3 and 11 according to the embodiment of the present invention can be implemented.
Alternatively, the memory 1540 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, various application programs (such as a communication application), various modules for performing WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, etc.
In addition, the memory 1540 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 1550 is operable to receive numeric or character information input by a user and to generate key signal inputs related to user settings and function control of the mobile phone 1500.
Alternatively, the input unit 1550 may include a touch panel 1551 and other input terminals 1552.
The touch panel 1551, also referred to as a touch screen, may collect touch operations thereon or thereabout (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 1551 or thereabout the touch panel 1551) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1551 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1530, and can receive commands from the processor 1530 and execute them. In addition, the touch panel 1551 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
Alternatively, the other input terminals 1552 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 1560 may be used to display information input by a user or information provided to the user and various menus of the mobile phone 1500. The display unit 1560 is a display system of the mobile phone 1500, and is used for presenting an interface to implement man-machine interaction.
The display unit 1560 may include a display panel 1561. Alternatively, the display panel 1561 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 1551 may overlay the display panel 1561, and upon detection of a touch operation thereon or thereabout by the touch panel 1551, is transferred to the processor 1530 to determine a type of touch event, and the processor 1530 then provides a corresponding visual output on the display panel 1561 based on the type of touch event.
Although in fig. 15 the touch panel 1551 and the display panel 1561 are shown as two separate components to implement the input and output functions of the cell phone 1500, in some embodiments the touch panel 1551 may be integrated with the display panel 1561 to implement the input and output functions of the cell phone 1500.
The processor 1530 is a control center of the mobile phone 1500, connects various components using various interfaces and lines, and performs various functions of the mobile phone 1500 and processes data by running or executing software programs and/or modules stored in the memory 1540 and calling data stored in the memory 1540, thereby realizing various services based on the terminal.
Optionally, the processor 1530 may include one or more processing units. Alternatively, the processor 1530 may integrate an application processor primarily handling operating systems, user interfaces, applications, etc., with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1530.
The camera 1570 is configured to implement a shooting function of the mobile phone 1500, and shoot pictures or videos.
The handset 1500 also includes a power source 1520 (e.g., a battery) for powering the various components. Optionally, the power source 1520 may be logically connected to the processor 1530 through a power management system, so as to perform functions of managing charging, discharging, and power consumption through the power management system.
Although not shown, the mobile phone 1500 may further include at least one sensor, audio circuit, etc., which will not be described herein.
The embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or 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, and the like) 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 application. It will be understood that each flow and/or block of 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 a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (8)

1. A mobile terminal comprising at least one processing unit and at least one memory unit;
wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform the following process:
when the suspension ball view is in an unfolding state comprising a suspension ball and a function control, responding to the triggering operation of a user on the function control, and executing a function corresponding to the function control;
in the process that a user moves the suspension ball, after detecting the movement operation, hiding and displaying the function control in the suspension ball view;
restoring to display the function control in the suspension ball view when the movement is determined to be finished;
the processing unit is specifically configured to:
restoring to display the function control on the display interface according to the position parameters of the suspension ball in the suspension ball view on the display interface after the suspension ball is moved;
the processing unit is specifically configured to:
determining a first distance between the center point of the suspension ball and the top end of the display interface and a second distance between the center point of the suspension ball and the bottom end of the display interface according to the position parameters of the suspension ball in the suspension ball view on the display interface;
if the first distance is not greater than the second distance, restoring to display the functional control on one side of the suspension ball, which is close to the bottom end of the display interface;
and if the first distance is greater than the second distance, restoring to display the functional control on one side of the suspension ball, which is close to the top end of the display interface.
2. The terminal of claim 1, wherein the processing unit is further to:
responding to an opening instruction of an opening function control triggered on a setting interface of the terminal for setting a suspension ball view by a user, and displaying the function control corresponding to the opening operation in the suspension ball view.
3. The terminal of claim 1, wherein the processing unit is further to:
and responding to a removal instruction of closing the function control triggered by a user on a setting interface of the terminal for setting the hover ball view, and removing the function control corresponding to the removal operation in the hover ball view.
4. The terminal of claim 1, wherein the processing unit is further to: before hiding and displaying the function control in the suspension ball view, storing state information of a function application corresponding to the function control;
when the function control in the suspension ball view is restored to be displayed, the processing unit is specifically configured to:
and restoring and displaying the functional control on the display interface according to the state information of the functional application corresponding to the functional control.
5. The terminal of claim 1, wherein,
when the function control in the suspension ball view is displayed in a hidden mode, the processing unit is specifically configured to:
hiding and displaying the function control in the suspension ball View through a setVisiability method of the View class;
when the function control in the hover ball view is restored to be displayed, the processing unit is specifically configured to:
and restoring and displaying the function control in the suspension ball View through a setVisiability method of the View class.
6. A method of displaying a hover ball view, the method comprising:
at a terminal having at least one processing unit and at least one memory unit:
when the suspension ball view is in an unfolding state comprising a suspension ball and a function control, the terminal responds to the triggering operation of a user on the function control to execute the function corresponding to the function control;
in the process that a user moves the suspension ball, after detecting the movement operation, hiding and displaying the function control in the suspension ball view;
and when the movement is determined to be ended, restoring to display the function control in the suspension ball view.
7. The method of claim 6, wherein before the terminal conceals the functionality control in the hover ball view, further comprising:
the terminal stores state information of the function application corresponding to the function control;
and the terminal resumes displaying the function control in the suspension ball view, comprising:
and the terminal resumes displaying the function control on the display interface according to the state information of the function application corresponding to the function control.
8. A computer storage medium having stored therein computer program instructions which, when run on a computer, cause the computer to perform the method of claim 6 or claim 7.
CN201911094562.6A 2019-11-11 2019-11-11 Suspension ball view display method and terminal Active CN110837406B (en)

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 CN110837406A (en) 2020-02-25
CN110837406B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111443956B (en) * 2020-03-23 2023-02-03 Oppo广东移动通信有限公司 Setting control display method and device, storage medium and electronic equipment
CN113010073A (en) * 2021-04-27 2021-06-22 北京字节跳动网络技术有限公司 Screen recording interaction method and device, electronic equipment and computer readable storage medium
CN116048358B (en) * 2022-07-13 2023-11-14 荣耀终端有限公司 Method and related device for controlling suspension ball
CN115314725B (en) * 2022-07-15 2023-08-04 一点灵犀信息技术(广州)有限公司 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

Citations (5)

* Cited by examiner, † Cited by third party
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
CN106980441A (en) * 2017-03-29 2017-07-25 杭州弗凡科技有限公司 The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal
CN106980445A (en) * 2017-03-27 2017-07-25 北京小米移动软件有限公司 Manipulate the awaking method and device, electronic equipment of menu
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN110837406A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
CN110837406B (en) Suspension ball view display method and terminal
CN105518605B (en) A kind of touch operation method and device of terminal
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
CN110069179B (en) Icon control method and terminal equipment
CN101765236B (en) Mobile terminal interface switching method and mobile terminal
US11507261B2 (en) Suspend button display method and terminal device
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
US20150089418A1 (en) Method for managing icon on user interface, and touch-control device
CN106293375B (en) A kind of method for changing scenes and equipment
WO2015039445A1 (en) Notification message display method and apparatus, and electronic device
CN109407930A (en) A kind of applied program processing method and terminal device
CN107992263A (en) A kind of information sharing method and mobile terminal
CN109885373B (en) Rendering method and device of user interface
CN106296623B (en) A kind of image processing method and device
CN104866110A (en) Gesture control method, mobile terminal and system
CN107809534B (en) Control method, terminal and computer storage medium
CN111796734B (en) Application program management method, management device, electronic device and storage medium
CN108958626A (en) Gesture identification method, device, readable storage medium storing program for executing and mobile terminal
CN109508136A (en) A kind of display methods and mobile terminal of application program
CN108920036A (en) view switching method and mobile terminal
CN110618806A (en) Application program control method and device, electronic equipment and storage medium
CN109983428B (en) Application operation method and device
CN107797723B (en) Display style switching method and terminal
CN106484260B (en) A kind of applied program processing method of mobile terminal, device and mobile terminal
CN109040580B (en) Mobile terminal and photographing control method and device thereof

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant