CN108345480B - Page switching management method and device and mobile terminal - Google Patents

Page switching management method and device and mobile terminal Download PDF

Info

Publication number
CN108345480B
CN108345480B CN201710050012.9A CN201710050012A CN108345480B CN 108345480 B CN108345480 B CN 108345480B CN 201710050012 A CN201710050012 A CN 201710050012A CN 108345480 B CN108345480 B CN 108345480B
Authority
CN
China
Prior art keywords
page
navigation bar
navigation
stacked
view
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710050012.9A
Other languages
Chinese (zh)
Other versions
CN108345480A (en
Inventor
朱孝瑾
郑雪娇
霍坤
黄鑫
文永军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710050012.9A priority Critical patent/CN108345480B/en
Publication of CN108345480A publication Critical patent/CN108345480A/en
Application granted granted Critical
Publication of CN108345480B publication Critical patent/CN108345480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a page switching management method, a page switching management device and a mobile terminal, and relates to the field of computers. When the page is switched, a top navigation bar view is created for the page to be stacked, the top navigation bar view of the currently displayed page is hidden, the top navigation bar view of the page to be stacked is displayed, and the page to be stacked is pressed down into the navigation stack, so that the page to be stacked becomes the currently displayed page. According to the invention, the top navigation bar is customized, so that the style of the navigation bar meets the requirement of designing products, and the navigation bar is easy to expand and reuse. The top navigation bar is customized in a user-defined mode instead of modifying the style of the system navigation bar or adding user-defined system navigation bar items, so that the top navigation bar is customized individually, and the modification of the top navigation bar is more convenient and flexible.

Description

Page switching management method and device and mobile terminal
Technical Field
The present invention relates to the field of computers, and in particular, to a page switching management method, an apparatus and a mobile terminal.
Background
With the development of mobile internet, more and more users use mobile terminal applications instead of PC (Personal Computer) side applications. In such a relatively small display space of a mobile terminal, it is necessary to effectively navigate the display contents.
An operating system such as iOS provides a self-contained navigation bar control to help developers navigate the displayed content, this navigation bar control is mainly displayed as a fixed-size navigation bar on top of the page and controls the upper and lower pages in a stack. The personalized customization of the navigation bar is mainly realized by rewriting the style of the navigation bar and adding button items of the navigation bar.
The specific technical scheme is as follows:
1. after the system is started, taking a page (generally a home page) which is firstly required to be displayed by an application as a root view of a navigation bar;
2. setting the appearance of a navigation bar: if the navigation bar of the whole application uses the same style, customizing the navigation bar controller, and uniformly modifying the style during initialization; if a special navigation bar style is used for a certain page, setting the appearance of the navigation bar before the page is to be displayed;
3. setting navigation bar items: navigation bar items needing default display are added in the unified custom navigation bar, and the navigation bar button items are generally created, the button style and operation of the system are set, and the navigation bar button items can also be generated through a custom view. The navigation bar is divided into a left side, a right side and a title part, and the position is fixed by the system;
4. the PUSH (PUSH)/POP (POP) of pages is automatically controlled by the system.
However, the prior art has the following defects:
1. the default generated navigation bar is single in style, and the appearance of the navigation bar needs to be modified and the navigation bar items need to be set in a self-defined navigation bar mode. However, setting the width and height of the navigation bar is troublesome, and modifying the position and size of the customized navigation bar item is also difficult. The requirements of products and designs are difficult to meet;
2. the customized view is converted into the view behind the button item of the navigation bar by the system method, and the adjustment is difficult, and the adding operation is troublesome;
3. the navigation bar is provided to provide fade-in/fade-out animation effects by default, and the animation effects are complicated to customize and are prone to generate many problems.
Disclosure of Invention
The embodiment of the invention provides a page switching management method, a page switching management device and a mobile terminal, and aims to overcome at least one defect in the prior art. According to the invention, the top navigation bar is customized, so that the style of the navigation bar meets the requirement of designing products, and the navigation bar is easy to expand and reuse. The top navigation bar is customized in a user-defined mode instead of modifying the style of the system navigation bar or adding user-defined system navigation bar items, so that the top navigation bar is customized individually, and the modification of the top navigation bar is more convenient and flexible.
According to an aspect of the present invention, there is provided a page switching management method, including:
when the page is switched, a top navigation bar view is created for the page to be stacked;
hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be stacked;
and pressing the page to be pushed to the navigation stack so as to enable the page to be pushed to be the current display page.
In one embodiment, whether a page to be pushed is a page of a preset type is judged;
if the page to be pushed is the page of the preset type, further judging whether the page to be pushed is pressed to the navigation stack;
if the page to be pushed is not pressed to the navigation stack, a step of creating a top navigation bar view for the page to be pushed is executed;
and if the page to be pushed is pressed down to the navigation stack, canceling the pushing operation of the page to be pushed.
In one embodiment, if the page to be pushed is not the page of the preset type, further judging whether the page to be pushed is the current display page;
if the page to be pushed is not the current display page, executing a step of creating a top navigation bar view for the page to be pushed;
and if the page to be pushed is the current display page, canceling the pushing operation of the page to be pushed after updating the current display page.
In one embodiment, if the page to be stacked is not the currently displayed page, the step of creating a top navigation bar view for the page to be stacked includes:
if the page to be pushed is not the current display page, further judging whether the page to be pushed is included in the navigation stack;
if the page to be stacked is included in the navigation stack, removing the page to be stacked from the navigation stack, and then executing a step of creating a top navigation bar view for the page to be stacked;
and if the page to be stacked is not included in the navigation stack, directly executing the step of creating a top navigation bar view for the page to be stacked.
In one embodiment, when a page is jumped, a page to be jumped is obtained;
hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be jumped;
and performing pop operation on the navigation stack so as to enable the page to be jumped to be the current display page.
In one embodiment, the obtaining of the page to be jumped includes:
and if the user clicks a return navigation button in the top navigation bar view of the current display page, taking the front page of the current display page as the page to be jumped.
In one embodiment, if the user directly selects a return page in the navigation stack, the selected return page is taken as the page to be jumped.
In one embodiment, when the top navigation bar view is created for the page to be stacked, the corresponding display style, title item and navigation button are set for the top navigation bar view of the page to be stacked.
In one embodiment, if the navigation stack has a leading page of the page to be pushed, the top navigation bar view of the page to be pushed includes a return navigation button.
In one embodiment, the display style includes an animation style presented by the top navigation bar view when the top navigation bar view is hidden and displayed, so that the top navigation bar view is hidden and displayed according to the set animation style.
In one embodiment, after setting a corresponding display style, a title item and a navigation button for a top navigation bar view of a page to be stacked, the method further includes:
detecting the display item assignment of the title item and the navigation button;
if the display item of the title item and/or the display item of the navigation button are assigned to the preset value, corresponding position calculation is carried out, and therefore the position of the title item and/or the navigation button in the top navigation bar view is determined.
In one embodiment, the navigation buttons further comprise a foldable navigation bar button;
when a user clicks a button of the folding navigation bar, a pull-down navigation bar view is created, the position and the size of the pull-down navigation bar view and the size of the button in the pull-down navigation bar view are determined, and the pull-down navigation bar view is displayed in a preset animation mode;
and when the user clicks any position of the currently displayed page, the pull-down navigation bar view is folded in a preset animation mode so as to realize the folding of the pull-down navigation bar view.
According to another aspect of the present invention, there is provided a page switching management apparatus, including a navigation bar control module, a view switching module, and a switching processing module, wherein:
the navigation bar control module is used for creating a top navigation bar view for the page to be stacked when the page is switched;
the view switching module is used for hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be stacked;
and the switching processing module is used for pressing the page to be stacked into the navigation stack so as to enable the page to be stacked to be the current display page.
In one embodiment, the navigation bar control module specifically determines whether the page to be stacked is a predetermined type page, further determines whether the page to be stacked is pressed down to the navigation stack if the page to be stacked is the predetermined type page, and executes an operation of creating a top navigation bar view for the page to be stacked if the page to be stacked is not pressed down to the navigation stack; and if the page to be pushed is pressed down to the navigation stack, canceling the pushing operation of the page to be pushed.
In one embodiment, the navigation bar control module is further configured to further determine whether the page to be stacked is a current display page when the page to be stacked is not a predetermined type of page, and if the page to be stacked is not the current display page, perform an operation of creating a top navigation bar view for the page to be stacked; and if the page to be pushed is the current display page, canceling the pushing operation of the page to be pushed after updating the current display page.
In one embodiment, the navigation bar control module is further configured to, when the page to be stacked is not the currently displayed page, further determine whether the page to be stacked is included in the navigation stack, and if the page to be stacked is included in the navigation stack, remove the page to be stacked from the navigation stack, and then perform an operation of creating a top navigation bar view for the page to be stacked; and if the page to be stacked is not included in the navigation stack, directly executing the operation of creating the top navigation bar view for the page to be stacked.
In one embodiment, the navigation bar control module is further configured to acquire a page to be jumped when the page is jumped;
the view switching module is also used for hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be jumped;
the switching processing module is also used for performing pop operation on the navigation stack so as to enable the page to be jumped to be the current display page.
In one embodiment, when the navigation bar control module specifically acquires a page to be jumped, if a user clicks a return navigation button in a top navigation bar view of a currently displayed page, a front page of the currently displayed page is taken as the page to be jumped.
In one embodiment, the navigation bar control module is further configured to take the selected return page as the page to be jumped if the user directly selects the return page in the navigation stack.
In one embodiment, the apparatus further comprises a top navigation bar module, wherein:
and the top navigation bar module is used for setting a corresponding display style, a title item and a navigation button for the top navigation bar view of the page to be stacked when the navigation bar control module creates the top navigation bar view for the page to be stacked.
In one embodiment, if the navigation stack has a leading page of the page to be pushed, the top navigation bar view of the page to be pushed includes a return navigation button.
In one embodiment, the display style includes an animation style presented by the top navigation bar view when the top navigation bar view is hidden and displayed, so that the top navigation bar view is hidden and displayed according to the set animation style.
In an embodiment, the top navigation bar module is further configured to, after setting a corresponding display style, a title item, and a navigation button for the top navigation bar view of the page to be stacked, detect assignments of the title item and the display item of the navigation button, and perform corresponding position calculation if the assignments of the title item and/or the display item of the navigation button are a predetermined value, thereby determining a position of the title item and/or the navigation button in the top navigation bar view.
In one embodiment, the navigation buttons further comprise a foldable navigation bar button;
the top navigation bar module is also used for creating a pull-down navigation bar view when a user clicks a button of the folding navigation bar, determining the position and the size of the pull-down navigation bar view and the size of the button in the pull-down navigation bar view, and displaying the pull-down navigation bar view in a preset animation mode; and when the user clicks any position of the currently displayed page, the pull-down navigation bar view is folded in a preset animation mode so as to realize the folding of the pull-down navigation bar view.
According to another aspect of the present invention, there is provided a page switch management apparatus, comprising a memory and a processor, wherein:
a memory to store instructions;
a processor coupled to the memory, the processor configured to perform a method according to any of the embodiments described above based on instructions stored in the memory.
According to another aspect of the present invention, there is provided a mobile terminal including the page switch management apparatus according to any of the above embodiments.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a page switch management method according to an embodiment of the present invention.
FIG. 2 is a diagram of one embodiment of a top of page navigation bar view.
FIG. 3 is a diagram of another embodiment of a top of page navigation bar view.
FIG. 4 is a diagram illustrating page push management according to an embodiment of the present invention.
FIG. 5 is a diagram illustrating page pop management according to an embodiment of the present invention.
FIG. 6 is a diagram of yet another embodiment of a top of page navigation bar view.
FIG. 7 is a diagram of yet another embodiment of a top of page navigation bar view.
FIG. 8 is a diagram illustrating an embodiment of a page switch management apparatus according to the present invention.
FIG. 9 is a diagram illustrating another embodiment of a page switch management apparatus according to the present invention.
FIG. 10 is a diagram illustrating a page switch management apparatus according to another embodiment of the present invention.
Fig. 11 is a diagram illustrating an embodiment of a mobile terminal according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a schematic diagram of a page switch management method according to an embodiment of the present invention. Optionally, the method steps of this embodiment may be executed by the page switching management apparatus. Wherein:
step 101, when the page is switched, a top navigation bar view is created for the page to be stacked.
When the top navigation bar view is created for the page to be stacked, the corresponding display style, title item and navigation button can be set for the top navigation bar view of the page to be stacked.
Optionally, if the navigation stack has a leading page of the page to be stacked, the top navigation bar view of the page to be stacked includes a return navigation button. So that the user can conveniently return to the corresponding front page by clicking the return navigation button.
For example, fig. 2 is a schematic view of the kyoto first page. As can be seen from the figure, since the front page is not the front page, the return navigation button is not provided in the top navigation bar. When the user clicks to enter the corresponding active page, as shown in fig. 3, the home page is the front page of the active page, and the return navigation button appears on the left side of the top navigation bar view of the active page.
And 102, hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be stacked.
The display style can include an animation style presented when the top navigation bar view is hidden and displayed, so that the top navigation bar view is hidden and displayed according to the set animation style.
And 103, pressing the page to be stacked into the navigation stack so as to enable the page to be stacked to be a current display page.
Based on the page switching management method provided by the embodiment of the invention, the style of the navigation bar meets the requirement of designing products and is easy to expand and reuse by customizing the top navigation bar. The top navigation bar is customized in a user-defined mode instead of modifying the style of the system navigation bar or adding user-defined system navigation bar items, so that the top navigation bar is customized individually, and the modification of the top navigation bar is more convenient and flexible.
In the present invention, pages can be classified into the following four types due to business needs.
A) General display types: normally performing a POP/PUSH page and defaulting the type;
B) the only type: a single instance page, such as a shopping cart, that is, when going from shopping cart PUSH to other pages and then from other pages PUSH to shopping cart pages, the shopping cart pages in the stack are always the same page and will move from the stack to the top;
C) the stack top is of the only type: the stack top unique page, such as a classification page, a browsing history page and a logistics history page, is similar to a common page, and has the unique difference that when the page is the stack top page, the page is refreshed;
D) the type of the stack top is as follows: the top page, such as the checkout page, can only appear at the top of the stack and will not be stored in the stack, i.e., after going from the checkout page PUSH to other pages, it will not be popped back again.
FIG. 4 is a diagram illustrating page push management according to an embodiment of the present invention. When the page is pushed, corresponding processing is carried out according to the page type.
Step 401, determining whether the page to be pushed is a predetermined type page. For example, the predetermined type of page may be the default type of page described above.
If the page to be pushed is a page of a predetermined type, executing step 402; if the page to be pushed is not the predetermined type page, step 403 is executed.
Step 402, further determine whether the page to be pushed has been pushed to the navigation stack. If the page to be pushed is pressed down to the navigation stack, the pushing operation of the page to be pushed is cancelled; if the page to be pushed is not pushed to the navigation stack, step 406 is performed.
Step 403, further determining whether the page to be pushed is the current display page. If the page to be pushed is not the current display page, executing step 405; if the page to be pushed is the current display page, step 404 is executed.
And step 404, canceling the stacking operation of the page to be stacked after the current display page is updated.
Step 405, determine whether the page to be pushed is included in the navigation stack. And if the page to be pushed is included in the navigation stack, removing the page to be pushed from the navigation stack. Thereby avoiding multiple instances at the same time.
Step 406, a top navigation bar view is created for the page to be pushed.
Step 407, if the page to be stacked has a front page, a return navigation button is created in the top navigation bar view.
Step 408, hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be stacked.
And step 409, pressing the page to be stacked into the navigation stack so as to enable the page to be stacked to be the current display page.
FIG. 5 is a diagram illustrating page pop management according to an embodiment of the present invention. Wherein:
step 501, when the page is jumped, the page to be jumped is obtained.
And if the user clicks a return navigation button in the top navigation bar view of the current display page, taking the front page of the current display page as the page to be jumped. Namely, the last page in the navigation stack is taken as the page to be jumped. If the number of the pages in the navigation stack is less than 2, the current page cannot be skipped, and the process is ended.
And if the user directly selects the return page in the navigation stack, taking the selected return page as the page to be jumped. That is, the user can directly perform page specification.
Step 502, hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be jumped.
And hiding and displaying the navigation bar according to the set display style.
Step 503, a pop operation is performed on the navigation stack, so that the page to be skipped becomes the current display page.
Optionally, in the above embodiment, after the corresponding display style, the title item, and the navigation button are set for the top navigation bar view of the page to be stacked, the display item assignments of the title item and the navigation button are further detected. If the display items of the title items and/or navigation buttons are assigned a predetermined value (e.g., not empty), a corresponding position calculation is performed to determine the position of the title items and/or navigation buttons in the top navigation bar view.
It should be noted that, in the above embodiment, the navigation button may be defined by the user. As shown in fig. 2, 3, the navigation buttons may include "shopping cart", "my kyoto", and the like.
Optionally, the navigation buttons may further include a foldable navigation bar button. As shown in the upper right hand corner of fig. 6. When a user clicks a button of the folding navigation bar, a pull-down navigation bar view is created, the position and the size of the pull-down navigation bar view and the size of the button in the pull-down navigation bar view are determined, and the pull-down navigation bar view is displayed in a preset animation mode, as shown in fig. 7. And when the user clicks any position of the currently displayed page, the pull-down navigation bar view is folded in a preset animation mode so as to fold the pull-down navigation bar view.
FIG. 8 is a diagram illustrating an embodiment of a page switch management apparatus according to the present invention. As shown in fig. 8, the page switching management means includes a navigation bar control module 801, a view switching module 802, and a switching processing module 803. Wherein:
the navigation bar control module 801 is configured to create a top navigation bar view for a page to be stacked when a page is switched.
The view switching module 802 is configured to hide a top navigation bar view of a currently displayed page and display the top navigation bar view of a page to be stacked.
The switching processing module 803 is configured to push the page to be stacked down to the navigation stack, so that the page to be stacked becomes the current display page.
Based on the page switching management device provided by the embodiment of the invention, the style of the navigation bar meets the requirement of designing products and is easy to expand and reuse by customizing the top navigation bar. The top navigation bar is customized in a user-defined mode instead of modifying the style of the system navigation bar or adding user-defined system navigation bar items, so that the top navigation bar is customized individually, and the modification of the top navigation bar is more convenient and flexible.
As described above, since the page types can be distinguished according to needs, the navigation bar control module 801 needs to perform corresponding processing according to the type of the page to be pushed when performing page pushing operation.
For example, the navigation bar control module 801 specifically determines whether the page to be stacked is a predetermined type page, further determines whether the page to be stacked is pressed to the navigation stack if the page to be stacked is the predetermined type page, and executes an operation of creating a top navigation bar view for the page to be stacked if the page to be stacked is not pressed to the navigation stack; and if the page to be pushed is pressed down to the navigation stack, canceling the pushing operation of the page to be pushed.
On the other hand, when the page to be pushed is not the predetermined type of page, the navigation bar control module 801 further determines whether the page to be pushed is the current display page, and if the page to be pushed is not the current display page, executes an operation of creating a top navigation bar view for the page to be pushed; and if the page to be pushed is the current display page, canceling the pushing operation of the page to be pushed after updating the current display page.
The navigation bar control module 801 is further configured to, when the page to be stacked is not the currently displayed page, further determine whether the page to be stacked is included in the navigation stack, and if the page to be stacked is included in the navigation stack, remove the page to be stacked from the navigation stack, and then perform an operation of creating a top navigation bar view for the page to be stacked; and if the page to be stacked is not included in the navigation stack, directly executing the operation of creating the top navigation bar view for the page to be stacked.
In addition, the navigation bar control module 801 is further configured to obtain a page to be skipped when the page is skipped.
Optionally, when the navigation bar control module 801 obtains the page to be skipped, if the user clicks the return navigation button in the top navigation bar view of the currently displayed page, the front page of the currently displayed page is used as the page to be skipped.
Alternatively, the navigation bar control module 801 is further configured to, in a case where the user directly selects a return page in the navigation stack, take the selected return page as a page to be jumped.
The view switching module 802 is further configured to hide a top navigation bar view of the currently displayed page and display the top navigation bar view of the page to be jumped.
The switching processing module 803 is further configured to perform a pop operation on the navigation stack, so that the page to be skipped becomes the current display page.
FIG. 9 is a diagram illustrating another embodiment of a page switch management apparatus according to the present invention. In contrast to the embodiment shown in fig. 8, in the embodiment shown in fig. 9, in addition to the navigation bar control module 901, the view switching module 902, and the switching processing module 903, a top navigation bar module 904 is further included, where:
the top navigation bar module 904 is configured to set a corresponding display style, a title item, and a navigation button for the top navigation bar view of the page to be stacked when the navigation bar control module creates the top navigation bar view for the page to be stacked.
When the page is pushed, if the navigation stack has a front page of the page to be pushed, the top navigation bar view of the page to be pushed comprises a return navigation button.
Optionally, the display style includes an animation style presented by the top navigation bar view when the top navigation bar view is hidden and displayed, so that the top navigation bar view is hidden and displayed according to the set animation style.
Optionally, the top navigation bar module 904 is further configured to, after setting a corresponding display style, a title item, and a navigation button for the top navigation bar view of the page to be stacked, detect assignment of the title item and the display item of the navigation button, and if the assignment of the title item and/or the display item of the navigation button is a predetermined value, perform corresponding position calculation, thereby determining a position of the title item and/or the navigation button in the top navigation bar view.
Optionally, the navigation buttons may further include a foldable navigation bar button.
Correspondingly, the top navigation bar module 904 is further configured to create a pull-down navigation bar view when the user clicks the button of the foldable navigation bar, determine the position and size of the pull-down navigation bar view and the size of the button in the pull-down navigation bar view, and display the pull-down navigation bar view in a predetermined animation style; and when the user clicks any position of the currently displayed page, the pull-down navigation bar view is folded in a preset animation mode so as to realize the folding of the pull-down navigation bar view.
FIG. 10 is a diagram illustrating a page switch management apparatus according to another embodiment of the present invention. As shown in fig. 10, the page switch management apparatus includes a memory 1001 and a processor 1002, wherein:
a memory 1001 is used to store instructions and a processor 1002 is coupled to the memory 1001. The processor 1002 is configured to perform a method according to any one of the embodiments of fig. 1, 4, and 5, based on the instructions stored in the memory.
As shown in fig. 10, the page switch management apparatus further includes a communication interface 1003 for performing information interaction with other devices. Meanwhile, the device also comprises a bus 1004, and the processor 1002, the communication interface 1003 and the memory 1001 are communicated with each other through the bus 1004.
Memory 1001 may include high-speed RAM memory and may also include non-volatile memory (e.g., at least one disk memory). The memory 1001 may also be a memory array. The storage 1001 may also be partitioned and the blocks may be combined into virtual volumes according to certain rules.
Further, the processor 1002 may be a central processing unit CPU, or may be an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
Fig. 11 is a diagram illustrating an embodiment of a mobile terminal according to the present invention. As shown in fig. 11, the mobile terminal 1101 includes a page switch management device 1102. The page switch managing device 1102 is the page switch managing device according to any one of the embodiments of fig. 8 to 10.
The invention is applicable to the iOS operating system and other visual operating systems which can run on the mobile terminal.
By implementing the invention, the size, the position and the style of the top navigation bar can be conveniently modified, the self-defined setting of the navigation bar can be as easy as a common view, and the requirements of products and design can be better met.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (25)

