CN109542291A - A kind of interface control method, relevant apparatus and equipment - Google Patents

A kind of interface control method, relevant apparatus and equipment Download PDF

Info

Publication number
CN109542291A
CN109542291A CN201811212778.3A CN201811212778A CN109542291A CN 109542291 A CN109542291 A CN 109542291A CN 201811212778 A CN201811212778 A CN 201811212778A CN 109542291 A CN109542291 A CN 109542291A
Authority
CN
China
Prior art keywords
menu bar
state
interface
switched
predeterminable area
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
CN201811212778.3A
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.)
SHENZHEN CHUANGMENG TIANDI TECHNOLOGY CO LTD
Original Assignee
SHENZHEN CHUANGMENG TIANDI TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN CHUANGMENG TIANDI TECHNOLOGY CO LTD filed Critical SHENZHEN CHUANGMENG TIANDI TECHNOLOGY CO LTD
Priority to CN201811212778.3A priority Critical patent/CN109542291A/en
Publication of CN109542291A publication Critical patent/CN109542291A/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/0486Drag-and-drop

Abstract

The invention discloses a kind of interface control methods, relevant apparatus, this method comprises: obtaining the control instruction of input, control menu bar according to the control instruction and are moved in interface;Monitor the moving condition of menu bar described in interface;According to the moving condition, the menu bar state is switched to the second state from first state;Wherein, the menu bar state includes the position at interface and the menu bar pattern where the menu bar.The invention also discloses a kind of interface control device and equipment, solves in the prior art the technical issues of menu bar can only be hidden and be unfolded, and user can not see hiding and expansion process, the user experience is improved.

Description

