CN104793851A - Method for controlling floating action button of terminal screen - Google Patents

Method for controlling floating action button of terminal screen Download PDF

Info

Publication number
CN104793851A
CN104793851A CN201510205526.8A CN201510205526A CN104793851A CN 104793851 A CN104793851 A CN 104793851A CN 201510205526 A CN201510205526 A CN 201510205526A CN 104793851 A CN104793851 A CN 104793851A
Authority
CN
China
Prior art keywords
terminal screen
hover button
interaction mode
screen
described terminal
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
Application number
CN201510205526.8A
Other languages
Chinese (zh)
Other versions
CN104793851B (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.)
BEIJING LOCOJOY TECHNOLOGY Co Ltd
Original Assignee
BEIJING LOCOJOY 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 BEIJING LOCOJOY TECHNOLOGY Co Ltd filed Critical BEIJING LOCOJOY TECHNOLOGY Co Ltd
Priority to CN201510205526.8A priority Critical patent/CN104793851B/en
Publication of CN104793851A publication Critical patent/CN104793851A/en
Application granted granted Critical
Publication of CN104793851B publication Critical patent/CN104793851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for controlling a floating action button of a terminal screen. The method includes the following steps that whether the terminal screen is in the interaction state is judged; if the terminal screen is in the interaction state, the floating action button is placed in the screen display range; if the terminal screen is not in the interaction state, the floating action button is placed outside the screen display range. Alternatively, the method includes the following steps that whether the terminal screen is in the interaction state is judged; if the terminal screen is in the interaction state, the floating action button is generated on the terminal screen; if the terminal screen is not in the interaction state, the floating action button is deleted from the terminal screen.

Description

