CN109491731A - Control method and device for suspension button and storage medium - Google Patents

Control method and device for suspension button and storage medium Download PDF

Info

Publication number
CN109491731A
CN109491731A CN201811044355.5A CN201811044355A CN109491731A CN 109491731 A CN109491731 A CN 109491731A CN 201811044355 A CN201811044355 A CN 201811044355A CN 109491731 A CN109491731 A CN 109491731A
Authority
CN
China
Prior art keywords
suspension button
event
window
view
controller
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
CN201811044355.5A
Other languages
Chinese (zh)
Other versions
CN109491731B (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.)
Migu Cultural Technology Co Ltd
China Mobile Communications Group Co Ltd
Original Assignee
Migu Cultural Technology Co Ltd
China Mobile Communications Group 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 Migu Cultural Technology Co Ltd, China Mobile Communications Group Co Ltd filed Critical Migu Cultural Technology Co Ltd
Priority to CN201811044355.5A priority Critical patent/CN109491731B/en
Publication of CN109491731A publication Critical patent/CN109491731A/en
Application granted granted Critical
Publication of CN109491731B publication Critical patent/CN109491731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • 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
    • 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/0485Scrolling or panning
    • 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

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)

Abstract

The invention discloses a control method of a suspension button, which comprises the following steps: initializing a custom window, wherein the custom window is displayed independently on a view window of a client; creating a hover button based on the custom window; loading corresponding function controls on the suspension button; monitoring an event aiming at the function control; in response to the monitored event, performing an operation bound to the corresponding event. The invention also discloses a control device of the suspension button and a storage medium.

Description

