CN110347458A - A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer - Google Patents

A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer Download PDF

Info

Publication number
CN110347458A
CN110347458A CN201910481336.7A CN201910481336A CN110347458A CN 110347458 A CN110347458 A CN 110347458A CN 201910481336 A CN201910481336 A CN 201910481336A CN 110347458 A CN110347458 A CN 110347458A
Authority
CN
China
Prior art keywords
control
toolbar
button control
button
application
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.)
Pending
Application number
CN201910481336.7A
Other languages
Chinese (zh)
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910481336.7A priority Critical patent/CN110347458A/en
Publication of CN110347458A publication Critical patent/CN110347458A/en
Pending legal-status Critical Current

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/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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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

Abstract

The embodiment of the present application discloses a kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer, the described method includes: receiving the edit instruction for the button control set input for being included for the toolbar of application widget, the corresponding control mark of each button control in the button control set is obtained;Each control is obtained in preset widget library identifies corresponding control object;The edit operation for identifying corresponding control object input for each control is obtained, each control object is shown respectively based on the edit operation, the edit operation includes display operation, hides at least one of operation and modification operation.It therefore, can be according to the button control on the actual use demand custom window toolbar of application, to improve the efficiency that user uses button control action pane using the embodiment of the present application.

Description

A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer
Technical field
This application involves field of computer technology more particularly to a kind of button control methods of exhibiting, device, storage medium and Interactive intelligent tablet computer.
Background technique
Intelligence system is arranged status bar and toolbar passes through state after opening application widget when carrying out using setting Column and toolbar show related data.Wherein, toolbar, which refers to, shows return push-button control etc. in the application widget of mobile terminal One column of multiple buttons control.
In Android system, for all application widgets, set button control is all the same on toolbar, but is directed to Different applications, demand to button control is different, and can not to carry out according to their own needs button control customized by user Setting causes user to use the inefficiency of button control action pane.
Summary of the invention
The embodiment of the present application provides a kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer, can To solve the problems, such as that user uses the inefficiency of button control action pane.The technical solution is as follows:
In a first aspect, the embodiment of the present application provides a kind of button control methods of exhibiting, which comprises
The edit instruction for the button control set input for being included for the toolbar of application widget is received, is pressed described in acquisition The corresponding control mark of each button control in button control set;
Each control is obtained in preset widget library identifies corresponding control object;
The edit operation for identifying corresponding control object input for each control is obtained, is grasped based on the editor Work is respectively shown each control object, and the edit operation includes display operation, hides operation and modification operation At least one of.
It is optionally, described to obtain the corresponding control mark of each button control in the button control set, comprising:
Root View is obtained, using the corresponding control mark of button control each in the Root View acquisition button control set Know.
Optionally, the edit instruction for receiving the button control set input for being included for the toolbar of application widget Before, further includes:
The control initial value of each button control in the button control set that the toolbar of acquisition application widget is included;
The control initial value of each button control is compiled, the control compiling value of each button control is obtained, It is identified the control compiling value of each button control as the control of each button control;
The control mark of each button control and each control are identified corresponding control object to save into widget library.
Optionally, the method also includes:
The corresponding application packet name of application widget is obtained, when finding in packet name set predetermined and the application packet When the matched packet name of famous prime minister, the edit instruction for receiving the button control set input for being included for window toolkit column is executed The step of.
Optionally, the method also includes:
Toolbar view object is obtained, is obtained for label object set by the toolbar view object;
When the label object is first kind object, the toolbar is shown using the first display mode;
When the label object is Second Type object, the toolbar is shown using the second display mode.
Optionally, described when the label object is first kind object, the work is shown using the first display mode Have column, comprising:
When the label object is first kind object, the toolbar view object is controlled using the first display mode It is shown;
It is described that the toolbar is shown using the second display mode when the label object is Second Type object, it wraps It includes:
When the label object is Second Type object, the toolbar view object is controlled using the second display mode It is shown.
Second aspect, the embodiment of the present application provide a kind of button control displaying device, and described device includes:
Identifier acquisition module, the volume for the button control set input that the toolbar for receiving for application widget is included Volume instruction, obtains the corresponding control mark of each button control in the button control set;
Object acquisition module identifies corresponding control pair for obtaining each control in preset widget library As;
Object display module, for obtaining the editor behaviour for being directed to each control and identifying corresponding control object input Make, each control object is shown respectively based on the edit operation, the edit operation includes display operation, hides At least one of operation and modification operation.
Optionally, the identifier acquisition module, is specifically used for:
Root View is obtained, using the corresponding control mark of button control each in the Root View acquisition button control set Know.
Optionally, described device further include:
Initial value obtains module, each button control in the button control set that the toolbar for obtaining application widget is included The control initial value of part;
Determining module is identified, is compiled for the control initial value to each button control, obtains each button The control compiling value of control is identified the control compiling value of each button control as the control of each button control;
Preserving module is identified, for the control mark of each button control and each control to be identified corresponding control pair As saving into widget library.
Optionally, described device further include:
Packet name matching module, for obtaining the corresponding application packet name of application widget, when in packet name set predetermined When finding packet name matched with the application packet famous prime minister, triggers the identifier acquisition module reception and wrapped for window toolkit column The edit instruction of the button control set input contained.
Optionally, described device further include:
Object setup module is obtained for obtaining toolbar view object for set by the toolbar view object Label object;
First toolbar display module is used for when the label object is first kind object, using the first display side Formula shows the toolbar;
Second toolbar display module is used for when the label object is Second Type object, using the second display side Formula shows the toolbar.
Optionally, the first toolbar display module, is specifically used for:
When the label object is first kind object, the toolbar view object is controlled using the first display mode It is shown;
The second toolbar display module, is specifically used for:
When the label object is Second Type object, the toolbar view object is controlled using the second display mode It is shown.
The third aspect, the embodiment of the present application provide a kind of computer storage medium, and the computer storage medium is stored with A plurality of instruction, described instruction are suitable for being loaded by processor and executing above-mentioned method and step.
Fourth aspect, the embodiment of the present application provide a kind of interactive intelligent tablet computer, it may include: processor and memory;Wherein, The memory is stored with computer program, and the computer program is suitable for being loaded by the processor and executing above-mentioned method Step.
The technical solution bring beneficial effect that some embodiments of the application provide includes at least:
The scheme of the embodiment of the present application when being executed, receives the button control collection for being included for the toolbar of application widget The edit instruction for closing input obtains the corresponding control mark of each button control in the button control set;In preset control Each control is obtained in library identifies corresponding control object;It obtains and identifies corresponding control for each control The edit operation of object input, is respectively shown each control object based on the edit operation, the edit operation Including display operation, hide at least one of operation and modification operation.It can be customized according to the actual use demand of application Button control on window toolkit column, to improve the efficiency that user uses button control action pane, meanwhile, it is answered for different Different button controls can be set with window on toolbar, enrich application widget toolbar pattern, it is strong to customize ability.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of button control methods of exhibiting provided by the embodiments of the present application;
Fig. 2 is a kind of interface schematic diagram of target window provided by the embodiments of the present application;
Fig. 3 is the edited interface signal of button control in a kind of target window toolbar provided by the embodiments of the present application Figure;
Fig. 4 is the edited interface signal of button control in a kind of target window toolbar provided by the embodiments of the present application Figure;
Fig. 5 is the edited interface signal of button control in a kind of target window toolbar provided by the embodiments of the present application Figure;
Fig. 6 is a kind of flow diagram of button control methods of exhibiting provided by the embodiments of the present application;
Fig. 7 is a kind of effect diagram of toolbar suspension display provided by the embodiments of the present application;
Fig. 8 is a kind of effect diagram of the fixed display of toolbar provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram that a kind of button control provided by the embodiments of the present application shows device;
Figure 10 is the structural schematic diagram that a kind of button control provided by the embodiments of the present application shows device;
Figure 11 is a kind of structural schematic diagram of interactive intelligent tablet computer provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the embodiment of the present application Mode is described in further detail.
In the following description when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different attached drawings indicate same or similar Element.Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application Formula.On the contrary, they are only the consistent device and method of as detailed in the attached claim, the application some aspects Example.
In the description of the present application, it is to be understood that term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.In addition, unless otherwise indicated, " multiple " refer to two in the description of the present application Or it is more than two."and/or" describes the incidence relation of affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, Can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Character "/" typicallys represent forward-backward correlation pair As if a kind of relationship of "or".
Below in conjunction with attached drawing 1- attached drawing 8, it is situated between in detail to button control methods of exhibiting provided by the embodiments of the present application It continues.This method can be dependent on computer program realization, can run on the button control based on von Neumann system and shows on device. The computer program can integrate in the application, also can be used as independent tool-class application operation.
The button control shows that device is user terminal, and the user terminal includes but is not limited to: PC, interaction Intelligent flat, mobile unit, wearable device, calculates equipment or is connected to other places of radio modem handheld device Manage equipment etc..User terminal can be called different titles in different networks, such as: user equipment, access terminal, user Unit, subscriber station, movement station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication are set Standby, user agent or user apparatus, cellular phone, wireless phone, personal digital assistant (personal digital Assistant, PDA), the terminal device in 5G network or future evolution network etc..
For convenience of description, the embodiment of the present application is illustrated so that user terminal is interactive intelligent tablet computer as an example.
The hardware components of interactive intelligent tablet computer are by the parts institute such as display module, intelligent processing system (including controller) structure At, combined by integral structure component, while also by dedicated software systems as support, wherein display module include display Screen and back light unit, wherein display screen includes transparent conductance layer and liquid crystal layer etc..
Display screen refers to touch screen, touch screen, touch panel in the embodiment of this specification, is a kind of induction type liquid Crystal device, when contacting the graphic button on screen, the haptic feedback system on screen can be according to the journey of preprogramming Formula drives various attachment devices, is substituted for mechanical push button panel, and produces by liquid crystal display picture lively Visual and sound effects.Touch screen is distinguished from technical principle, five basic kinds can be divided into;Vector pressure sensing technology touch screen, Resistive technologies touch screen, capacitance technology touch screen, infrared technology touch screen, surface acoustic wave technique touch screen.According to touch screen Working principle and transmission information medium, touch screen can be divided into four types: resistance-type, capacitor induction type, infrared ray Formula and surface acoustic wave type.
When user's finger or stylus touch screen, by the coordinate setting, to realize to intelligent processing system Control, different functional applications is realized then as the software built in intelligent processing system.
In the embodiment of the present application, the display screen of interactive intelligent tablet computer shows the display mould of some interface and interactive intelligent tablet computer It is identical that group shows that the interface is meant that.
" screen ", " large-size screen monitors " that are previously mentioned in this application refer both to the display screen of intelligent interaction plate;Intelligent interaction plate Show that some interface refers to that the display screen of intelligent interaction plate shows the interface.
It referring to Figure 1, is a kind of flow diagram of button control methods of exhibiting provided by the embodiments of the present application.Such as Fig. 1 It is shown, the embodiment of the present application the method may include following steps:
S101 receives the edit instruction for the button control set input for being included for the toolbar of application widget, obtains The corresponding control mark of each button control in the button control set;
Toolbar refer to include in application widget window name title bar, the level being typically situated at the top of window Column.In Graphing of Engineering, for convenience of interpreting blueprints and query-related information, title bar, the general position in position can be generally configured in drawing In the lower right corner of drawing, see that figure direction is usually consistent with the direction of toolbar.Certainly, application widget can also be arranged in toolbar Any position.
Button control set is at least one button control being arranged on application widget toolbar.For example, being answered in many With in window, toolbar includes program icon, " minimum " button control, " maximization " button control, the Close button control And the button controls set such as the Help button control, window can be operated by these button control set.When certain When a button control is clicked, corresponding display effect is first to be pressed, and is then released.
For example, being illustrated in figure 2 the application widget using 1, which can be with any mode (such as screen mode toggle, window Mouth mold formula, span mode, picture-in-picture mode) it shows on a display screen, the top of the application widget is provided with toolbar, In include " return push-button ", " vertical and horizontal switching ", " minimum ", " maximization " and " close button " multiple buttons control.
For each button control on toolbar, control mark is respectively corresponded, each button control of unique identification is used for.Institute Stating control mark can be control ID.
The edit instruction inputted, it can be understood as, for different application widgets, developer can be set different Button control is shown.That is, defining all application widgets in Android primary system and all showing identical button Control, such as button control 1, button control 2, button control 3, button control 4 and button control 5, and in fact, for different Application widget, some button controls are unwanted or frequency of use is lower, therefore, the reality based on each application widget Use demand, developer can edit the button control of each application widget.The edit instruction inputted can for Edit button input on toolbar, or show that the phonetic incepting entrance of device inputs by button control, work as button When control exposure device receives the edit instruction for the input of button control set, the control of each button control cached is read Part mark.
Control mark is for identifying the object on forms (for example, operation that the control is carried out when certain control is clicked in description) Or display corresponding information is with the run case or process in response application program, can be control ID.
S102 obtains each control in preset widget library and identifies corresponding control object;
It is stored at least one control mark in widget library and each control identifies corresponding control object.Respectively Control mark and control object can be stored in the form of mapping table, can also be stored with aggregate form.
As shown in table 1 by the mapping relations of a form of each control mark and control object that are stored in widget library Table, wherein control is identified as ID, the ID=0 of each control, and mark " returns to control ", and ID=1, mark " minimizes control ", ID= 2, mark " maximizes control ", ID=3, and mark " closes control ", etc..
Wherein, object is something or an entity, is the instantiation of class.Control refers to the component in forms, a control Part can be understood as an object in same class, and different controls has different attribute, event and method.The control object is For the control in window, multiple controls in toolbar can be understood as the different objects in same class.
Table 1
Control mark Control object
ID=0 Return to control
ID=1 Minimize control
ID=2 Maximize control
ID=3 Close control
Class is the basis that Object-oriented Programming Design realizes Information encapsulation.Class is a kind of user defined type, also referred to as class class Type.Each class includes the function that data illustrate with one group of operation data or transmit message.
In the specific implementation, getting Root View by Activity.getWindow () .getDecorView (), i.e., DecorView, then each control mark in widget library is traversed, and get in widget library by the method for findViewById Each button control object, to be operated to each control object.
S103 obtains the edit operation that corresponding control object input is identified for each control, based on described Edit operation is respectively shown each control object, and the edit operation includes display operation, hides operation and repair Change at least one of operation.
After getting each control object, it can be edited for some or all of control objects, such as be controlled The show or hide of some control object or modification etc., so as to what is shown needed for the actual use demand setting based on application Button control.
Wherein, modification operation, which can be, is revised as another button control for former button control, can also be in former button control New button control is further added by the basis of part.
For example, shown button control is that " return is pressed on toolbar if application for all Android systems Button ", " vertical and horizontal switching ", " minimum ", " maximization " and " close button " this 5 buttons, by being compiled to this 5 controls Volume, it sets hiding for " vertical and horizontal switching ", sets " return push-button ", " minimum ", " maximization " and " close button " to It has been shown that, then edited window toolkit column display effect is as shown in Figure 3.If setting hiding for " maximization " and " minimum ", " return push-button ", " vertical and horizontal switching " and " close button " is set as showing, then edited window toolkit column display effect As shown in Figure 4.If this 5 buttons are set as showing, and increase " suspension/fixation switching " button on toolbar, then edits Window toolkit column display effect afterwards is as shown in Figure 5.
The scheme of the embodiment of the present application when being executed, receives the button control collection for being included for the toolbar of application widget The edit instruction for closing input obtains the corresponding control mark of each button control in the button control set;In preset control Each control is obtained in library identifies corresponding control object;It obtains and identifies corresponding control for each control The edit operation of object input, is respectively shown each control object based on the edit operation, the edit operation Including display operation, hide at least one of operation and modification operation.It can be customized according to the actual use demand of application Button control on window toolkit column, to improve the efficiency that user uses button control action pane, meanwhile, it is answered for different Different button controls can be set with window on toolbar, enrich application widget toolbar pattern, it is strong to customize ability.
Fig. 6 is referred to, is a kind of flow diagram of button control methods of exhibiting provided by the embodiments of the present application.This implementation Example is applied to illustrate in interactive intelligent tablet computer with button control methods of exhibiting.The button control methods of exhibiting may include Following steps:
S201, the control for obtaining each button control in the button control set that the toolbar of application widget is included are initial Value;
Control initial value is control ID initial value, is that developer adds in systems and does not open to the outside world, other User accessed by way of R.ID less than.
Developer adds control initial value to button control each in button control set.
S202 is compiled the control initial value of each button control, and the control for obtaining each button control is compiled Value is translated, is identified the control compiling value of each button control as the control of each button control;
It is compiled by the control ID initial value to each button control, and generates compiling file (out/target/ Common/R/com/android/internal/R.java file), then control compiling value is write as based on compiling file and (is fixed Value) it saves into widget library.Control compiling value is control mark.
Control mark is for identifying the object on forms (for example, operation that the control is carried out when certain control is clicked in description) Or display corresponding information is with the run case or process in response application program, can be control ID.
The control mark of each button control and each control are identified corresponding control object and saved to control by S203 In library;
That is, can be by control mark and the corresponding preservation of control object, the storage form in widget library Mapping table, or set.
S204 receives the edit instruction for the button control set input for being included for the toolbar of application widget, obtains Root View is identified using the corresponding control of button control each in the Root View acquisition button control set;
Toolbar refer to include in application widget window name title bar, the level being typically situated at the top of window Column.In Graphing of Engineering, for convenience of interpreting blueprints and query-related information, title bar, the general position in position can be generally configured in drawing In the lower right corner of drawing, see that figure direction is usually consistent with the direction of toolbar.Certainly, application widget can also be arranged in toolbar Any position.
In many application widgets, toolbar includes program icon, " minimum " button control, " maximization " button control The button controls such as part, the Close button control and the Help button control can carry out window by these button controls Operation.When some button control is clicked, corresponding display effect is first to be pressed, and is then released.
For each button control on toolbar, control mark is respectively corresponded, each button control of unique identification is used for.Institute Stating control mark can be control ID.
The edit instruction inputted, it can be understood as, for different application widgets, developer can be set different Button control is shown.That is, defining all application widgets in Android primary system and all showing identical button Control, such as button control 1, button control 2, button control 3, button control 4 and button control 5, and in fact, for different Application widget, some button controls are unwanted or frequency of use is lower, therefore, the reality based on each application widget Use demand, developer can edit the button control of each application widget.The edit instruction inputted can for Edit button input on toolbar, or show that the phonetic incepting entrance of device inputs by button control, work as button When control exposure device receives the edit instruction for the input of button control set, the control of each button control cached is read Part mark.
In Android system, Activity.getWindow () .getDecorView () can be used and get Root View DecorView identifies (control using the corresponding control of button control each in the DecorView acquisition button control set ID)。
DecorView is the top View at the entire interface Window.Only one daughter element of DecorView is LinearLayout represents the entire interface Window, includes notification bar, toolbar, three pieces of regions of content display field. There are two FrameLayout daughter elements in LinearLayout, one of them is title bar display interface, only one The title of TextView display application.Can also be with custom toolbars, the custom toolbars View after loading will be added In FrameLayout;Another is content bar display interface, i.e., layout circle being loaded by setContentView () method Face.
S205 obtains each control in the widget library and identifies corresponding control object;
Each button control object can be got in widget library by the method for findViewById, so as to each control Object is operated.
What the user interface of android was generally done using xml document, corresponding xml document under layout packet, if A button has been put in xml, and the button is obtained in activity and just uses findViewById (corresponding in R.id.xml file id).With findViewById method be then the R class of system automatically generated ID subclass Rigen according to ID from existing xml The View object finished writing is extracted in file, because what Android started just to have designed, it can dynamically be read from XML file The attribute of related VIEW is taken to go to generate an object.
S206 obtains the edit operation that corresponding control object input is identified for each control, based on described Edit operation is respectively shown each control object, and the edit operation includes display operation, hides operation and repair Change at least one of operation.
Referring specifically to S103, details are not described herein again.
Optionally, when the application opened is third-party application, the corresponding application packet name of application widget is obtained, when pre- When finding packet name matched with the application packet famous prime minister in the packet name set first defined, executes described receive and be directed to window toolkit The step of edit instruction for the button control set input that column is included.
If the application widget of current operation is application widget corresponding to third-party application, and since third party can not be modified Application code then needs to do related adaptation to the application.
In DecorCaptionView, packet name (such as com.wps.office_eng, the complete machine prepackage of current application are checked The packet name of wps special version), and search whether that there are the packet names in packet name set predetermined, and if it exists, showing can be right Button control in the application widget toolbar is edited, and is operated using above-mentioned identical mode.
Optionally, it in LaunchTaskPositioner class, finds and detects in packet name set predetermined When packet name (such as com.wps.office_eng) of current application, default starting is dimensioned to full frame.
Optionally, toolbar view object is obtained, is obtained for label object set by the toolbar view object;
Window toolkit column DecorCaptionView class can not be touched in application and development, this is because such Do not increase certainly using developing and opening, therefore directly in DecorCaptionView class under com.android.internal packet Defining interface will lead to parameter call less than.But application layer can pass through Activity.getWindow () .getDecorView () .findViewById () method is taken toolbar view object (DecorCaptionView object), which is parent View type.
Application layer and DecorCaptionView object are by setTag interface communication, by the interface, application layer to DecorCaptionView object is passed to a label object (tag object).
When the label object is first kind object, the toolbar is shown using the first display mode;
Specifically, controlling the toolbar view pair when the label object is first kind object (non-empty object) As being shown using the first display mode (suspension display mode);
When the label object is Second Type object, the toolbar is shown using the second display mode.
Specifically, controlling the toolbar view object when the label object is Second Type object (empty object) It is shown using the second display mode (fixed display mode).
Wherein, the display that suspends refers to that toolbar is suspended on target window and not any information of shelter target window.Example Such as, as shown in fig. 7, toolbar suspension is shown on target window.
Fixed display refers to that toolbar is shown on target window as a part of target window and has blocked on window Region where toolbar.For example, as shown in figure 8, toolbar fixation is shown on target window.
The scheme of the embodiment of the present application when being executed, receives the button control collection for being included for the toolbar of application widget The edit instruction for closing input obtains the corresponding control mark of each button control in the button control set;In preset control Each control is obtained in library identifies corresponding control object;It obtains and identifies corresponding control for each control The edit operation of object input, is respectively shown each control object based on the edit operation, the edit operation Including display operation, hide at least one of operation and modification operation.It can be customized according to the actual use demand of application Button control on window toolkit column, to improve the efficiency that user uses button control action pane, meanwhile, it is answered for different Different button controls can be set with window on toolbar, enrich application widget toolbar pattern, it is strong to customize ability. Furthermore it is also possible to which the display pattern of custom window toolbar, promotes user experience.
Following is the application Installation practice, can be used for executing the application embodiment of the method.It is real for the application device Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Fig. 9 is referred to, it illustrates the structures that the button control that one exemplary embodiment of the application provides shows device Schematic diagram.The button control show device can by software, hardware or both be implemented in combination with as terminal whole or A part.The device 1 includes identifier acquisition module 10, object acquisition module 20 and object display module 30.
Identifier acquisition module 10, the button control set that the toolbar for receiving for application widget is included input Edit instruction obtains the corresponding control mark of each button control in the button control set;
Object acquisition module 20 identifies corresponding control pair for obtaining each control in preset widget library As;
Object display module 30, for obtaining the editor for being directed to each control and identifying corresponding control object input Operation, is respectively shown each control object based on the edit operation, and the edit operation includes display operation, hidden At least one of hiding operation and modification operation.
Optionally, the identifier acquisition module 10, is specifically used for:
Root View is obtained, using the corresponding control mark of button control each in the Root View acquisition button control set Know.
Optionally, as shown in Figure 10, described device further include:
Initial value obtains module 40, each button in the button control set that the toolbar for obtaining application widget is included The control initial value of control;
Identify determining module 50, be compiled for the control initial value to each button control, obtain it is described respectively by The control compiling value of button control is identified the control compiling value of each button control as the control of each button control;
Preserving module 60 is identified, for the control mark of each button control and each control to be identified corresponding control Object is saved into widget library.
Optionally, as shown in Figure 10, described device further include:
Packet name matching module 70, for obtaining the corresponding application packet name of application widget, when in packet name set predetermined In when finding packet name matched with the application packet famous prime minister, trigger the identifier acquisition module and receive for window toolkit column institute The edit instruction for the button control set input for including.
Optionally, described device further include:
Object setup module 80 is obtained for obtaining toolbar view object for set by the toolbar view object The label object set;
First toolbar display module 90, for being shown using first when the label object is first kind object Mode shows the toolbar;
Second toolbar display module 100, for being shown using second when the label object is Second Type object Mode shows the toolbar.
Optionally, the first toolbar display module 90, is specifically used for:
When the label object is first kind object, the toolbar view object is controlled using the first display mode It is shown;
The second toolbar display module 100, is specifically used for:
When the label object is Second Type object, the toolbar view object is controlled using the second display mode It is shown.
It should be noted that button control provided by the above embodiment shows device in executive button control exposure method When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function With being completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, to complete above description All or part of function.In addition, button control provided by the above embodiment shows that device and button control methods of exhibiting are real It applies example and belongs to same design, embody realization process and be detailed in embodiment of the method, which is not described herein again.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
The scheme of the embodiment of the present application when being executed, receives the button control collection for being included for the toolbar of application widget The edit instruction for closing input obtains the corresponding control mark of each button control in the button control set;In preset control Each control is obtained in library identifies corresponding control object;It obtains and identifies corresponding control for each control The edit operation of object input, is respectively shown each control object based on the edit operation, the edit operation Including display operation, hide at least one of operation and modification operation.It can be customized according to the actual use demand of application Button control on window toolkit column, to improve the efficiency that user uses button control action pane, meanwhile, it is answered for different Different button controls can be set with window on toolbar, enrich application widget toolbar pattern, it is strong to customize ability. Furthermore it is also possible to which the display pattern of custom window toolbar, promotes user experience.
The embodiment of the present application also provides a kind of computer storage medium, the computer storage medium can store more Item instruction, described instruction are suitable for being loaded by processor and being executed the method and step such as above-mentioned Fig. 1-embodiment illustrated in fig. 8, specifically hold Row process may refer to Fig. 1-embodiment illustrated in fig. 8 and illustrate, herein without repeating.
Present invention also provides a kind of computer program product, which is stored at least one instruction, At least one instruction is loaded by the processor and is executed the method and step such as above-mentioned Fig. 1-embodiment illustrated in fig. 8, specifically Implementation procedure may refer to Fig. 1-embodiment illustrated in fig. 8 and illustrate, herein without repeating.
Referring to Figure 11, a kind of structural schematic diagram of interactive intelligent tablet computer is provided for the embodiment of the present application.Such as Figure 11 institute Show, the interactive intelligent tablet computer 1000 may include: at least one processor 1001, at least one network interface 1004, user Interface 1003, memory 1005, at least one communication bus 1002.
Wherein, communication bus 1002 is for realizing the connection communication between these components.
Wherein, user interface 1003 may include display screen (Display), camera (Camera), optional user interface 1003 can also include standard wireline interface and wireless interface.
Wherein, network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
Wherein, processor 1001 may include one or more processing core.Processor 1001 using it is various excuse and Various pieces in the entire interactive intelligent tablet computer 1000 of connection, by running or executing the finger being stored in memory 1005 It enables, program, code set or instruction set, and calls the data being stored in memory 1005, execute interactive intelligent tablet computer 1000 Various functions and processing data.Optionally, processor 1001 can use Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable patrol At least one of array (Programmable Logic Array, PLA) example, in hardware is collected to realize.Processor 1001 can collect At central processing unit (Central Processing Unit, CPU), image processor (Graphics Processing Unit, GPU) and one or more of modem etc. combination.Wherein, the main processing operation system of CPU, user interface With application program etc.;GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen;Modem is for handling Wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 1001, separately through one piece of core Piece is realized.
Wherein, memory 1005 may include random access memory (Random Access Memory, RAM), also can wrap Include read-only memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non-transitory computer-readable storage medium).Memory 1005 can be used for store instruction, journey Sequence, code, code set or instruction set.Memory 1005 may include storing program area and storage data area, wherein storing program area Can store the instruction for realizing operating system, the instruction at least one function (such as touch function, sound play function Energy, image player function etc.), for realizing instruction of above-mentioned each embodiment of the method etc.;Storage data area can store each above The data etc. being related in a embodiment of the method.Memory 1005 optionally can also be that at least one is located remotely from aforementioned processing The storage device of device 1001.As shown in figure 11, as may include in a kind of memory 1005 of computer storage medium operation System, network communication module, Subscriber Interface Module SIM and button control show application program.
In the interactive intelligent tablet computer 1000 shown in Figure 11, user interface 1003 is mainly used for providing connecing for input for user Mouthful, obtain the data of user's input;And processor 1001 can be used for that the button control stored in memory 1005 is called to show Application program, and specifically execute following operation:
The edit instruction for the button control set input for being included for the toolbar of application widget is received, is pressed described in acquisition The corresponding control mark of each button control in button control set;
Each control is obtained in preset widget library identifies corresponding control object;
The edit operation for identifying corresponding control object input for each control is obtained, is grasped based on the editor Work is respectively shown each control object, and the edit operation includes display operation, hides operation and modification operation At least one of.
In one embodiment, the processor 1001 each button control pair in executing the acquisition button control set It is specific to execute following operation when the control mark answered:
Root View is obtained, using the corresponding control mark of button control each in the Root View acquisition button control set Know.
In one embodiment, the processor 1001 is received in execution and is pressed for what the toolbar of application widget was included Before the edit instruction of button control set input, following operation is also executed:
The control initial value of each button control in the button control set that the toolbar of acquisition application widget is included;
The control initial value of each button control is compiled, the control compiling value of each button control is obtained, It is identified the control compiling value of each button control as the control of each button control;
The control mark of each button control and each control are identified corresponding control object to save into widget library.
In one embodiment, the processor 1001 also executes following operation:
The corresponding application packet name of application widget is obtained, when finding in packet name set predetermined and the application packet When the matched packet name of famous prime minister, the edit instruction for receiving the button control set input for being included for window toolkit column is executed The step of.
In one embodiment, the processor 1001 also executes following operation:
Toolbar view object is obtained, is obtained for label object set by the toolbar view object;
When the label object is first kind object, the toolbar is shown using the first display mode;
When the label object is Second Type object, the toolbar is shown using the second display mode.
In one embodiment, the processor 1001 is being executed when the label object is first kind object, is adopted It is specific to execute following operation when showing the toolbar with the first display mode:
When the label object is first kind object, the toolbar view object is controlled using the first display mode It is shown
The processor 1001 is being executed when the label object is Second Type object, aobvious using the second display mode It is specific to execute following operation when showing the toolbar:
When the label object is Second Type object, the toolbar view object is controlled using the second display mode It is shown.
The scheme of the embodiment of the present application when being executed, receives the button control collection for being included for the toolbar of application widget The edit instruction for closing input obtains the corresponding control mark of each button control in the button control set;In preset control Each control is obtained in library identifies corresponding control object;It obtains and identifies corresponding control for each control The edit operation of object input, is respectively shown each control object based on the edit operation, the edit operation Including display operation, hide at least one of operation and modification operation.It can be customized according to the actual use demand of application Button control on window toolkit column, to improve the efficiency that user uses button control action pane, meanwhile, it is answered for different Different button controls can be set with window on toolbar, enrich application widget toolbar pattern, it is strong to customize ability. Furthermore it is also possible to which the display pattern of custom window toolbar, promotes user experience.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory or random access memory etc..
Above disclosed is only the application preferred embodiment, cannot limit the right model of the application with this certainly It encloses, therefore according to equivalent variations made by the claim of this application, still belongs to the range that the application is covered.