A kind of interface control method, relevant apparatus and equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of interface control methods, relevant apparatus and equipment.
Background technique
With the continuous development of computer technology and Internet technology, various terminal devices are applied more and more Into the various occasions such as life, work, amusement.User is interacted by the interactive interface on terminal device with terminal, interaction Menu bar in interface shows various functions, and user is operated by menu bar selection function.In the prior art, menu Column can only hide and be unfolded, and user can not see the process hidden and be unfolded, poor user experience.And when menu bar hides it Afterwards, user can not see function button, be not easy to operate.For example, user needs when carrying out game operation in interface See the function in menu bar, the function button in actions menu column is needed to operate game, still, for function When menu bar more than button is shown in interface, and game content can be sheltered from, hide menu column will use family again and be not easy to Corresponding function button in game operation is found, poor user experience is caused.
Summary of the invention
It, can be by the first instruction triggers for getting the embodiment of the invention provides a kind of interface control method and device The conversion of menu bar different conditions is realized in the switching of menu bar state with a menu bar space, without opening up more set menu bars Space, can effectively save memory headroom, and the difference of same menu bar in interactive interface can be let user experiencing Interactive mode.
First aspect of the embodiment of the present invention provides a kind of interface control method, this method comprises:
The control instruction for obtaining input controls menu bar according to the control instruction and is moved in interface;
Monitor the moving condition of menu bar described in interface;
According to the moving condition, the menu bar state is switched to the second state from first state;Wherein, the dish Single columns state includes the position at interface and the menu bar pattern where the menu bar.
In some possible embodiments, the moving condition includes the shift position of the menu bar;According to described The menu bar state is switched to the second state from first state, comprising: in the position for listening to the menu bar by moving condition It sets in the case where being moved to the first predeterminable area of interface, the menu bar state is switched to the second state from first state.
Preferably, described to state that the menu bar state is switched to the second state from first state includes: with preset duration Show that the menu bar state is switched to the dynamic process of the second state from first state.
It is optionally described to show that the menu bar state is switched to from first state the dynamic of the second state with preset duration After process, further includes: be fixed on the menu bar on second predeterminable area at the interface with second state.
Optionally, top of second predeterminable area at the interface.
Optionally, the distance at center of the geometric center of the menu bar to the interface is less than in advance under second state If threshold value.
Optionally, the menu bar includes multiple function buttons, and the menu bar pattern includes the multiple function button The distance between and the multiple function button size;The menu bar pattern of the first state is different from described second The menu bar pattern of state.
Second aspect of the embodiment of the present invention discloses a kind of interface control device, including executing the side such as above-mentioned first aspect The unit of method.
The third aspect of the embodiment of the present invention discloses a kind of interface control device, including processor, input equipment, output are set Standby and memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for depositing Application code is stored up, the processor is configured for calling said program code, execute as described in above-mentioned first aspect Method.
Fourth aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, and the computer storage medium is deposited Computer program is contained, the computer program includes program instruction, and described program instruction makes described when being executed by a processor Processor executes the method such as above-mentioned first aspect.
Implement the embodiment of the present invention, by obtaining the control instruction of input, menu bar is controlled according to the control instruction and is existed It is moved in interface;Monitor the moving condition of menu bar described in interface;According to the moving condition, by the menu columns State is switched to the second state from first state;Wherein, the menu bar state include the position at interface where the menu bar and The menu bar pattern.So that menu bar has different states in different predeterminable areas, the same menu bar can be at interface Middle different place uses, and in the case where needing menu bar in the different zones at interface, does not need to create more set menu bars, can To use the same menu bar, the memory headroom of interface display space and equipment can be saved.Further, user can see It is switched to the dynamic process of the second state to menu bar state from first state, improves user experience.
Detailed description of the invention
In order to illustrate the embodiment of the present invention or technical solution in the prior art, embodiment or the prior art will be retouched below Attached drawing needed in stating is briefly described.
Wherein:
Fig. 1 is a kind of flow diagram of interface control method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another embodiment of interface control method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the another embodiment of interface control method provided in an embodiment of the present invention;
Fig. 4 is the interface schematic diagram of interface control method provided in an embodiment of the present invention;
Fig. 5 is the interface schematic diagram of another embodiment of interface control method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of interface control device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of another embodiment of interface control device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of interface control device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
The present invention can be realized by mobile terminal, can also be realized by equipment such as PC, the network equipments.Below with It is illustrated for mobile terminal.
Here, mobile terminal includes but is not limited to any hand-held electronic product based on intelligent operating system, Human-computer interaction can be carried out by input equipments such as keyboard, dummy keyboard, touch tablet, touch screen and voice-operated devices with user, Smart phone, tablet computer etc..Wherein, intelligent operating system includes but is not limited to any each by providing to mobile device Mobile application is planted to enrich the operating system of functions of the equipments, Android (Android), IOS, Windows Phone etc..
The embodiment of the present invention provides a kind of interface control method, comprising: the control instruction for obtaining input, according to the control It is moved in interface on CMD control menu column;Monitor the moving condition of menu bar described in interface;According to the mobile shape The menu bar state is switched to the second state from first state by state;Wherein, the menu bar state includes the menu bar The position at place interface and the menu bar pattern.It is described in detail individually below.
A kind of interface control method, interface control device and interface that embodiment provides in order to better understand the present invention Equipment is controlled, a kind of process for the interface control method being first applicable in below the embodiment of the present invention is described.Referring to Fig. 1, Fig. 1 is the flow diagram of interface control method provided in an embodiment of the present invention, the interface control method in the embodiment of the present invention Include:
Step S101, the control instruction for obtaining input controls menu bar according to the control instruction and is moved in interface It is dynamic.
Specifically, the user's finger sliding interface that the control instruction can be that terminal device gets control menu bar to It is upper, all directions carry out mobile instruction downwards, to the left, to the right etc.;Be also possible to stylus, mouse, keyboard etc. to interface into The control instruction that row control generates, according to the control instruction got, menu bar can in interface upwards, downwards, to the left, to The all directions such as right are moved.It is not construed as limiting herein.The shape of menu bar can be square, is also possible to rectangle, can also To be irregular shape, bubble shape etc., herein without limitation.
Specifically, the menu bar includes multiple function buttons, and the menu bar pattern includes the multiple function button The distance between and the multiple function button size;The menu bar pattern of the first state is different from described second The menu bar pattern of state.It should be noted that can have N row function button, N >=1, the shape of each function button in menu bar Shape can be square, be also possible to rectangle, be also possible to irregular shape, bubble shape etc., herein without limitation.Also need To be illustrated, the first predeterminable area and the second predeterminable area can be arbitrary region in interface, the size of the first predeterminable area It is greater than the size of menu bar with the size of the second predeterminable area.First predeterminable area can be at the top at interface, can also be The middle position at interface;Similarly, the second predeterminable area can also at the top at interface, can also in other regions at interface, Herein without limitation.But the first predeterminable area is different from the second predeterminable area, and in same situation, the first predeterminable area It is different with position of second predeterminable area in interface.
Step S102, the moving condition of menu bar described in interface is monitored.
Specifically, the moving condition may include that shift position, mobile duration, moving distance, movement speed, movement add Speed, travel frequency, motion track, any one either any combination in fingerprint, herein without limitation.
In a kind of feasible implementation, the moving condition includes the shift position of the menu bar;According to described The menu bar state is switched to the second state from first state, comprising: in the position for listening to the menu bar by moving condition It sets in the case where being moved to the second predeterminable area from the first predeterminable area, the menu bar state is switched to from first state Two-state.
In a kind of feasible implementation, the control UIScrollView of the sliding of creation is placed on current interface Inside view controller, then menu bar is added in sliding control UIScrollView, then passes through the control of sliding The Proxy Method-(void) of UIScrollView acted on behalf of inside UIScrollViewDelegate ScrollViewDidScroll:(UIScrollView*) scrollView, this method become to monitor the position of sliding control Change, to listen to the change in location of menu bar, makes menu bar in different predeterminable area exhibitions by the change in location of menu bar Reveal different states.It should be noted that the monitor method in the present invention is not limited to monitoring as mentioned in the embodiments of the present invention Method can have other monitor methods to monitor the change in location of menu bar, shift position, mobile duration, moving distance, shifting Dynamic speed, translational acceleration, travel frequency, motion track, fingerprint, are not construed as limiting herein.
Step S103, according to the moving condition, the menu bar state is switched to the second state from first state;Its In, the menu bar state includes the position at interface and the menu bar pattern where the menu bar.
It is specifically, described that the menu bar state is switched to the second state from first state includes: with preset duration exhibition Show that the menu bar state is switched to the dynamic process of the second state from first state.It is described that the menu is shown with preset duration Columns state is after the dynamic process that first state is switched to the second state, further includes: by the menu bar with second shape State is fixed on second predeterminable area at the interface.It should be noted that preset duration is less than or equal to 1 second.When presetting The long dynamic process for showing menu bar switching, user can intuitively see that the state of menu bar changes, and can be improved use Family experience.The conversion that menu bar different conditions are realized with menu bar space can be with without opening up the spaces of more set menu bars It is effective to save memory headroom, and the distinct interaction mode of same menu bar in interactive interface can be let user experiencing.
In a kind of feasible implementation, according to the moving condition, the menu bar state is cut from first state It is changed to the second state;Wherein, the moving condition includes mobile duration and moving distance, the menu bar it is mobile when grow up In time threshold, and moving distance, greater than in the case where distance threshold, the menu bar is switched to the second shape from first state State;Wherein, time threshold can be 1 second, 2 seconds, 3 seconds, 4 seconds etc., herein without limitation;Distance threshold can be 1 centimetre, 2 Centimetre, 3 centimetres, 4 centimetres etc., herein without limitation.For example, time threshold is 3 seconds, distance threshold is 2 centimetres, when moving A length of 3.1 seconds, in the case that moving distance is 1.8 centimetres, menu bar state did not switched;It a length of 2.5 seconds when moving, moves In the case that dynamic distance is 2.2 centimetres, menu bar state does not switch;A length of 3.1 seconds when moving, moving distance 2.2 In the case where centimetre, menu bar state is switched to the second state from first state.According to the combination of mobile duration and moving distance Determine whether menu bar switches, can to avoid because user accidentally sliding interface and cause menu bar state to switch.
In a kind of feasible implementation, according to the moving condition, the menu bar state is cut from first state It is changed to the second state;Wherein, the moving condition includes shift position and fingerprint matching, can acquire at interface and be slided at interface First fingerprint of dynamic operation finger, the first fingerprint is matched with preset fingerprint, and fingerprint matching is successfully and the menu bar In the case that position is moved to the second predeterminable area from the first predeterminable area, the menu bar is switched to the second shape from first state State.Wherein, preset fingerprint is that user is input to the fingerprint in terminal device, can be the left hand thumbprint of user, can also be with It is hand thumb fingerprint, right hand index fingerprint is also possible to the household of user's input, the fingerprint of friend, herein without limitation.It lifts Example for, if user be input to the fingerprint in terminal device be the user right hand index fingerprint and hand thumb fingerprint, with Family operates interface with right hand index finger or hand thumb, and interface acquisition user fingerprints are matched with preset fingerprint, refers to In the case that the position of line successful match and the menu bar is moved to the second predeterminable area from the first predeterminable area, the menu Column is switched to the second state from first state;If fingerprint matching success, but the position of the menu bar is not default from first Region is moved to the second predeterminable area, and the menu bar does not switch.If user does not use right hand index finger or hand thumb, But other fingers, menu bar is moved such as left index finger, then fingerprint matching is unsuccessful, the position of the menu bar In the case where the second predeterminable area is moved to from the first predeterminable area, menu bar state will not switch, if the household of user, Friend moves menu bar with finger, and fingerprint matching is unsuccessful, and the position of the menu bar is moved from the first predeterminable area In the case where moving to the second predeterminable area, menu bar state will not switch.In addition fingerprint, so that the hand of only preset fingerprint Refer to mobile menu bar, and the position of menu bar is made to be moved to the second predeterminable area, the state of menu bar from the first predeterminable area It can just change, menu columns can be led to the maloperation of menu bar to avoid other modes (fingerprint of such as non-default fingerprint) State changes, and can make that the safety is improved plus fingerprint, and non-user inputted the other users of fingerprint to menu bar Being operated cannot make the state of menu bar change.
In a kind of feasible implementation, top of second predeterminable area at the interface.
In another feasible implementation, the geometric center of the menu bar is to the interface under second state Center distance be less than preset threshold.It should be noted that size and interface size of the preset threshold according to menu bar To determine.The position in interface close to interface center is arranged in menu bar under second state, user can be facilitated to menu Function button in column is operated.
Implement the embodiment of the present invention, the control instruction of input is obtained by the input instruction got, according to the control It is moved in interface on CMD control menu column;Monitor the moving condition of menu bar described in interface;According to the mobile shape The menu bar state is switched to the second state from first state by state;Wherein, the menu bar state includes the menu bar The position at place interface and the menu bar pattern.So that menu bar has different states in different predeterminable areas, it is same Menu bar can use in the case where needing menu bar in the different zones at interface in different places in interface, not need Creation covers menu bar, can use the same menu bar, can save the memory headroom of interface display space and equipment.Into One step, user can see the dynamic process that menu bar state is switched to the second state from first state, improve user's body It tests.
The flow diagram of another embodiment of interface control method provided in an embodiment of the present invention as shown in Figure 2, can With the following steps are included:
Step S201, the control instruction of input is obtained, sliding interface is defeated upward or downward by finger for the control instruction Enter.
Specifically, when user with the mode of finger sliding interface come input control instruction when, get user input to Upper sliding or the instruction of slide downward, menu bar in interface can in interface with the upward sliding interface of user's finger and to It is upper to move, it is moved downwards with the slide downward interface of user's finger.
Step S202, the change in location of menu bar described in interface is monitored.
Specifically, the control UIScrollView of the sliding of creation is placed on inside the view controller of current interface, so Menu bar is added in sliding control UIScrollView afterwards, then passes through the agency of the control UIScrollView of sliding Proxy Method-(void) scrollViewDidScroll:(UIScrollView* inside UIScrollViewDelegate) ScrollView, this method pass through dish to listen to the change in location of menu bar to monitor the change in location of sliding control The change in location on single column makes menu bar show different states in different predeterminable areas.
Step S203, judge whether the position of menu bar changes.
Specifically, if the position for judging menu bar returns to step S202 there is no variation, continue to monitor boundary The change in location of menu bar described in face;If judging, the position of menu bar is changed, and executes next step.
Step S204, judge whether menu bar will enter the second predeterminable area from the first predeterminable area.
Specifically, if judging, menu bar moves in the first predeterminable area, then to enter in the second predeterminable area and stop It only moves or not mobile to the direction for entering the second predeterminable area, then returns to step S202, continue to monitor in interface The change in location of the menu bar;If judging, menu bar is moved from the first predeterminable area to the second predeterminable area direction, and The second predeterminable area will be entered, then execute next step.
Step S205, menu bar is switched to the second state from first state, shows that the first state of preset duration is cut It is changed to the dynamic process of the second state.
Specifically, menu bar will be switched to the second state from first state, can calculate the menu bar under first state first Then the distance between function button calls UIViewAnimation animation, by seat of the function button of menu bar in interface Mark is reset, so that menu bar is changed to the second state, and shows that menu bar is switched to the second shape from first state to user The dynamic process of state.
Step S206, menu bar is fixed on the second predeterminable area with the second state.
Specifically, menu bar is pressed in the second predeterminable area with each function in each menu bar of the second status display Button, menu bar are not hidden, and user can see the function button in menu bar, can when user wants to operate interface The function button in menu bar can be clearly seen, so that operation is more convenient, be able to ascend user experience.
It is the flow diagram of the another embodiment of interface control method provided in an embodiment of the present invention as shown in Figure 3, It may comprise steps of:
Step S301, the control instruction for obtaining input controls menu bar according to the control instruction and is moved in interface It is dynamic.
Specifically, the user's finger sliding interface that the control instruction can be that terminal device gets control menu bar to It is upper, all directions carry out mobile instruction downwards, to the left, to the right etc.;Be also possible to stylus, mouse, keyboard etc. to interface into The control instruction that row control generates, according to the control instruction got, menu bar can in interface upwards, downwards, to the left, to The all directions such as right are moved.It is not construed as limiting herein.The shape of menu bar can be square, is also possible to rectangle, can also To be irregular shape, bubble shape etc., herein without limitation.
Specifically, the menu bar includes multiple function buttons, and the menu bar pattern includes the multiple function button The distance between and the multiple function button size;The menu bar pattern of the first state is different from described second The menu bar pattern of state.It should be noted that can have N row function button, N >=1, the shape of each function button in menu bar Shape can be square, be also possible to rectangle, be also possible to irregular shape, bubble shape etc., herein without limitation.Also need To be illustrated, the first predeterminable area and the second predeterminable area can be arbitrary region in interface, the size of the first predeterminable area It is greater than the size of menu bar with the size of the second predeterminable area.First predeterminable area can be at the top at interface, can also be The middle position at interface;Similarly, the second predeterminable area can also at the top at interface, can also in other regions at interface, Herein without limitation.But the first predeterminable area is different from the second predeterminable area, and in same situation, the first predeterminable area It is different with position of second predeterminable area in interface.
Step S302, the changes in coordinates of menu bar described in interface is monitored.
Specifically, the control UIScrollView of the sliding of creation is placed on inside the view controller of current interface, then Menu bar is added in sliding control UIScrollView, the agency of the control UIScrollView of sliding is then passed through Proxy Method-(void) scrollViewDidScroll:(UIScrollView* inside UIScrollViewDelegate) ScrollView, this method slide the changes in coordinates of control to monitor, characterize menu bar to slide the changes in coordinates of control Whole changes in coordinates.
Step S303, judge whether the ordinate value of the coordinate of menu bar is greater than the ordinate value of preset Y in interface.
Specifically, record menu bar from first state be converted to the second state when sliding control where coordinate points, It is denoted as preset Y, such as larger than Y ordinate value, which then performs the next step, to be judged to the ordinate value of the sliding control listened to Suddenly, if being less than or equal to the ordinate value of Y, return step S302 continues the changes in coordinates for monitoring menu bar described in interface.
Step S304, judge whether menu bar will enter the second predeterminable area from the first predeterminable area.
Specifically, if judging, menu bar moves in the first predeterminable area, then to enter in the second predeterminable area and stop It only moves or not mobile to the direction for entering the second predeterminable area, then returns to step S202, continue to monitor in interface The change in location of the menu bar;If judging, menu bar is moved from the first predeterminable area to the second predeterminable area direction, and The second predeterminable area will be entered, then execute next step.
Step S305, menu bar is switched to the second state from first state, shows that the first state of preset duration is cut It is changed to the dynamic process of the second state.
Specifically, menu bar will be switched to the second state from first state, can calculate the menu bar under first state first Then the distance between function button calls UIViewAnimation animation, by seat of the function button of menu bar in interface Mark is reset, so that menu bar is changed to the second state, and shows that menu bar is switched to the second shape from first state to user The dynamic process of state.
Step S306, menu bar is fixed on the second predeterminable area with the second state.
Specifically, menu bar is pressed in the second predeterminable area with each function in each menu bar of the second status display Button, menu bar are not hidden, and user can see the function button in menu bar, can when user wants to operate interface The function button in menu bar can be clearly seen, so that operation is more convenient, be able to ascend user experience.
The handoff procedure of the second state is switched to preferably illustrate menu bar from first state, below by figure 4 and Fig. 5 is shown.Fig. 4 is the interface schematic diagram of interface control method provided in an embodiment of the present invention, wherein the left side Figure is interface schematic diagram of the menu bar with first state in interface, intermediate figure be menu bar will from the first predeterminable area to Up to the interface schematic diagram of the second predeterminable area, the figure on the right is that menu bar from first state is switched to the second state, and with second State is fixed on the interface schematic diagram of the second predeterminable area;It should be noted that menu bar first state has two row functions in Fig. 4 Button is only not limited to two rows of function buttons, can there is multiple rows of function button, function is pressed in figure by taking two rows of function buttons as an example The number of button is also not necessarily limited to number shown in figure.
Fig. 5 is the interface schematic diagram of another embodiment of interface control method provided in an embodiment of the present invention, wherein the left side Figure be interface schematic diagram of the menu bar with first state in interface, intermediate figure is that menu bar will be from the first predeterminable area Reach the interface schematic diagram of the second predeterminable area, the figure on the right is that menu bar from first state is switched to the second state, and with Two-state is fixed on the interface schematic diagram of the second predeterminable area;Menu bar first state has two rows of function buttons in Fig. 5, in figure only Only by taking two rows of function buttons as an example, two rows of function buttons are not limited to, there can be multiple rows of function button, the number of function button is not yet It is limited to number shown in figure.
Implement the embodiment of the present invention, the control instruction of input is obtained by the input instruction got, according to the control It is moved in interface on CMD control menu column;Monitor the moving condition of menu bar described in interface;According to the mobile shape The menu bar state is switched to the second state from first state by state;Wherein, the menu bar state includes the menu bar The position at place interface and the menu bar pattern.So that menu bar has different states in different predeterminable areas, it is same Menu bar can use in the case where needing menu bar in the different zones at interface in different places in interface, not need Creation covers menu bar, can use the same menu bar, can save the memory headroom of interface display space and equipment.Into One step, user can see the dynamic process that menu bar state is switched to the second state from first state, improve user's body It tests.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention is also corresponding to provide a kind of interface control Device processed is described in detail with reference to the accompanying drawing:
The structural schematic diagram of interface control device provided in an embodiment of the present invention as illustrated in FIG. 6, interface control device 60 may include: to obtain module 600, monitor module 602, switching module 604, wherein
The control instruction that module 600 is used to obtain input is obtained, menu bar is controlled in interface according to the control instruction It is moved;
Monitor the moving condition that module 602 is used to monitor menu bar described in interface;
Switching module 604 is used to that the menu bar state to be switched to second from first state according to the moving condition State;Wherein, the menu bar state includes the position at interface and the menu bar pattern where the menu bar.
In a wherein embodiment, monitoring module 602 can be used for monitoring the mobile shape of menu bar described in interface State, the moving condition include the shift position of the menu bar;According to the moving condition, by the menu bar state from One state is switched to the second state, comprising: is moved to from the first predeterminable area at the position interface for listening to the menu bar In the case where two predeterminable areas, the menu bar state is switched to the second state from first state.
In a wherein embodiment, the control for the sliding that module 602 can be used for create is monitored UIScrollView is placed on inside the view controller of current interface, and menu bar is then added to sliding control In UIScrollView, then pass through acting on behalf of inside UIScrollViewDelegate for the control UIScrollView of sliding Proxy Method-(void) scrollViewDidScroll:(UIScrollView*) scrollView, this method monitors cunning The change in location of dynamic control makes menu bar exist to listen to the change in location of menu bar by the change in location of menu bar Different predeterminable areas show different states.
A kind of structural representation of another embodiment of interface control device provided in an embodiment of the present invention as shown in Figure 7 Figure, interface control device 60 include obtain module 600, monitor module 602, can also include judgment module outside switching module 604 606, wherein
Judgment module 606 is for judging whether the position of menu bar changes, and judges whether menu bar will be from the One predeterminable area enters the second predeterminable area.
In a wherein embodiment, judgment module 606 can be used for judging whether the coordinate of menu bar is greater than interface The coordinate of middle preset Y, and judge whether menu bar will enter the second predeterminable area from the first predeterminable area.
It should be noted that the interface control device 60 in the embodiment of the present invention is boundary of the above-mentioned Fig. 1 into Fig. 5 embodiment Face control device, the function of each module can be corresponded to reference to Fig. 1 to Fig. 5 in above-mentioned each method embodiment in the interface control device 60 The specific implementation of embodiment, which is not described herein again.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention is also corresponding to provide a kind of interface control Control equipment is described in detail with reference to the accompanying drawing:
The structural schematic diagram of interface control device provided in an embodiment of the present invention as shown in Figure 8, interface control device 80 It may include processor 801, display screen 802, memory 803 and communication module 804, processor 801, display screen 802, memory 803 and communication module 804 can be connected with each other by bus 805.Memory 803 can be high speed random access memory (Random Access Memory, RAM) memory, is also possible to non-volatile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 803 optionally can also be that at least one is located remotely from aforementioned place Manage the storage system of device 801.Memory 803 may include operating system, network communication mould for storing application code Block, Subscriber Interface Module SIM and page video reproduction program, communication module 804 is used to carry out information with external equipment and data are handed over Mutually, control instruction is obtained;Processor 801 is configured for calling the program code, executes following steps:
The Interface Control instruction that the user that display screen 802 will acquire issues is sent to processor 801;
Processor 801 obtains the control instruction of input, controls menu bar according to the control instruction and is moved in interface It is dynamic;Monitor the moving condition of menu bar described in interface;According to the moving condition, by the menu bar state from first state It is switched to the second state;Wherein, the menu bar state includes the position at interface and the menu bar sample where the menu bar Formula.
The moving condition at interface and switching state are sent display screen 802 by processor 801, and user can pass through display screen The moving condition and switching state at 802 interfaces.
It should be noted that the interface control device 80 in the embodiment of the present invention is boundary of the above-mentioned Fig. 1 into Fig. 5 embodiment Face controls equipment, can specifically correspond to the specific implementation with reference to Fig. 1 in above-mentioned each method embodiment to Fig. 5 embodiment, here It repeats no more.The above-mentioned structure for road interface control device 80 is only an example provided in an embodiment of the present invention, also, boundary Face control equipment 80 can have components more more or fewer than the component shown, can combine two or more components, or There can be the different configurations of component to realize.
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 (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of interface control method characterized by comprising
The control instruction for obtaining input controls menu bar according to the control instruction and is moved in interface;
Monitor the moving condition of menu bar described in interface;
According to the moving condition, the menu bar state is switched to the second state from first state;Wherein, the menu bar State includes the position at interface and the menu bar pattern where the menu bar.
2. the method according to claim 1, wherein the moving condition includes the mobile position of the menu bar It sets;
According to the moving condition, the menu bar state is switched to the second state from first state, comprising:
In the case where the position for listening to the menu bar is moved to the first predeterminable area of interface, by the menu bar state from First state is switched to the second state.
3. the method according to claim 1, wherein described be switched to the menu bar state from first state Second state includes:
Show that the menu bar state is switched to from first state the dynamic process of the second state with preset duration.
4. according to the method described in claim 3, it is characterized in that, described show the menu bar state from the with preset duration One state is switched to after the dynamic process of the second state, further includes:
The menu bar is fixed on second predeterminable area at the interface with second state.
5. according to the method described in claim 4, it is characterized in that, second predeterminable area the interface top.
6. according to the method described in claim 4, it is characterized in that, the geometric center of the menu bar arrives under second state The distance at the center at the interface is less than preset threshold.
7. method according to claim 1-6, which is characterized in that the menu bar includes multiple function buttons, The menu bar pattern includes the size of the distance between the multiple function button and the multiple function button;It is described The menu bar pattern of first state is different from the menu bar pattern of second state.
8. a kind of interface control device, which is characterized in that including for executing the method according to claim 1 to 7 Unit.
9. a kind of interface control device, which is characterized in that including processor, input equipment, output equipment and memory, the place It manages device, input equipment, output equipment and memory to be connected with each other, wherein the memory is for storing application code, institute It states processor to be configured for calling said program code, executes the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-7.
CN201811212778.3A 2018-10-18 2018-10-18 A kind of interface control method, relevant apparatus and equipment Pending CN109542291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811212778.3A CN109542291A (en) 2018-10-18 2018-10-18 A kind of interface control method, relevant apparatus and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811212778.3A CN109542291A (en) 2018-10-18 2018-10-18 A kind of interface control method, relevant apparatus and equipment

Publications (1)

Publication Number Publication Date
CN109542291A true CN109542291A (en) 2019-03-29

Family

ID=65844012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811212778.3A Pending CN109542291A (en) 2018-10-18 2018-10-18 A kind of interface control method, relevant apparatus and equipment

Country Status (1)

Country Link
CN (1) CN109542291A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100085304A1 (en) * 2008-10-08 2010-04-08 Research In Motion Limited Modifying the appearance of a movable position-marker on a display screen of a handheld electronic communication device
CN103324403A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Page switching method and device as well as mobile terminal
CN105657163A (en) * 2015-12-29 2016-06-08 惠州Tcl移动通信有限公司 Mobile terminal and function key position dynamic setting method thereof
CN106293315A (en) * 2015-06-03 2017-01-04 腾讯科技(深圳)有限公司 The method and apparatus that floating frame shows
CN106445972A (en) * 2015-08-11 2017-02-22 阿里巴巴集团控股有限公司 Page display method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100085304A1 (en) * 2008-10-08 2010-04-08 Research In Motion Limited Modifying the appearance of a movable position-marker on a display screen of a handheld electronic communication device
CN103324403A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Page switching method and device as well as mobile terminal
CN106293315A (en) * 2015-06-03 2017-01-04 腾讯科技(深圳)有限公司 The method and apparatus that floating frame shows
CN106445972A (en) * 2015-08-11 2017-02-22 阿里巴巴集团控股有限公司 Page display method and apparatus
CN105657163A (en) * 2015-12-29 2016-06-08 惠州Tcl移动通信有限公司 Mobile terminal and function key position dynamic setting method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
壹兒壹: "Winform工具栏ToolStrip和状态栏StatusStrip", 《HTTPS://WWW.CNBLOGS.COM/YIERYI/P/4602765.HTML》 *

Similar Documents

Publication Publication Date Title
CN105354029B (en) Application control method and device
CN104423789B (en) A kind of information processing method and electronic equipment
CN106201219B (en) The quick call method of function of application and system
CN105278799B (en) Interface switching method and device
EP2908231A1 (en) Object suspension realizing method and device
CN108614722A (en) Application program preloads method, apparatus, storage medium and terminal
CN102939578A (en) A method, a device and a system for receiving user input
CN104360798A (en) Method and terminal for desktop arrangement
CN108525303A (en) Object control method and apparatus in interactive application
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN107992263A (en) A kind of information sharing method and mobile terminal
CN112148181B (en) Menu display method and device, electronic equipment and storage medium
CN107096230B (en) message display processing method and device
CN103399640A (en) Method and device for controlling according to user gesture and client
CN102508609A (en) Method for controlling displaying and hiding of computer application program window
CN103034396A (en) Method and device for moving icon to Android system desktop
CN111831190B (en) Music application program control method and device and electronic equipment
CN108694012A (en) The method and system of object is shown on the screen
CN106708533A (en) Method for switching application programs and mobile terminal
CN110251941B (en) Game picture self-adaption method and device, electronic equipment and storage medium
CN108647056A (en) Application program preloads method, apparatus, storage medium and terminal
CN110007800A (en) A kind of control method, device, equipment and the storage medium of touch operation mode
CN108475172A (en) Information display method and device and terminal equipment
CN103809856A (en) Information processing method and first electronic device
CN108614661B (en) Interactive object display control method based on intelligent terminal and intelligent terminal

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

Application publication date: 20190329