A kind of control method, device and the storage medium of suspension button
Technical field
The present invention relates to field of computer technology more particularly to a kind of control method of suspension button, device and storage to be situated between Matter.
Background technique
With the rapid development of intelligent terminal technology, more and more users' selection realizes intelligence by way of suspension button A large amount of convenient, reliable operations in energy terminal.
At present, it usually needs the initial phase at the interface application program (APP, Application) completes suspension button Creation, implement process are as follows: the interface APP initialize after the completion of, directly add button control in original root window, Since the button control finally adds, which is shown on other views, realizes suspension with this Effect.
However, during running APP, if the view level of root window is changed, such as in root window It is added to sub- view again, then newly added sub- view may will cover suspension button, so that suspension button is blocked or disappears Lose it is invisible, to seriously affect the usage experience of user.
Summary of the invention
In view of this, an embodiment of the present invention is intended to provide control method, device and the storage mediums of a kind of suspension button, until Less to solve the problems, such as to be difficult to ensure that suspension button is blocked or disappears in no instance in the related technology.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is achieved in that
In a first aspect, the embodiment of the present invention provides a kind of control method of suspension button, which comprises
Initialize customized window, wherein the customized window on the view window of client independently of showing;
Suspension button is created based on the customized window;
Corresponding functionality controls are loaded on the suspension button;
Monitor the event for being directed to the functionality controls;
In response to the event listened to, the operation with corresponding event binding is executed.
Second aspect, the embodiment of the present invention also provide a kind of control device of suspension button, and described device includes: initialization Module, loading module, monitors module and execution module at creation module;Wherein,
The initialization module, for initializing customized window, wherein the customized window is independently of client It is shown on view window;
The creation module, for creating suspension button based on the customized window;
The loading module, for loading corresponding functionality controls on the suspension button;
The monitoring module, for monitoring the event for being directed to the functionality controls;
The execution module executes the operation with corresponding event binding for the event in response to being listened to.
The third aspect, the embodiment of the present invention also provide a kind of control device of suspension button, including memory, processor and The executable program that can be run on a memory and by the processor is stored, the processor runs the executable program The step of control method of Shi Zhihang suspension button provided in an embodiment of the present invention.
Fourth aspect, the embodiment of the present invention also provide a kind of storage medium, are stored thereon with executable program, described to hold The step of control method of suspension button provided in an embodiment of the present invention is realized when line program is executed by processor.
The control method of suspension button, device and storage medium provided by the embodiment of the present invention are made by oneself by initialization Adopted window, wherein the customized window on the view window of client independently of showing;It is created based on the customized window Build suspension button;Corresponding functionality controls are loaded on the suspension button;Monitor the event for being directed to the functionality controls;Response In the event listened to, the operation with corresponding event binding is executed.In this way, in the view level for not modifying original root window In the case where, independently of the original customized new view window of root window, realizes on newly created window and pressed for suspending The various action events of button guarantee that suspension button is blocked or disappears in no instance with flexible control suspension button, It greatly enhances the user experience.
Detailed description of the invention
Fig. 1 is a kind of implementation process schematic diagram of the control method of suspension button provided in an embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram of the control method of another suspension button provided in an embodiment of the present invention;
Fig. 3 is a kind of illustrative view of functional configuration of the control device of suspension button provided in an embodiment of the present invention;
Fig. 4 is a kind of hardware structural diagram of the control device of suspension button provided in an embodiment of the present invention.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, with reference to the accompanying drawing to this hair The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the present invention.This field It will be appreciated by the skilled person that between each technical solution documented by the embodiment of the present invention, it in the absence of conflict, can be any Combination.
Fig. 1 is a kind of implementation process schematic diagram of the control method of suspension button provided in an embodiment of the present invention, described outstanding The control method of floating button can be applied in terminal device;As shown in Figure 1, the controlling party of the suspension button in the embodiment of the present invention The implementation process of method, may comprise steps of:
Step 101: initializing customized window, wherein the customized window independently of client view window it Upper display.
In embodiments of the present invention, the customized window of initialization has parameter attribute window position (Window Level), It after initializing customized window, can modify to the value of Window Level, specifically, by customized window The value of Window Level is adjusted to higher than initial default value.It should be noted that can be adaptive according to the actual demand of user The value of Window Level is adjusted, here without limitation.
Here, after initializing customized window, the hiding attribute that the customized window can be set is " NO ", i.e., will The customized window shows, and the customized window is on the view window of client independently of showing, so that customized The window view window original with client is independent of each other.
It should be noted that the customized window of initialization can be shown in the form of suspension view, initializing After customized window, the attribute hit Test:with Event in the customized window need to be rewritten, to intercept the customized window All events in mouthful in addition to suspension view region, enable the event in the region to be pass-through to lower layer APP Window In, so that user can be normally carried out the original interactive operation of APP in the region other than suspension view.
Step 102: suspension button is created based on the customized window.
In embodiments of the present invention, in this step 102 based on the customized window creation suspension button for, It can realize in the following ways: initialize self-defined view controller on the customized window, it will be described customized View controller is set as the Root View controller of the customized window;
Suspension button control is created, is added to the Root View controller pair for the suspension button control as sub- view On the view answered.
In an example of the invention, the control method of the suspension button further include: customized in the initialization When view controller, navigator views controller is initialized;The navigator views control is set by the self-defined view controller The root controller of device processed, and set the root controller of the navigator views controller to the Root View control of the customized window Device processed.
Here, for the suspension button of creation, the characteristic attribute of settable suspension button, wherein the characteristic attribute packet Include at least one of: background colour, fillet, size, transparency.Certainly, the embodiment of the present invention is not limited to above-mentioned several Characteristic attribute.
Here, suspension button control can provide starting interface to APP, called at any time by APP the starting interface Flex suspension button, for example, simultaneously flex suspension button can be started after APP starting.
It should be pointed out that being added on the corresponding view of Root View controller using suspension button control as sub- view When, the display position of suspension button can be set, usually suspension button is shown in the display screen of terminal device by default Heart position.It is of course also possible to the display position of setting suspension button is customized by the user according to the use demand of user, as long as Meet the suspension button not blocked by other interfaces.
Step 103: loading corresponding functionality controls on the suspension button.
In embodiments of the present invention, corresponding functionality controls are loaded on the suspension button, is concretely pressed in suspension Various gesture processing controls are added on button realizes the various operating functions of suspension button to be used to handle various action events.
Step 104: monitoring the event for being directed to the functionality controls.
Step 105: in response to the event listened to, executing the operation with corresponding event binding.
It, can for the operation of execution and corresponding event binding in this step 105 in an example of the invention To realize in the following ways: when the event listened to is to close suspension button event, the customized window is emptied, And
Discharge all sub- view controls in the suspension button control and the customized window.
Here, suspension button control can provide down interface to APP, call the closing to connect by way of code by APP Mouth closes the function of suspension button to realize.In addition, will pop up a prompting frame after user click suspension button control, this is mentioned Show frame for prompting the user to determine whether suspension push button function to be exited.For example, when the user clicks after suspension button control, The readjustment of UI Tap Gesture Recognizer gesture can be triggered, to realize the logic for popping up confirmation prompting frame.
In another example of the invention, for the operation of execution and corresponding event binding in this step 105, It can realize in the following ways: when the event listened to is mobile suspension button event, according to the mobile suspension The different conditions of button event execute operation corresponding with the state.
Here, when creating suspension button control, UI Pan Gesture can be added on suspension button control Recognizer gesture handles control, when the user clicks after suspension button control, can trigger UI Pan Gesture The readjustment of Recognizer gesture, to realize the movement such as dragging event of suspension button.
It should be noted that user can be in screen ranges after suspension button is shown on the display screen of terminal device Inside arbitrarily suspension button is pulled, specifically, function extension can be carried out according to suspension button position, such as highlighted The UI control etc. of suspension button position.
During the readjustment of dragging event, according to the different conditions of dragging event, behaviour corresponding with different conditions is executed Make.For example, the highlight effect for suspension button can be removed in the initial stage pulled to suspension button;Right During suspension button is pulled, the focal position of available suspension button is obtained according to the focal position of suspension button The control for taking focal point, addition is directed to the highlight effect of suspension button on the control of focal point;It is dragged to suspension button When the ending phase dragged, the highlight effect for suspension button can be removed.
In another example of the invention, for the operation of execution and corresponding event binding in this step 105, It can realize in the following ways: when the event listened to is clicks suspension button event, dish being popped up according to initialization Single-view executes at least one of following operation:
Close the suspension button;
Cancel the suspension button;
Switch the display interface of the suspension button.
Here, user click suspension button after, can popup menu view, can suspend in the menu view by The Function Extension of button closes suspension button, cancels suspension button, switches the aobvious of suspension button for example, the menu view can provide Show the functions such as interface.
Here, when creating suspension button control, UI Tap Gesture can be added on suspension button control Recognizer gesture handles control, when the user clicks after suspension button control, can trigger UI Tap Gesture The readjustment of Recognizer gesture, to initialize popup menu view, in popup menu view realize suspension button closing, The functions such as cancellation or display interface switching.
Using the technical solution of the embodiment of the present invention, in the case where not modifying the view level of original root window, solely The customized new view window of original root window is stood on, the various operations for being directed to suspension button are realized on newly created window Event with flexible control suspension button, and guarantees that suspension button is blocked or disappears in no instance.
The specific implementation process of the control method of suspension button of the embodiment of the present invention is done below and is further described in detail.
Fig. 2 is the implementation process schematic diagram of the control method of another suspension button provided in an embodiment of the present invention, described The control method of suspension button can be applied in terminal device;As shown in Fig. 2, the realization stream of the control method of the suspension button Journey may comprise steps of:
Step 201: initializing customized window.
In embodiments of the present invention, the customized window on the view window of client independently of showing.Wherein, just The customized window of beginningization has parameter attribute Window Level, can be to Window after initializing customized window The value of Level is modified, and specifically, the value of the Window Level of customized window is adjusted to higher than initial default value. It should be noted that the value of Window Level can adaptively be adjusted according to the actual demand of user, here without limitation.
Step 202: initializing self-defined view controller on customized window, set self-defined view controller to The Root View controller of customized window.
Step 203: suspension button control is added to Root View controller pair by creation suspension button control On the view answered.
Here, in the initialization self-defined view controller, navigator views controller can also be initialized;It will be described Self-defined view controller is set as the root controller of the navigator views controller, and by the root of the navigator views controller Controller is set as the Root View controller of the customized window.
Here, suspension button control can provide starting interface to APP, called at any time by APP the starting interface Flex suspension button, for example, simultaneously flex suspension button can be started after APP starting.
It should be pointed out that being added on the corresponding view of Root View controller using suspension button control as sub- view When, the display position of suspension button can be set, usually suspension button is shown in the display screen of terminal device by default Heart position.It is of course also possible to the display position of setting suspension button is customized by the user according to the use demand of user, as long as Meet the suspension button not blocked by other interfaces.
Step 204: corresponding functionality controls are loaded on suspension button.
Step 205: the type of the event for functionality controls is monitored in judgement, when the event listened to is to close suspension button When event, 206 are thened follow the steps;When the event listened to is mobile suspension button event, 207 are thened follow the steps;Work as monitoring The event arrived is when clicking suspension button event, to then follow the steps 208.
Step 206: customized window is emptied, and, discharge all sub- views in suspension button control and customized window Figure control terminates currently processed process.
Step 207: according to the different conditions of mobile suspension button event, executing operation corresponding with different conditions, terminate Currently processed process.
Here, mobile suspension button event can be dragging event.It should be noted that suspension button is shown in terminal device Display screen on after, user arbitrarily can pull suspension button in screen ranges, specifically, can be according to suspension Button position carries out function extension, such as the UI control etc. of highlighted suspension button position.
During the readjustment of dragging event, according to the different conditions of dragging event, behaviour corresponding with different conditions is executed Make.For example, the highlight effect for suspension button can be removed in the initial stage pulled to suspension button;Right During suspension button is pulled, the focal position of available suspension button is obtained according to the focal position of suspension button The control for taking focal point, addition is directed to the highlight effect of suspension button on the control of focal point;It is dragged to suspension button When the ending phase dragged, the highlight effect for suspension button can be removed.
Step 208: according to initialization popup menu view, executing at least one of following operation: closing the suspension Button;Cancel the suspension button;The display interface for switching the suspension button, terminates currently processed process.
Here, user click suspension button after, can popup menu view, can suspend in the menu view by The Function Extension of button closes suspension button, cancels suspension button, switches the aobvious of suspension button for example, the menu view can provide Show the functions such as interface.
Using the technical solution of the embodiment of the present invention, in the case where not modifying the view level of original root window, solely The customized new view window of original root window is stood on, self-defined view controller is added in the view window, and add Customized suspension button control loads functionality controls on suspension button control and such as pulls, clicks functionality controls, creates newly The various action events for being directed to suspension button are realized on the window built, to allow user random in entire terminal screen region Pull or click suspension button, with flexible control suspension button, and guarantee suspension button be blocked in no instance or It disappears.
In order to realize the control method of above-mentioned suspension button, the embodiment of the invention also provides a kind of controls of suspension button The control device of device, the suspension button can be applied in terminal device, and Fig. 3 is a kind of suspension provided in an embodiment of the present invention The illustrative view of functional configuration of the control device of button;As shown in figure 3, the control device of the suspension button includes: initialization mould Block 31, loading module 33, monitors module 34 and execution module 35 at creation module 32.Below to the function of above-mentioned each program module It is illustrated.
The initialization module 31, for initializing customized window, wherein the customized window is independently of client View window on show;
The creation module 32, for creating suspension button based on the customized window;
The loading module 33, for loading corresponding functionality controls on the suspension button;
The monitoring module 34, for monitoring the event for being directed to the functionality controls;
The execution module 35 executes the operation with corresponding event binding for the event in response to being listened to.
In embodiments of the present invention, for the creation module 32 based on the customized window creation suspension button come It says, can realize in the following ways:
Self-defined view controller is initialized on the customized window, sets the self-defined view controller to The Root View controller of the customized window;
Suspension button control is created, is added to the Root View controller pair for the suspension button control as sub- view On the view answered.
In embodiments of the present invention, the initialization module 31 is also used in the initialization self-defined view controller When, initialize navigator views controller;Set the self-defined view controller to the root control of the navigator views controller Device processed, and set the root controller of the navigator views controller to the Root View controller of the customized window.
In an example of the invention, for the execution module 35 executes the operation bound with corresponding event, It can realize: when the event listened to is closes suspension button event, empty described customized in the following ways Window, and, discharge all sub- view controls in the suspension button control and the customized window.
In another example of the invention, the execution module 35 is executed to come with the operation of corresponding event binding It says, can realize in the following ways: when the event listened to is mobile suspension button event, according to the movement The different conditions of suspension button event execute operation corresponding with the state.
In another example of the invention, the execution module 35 is executed to come with the operation of corresponding event binding It says, can realize in the following ways: when the event listened to is clicks suspension button event, according to initialization bullet Menu view out executes at least one of following operation:
Close the suspension button;Cancel the suspension button;Switch the display interface of the suspension button.
It should be understood that the control device of suspension button provided by the above embodiment is when controlling suspension button, only with The division progress of above-mentioned each program module can according to need for example, in practical application and distribute above-mentioned processing by not Same program module is completed, i.e., the internal structure of the control device for the button that suspends is divided into different program modules, to complete All or part of processing described above.In addition, the control device of suspension button provided by the above embodiment and suspension button Control method embodiment belong to same design, specific implementation process is detailed in embodiment of the method, is no longer described in detail here.
In practical applications, the initialization module 31, creation module 32, loading module 33, monitoring module 34 and execution Module 35 can be by central processing unit (CPU, Central Processing Unit), the microprocessor on terminal device (MPU, Micro Processor Unit), digital signal processor (DSP, Digital Signal Processor) or scene Programmable gate array (FPGA, Field Programmable Gate Array) etc. is realized.
In order to realize the control method of above-mentioned suspension button, the embodiment of the invention also provides a kind of controls of suspension button The hardware configuration of device.The control device of the suspension button of the embodiment of the present invention is realized in description with reference to the drawings, described outstanding The control device of floating button can terminal device (such as desktop computer, laptop, smart phone) in a variety of manners come Implement.The hardware configuration of the control device of the suspension button of the embodiment of the present invention is described further below, it will be understood that figure 4 illustrate only the exemplary structure of the control device of suspension button rather than entire infrastructure, and Fig. 4 can be implemented as needed and show Part-structure or entire infrastructure.
Referring to fig. 4, Fig. 4 is a kind of hardware configuration signal of control device of suspension button provided in an embodiment of the present invention Scheme, can be applied to the various terminal equipment of aforementioned operation application program, the control of suspension button shown in Fig. 4 in practical application Device 400 includes: at least one processor 401, memory 402, user interface 403 and at least one network interface 404.It is described Various components in the control device 400 of suspension button are coupled by bus system 405.It is appreciated that bus system 405 for realizing the connection communication between these components.Bus system 405 further includes that power supply is total in addition to including data/address bus Line, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as total linear system in Fig. 4 System 405.
Wherein, user interface 403 may include display, keyboard, mouse, trace ball, click wheel, key, button, sense of touch Plate or touch screen etc..
It is appreciated that memory 402 can be volatile memory or nonvolatile memory, may also comprise volatibility and Both nonvolatile memories.
Memory 402 in the embodiment of the present invention is for storing various types of data to support the control of suspension button to fill Set 400 operation.The example of these data includes: any computer for operating on the control device 400 of suspension button Program realizes the journey of the control method of the suspension button of the embodiment of the present invention such as executable program 4021 and operating system 4022 Sequence may be embodied in executable program 4021.
The control method for the suspension button that the embodiment of the present invention discloses can be applied in processor 401, or by handling Device 401 is realized.Processor 401 may be a kind of IC chip, the processing capacity with signal.During realization, on Each step for stating the control method of suspension button can be by the integrated logic circuit or software shape of the hardware in processor 401 The instruction of formula is completed.Above-mentioned processor 401 can be general processor, DSP or other programmable logic device, discrete Door or transistor logic, discrete hardware components etc..Processor 401 may be implemented or execute in the embodiment of the present invention to mention Control method, step and the logic diagram of each suspension button supplied.General processor can be microprocessor or any routine Processor etc..In conjunction with provided by the embodiment of the present invention the step of control method of suspension button, it can be embodied directly in hard Part decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software module It can be located in storage medium, which is located at memory 402, and processor 401 reads the information in memory 402, knot Close the step of its hardware completes the control method of suspension button provided in an embodiment of the present invention.
In embodiments of the present invention, the control device 400 of the suspension button includes memory 402, processor 401 and deposits The executable program 4021 that can be run on memory 402 and by the processor 401 is stored up, the processor 401 runs institute Realization when stating executable program 4021: customized window is initialized, wherein view of the customized window independently of client It is shown on window;Suspension button is created based on the customized window;Corresponding function control is loaded on the suspension button Part;Monitor the event for being directed to the functionality controls;In response to the event listened to, the operation with corresponding event binding is executed.
As an implementation, it realization when the processor 401 runs the executable program 4021: is made by oneself described Self-defined view controller is initialized on adopted window, sets the self-defined view controller to the root of the customized window View controller;Suspension button control is created, the suspension button control is added to the Root View as sub- view and is controlled On the corresponding view of device.
As an implementation, the realization when processor 401 runs the executable program 4021: described initial When changing self-defined view controller, navigator views controller is initialized;It sets described for the self-defined view controller to lead The root controller for view controller of navigating, and the customized window is set by the root controller of the navigator views controller Root View controller.
As an implementation, the realization when processor 401 runs the executable program 4021: when the monitoring When the event arrived is closing suspension button event, the customized window is emptied, and, discharge the suspension button control and institute State all sub- view controls in customized window.
As an implementation, the realization when processor 401 runs the executable program 4021: when the monitoring When the event arrived is mobile suspension button event, according to the different conditions of the mobile suspension button event, execute and the shape The corresponding operation of state.
As an implementation, the realization when processor 401 runs the executable program 4021: when the monitoring The event arrived is, according to initialization popup menu view, to execute at least one of following operation when clicking suspension button event: Close the suspension button;Cancel the suspension button;Switch the display interface of the suspension button.
In the exemplary embodiment, the embodiment of the invention also provides a kind of storage medium, the storage medium can be light The storage mediums such as disk, flash memory or disk are chosen as non-moment storage medium.In the embodiment of the present invention, deposited on the storage medium Executable program 4021 is contained, the executable program 4021 is realized when being executed by processor 401: initializing customized window, Wherein, the customized window on the view window of client independently of showing;It is suspended based on the customized window creation Button;Corresponding functionality controls are loaded on the suspension button;Monitor the event for being directed to the functionality controls;In response to being supervised The event heard executes the operation with corresponding event binding.
As an implementation, it is realized when the executable program 4021 is executed by processor 401: described customized Self-defined view controller is initialized on window, and the root that the self-defined view controller is set as the customized window is regarded Figure controller;Suspension button control is created, is added to the Root View controller for the suspension button control as sub- view On corresponding view.
As an implementation, it is realized when the executable program 4021 is executed by processor 401: in the initialization When self-defined view controller, navigator views controller is initialized;The navigation is set by the self-defined view controller The root controller of view controller, and set the root controller of the navigator views controller to the root of the customized window View controller.
As an implementation, it realizes when the executable program 4021 is executed by processor 401: being listened to when described Event be when closing suspension button event, empty the customized window, and, discharge the suspension button control and described All sub- view controls in customized window.
As an implementation, it realizes when the executable program 4021 is executed by processor 401: being listened to when described Event when being mobile suspension button event, according to the different conditions of the mobile suspension button event, execute and the state Corresponding operation.
As an implementation, it realizes when the executable program 4021 is executed by processor 401: being listened to when described Event be, according to initialization popup menu view, to execute at least one of following operation when clicking suspension button event: closing Close the suspension button;Cancel the suspension button;Switch the display interface of the suspension button.
In conclusion the control method of suspension button provided by the embodiment of the present invention, is not modifying original root window View level in the case where, independently of the original customized new view window of root window, realized on newly created window For the various action events of suspension button, with flexible control suspension button, guarantee suspension button in no instance by It blocks or disappears, greatly enhance the user experience.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or executable program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the executable program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and executable program product Figure and/or block diagram describe.It should be understood that can be by every one stream in executable program instructions implementation flow chart and/or block diagram The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these executable programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or reference programmable data processing device to produce A raw machine, so that the instruction executed by computer or with reference to the processor of programmable data processing device is generated for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These executable program instructions, which may also be stored in, is able to guide computer or with reference to programmable data processing device with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These executable program instructions can also be loaded into computer or reference programmable data processing device, so that counting Calculation machine or with reference to executing series of operation steps on programmable device to generate computer implemented processing, thus in computer or It provides with reference to the instruction executed on programmable device for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all Made any modifications, equivalent replacements, and improvements etc. within the spirit and principles in the present invention, should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of control method of suspension button, which is characterized in that the described method includes:
Initialize customized window, wherein the customized window on the view window of client independently of showing;
Suspension button is created based on the customized window;
Corresponding functionality controls are loaded on the suspension button;
Monitor the event for being directed to the functionality controls;
In response to the event listened to, the operation with corresponding event binding is executed.
2. the control method of suspension button according to claim 1, which is characterized in that described to be based on the customized window Create suspension button, comprising:
Self-defined view controller is initialized on the customized window, sets described for the self-defined view controller The Root View controller of customized window;
Suspension button control is created, it is corresponding to be added to the Root View controller using the suspension button control as sub- view On view.
3. the control method of suspension button according to claim 2, which is characterized in that the method also includes:
In the initialization self-defined view controller, navigator views controller is initialized;
Set the self-defined view controller to the root controller of the navigator views controller, and by the navigator views The root controller of controller is set as the Root View controller of the customized window.
4. the control method of suspension button according to claim 2, which is characterized in that the execution is bound with corresponding event Operation, comprising:
When the event listened to is to close suspension button event, the customized window is emptied, and,
Discharge all sub- view controls in the suspension button control and the customized window.
5. the control method of suspension button according to claim 1, which is characterized in that the execution is bound with corresponding event Operation, comprising:
When the event listened to is mobile suspension button event, according to the different shapes of the mobile suspension button event State executes operation corresponding with the state.
6. the control method of suspension button according to claim 1, which is characterized in that the execution is bound with corresponding event Operation, comprising:
When the event listened to is to click suspension button event, according to initialization popup menu view, following behaviour is executed At least one of make:
Close the suspension button;
Cancel the suspension button;
Switch the display interface of the suspension button.
7. a kind of control device of suspension button, which is characterized in that described device includes: initialization module, creation module, load Module monitors module and execution module;Wherein,
The initialization module, for initializing customized window, wherein view of the customized window independently of client It is shown on window;
The creation module, for creating suspension button based on the customized window;
The loading module, for loading corresponding functionality controls on the suspension button;
The monitoring module, for monitoring the event for being directed to the functionality controls;
The execution module executes the operation with corresponding event binding for the event in response to being listened to.
8. the control device of suspension button according to claim 7, which is characterized in that the creation module is specifically used for:
Self-defined view controller is initialized on the customized window, sets described for the self-defined view controller The Root View controller of customized window;
Suspension button control is created, it is corresponding to be added to the Root View controller using the suspension button control as sub- view On view.
9. a kind of control device of suspension button, including memory, processor and storage are on a memory and can be by described Manage the executable program of device operation, which is characterized in that the processor executes such as claim 1 when running the executable program To 6 described in any item suspension buttons control method the step of.
10. a kind of storage medium, is stored thereon with executable program, which is characterized in that the executable code processor is held The step of control method such as suspension button as claimed in any one of claims 1 to 6 is realized when row.
CN201811044355.5A 2018-09-07 2018-09-07 Control method and device for suspension button and storage medium Active CN109491731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811044355.5A CN109491731B (en) 2018-09-07 2018-09-07 Control method and device for suspension button and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811044355.5A CN109491731B (en) 2018-09-07 2018-09-07 Control method and device for suspension button and storage medium