A kind of hover button control method of terminal screen
Technical field
The application relates to areas of information technology, specifically, relates to a kind of hover button control method of terminal screen.
Background technology
In present stage, the amusement function of intelligent terminal especially game function has been the indispensable ingredient of intelligent terminal.And along with improving of intelligent terminal operation system and constantly riseing of hardware configuration, its game of carrying is no longer the game of easy small planar already; Intelligent terminal delivers the performance that large-scale 3D plays, in fact close to even having exceeded some PCs or handheld device.
But, the key factor restricting big game development on intelligent terminal is exactly that the man-machine interaction limited space of intelligent terminal, operability is not strong.The common feature of big game is exactly playing method complexity, by a large amount of interactions and operation, brings enriching experiences to user.The handheld device close with intelligent terminal volume, the external a lot of physical button of meeting, can meet the operational requirements of user.But for the intelligent terminal of present stage, carry out routine with user and mainly rely on touch-screen alternately, number of keys is quite few, compares handheld device, and its operating space just declines greatly.
Current intelligent terminal is when a lot of big game of operation, and because physical button quantity is inadequate, the hover button of the generating virtual on the touchscreen of having to, operates for user.But hover button shows all the time in game process, the space on touch-screen can be occupied, the serious effect affecting picture display.In addition except running game, also there is hover button too much, affect the situation of display effect in other programs had higher requirements for operability.
The defect of visible prior art is, showing all the time on screen of hover button, has a strong impact on the display effect of picture.
Summary of the invention
In view of this, this application provides a kind of hover button control method of terminal screen, by optimizing the display mode of hover button, with the picture effect avoiding hover button to affect screen as much as possible.
In order to solve the problems of the technologies described above, the application has following technical scheme:
A hover button control method for terminal screen, described method comprises:
Judge whether terminal screen is in interaction mode;
If described terminal screen is in interaction mode, then within described hover button being placed in screen display scope;
Otherwise described hover button is placed in beyond screen display scope.
Describedly judge whether terminal screen is in interaction mode and is specially:
Judge that described terminal screen does not receive the duration of touch signal continuously, whether exceed default time threshold;
If when not exceeding described time threshold, then think that described terminal screen is in interaction mode; Otherwise think that described terminal screen is not in interaction mode.
Described described hover button is placed in screen display scope within be specially:
In the plane at described terminal screen place, get one with the point of described terminal screen not relative movement as initial point, setting up plane coordinate system;
By the coordinate range that described terminal screen covers in described plane coordinate system, as screen display scope;
If described terminal screen is in interaction mode, then the coordinate of described hover button is arranged within described screen display scope.
Described otherwise described hover button is placed in beyond screen display scope is specially:
If described terminal screen is not in interaction mode, then the coordinate of described hover button is arranged on outside described screen display scope.
A hover button control method for terminal screen, described method comprises:
Judge whether terminal screen is in interaction mode;
If described terminal screen is in interaction mode, then on described terminal screen, generate hover button;
Otherwise the hover button deleted on described terminal screen.
Describedly judge whether terminal screen is in interaction mode and is specially:
Judge that described terminal screen does not receive the duration of touch signal continuously, whether exceed default time threshold;
If when not exceeding described time threshold, then think that described terminal screen is in interaction mode; Otherwise think that described terminal screen is not in interaction mode.
Hover button on the described terminal screen of described deletion is specially:
When described terminal screen is not in interaction mode, and when described terminal screen having generated hover button, then delete described hover button.
Hover button on the described terminal screen of described deletion also comprises:
When described terminal screen is not in interaction mode, and when described terminal screen does not generate hover button, then undo.
Compared with prior art, method described in the application, reach following effect: if terminal screen does not receive touch signal within the scope of certain hour, namely think that described terminal screen is not in interaction mode, and then hide or delete the hover button be not on the terminal screen of interaction mode; Thus avoid in prior art, hover button shows all the time and affects the defect of Showing Effectiveness On Screen.
Certainly, the arbitrary product implementing the application must not necessarily need to reach above-described all technique effects simultaneously.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, and form a application's part, the schematic description and description of the application, for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is method flow diagram described in the embodiment of the present application;
Fig. 2 is plane coordinate system schematic diagram described in the embodiment of the present application;
Fig. 3 is method flow diagram described in another embodiment of the application.
Embodiment
As employed some vocabulary to censure specific components in the middle of instructions and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of instructions and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and indirectly electric property coupling means at this.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent described first device and directly can be electrically coupled to described second device, or be indirectly electrically coupled to described second device by other devices or the means that couple.Instructions subsequent descriptions is implement the better embodiment of the application, and right described description is for the purpose of the rule that the application is described, and is not used to the scope limiting the application.The protection domain of the application is when being as the criterion depending on the claims person of defining.
Shown in Figure 1, be the specific embodiment of method described in the application.In the present embodiment, by the coordinate by controlling hover button, controlling described hover button and hiding or display.Said method comprising the steps of:
Step 101, judge whether terminal screen is in interaction mode.
In general, if user is undertaken alternately by the hover button of described terminal screen and terminal, or once undertaken alternately by described hover button and terminal before shorter time, then think that terminal screen is in interaction mode, user is possible operation hover button at any time.Otherwise if user does not operate hover button within a certain period of time, then think that terminal screen is not in interaction mode, the possibility that user operates hover button is at once smaller.
So in the present embodiment, judge in the following manner describedly to judge whether terminal screen is in interaction mode: judge that described hover button does not receive the duration of touch signal continuously, whether exceed default time threshold; If when not exceeding described time threshold, then think that described terminal screen is in interaction mode; Otherwise think that described terminal screen is not in interaction mode.
Such as, can suppose that described time threshold is 10 seconds.That is, if user once operated hover button within 10 seconds, then terminal screen was in interaction mode; If user did not operate hover button more than 10 seconds, then terminal screen is not in interaction mode.
If the described terminal screen of step 102 is in interaction mode, then within described hover button being placed in screen display scope.
If the described terminal screen of step 103 is not in interaction mode, then described hover button is placed in beyond screen display scope.
Whether be in the judgement of interaction mode based on terminal screen, control to the display of hover button in the present embodiment.In fact, from the angle of program, described in the present embodiment, hover button exists always, but within can selecting to be placed on screen ranges or be placed in beyond screen ranges.If described hover button is placed in beyond screen ranges, just equal to conceal hover button.
Specifically, can in the plane at described terminal screen place, get one with the point of described terminal screen not relative movement as initial point, set up plane coordinate system.Thus, described terminal screen covers a fixing scope by this coordinate system, then by the coordinate range that described terminal screen covers in described plane coordinate system, as screen display scope.
With reference to coordinate system shown in Fig. 2, screen display scope and x ∈ (0,900) in the present embodiment and y ∈ (0,1600) describe rectangle.That is, if the displaing coordinate of any image is within the scope of this, just can be presented at the relevant position on screen, otherwise screen can not demonstrate.
Whether be in the judgement of interaction mode according to terminal screen, if described terminal screen is in interaction mode, then the coordinate of described hover button be arranged within described screen display scope; If described terminal screen is not in interaction mode, then the coordinate of described hover button is arranged on outside described screen display scope.
That is, in interaction mode, by the setting coordinate of hover button within indication range, hover button is shown in screen, can be used for user to operate.When terminal screen leaves interaction mode, just the coordinate of hover button is modified to outside indication range; Namely change the position of hover button, hover button is moved to outside screen display scope, and reaches hiding effect.If screen comes back to interaction mode, then again revise the coordinate of hover button, make it come back within indication range.
By with upper type, achieve in the present embodiment and do not hide hover button when terminal screen is in interaction mode.The beneficial effect that the present embodiment exists is: if terminal screen does not receive touch signal within the scope of certain hour, namely think that described terminal screen is not in interaction mode, and then hides the hover button be not on the terminal screen of interaction mode; Thus avoid in prior art, hover button shows all the time and affects the defect of Showing Effectiveness On Screen.
Another specific embodiment for method described in the application shown in Figure 3.In the present embodiment, said method comprising the steps of:
Step 301, judge whether terminal screen is in interaction mode.
In general, if user is undertaken alternately by the hover button of described terminal screen and terminal, or once undertaken alternately by described hover button and terminal before shorter time, then think that terminal screen is in interaction mode, user is possible operation hover button at any time.Otherwise if user does not operate hover button within a certain period of time, then think that terminal screen is not in interaction mode, the possibility that user operates hover button is at once smaller.
So in the present embodiment, judge in the following manner describedly to judge whether terminal screen is in interaction mode: judge that described hover button does not receive the duration of touch signal continuously, whether exceed default time threshold; If when not exceeding described time threshold, then think that described terminal screen is in interaction mode; Otherwise think that described terminal screen is not in interaction mode.
Such as, can suppose that described time threshold is 10 seconds.That is, if user once operated hover button within 10 seconds, then terminal screen was in interaction mode; If user did not operate hover button more than 10 seconds, then terminal screen is not in interaction mode.
If the described terminal screen of step 302 is in interaction mode, then on described terminal screen, generate hover button.
Step 303 otherwise the hover button deleted on described terminal screen.
Be different from previous embodiment, hover button exists all the time, by changing the scheme of coordinate control hover button show or hide; In the present embodiment, hover button is no longer made to exist all the time.But whether be in interaction mode based on screen, corresponding generation or deletion hover button.
In the present embodiment, when terminal screen enters interaction mode, then generate hover button and operate for user, until terminal screen departs from interaction mode, then delete hover button, avoid the display effect affecting screen; If terminal screen reenters interaction mode, then again generate hover button.
The beneficial effect that the present embodiment exists is: if terminal screen does not receive touch signal within the scope of certain hour, namely think that described terminal screen is not in interaction mode, and then delete the hover button be not on the terminal screen of interaction mode, and regenerate hover button after terminal screen enters interaction mode; Thus avoid in prior art, hover button shows all the time and affects the defect of Showing Effectiveness On Screen.
Those skilled in the art should understand, the embodiment of the application can be provided as method, device or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
Above-mentioned explanation illustrate and describes some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the application, then all should in the protection domain of the application's claims.