1. A page switching management method is characterized by comprising the following steps:
when the page is switched, a top navigation bar view is created for the page to be stacked, wherein when the top navigation bar view is created for the page to be stacked, a corresponding display style, a title item and a navigation button are set for the top navigation bar view of the page to be stacked;
hiding a top navigation bar view of a current display page and displaying the top navigation bar view of the page to be stacked;
and pressing the page to be stacked into a navigation stack so as to enable the page to be stacked to be a current display page.
2. The method of claim 1, further comprising:
judging whether the page to be pushed is a preset type page or not;
if the page to be pushed is the page of the preset type, further judging whether the page to be pushed is pushed to a navigation stack;
if the page to be pushed is not pressed to the navigation stack, executing a step of creating a top navigation bar view for the page to be pushed;
and if the page to be pushed is pressed down to the navigation stack, canceling the pushing operation of the page to be pushed.
3. The method of claim 2, further comprising:
if the page to be pushed is not the page of the preset type, further judging whether the page to be pushed is the current display page;
if the page to be pushed is not the current display page, executing a step of creating a top navigation bar view for the page to be pushed;
and if the page to be pushed is the current display page, canceling the pushing operation of the page to be pushed after the current display page is updated.
4. The method of claim 3, further comprising:
if the page to be pushed is not the current display page, the step of establishing a top navigation bar view for the page to be pushed comprises the following steps:
if the page to be pushed is not the current display page, further judging whether the page to be pushed is included in the navigation stack;
if the page to be stacked is included in the navigation stack, removing the page to be stacked from the navigation stack, and then executing a step of creating a top navigation bar view for the page to be stacked;
and if the page to be stacked is not included in the navigation stack, directly executing the step of creating a top navigation bar view for the page to be stacked.
5. The method of claim 1, further comprising:
when the page is jumped, acquiring a page to be jumped;
hiding a top navigation bar view of a current display page and displaying the top navigation bar view of the page to be jumped;
and performing pop operation on the navigation stack so as to enable the page to be jumped to be the current display page.
6. The method of claim 5,
the step of acquiring the page to be jumped comprises the following steps:
and if the user clicks a return navigation button in the top navigation bar view of the current display page, taking the front page of the current display page as the page to be jumped.
7. The method of claim 6,
and if the user directly selects the return page in the navigation stack, taking the selected return page as the page to be jumped.
8. The method according to any one of claims 1-7, further comprising:
and if the navigation stack has the front page of the page to be pushed, the top navigation bar view of the page to be pushed comprises a return navigation button.
9. The method according to any one of claims 1-7, further comprising:
the display style comprises an animation style presented when the top navigation bar view is hidden and displayed, so that the top navigation bar view is hidden and displayed according to the set animation style.
10. The method according to any one of claims 1 to 7,
after setting corresponding display style, title item and navigation button for the top navigation bar view of the page to be pushed, the method further comprises the following steps:
detecting the display item assignment of the title item and the navigation button;
and if the display item of the title item and/or the display item of the navigation button are/is assigned to a preset value, corresponding position calculation is carried out, so that the position of the title item and/or the navigation button in the top navigation bar view is determined.
11. The method according to any one of claims 1 to 7,
the navigation buttons also comprise a folding navigation bar button;
when a user clicks a button of the folding navigation bar, a pull-down navigation bar view is created, the position and the size of the pull-down navigation bar view and the size of the button in the pull-down navigation bar view are determined, and the pull-down navigation bar view is displayed in a preset animation mode;
and when the user clicks any position of the currently displayed page, the pull-down navigation bar view is folded in a preset animation mode so as to realize the folding of the pull-down navigation bar view.
12. The utility model provides a page switches management device which characterized in that, includes navigation bar control module, top navigation bar module, view switching module and switches processing module, wherein:
the navigation bar control module is used for creating a top navigation bar view for the page to be stacked when the page is switched;
the top navigation bar module is used for setting a corresponding display style, a title item and a navigation button for the top navigation bar view of the page to be stacked when the navigation bar control module creates the top navigation bar view for the page to be stacked;
the view switching module is used for hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be stacked;
and the switching processing module is used for pressing the page to be stacked into the navigation stack so as to enable the page to be stacked to be the current display page.
13. The apparatus of claim 12,
the navigation bar control module specifically judges whether the page to be stacked is a preset type page, if so, further judges whether the page to be stacked is pressed to a navigation stack, and if not, executes an operation of creating a top navigation bar view for the page to be stacked; and if the page to be pushed is pressed down to the navigation stack, canceling the pushing operation of the page to be pushed.
14. The apparatus of claim 13, further comprising:
the navigation bar control module is also used for further judging whether the page to be stacked is a current display page or not under the condition that the page to be stacked is not a preset type page, and if the page to be stacked is not the current display page, executing the operation of creating a top navigation bar view for the page to be stacked; and if the page to be pushed is the current display page, canceling the pushing operation of the page to be pushed after the current display page is updated.
15. The apparatus of claim 14,
the navigation bar control module is further used for further judging whether the page to be stacked is included in the navigation stack or not under the condition that the page to be stacked is not the current display page, if the page to be stacked is included in the navigation stack, removing the page to be stacked from the navigation stack, and then executing the operation of creating a top navigation bar view for the page to be stacked; and if the page to be stacked is not included in the navigation stack, directly executing the operation of creating a top navigation bar view for the page to be stacked.
16. The apparatus of claim 12, further comprising:
the navigation bar control module is also used for acquiring a page to be jumped when the page is jumped;
the view switching module is also used for hiding the top navigation bar view of the current display page and displaying the top navigation bar view of the page to be jumped;
and the switching processing module is also used for performing pop operation on the navigation stack so as to enable the page to be jumped to be the current display page.
17. The apparatus of claim 16,
when the navigation bar control module obtains the page to be jumped, if a user clicks a return navigation button in a top navigation bar view of the currently displayed page, the front page of the currently displayed page is used as the page to be jumped.
18. The apparatus of claim 17,
and the navigation bar control module is also used for taking the selected return page as the page to be jumped under the condition that the user directly selects the return page in the navigation stack.
19. The apparatus of any one of claims 12-18, further comprising:
and if the navigation stack has the front page of the page to be pushed, the top navigation bar view of the page to be pushed comprises a return navigation button.
20. The apparatus of any one of claims 12-18, further comprising:
the display style comprises an animation style presented when the top navigation bar view is hidden and displayed, so that the top navigation bar view is hidden and displayed according to the set animation style.
21. The apparatus of any one of claims 12-18,
the top navigation bar module is further used for detecting the assignment of the title item and the display item of the navigation button after setting the corresponding display style, the title item and the navigation button for the top navigation bar view of the page to be stacked, and if the assignment of the title item and/or the display item of the navigation button is a preset value, performing corresponding position calculation, so as to determine the position of the title item and/or the navigation button in the top navigation bar view.
22. The apparatus of any one of claims 12-18,
the navigation buttons also comprise a folding navigation bar button;
the top navigation bar module is also used for creating a pull-down navigation bar view when a user clicks a button of the folding navigation bar, determining the position and the size of the pull-down navigation bar view and the size of the button in the pull-down navigation bar view, and displaying the pull-down navigation bar view in a preset animation mode; and when the user clicks any position of the currently displayed page, the pull-down navigation bar view is folded in a preset animation mode so as to realize the folding of the pull-down navigation bar view.
23. A page switch management apparatus comprising a memory and a processor, wherein:
a memory to store instructions;
a processor coupled to the memory, the processor configured to perform implementing the method of any of claims 1-11 based on instructions stored by the memory.
24. A mobile terminal characterized by comprising the page switch management device according to any of claims 12-23.
25. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions which, when executed by a processor, implement the method of any one of claims 1-11.
CN201710050012.9A 2017-01-23 2017-01-23 Page switching management method and device and mobile terminal Active CN108345480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710050012.9A CN108345480B (en) 2017-01-23 2017-01-23 Page switching management method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710050012.9A CN108345480B (en) 2017-01-23 2017-01-23 Page switching management method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN108345480A CN108345480A (en) 2018-07-31
CN108345480B true CN108345480B (en) 2021-09-03