Publications (2)

Publication Number Publication Date
CN109491731A true CN109491731A (en) 2019-03-19
CN109491731B CN109491731B (en) 2022-03-22

Family

ID=65689217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811044355.5A Active CN109491731B (en) 2018-09-07 2018-09-07 Control method and device for suspension button and storage medium

Country Status (1)

Country Link
CN (1) CN109491731B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110251939A (en) * 2019-05-22 2019-09-20 武汉掌游科技有限公司 A kind of vertical screen H5 game sideslip menu suspension ball graphical interfaces and operating method
CN112307375A (en) * 2020-11-09 2021-02-02 北京沃东天骏信息技术有限公司 Page display method and device, electronic equipment and computer readable medium
CN113535056A (en) * 2021-06-17 2021-10-22 深圳软牛科技有限公司 Box selection adjusting method based on InkCanvas and related equipment
CN114090125A (en) * 2021-11-23 2022-02-25 金蝶软件(中国)有限公司 Interface configuration method and related equipment
CN115695635A (en) * 2021-07-29 2023-02-03 上海博泰悦臻网络技术服务有限公司 Operation prompting method, storage medium and electronic equipment
WO2023245526A1 (en) * 2022-06-23 2023-12-28 广州视源电子科技股份有限公司 Desktop element operation method, electronic device and intelligent interaction tablet

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006025264A (en) * 2004-07-09 2006-01-26 Matsushita Electric Ind Co Ltd Communication device with television reception function and output voice switching method in the same
CN102902486A (en) * 2011-09-09 2013-01-30 马舜尧 Pinyin slide input method and system for main and auxiliary keyboards
CN103729107A (en) * 2012-10-15 2014-04-16 中兴通讯股份有限公司 Method and device for achieving suspension target
CN103957447A (en) * 2014-05-08 2014-07-30 济南四叶草信息技术有限公司 Multi-window floating playing system
CN104035722A (en) * 2014-07-03 2014-09-10 南昌欧菲生物识别技术有限公司 Mobile terminal and method for preventing faulty operation of virtual key
CN104793851A (en) * 2015-04-28 2015-07-22 北京乐动卓越科技有限公司 Method for controlling floating action button of terminal screen
CN105224225A (en) * 2015-09-23 2016-01-06 百度在线网络技术(北京)有限公司 The changing method of details page and device
CN107105090A (en) * 2017-04-13 2017-08-29 上海与德科技有限公司 A kind of control method, device and the mobile terminal of suspension button
CN107193542A (en) * 2017-03-30 2017-09-22 腾讯科技(深圳)有限公司 Method for information display and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006025264A (en) * 2004-07-09 2006-01-26 Matsushita Electric Ind Co Ltd Communication device with television reception function and output voice switching method in the same
CN102902486A (en) * 2011-09-09 2013-01-30 马舜尧 Pinyin slide input method and system for main and auxiliary keyboards
CN103729107A (en) * 2012-10-15 2014-04-16 中兴通讯股份有限公司 Method and device for achieving suspension target
CN103957447A (en) * 2014-05-08 2014-07-30 济南四叶草信息技术有限公司 Multi-window floating playing system
CN104035722A (en) * 2014-07-03 2014-09-10 南昌欧菲生物识别技术有限公司 Mobile terminal and method for preventing faulty operation of virtual key
CN104793851A (en) * 2015-04-28 2015-07-22 北京乐动卓越科技有限公司 Method for controlling floating action button of terminal screen
CN105224225A (en) * 2015-09-23 2016-01-06 百度在线网络技术(北京)有限公司 The changing method of details page and device
CN107193542A (en) * 2017-03-30 2017-09-22 腾讯科技(深圳)有限公司 Method for information display and device
CN107105090A (en) * 2017-04-13 2017-08-29 上海与德科技有限公司 A kind of control method, device and the mobile terminal of suspension button

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110251939A (en) * 2019-05-22 2019-09-20 武汉掌游科技有限公司 A kind of vertical screen H5 game sideslip menu suspension ball graphical interfaces and operating method
CN112307375A (en) * 2020-11-09 2021-02-02 北京沃东天骏信息技术有限公司 Page display method and device, electronic equipment and computer readable medium
CN113535056A (en) * 2021-06-17 2021-10-22 深圳软牛科技有限公司 Box selection adjusting method based on InkCanvas and related equipment
CN113535056B (en) * 2021-06-17 2023-12-05 深圳软牛科技有限公司 Frame selection adjustment method based on InkCanvas and related equipment
CN115695635A (en) * 2021-07-29 2023-02-03 上海博泰悦臻网络技术服务有限公司 Operation prompting method, storage medium and electronic equipment
CN115695635B (en) * 2021-07-29 2024-04-05 上海博泰悦臻网络技术服务有限公司 Operation prompting method, storage medium and electronic equipment
CN114090125A (en) * 2021-11-23 2022-02-25 金蝶软件(中国)有限公司 Interface configuration method and related equipment
WO2023245526A1 (en) * 2022-06-23 2023-12-28 广州视源电子科技股份有限公司 Desktop element operation method, electronic device and intelligent interaction tablet