Claims (8)

1. a hover button control method for terminal screen, is characterized in that, described method comprises:
Judge whether terminal screen is in interaction mode;
If described terminal screen is in interaction mode, then within described hover button being placed in screen display scope;
Otherwise described hover button is placed in beyond screen display scope.
2. method according to claim 1, is characterized in that, describedly judges whether terminal screen is in interaction mode and is specially:
Judge that described hover button does not receive the duration of touch signal continuously, whether exceed default time threshold;
If when not exceeding described time threshold, then think that described terminal screen is in interaction mode; Otherwise think that described terminal screen is not in interaction mode.
3. method according to claim 1 ~ 2 any one, is characterized in that, described described hover button is placed in screen display scope within be specially:
In the plane at described terminal screen place, get one with the point of described terminal screen not relative movement as initial point, setting up plane coordinate system;
By the coordinate range that described terminal screen covers in described plane coordinate system, as screen display scope;
If described terminal screen is in interaction mode, then the coordinate of described hover button is arranged within described screen display scope.
4. method according to claim 3, is characterized in that, described otherwise be placed in beyond screen display scope by described hover button and be specially:
If described terminal screen is not in interaction mode, then the coordinate of described hover button is arranged on outside described screen display scope.
5. a hover button control method for terminal screen, is characterized in that, described method comprises:
Judge whether terminal screen is in interaction mode;
If described terminal screen is in interaction mode, then on described terminal screen, generate hover button;
Otherwise the hover button deleted on described terminal screen.
6. method according to claim 5, is characterized in that, describedly judges whether terminal screen is in interaction mode and is specially:
Judge that described hover button does not receive the duration of touch signal continuously, whether exceed default time threshold;
If when not exceeding described time threshold, then think that described terminal screen is in interaction mode; Otherwise think that described terminal screen is not in interaction mode.
7. method according to claim 5 or 6 any one, it is characterized in that, the hover button on the described terminal screen of described deletion is specially:
When described terminal screen is not in interaction mode, and when described terminal screen having generated hover button, then delete described hover button.
8. method according to claim 7, it is characterized in that, the hover button on the described terminal screen of described deletion also comprises:
When described terminal screen is not in interaction mode, and when described terminal screen does not generate hover button, then undo.
CN201510205526.8A 2015-04-28 2015-04-28 A kind of suspension button control method of terminal screen Active CN104793851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510205526.8A CN104793851B (en) 2015-04-28 2015-04-28 A kind of suspension button control method of terminal screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510205526.8A CN104793851B (en) 2015-04-28 2015-04-28 A kind of suspension button control method of terminal screen