Family

ID=62974651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710050012.9A Active CN108345480B (en) 2017-01-23 2017-01-23 Page switching management method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN108345480B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968386B (en) * 2018-09-30 2023-05-02 阿里巴巴集团控股有限公司 Navigation bar processing method and system
CN109669749A (en) * 2018-12-13 2019-04-23 广州艾美网络科技有限公司 A method of realizing IOS system Custom Navigation
CN111538574B (en) * 2020-03-27 2024-03-12 北京达佳互联信息技术有限公司 Task stack management method, device, terminal and storage medium
CN111901370A (en) * 2020-05-29 2020-11-06 大数金科网络技术有限公司 Method for customizing iOS navigation bar style based on protocol
CN113867591A (en) * 2021-10-09 2021-12-31 拉扎斯网络科技(上海)有限公司 Control method and device for displaying second floor page, storage medium and electronic equipment
CN113918073A (en) * 2021-10-29 2022-01-11 北京达佳互联信息技术有限公司 Interface processing method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807202A (en) * 2010-02-24 2010-08-18 深圳市五巨科技有限公司 Mobile terminal browser optimization method and mobile terminal browser
CN101833576A (en) * 2010-04-23 2010-09-15 广州联炬科技企业孵化器有限公司 Method for adding web shortcut navigation menu
CN103164104A (en) * 2011-12-15 2013-06-19 腾讯科技(深圳)有限公司 Web page switching method and web page switching device
CN104050171A (en) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 Method, device and system for navigating pages presented on mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856672B2 (en) * 2010-05-11 2014-10-07 Microsoft Corporation Integrated user interface controls for web dialogs
CN104102640A (en) * 2013-04-03 2014-10-15 阿里巴巴集团控股有限公司 Method for displaying head of page and client
CN103678646A (en) * 2013-12-20 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for presenting pages
CN105183475A (en) * 2015-09-08 2015-12-23 北京思特奇信息技术股份有限公司 Method and system for customizing individuality pages of portal website by user himself

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807202A (en) * 2010-02-24 2010-08-18 深圳市五巨科技有限公司 Mobile terminal browser optimization method and mobile terminal browser
CN101833576A (en) * 2010-04-23 2010-09-15 广州联炬科技企业孵化器有限公司 Method for adding web shortcut navigation menu
CN103164104A (en) * 2011-12-15 2013-06-19 腾讯科技(深圳)有限公司 Web page switching method and web page switching device
CN104050171A (en) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 Method, device and system for navigating pages presented on mobile terminal