Also Published As

Publication number Publication date
CN109491731B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN109491731A (en) Control method and device for suspension button and storage medium
US20210342058A1 (en) System and method for controlling errors in a system with a plurality of user-controlled devices using a network-controlled overlay
WO2016078441A1 (en) Icon management method and apparatus, and terminal
CN103412751B (en) The information displaying method and device of a kind of locking screen interface
CA2792685C (en) Method of modifying rendered attributes of list elements in a user interface
CA2798979C (en) Method of rendering a user interface
EP2584445A1 (en) Method of animating a rearrangement of ui elements on a display screen of an eletronic device
WO2016106781A1 (en) Notification information processing method, device, and terminal
CN103116454B (en) A kind of mobile terminal touch screen view layout method of adjustment
CN107924314A (en) For performing the apparatus and method of application
CN108279820A (en) Control method, terminal and the computer readable storage medium of suspension button
TW201349081A (en) User interface for mobile device
US10163245B2 (en) Multi-mode animation system
CN106211292A (en) The air navigation aid of a kind of mobile terminal and mobile terminal
EP3485358B1 (en) Electronic device and method thereof for managing applications
CN106156998A (en) The management method of a kind of Pending tasks and device
CN110413276A (en) Parameter edit methods and device, electronic equipment, storage medium
CN108459794A (en) A kind of interactive operation processing method and processing device of button-free screen
CN104298434B (en) A kind of information processing method and electronic equipment
CN102609187A (en) Menu display method and terminal equipment
CN107077310A (en) For controlling the casting of electronic device of display and method for controlling display
CN106020899A (en) Application downloading method and mobile terminal
CN104978118B (en) A kind of graphical interface of user display methods, device and terminal device
CN104049845B (en) A kind of information processing method and electronic equipment
CN105739905B (en) A kind of main key virtual method of terminal and device

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
GR01 Patent grant
GR01 Patent grant