Publications (2)

Publication Number Publication Date
CN104793851A true CN104793851A (en) 2015-07-22
CN104793851B CN104793851B (en) 2018-06-26

Family

ID=53558687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510205526.8A Active CN104793851B (en) 2015-04-28 2015-04-28 A kind of suspension button control method of terminal screen

Country Status (1)

Country Link
CN (1) CN104793851B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943551A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 A kind of screen display method and mobile terminal
CN108415636A (en) * 2018-01-16 2018-08-17 努比亚技术有限公司 A kind of generation method, mobile terminal and the storage medium of suspension button
CN108536387A (en) * 2018-04-03 2018-09-14 广州视源电子科技股份有限公司 Interaction method and interaction device for suspension control
CN109491731A (en) * 2018-09-07 2019-03-19 咪咕文化科技有限公司 Control method and device for suspension button and storage medium
WO2019223511A1 (en) * 2018-05-21 2019-11-28 Oppo广东移动通信有限公司 Application program preloading method and apparatus, storage medium, and terminal
WO2020000886A1 (en) * 2018-06-29 2020-01-02 深圳春沐源控股有限公司 Terminal program control method based on floating button, and terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508613A (en) * 2011-11-21 2012-06-20 北京播思软件技术有限公司 Method and device for multiplexing screen space of mobile terminal browser
US20140218318A1 (en) * 2013-02-07 2014-08-07 Samsung Electronics Co., Ltd. Method and apparatus for controlling touch-key operation
CN104049847A (en) * 2014-06-30 2014-09-17 宇龙计算机通信科技(深圳)有限公司 Information prompt method and system of mobile terminal
CN104123065A (en) * 2014-07-23 2014-10-29 北京乐动卓越科技有限公司 Display method and system of suspended buttons on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508613A (en) * 2011-11-21 2012-06-20 北京播思软件技术有限公司 Method and device for multiplexing screen space of mobile terminal browser
US20140218318A1 (en) * 2013-02-07 2014-08-07 Samsung Electronics Co., Ltd. Method and apparatus for controlling touch-key operation
CN104049847A (en) * 2014-06-30 2014-09-17 宇龙计算机通信科技(深圳)有限公司 Information prompt method and system of mobile terminal
CN104123065A (en) * 2014-07-23 2014-10-29 北京乐动卓越科技有限公司 Display method and system of suspended buttons on mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943551A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 A kind of screen display method and mobile terminal
CN107943551B (en) * 2017-11-14 2020-02-21 维沃移动通信有限公司 Screen display method and mobile terminal
CN108415636A (en) * 2018-01-16 2018-08-17 努比亚技术有限公司 A kind of generation method, mobile terminal and the storage medium of suspension button
CN108536387A (en) * 2018-04-03 2018-09-14 广州视源电子科技股份有限公司 Interaction method and interaction device for suspension control
WO2019223511A1 (en) * 2018-05-21 2019-11-28 Oppo广东移动通信有限公司 Application program preloading method and apparatus, storage medium, and terminal
WO2020000886A1 (en) * 2018-06-29 2020-01-02 深圳春沐源控股有限公司 Terminal program control method based on floating button, and terminal device
CN109491731A (en) * 2018-09-07 2019-03-19 咪咕文化科技有限公司 Control method and device for suspension button and storage medium
CN109491731B (en) * 2018-09-07 2022-03-22 咪咕文化科技有限公司 Control method and device for suspension button and storage medium