Claims (14)

1. a kind of button control methods of exhibiting, which is characterized in that the described method includes:
The edit instruction for receiving the button control set input for being included for the toolbar of application widget, obtains the button control The corresponding control mark of each button control in part set;
Each control is obtained in preset widget library identifies corresponding control object;
The edit operation that corresponding control object input is identified for each control is obtained, based on the edit operation point Other to be shown to each control object, the edit operation includes display operation, hides in operation and modification operation It is at least one.
2. the method according to claim 1, wherein described obtain each button control in the button control set Corresponding control mark, comprising:
Root View is obtained, is identified using the corresponding control of button control each in the Root View acquisition button control set.
3. the method according to claim 1, wherein the reception is included for the toolbar of application widget Before the edit instruction of button control set input, further includes:
The control initial value of each button control in the button control set that the toolbar of acquisition application widget is included;
The control initial value of each button control is compiled, the control compiling value of each button control is obtained, by institute The control compiling value for stating each button control is identified as the control of each button control;
The control mark of each button control and each control are identified corresponding control object to save into widget library.
4. the method according to claim 1, wherein the method also includes:
The corresponding application packet name of application widget is obtained, when finding in packet name set predetermined and the application packet famous prime minister When matched packet name, the step of the edit instruction for receiving the button control set input for being included for window toolkit column is executed Suddenly.
5. the method according to claim 1, wherein the method also includes:
Toolbar view object is obtained, is obtained for label object set by the toolbar view object;
When the label object is first kind object, the toolbar is shown using the first display mode;
When the label object is Second Type object, the toolbar is shown using the second display mode.
6. according to the method described in claim 5, it is characterized in that, it is described when the label object be the first kind object when, The toolbar is shown using the first display mode, comprising:
When the label object is first kind object, controls the toolbar view object and carried out using the first display mode Display;
It is described when the label object be Second Type object when, the toolbar is shown using the second display mode, comprising:
When the label object is Second Type object, controls the toolbar view object and carried out using the second display mode Display.
7. a kind of button control shows device, which is characterized in that described device includes:
The editor of identifier acquisition module, the button control set input that the toolbar for receiving for application widget is included refers to It enables, obtains the corresponding control mark of each button control in the button control set;
Object acquisition module identifies corresponding control object for obtaining each control in preset widget library;
Object display module, for obtaining the edit operation for being directed to each control and identifying corresponding control object input, Each control object is shown respectively based on the edit operation, the edit operation includes display operation, hides behaviour At least one of make and modify operation.
8. device according to claim 7, which is characterized in that the identifier acquisition module is specifically used for:
Root View is obtained, is identified using the corresponding control of button control each in the Root View acquisition button control set.
9. device according to claim 7, which is characterized in that described device further include:
Initial value obtains module, each button control in the button control set that the toolbar for obtaining application widget is included Control initial value;
Determining module is identified, is compiled for the control initial value to each button control, obtains each button control Control compiling value, using the control compiling value of each button control as each button control control identify;
Preserving module is identified, is protected for the control mark of each button control and each control to be identified corresponding control object It deposits into widget library.
10. device according to claim 7, which is characterized in that described device further include:
Packet name matching module is searched for obtaining the corresponding application packet name of application widget when in packet name set predetermined When to packet name matched with the application packet famous prime minister, triggers the identifier acquisition module and receive and included for window toolkit column The edit instruction of button control set input.
11. device according to claim 7, which is characterized in that described device further include:
Object setup module is obtained for obtaining toolbar view object for mark set by the toolbar view object Sign object;
First toolbar display module, for being shown using the first display mode when the label object is first kind object Show the toolbar;
Second toolbar display module, for being shown using the second display mode when the label object is Second Type object Show the toolbar.
12. device according to claim 11, which is characterized in that the first toolbar display module is specifically used for:
When the label object is first kind object, controls the toolbar view object and carried out using the first display mode Display;
The second toolbar display module, is specifically used for:
When the label object is Second Type object, controls the toolbar view object and carried out using the second display mode Display.
13. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with a plurality of instruction, the finger It enables and is suitable for being loaded by processor and being executed the method and step such as claim 1~6 any one.
14. a kind of interactive intelligent tablet computer characterized by comprising processor and memory;Wherein, the memory is stored with Computer program, the computer program are suitable for being loaded by the processor and being executed the side such as claim 1~6 any one Method step.
CN201910481336.7A 2019-06-04 2019-06-04 A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer Pending CN110347458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910481336.7A CN110347458A (en) 2019-06-04 2019-06-04 A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910481336.7A CN110347458A (en) 2019-06-04 2019-06-04 A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer

Publications (1)

Publication Number Publication Date
CN110347458A true CN110347458A (en) 2019-10-18

Family

ID=68181476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910481336.7A Pending CN110347458A (en) 2019-06-04 2019-06-04 A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer

Country Status (1)

Country Link
CN (1) CN110347458A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022126449A1 (en) * 2020-12-16 2022-06-23 深圳迈瑞生物医疗电子股份有限公司 Ventilation mode configuration method, and ventilation control device for livestock
CN114968040A (en) * 2022-05-19 2022-08-30 北京市商汤科技开发有限公司 Image processing method and device, electronic device and storage medium
CN114995693A (en) * 2021-12-31 2022-09-02 荣耀终端有限公司 Display screen window switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310384A (en) * 2000-02-21 2001-08-29 英业达股份有限公司 Tool bar function expanding method
US20090150810A1 (en) * 2007-12-06 2009-06-11 Microsoft Corporation Rule-Based Multi-Pane Toolbar Display
CN101582030A (en) * 2009-06-15 2009-11-18 中兴通讯股份有限公司 Method and system for realizing dynamically adjusting displaying of toolbar button
CN103092461A (en) * 2012-12-19 2013-05-08 广州杰赛科技股份有限公司 Method and system of title bar button achieving
CN105607821A (en) * 2015-12-16 2016-05-25 福州瑞芯微电子股份有限公司 Android based window control bar display method and apparatus
CN109725970A (en) * 2018-12-25 2019-05-07 北京微播视界科技有限公司 The method, apparatus and electronic equipment that applications client window is shown

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310384A (en) * 2000-02-21 2001-08-29 英业达股份有限公司 Tool bar function expanding method
US20090150810A1 (en) * 2007-12-06 2009-06-11 Microsoft Corporation Rule-Based Multi-Pane Toolbar Display
CN101582030A (en) * 2009-06-15 2009-11-18 中兴通讯股份有限公司 Method and system for realizing dynamically adjusting displaying of toolbar button
CN103092461A (en) * 2012-12-19 2013-05-08 广州杰赛科技股份有限公司 Method and system of title bar button achieving
CN105607821A (en) * 2015-12-16 2016-05-25 福州瑞芯微电子股份有限公司 Android based window control bar display method and apparatus
CN109725970A (en) * 2018-12-25 2019-05-07 北京微播视界科技有限公司 The method, apparatus and electronic equipment that applications client window is shown

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022126449A1 (en) * 2020-12-16 2022-06-23 深圳迈瑞生物医疗电子股份有限公司 Ventilation mode configuration method, and ventilation control device for livestock
CN114995693A (en) * 2021-12-31 2022-09-02 荣耀终端有限公司 Display screen window switching method and electronic equipment
CN114968040A (en) * 2022-05-19 2022-08-30 北京市商汤科技开发有限公司 Image processing method and device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN104007894B (en) Portable device and its more application operating methods
CN107077292A (en) Clip and paste information providing method and device
CN103729065A (en) System and method for mapping touch operations to entity keys
CN108605100A (en) Method for handling image and the electronic device for supporting this method
CN108319491A (en) Working space in managing user interface
CN110347458A (en) A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer
JP2022520094A (en) Interface display method and its devices, terminals and computer programs
CN107783702A (en) Control method, the device and system of display data
CN111443863A (en) Page control method and device, storage medium and terminal
CN107679113A (en) Acquisition methods, equipment and the electronic equipment gently applied
AU2015249047A1 (en) Method and electronic device for configuring screen
CN108648279A (en) House three-dimensional virtual tapes see method, apparatus, mobile terminal and storage medium
CN108132879A (en) Automated software testing method, platform, terminal and medium
CN110109598A (en) A kind of animation interaction implementation method, device and electronic equipment
CN102981818A (en) Scenario based animation library
CN110032324A (en) A kind of text chooses method and terminal
CN109471626A (en) Page logic structure, page generation method, page data processing method and device
CN108055567A (en) A kind of method for processing video frequency, device, terminal device and storage medium
CN106855772A (en) A kind of information displaying method and device
CN107943359A (en) A kind of method, terminal and the computer-readable medium of the control of application program
CN111324398B (en) Method, device, terminal and storage medium for processing latest content
CN110430253A (en) It is a kind of that the method and apparatus of novel update notification information is provided
CN110443880A (en) Image rendering method, device, storage medium and electronic equipment
CN107168606A (en) Dialog control display methods, device and user terminal
CN107015795A (en) A kind of method and device for drawing user interface

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191018

RJ01 Rejection of invention patent application after publication