Also Published As

Publication number Publication date
CN108345480A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN108345480B (en) Page switching management method and device and mobile terminal
CN107992304B (en) Method and device for generating display interface
TWI539357B (en) Compact control menu for touch-enabled command execution
Morris Android user interface development
KR20150079663A (en) Beading board device for a tablet computer and tablet computer program for use with same
KR20140094524A (en) Slicer elements for filtering tabular data
CN111833143A (en) Information classification display method and device
CN110674433B (en) Chart display method, storage medium and electronic equipment
US8745512B2 (en) Method and computer-readable medium for interacting with a portion of an electronic document
CN106406666A (en) A processing method and device for application program icons
CN106502530A (en) A kind of terminal system control group display packing and device
CN107391144B (en) View display method and device
CN103425388A (en) Method and device for operating host window in HTML page
CN107818000B (en) Operation method and device of page table
US10706217B2 (en) Quick access panel for displaying a web page on a mobile device
CN112748917B (en) Graph display method and device
CN110866379B (en) Data Visualization Chart Library System
CN113805886A (en) Page creating method, device and system, computer device and storage medium
JP5957026B2 (en) Input region generation method, generation device, and generation program
CN110928612B (en) Display control method and device of virtual resources and electronic equipment
CN110362249B (en) Control method and device for page jump of writing screen software
KR101750788B1 (en) Method and system for providing story board, and method and system for transmitting and receiving object selected in story board
JP6295552B2 (en) Electronic leaflet image processing apparatus, electronic leaflet image processing method, and program
CN105700862B (en) Graphics and Image Processing and equipment
CN110955473A (en) Method and device for displaying loading prompt information

Legal Events

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