Also Published As

Publication number Publication date
CN104793851B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN104793851A (en) Method for controlling floating action button of terminal screen
CN104102376B (en) Touch input device touch feedback
KR101996978B1 (en) Information processing method, terminal and computer storage medium
US9779228B2 (en) Touchscreen unlocking method and apparatus
CN102760032B (en) A kind of method of information processing and electronic equipment
CN101770399A (en) Electronic equipment, method and device for switching operating system desktop
US9656163B2 (en) Haptic enhancements for emulated video game not originally designed with haptic capabilities
CN105912241A (en) Method and device for man-machine interaction, and terminal
JP2016518659A (en) Dynamic management of edge input by users on touch devices
CN105477854A (en) Handle control method, device and system applied in intelligent terminal
CN107357586A (en) Control method, device and the equipment of application program
CN104216639B (en) A kind of terminal operation method
CN108579077A (en) Information processing method, device, storage medium and electronic equipment
CN109947332A (en) Page element highlighting method, device, equipment and storage medium
CN104898880A (en) Control method and electronic equipment
CN108635850A (en) Information processing method, device and storage medium
CN106227438A (en) Terminal control method and device
CN108427505A (en) Sense of touch control method, electronic device and computer readable storage medium
JP5855131B2 (en) Information processing apparatus, information processing method, program, and information storage medium
KR20140127931A (en) System and Method for implementing character action control skill in touch screen device
CN115328297A (en) Game control method and device and electronic equipment
CN106445085B (en) Interaction control method and device based on virtual reality
CN104571795B (en) A kind of information processing method and electronic equipment
WO2013088825A1 (en) Information processing device, information processing method, program, and information recording medium
CN104423871A (en) Information processing method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant