CN112148171B - Interface switching method and device and electronic equipment - Google Patents

Interface switching method and device and electronic equipment Download PDF

Info

Publication number
CN112148171B
CN112148171B CN202011050669.3A CN202011050669A CN112148171B CN 112148171 B CN112148171 B CN 112148171B CN 202011050669 A CN202011050669 A CN 202011050669A CN 112148171 B CN112148171 B CN 112148171B
Authority
CN
China
Prior art keywords
page
target
level
switching
application program
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
CN202011050669.3A
Other languages
Chinese (zh)
Other versions
CN112148171A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011050669.3A priority Critical patent/CN112148171B/en
Publication of CN112148171A publication Critical patent/CN112148171A/en
Application granted granted Critical
Publication of CN112148171B publication Critical patent/CN112148171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The application provides an interface switching method, an interface switching device and electronic equipment, wherein the method comprises the following steps: determining the page level of a first page in an application program and the number of page levels started by the application program; generating and displaying a plurality of operation areas corresponding to the page level number in a preset area of a screen; receiving a first input to a target operation region of the plurality of operation regions; responding to the first input, and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located; at least one page level is included between the page level corresponding to the target page and the page level corresponding to the first page. Therefore, the page switching operation can be effectively simplified, and the page switching efficiency is improved.

Description

Interface switching method and device and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to an interface switching method and apparatus, and an electronic device.
Background
Currently, in the process of performing a specific system navigation operation, such as "switching the upper level of a page", an operation is generally performed by recognizing a sliding gesture of a user at the edge of a screen, or recognizing a touch operation of the user for switching a control. However, when there are a plurality of page levels, since each operation can be switched to the previous page level, the user needs to perform a plurality of switching operations to switch to the page level desired by the user.
It can be seen that, when there are a plurality of page levels, there is a problem that the operation is troublesome when switching to a page level desired by the user.
Disclosure of Invention
The embodiment of the application provides an interface switching method and device and electronic equipment, and can solve the problem that when a plurality of page levels exist, the operation is complex when the page level is switched to the page level desired by a user.
In a first aspect, an embodiment of the present application provides an interface switching method, including:
determining the page level of a first page in an application program and the number of page levels started by the application program;
generating and displaying a plurality of operation areas corresponding to the page level number in a preset area of a screen;
receiving a first input to a target operation region of the plurality of operation regions;
responding to the first input, and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located;
at least one page level is included between the page level corresponding to the target page and the page level corresponding to the first page.
In a second aspect, an embodiment of the present application further provides an interface switching apparatus, including:
the determining module is used for determining the page level of the first page in the application program and the page level number started by the application program;
the display module is used for generating and displaying a plurality of operation areas corresponding to the page hierarchy number in a preset area of a screen;
a receiving module, configured to receive a first input to a target operation region of the plurality of operation regions;
the switching module is used for responding to the first input and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located;
at least one page level is arranged between the page level corresponding to the target page and the page level corresponding to the first page.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the corresponding relation between the operation area and the page level is set, and different operation areas are selected, so that the page where the page level corresponding to the operation area is located can be switched to, and the switching from the first page to the page corresponding to any page level is further realized.
Drawings
Fig. 1 is a flowchart of an interface switching method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a page switch operation according to an embodiment of the present application;
fig. 3 is a structural diagram of an interface switching device according to an embodiment of the present application;
FIG. 4 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The interface switching provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of an interface switching method provided in an embodiment of the present application, where the interface switching method provided in this embodiment may be applied to an electronic device, as shown in fig. 1, and includes the following steps:
step 101, determining the page level of the first page in the application program and the page level number opened by the application program.
In this step, the page level of the first page in the application program may be determined according to the number of operations required from the desktop or the main interface of the application program to the first page.
For example, the main interface of the application program is set to be the first level, and the first page can be switched to only by performing three operations on the basis of the main interface, and then the page level corresponding to the first page can be determined to be the fourth level.
Specifically, a main page of the application program may be defined as page 1, and a page level where page 1 is located may be defined as a first level; the application program is operated, a main interface of the application program is displayed, namely a page 1 is opened, a page 2 is opened on the basis of the page 1, a page 3 is opened on the basis of the page 2, and under the condition that the page displayed on the current interface is the page 3, the page level of the page 3 in the application program can be determined to be a third level, and the page level of the page 2 in the application program can also be determined to be a second level; meanwhile, it can also be determined that the number of page levels opened by the application is 3, that is, the application has 3 page levels opened, that is, a first level corresponding to page 1, a second level corresponding to page 2, and a third level corresponding to page 3.
Correspondingly, the desktop can be defined as page 1, the main page of the application program can be defined as page 2, page 1 can be defined as a first level, and page 2 can be defined as a second level; the application program is operated, a main interface of the application program is displayed, namely a page 2 is opened, a page 3 is opened on the basis of the page 2, a page 4 is opened on the basis of the page 3, and under the condition that the page displayed on the current interface is the page 4, the page level of the page 3 in the application program can be determined to be a fourth level, and the page level of the page 2 in the application program can also be determined to be a third level; meanwhile, the number of page levels opened by the application program can be determined to be 4, that is, the application program is opened with 4 page levels, that is, a first level corresponding to the page 1, a second level corresponding to the page 2, a third level corresponding to the page 3, and a fourth level corresponding to the page 4.
In addition, it should be noted that, on the basis of opening page 1, page 2 is then opened on the basis of page 1, then page 1 is switched from page 2, and then page 3 is opened on the basis of page 1; then, on the basis that page 1 is defined as the first level, it is determined that both page 2 and page 3 are at the second level.
And 102, generating and displaying a plurality of operation areas corresponding to the number of the page levels in a preset area of a screen.
In this step, the preset area of the screen may be a side area of the screen, such as a left side area, a right side area, a bottom side area, and the like, and the determination of the preset area may be set according to a habit of a user. For example, if the user is accustomed to sliding left, the preset area may be defined as the right area of the screen; for another example, if the user is used to slide right, the preset area may be defined as the left area of the screen.
The number of the operation regions of the preset region may correspond to the number of the page levels, that is, as many page levels as there are, as many operation regions as possible are generated, so that different operations may correspond to different page levels and form a one-to-one correspondence relationship. For example, if the number of page levels opened by the application is 4, 4 operation regions are generated in a preset region of the screen, so that each operation region can correspond to one page level.
The operation areas may be distributed in a preset area in a segmented manner or in an array manner, such as a "tian" shape. For example, when the number of page levels opened by the application is 4, the preset area may be equally divided into four operation areas, so that the user may identify the positions of the operation areas. Specifically, for the operation regions which are segmentally distributed on the left side of the screen, the left side region of the screen can be equally divided into four operation regions, and each page level is corresponded from top to bottom, so that the user can identify the operation region corresponding to each page level.
Moreover, the distribution sequence of the multiple operation areas in the preset area may correspond to a sequence of a page hierarchy, for example, if the currently opened page hierarchy of the application includes a first hierarchy, a second hierarchy, and a third hierarchy, a first operation area corresponding to the first hierarchy, a second operation area corresponding to the second hierarchy, and a third operation area corresponding to the third hierarchy may be generated in the preset area, and the first operation area, the second operation area, and the third operation area may be sequentially distributed in the preset area, so that the user selects the corresponding operation area and switches to a page where the page hierarchy corresponding to the selected operation area is located.
In order to facilitate the user to identify the page level corresponding to each operation area, prompt information may be displayed in the operation area to prompt the user about the page level corresponding to the operation area. Specifically, a thumbnail watermark of the corresponding page level may be displayed in the operation area, and the level information of the page level, such as the second level, the third level, and the like, may also be displayed.
In addition, an operation area frame can be displayed in a preset area, that is, the operation area is visualized by setting the operation area, so that a user can identify the number and the position of the operation area, and the color of the frame can be distinguished from the main tone of the current page, so that the user can identify, for example, the main tone of the current page is white, and the color of the frame can be displayed as blue; for another example, if the main color of the current page is red, the color of the frame may be displayed as yellow. Wherein the dominant hue of the current page may be determined by extracting the current display parameters.
Further, in order to conveniently determine the number of the identification operation regions, i.e., the number of the page levels, numbers may be displayed in a preset region. For example, when the number 3 is displayed in the preset area, it indicates that the current application program has 3 page levels, and 3 operation areas are generated in the preset area.
It should be understood that the manner for prompting the user of the number and the position of the operation regions includes, but is not limited to, the above manner, and will not be described herein again.
Step 103, receiving a first input of a target operation area in the plurality of operation areas.
In this step, the first input may be a slide operation, a long press operation, or the like, which acts on the target operation region.
And 104, responding to the first input, and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located.
In the step, at least one page level is included between the page level corresponding to the target page and the page level corresponding to the first page, that is, the target page including at least one page level between the page levels corresponding to the first page can be directly switched to by responding to the first input.
Due to the fact that the corresponding relation between the operation area and the page level is set, different operation areas are selected, the page where the page level corresponding to the operation area is located can be switched to, and therefore the page corresponding to any page level can be switched from the first page.
For example, for an application program including a page 1, a page 2, a page 3, and a page 4, the page displayed on the current interface is the page 4, and when the application program needs to be switched to the page 2, the application program only needs to receive a first input, such as a long press operation, a sliding operation, and the like, to an operation area corresponding to a page level where the page 2 is located, so as to directly switch to the page 2; when the page 1 needs to be switched to, the page 1 is directly switched to only by receiving a first input, such as a long-press operation, a sliding operation and the like, to an operation area corresponding to the page level where the page 1 is located, so that the purpose of effectively simplifying the switching operation is achieved, and meanwhile, the switching efficiency of the page can be improved.
In addition, by adopting the interface switching method provided by the embodiment of the application, the previous page of the current page can be switched to by receiving the first input to the operation area. For example, for an application program including a page 1, a page 2, a page 3, and a page 4, the page displayed on the current interface is the page 4, and when the page 3 needs to be switched, the page 3 needs to be directly switched to by receiving a first input, such as a long-press operation, a sliding operation, and the like, to an operation area corresponding to the page level where the page 3 is located, so that the purpose of quickly switching to any page is achieved.
Optionally, before determining the page level of the first page in the application program and the number of page levels opened by the application program, the method further includes: recording page opening paths of the application program, and storing link information corresponding to each page, wherein the page opening paths are used for displaying page hierarchical relationships; the determining the page level of the first page in the application program and the number of page levels opened by the application program includes: and determining the page level of the first page in the application program and the page level number opened by the application program based on the page opening path.
In the embodiment, the page opening path of the application program is recorded, and the level of the first page can be quickly acquired according to the recorded page opening path, so that the accuracy of the page level of the first page in the application program is improved.
For example, the open path of the application is: firstly, opening a page 1, then opening a page 2 on the basis of the page 1, and then opening a page 3 (a first page) on the basis of the page 2, so that under the condition that the page 1 is at the first level, the page 3 can be determined to be at the third level;
for another example, the opening path of the application is: opening page 1 first, then opening page 2 on the basis of page 1, switching to page 1, and then opening page 3 (first page) from the basis of page 1, in the case of the first level at page 1, it can be determined that page 3 is at the second level, not the fourth level.
Further optionally, the switching to the target page in response to the first input includes: responding to the first input, and acquiring target link information from a database of link information corresponding to each stored page, wherein the target link information is link information corresponding to a page level corresponding to the target operation area; and operating the target link information, and switching a target page corresponding to the target link information.
In this embodiment, when a target page needs to be switched, link information corresponding to the target page can be quickly searched from a database of link information corresponding to each stored page, and the link information is called to directly switch to the target page, so as to achieve the purpose of simplifying the switching operation.
The database stores the link information corresponding to each page, so that when the link information of the target page needs to be called, the corresponding link information can be directly searched from the database, and further, the first page can be switched to any page.
Optionally, the switching to a target page in response to the first input includes: responding to the first input, and switching to a target page under the condition that the motion parameters of the first input meet preset conditions; wherein the motion parameter comprises at least one of a motion distance, a motion angle and a motion time.
In this embodiment, the instruction corresponding to the switching to the target page is executed only when the first input motion parameter meets the preset condition, that is, the corresponding operation is executed only when the first input is the valid input, so as to avoid the false triggering operation of the user, and improve the operation experience of the user.
Wherein the motion parameters of the first input comprise at least one of a motion distance, a motion angle and a motion time.
And when the first input is the long-time pressing operation, determining that the motion parameter of the first input meets the preset condition only when the pressing time length of the first input in the corresponding operation area exceeds the preset time length or is in the preset time length interval.
And when the first input is the sliding operation, determining that the motion parameter of the first input meets the preset condition only when the sliding distance and the sliding angle of the first operation in the corresponding operation area both meet the preset condition.
For example, the effective sliding distance can be set to be 1 cm-2 cm, and the effective sliding angle can be set to be 20-80 degrees; wherein, the setting range of the effective sliding distance and the effective sliding angle can be set according to the habit of the user.
In addition, under the condition that the preset area where the operation area is located is the side edge of the screen, the response distance of the user gesture starting point on the side edge of the screen can be set so as to determine the effective boundary of the preset area, and if the effective boundary exceeds the effective boundary, the operation is regarded as invalid operation so as to avoid false triggering operation. For example, the response distance may be set to an area within 2 centimeters of the side black edge of the screen. Wherein, the setting range of the response distance can also be set according to the habit of the user.
It should be noted that a trigger control may also be set, that is, whether to start a function corresponding to the interface switching manner provided in the embodiment of the present application; the trigger control can be arranged in a setting bar of the application program or in a system setting bar of the electronic equipment.
In this application, the first page may be a page displayed by the current interface.
As shown in fig. 2, the operation area is located below the screen, and for an application program with page 1, page 2, page 3, and page 4 being opened, the page displayed on the current interface is page 4, and when switching to page 2 is required, the operation area is directly switched to page 2 by receiving a first input, such as a long press operation, a sliding operation, and the like, to the operation area corresponding to the page level where page 2 is located.
In this embodiment, the electronic device may be any mobile electronic device including two cameras, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
According to the interface switching method, the page level of the first page in the application program and the number of page levels started by the application program are determined; generating and displaying a plurality of operation areas corresponding to the page level number in a preset area of a screen; receiving a first input to a target operation area of the plurality of operation areas; responding to the first input, and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located; at least one page level is included between the page level corresponding to the target page and the page level corresponding to the first page. Therefore, the page switching operation can be effectively simplified, and the page switching efficiency is improved.
It should be noted that, in the interface switching method provided in the embodiment of the present application, the execution main body may be an interface switching device, or a control module in the interface switching device, which is used for executing a method for switching a loading interface. The method for executing the loading interface switching by the interface switching device is taken as an example in the embodiment of the present application, and the interface switching device provided in the embodiment of the present application is described.
Referring to fig. 3, fig. 3 is a structural diagram of an interface switching apparatus provided in an embodiment of the present application, where the apparatus 300 includes a determining module 301, a displaying module 302, a receiving module 303, and a switching module 304, where:
the determining module 301 is configured to determine a page level where the first page is located in the application program and a number of page levels started by the application program;
a display module 302, configured to generate and display a plurality of operation regions corresponding to the number of page levels in a preset region of a screen;
a receiving module 303, configured to receive a first input to a target operation region in the plurality of operation regions;
a switching module 304, configured to switch to a target page in response to the first input, where the target page is a page where a page level corresponding to the target operation area is located;
at least one page level is arranged between the page level corresponding to the target page and the page level corresponding to the first page.
Optionally, the apparatus 300 further comprises:
the recording and storing module is used for recording page opening paths of the application program and storing the link information corresponding to each page, and the page opening paths are used for displaying page hierarchy relations;
the determining module is specifically configured to determine, based on the page opening path, a page level where the first page is located in the application program and the number of page levels opened by the application program.
Optionally, the switching module 304 includes:
the acquisition unit is used for responding to the first input and acquiring target link information from a stored database of link information corresponding to each page, wherein the target link information is link information corresponding to a page hierarchy corresponding to the target operation area;
and the switching unit is used for operating the target link and switching the target page corresponding to the target link information.
Optionally, the switching module 304 is specifically configured to respond to the first input, and switch to a target page when a motion parameter of the first input meets a preset condition;
wherein the motion parameter comprises at least one of a motion distance, a motion angle and a motion time.
Optionally, the display module 302 is specifically configured to generate and display a plurality of operation areas corresponding to the number of the page levels in a preset area of a screen, and display a prompt message in each of the plurality of operation areas, where the prompt message is used to prompt a user about a page level corresponding to the operation area.
The interface switching device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in an electronic device. The device can be mobile electronic equipment or non-mobile electronic equipment.
The interface switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The interface switching device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 and fig. 2, and is not described here again to avoid repetition.
Optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 402, a memory 401, and a program or an instruction stored in the memory 401 and executable on the processor 402, where the program or the instruction is executed by the processor 402 to implement each process of the interface switching method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 510 is configured to determine a page level where the first page is located in the application program, and a number of page levels that the application program opens; a display unit 506, configured to generate and display a plurality of operation regions corresponding to the number of page levels in a preset region of a screen; a user input unit 507 for receiving a first input to a target operation region among the plurality of operation regions; a processor 510, configured to switch to a target page in response to the first input, where the target page is a page where a page level corresponding to the target operation area is located; at least one page level is included between the page level corresponding to the target page and the page level corresponding to the first page.
Optionally, the processor 510 is configured to record a page opening path of the application program, and store link information corresponding to each page, where the page opening path is used to display a page hierarchical relationship; a processor 510, configured to determine, based on the page opening path, a page level at which the first page is located in the application, and a number of page levels that the application opens.
Optionally, the processor 510 is configured to, in response to the first input, obtain target link information from a stored database of link information corresponding to each page, where the target link information is link information corresponding to a page hierarchy corresponding to the target operation area; and the processor 510 is configured to run the target link and switch a target page corresponding to the target link information.
Optionally, the processor 510 is configured to respond to the first input, and if a motion parameter of the first input meets a preset condition, switch to a target page; wherein the motion parameter comprises at least one of a motion distance, a motion angle and a motion time.
Optionally, the display unit 506 is configured to generate and display a plurality of operation regions corresponding to the number of the page levels in a preset region of the screen, and display a prompt message in each of the plurality of operation regions, where the prompt message is used to prompt a user of the page level corresponding to the operation region.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the interface switching method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the interface switching method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element identified by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling an electronic device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An interface switching method is characterized by comprising the following steps:
determining the page level of a first page in an application program and the number of page levels started by the application program;
generating and displaying a plurality of operation areas corresponding to the number of the page levels in a preset area of a screen, wherein the preset area is a side area of the screen and is divided into the plurality of operation areas;
receiving a first input to a target operation area of the plurality of operation areas;
responding to the first input, and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located, and page levels corresponding to different operation areas in the multiple operation areas are different;
at least one page level is arranged between the page level corresponding to the target page and the page level corresponding to the first page.
2. The method of claim 1, wherein prior to determining the page level at which the first page is located in the application and the number of page levels at which the application is open, the method further comprises:
recording page opening paths of the application program, and storing link information corresponding to each page, wherein the page opening paths are used for displaying page hierarchy relations;
the determining the page level of the first page in the application program and the number of page levels opened by the application program includes:
and determining the page level of the first page in the application program and the page level number of the opening of the application program based on the page opening path.
3. The method of claim 2, wherein switching to a target page in response to the first input comprises:
responding to the first input, and acquiring target link information from a stored database of link information corresponding to each page, wherein the target link information is link information corresponding to a page level corresponding to the target operation area;
and operating the target link, and switching a target page corresponding to the target link information.
4. The method of claim 1, wherein the switching to a target page in response to the first input comprises:
responding to the first input, and switching to a target page under the condition that the motion parameters of the first input meet preset conditions;
wherein the motion parameter comprises at least one of a motion distance, a motion angle and a motion time.
5. The method according to any one of claims 1 to 4, wherein the generating and displaying a plurality of operation regions corresponding to the number of page levels in a preset region of a screen comprises:
and generating and displaying a plurality of operation areas corresponding to the number of the page levels in a preset area of a screen, and displaying prompt information in each operation area of the plurality of operation areas, wherein the prompt information is used for prompting a user about the page level corresponding to the operation area.
6. An interface switching device, comprising:
the determining module is used for determining the page level of the first page in the application program and the page level number started by the application program;
the display module is used for generating and displaying a plurality of operation areas corresponding to the page level number in a preset area of a screen, wherein the preset area is a side area of the screen, and the preset area is divided into the plurality of operation areas;
a receiving module, configured to receive a first input to a target operation region of the plurality of operation regions;
the switching module is used for responding to the first input and switching to a target page, wherein the target page is a page where a page level corresponding to the target operation area is located, and the page levels corresponding to different operation areas in the plurality of operation areas are different;
at least one page level is arranged between the page level corresponding to the target page and the page level corresponding to the first page.
7. The apparatus of claim 6, further comprising:
the recording and storing module is used for recording page opening paths of the application program and storing the link information corresponding to each page, and the page opening paths are used for displaying page hierarchy relations;
the determining module is specifically configured to determine, based on the page opening path, a page level where the first page is located in the application program and the number of page levels opened by the application program.
8. The apparatus of claim 7, wherein the switching module comprises:
the acquisition unit is used for responding to the first input and acquiring target link information from a stored database of link information corresponding to each page, wherein the target link information is link information corresponding to a page hierarchy corresponding to the target operation area;
and the switching unit is used for operating the target link and switching the target page corresponding to the target link information.
9. The apparatus according to claim 6, wherein the switching module is specifically configured to, in response to the first input and in a case that a motion parameter of the first input meets a preset condition, switch to a target page;
wherein the motion parameter comprises at least one of a motion distance, a motion angle and a motion time.
10. The apparatus according to any one of claims 6 to 9, wherein the display module is specifically configured to generate and display a plurality of operation regions corresponding to the number of the page levels in a preset region of a screen, and display a prompt message in each of the operation regions, where the prompt message is used to prompt a user about a page level corresponding to the operation region.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the interface switching method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the interface switching method according to any one of claims 1 to 5.
CN202011050669.3A 2020-09-29 2020-09-29 Interface switching method and device and electronic equipment Active CN112148171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011050669.3A CN112148171B (en) 2020-09-29 2020-09-29 Interface switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011050669.3A CN112148171B (en) 2020-09-29 2020-09-29 Interface switching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112148171A CN112148171A (en) 2020-12-29
CN112148171B true CN112148171B (en) 2022-07-22

Family

ID=73894566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011050669.3A Active CN112148171B (en) 2020-09-29 2020-09-29 Interface switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112148171B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115793928A (en) * 2021-09-09 2023-03-14 北京字跳网络技术有限公司 Page switching method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014186532A (en) * 2013-03-22 2014-10-02 Canon Marketing Japan Inc Information processing device, control method therefor, and program
CN106469005A (en) * 2016-08-30 2017-03-01 黑龙江八农垦大学 A kind of interface switching method for notebook computer
CN107885571A (en) * 2017-11-30 2018-04-06 北京小米移动软件有限公司 Show page control method and device
CN110069188A (en) * 2019-03-08 2019-07-30 维沃移动通信有限公司 Identification display method and terminal device
CN111352571A (en) * 2020-03-27 2020-06-30 歌尔股份有限公司 Touch control method and device for smart watch, electronic equipment and storage medium
CN111399742A (en) * 2020-03-13 2020-07-10 华为技术有限公司 Interface switching method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775391B (en) * 2016-11-29 2020-04-21 努比亚技术有限公司 Interface switching device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014186532A (en) * 2013-03-22 2014-10-02 Canon Marketing Japan Inc Information processing device, control method therefor, and program
CN106469005A (en) * 2016-08-30 2017-03-01 黑龙江八农垦大学 A kind of interface switching method for notebook computer
CN107885571A (en) * 2017-11-30 2018-04-06 北京小米移动软件有限公司 Show page control method and device
CN110069188A (en) * 2019-03-08 2019-07-30 维沃移动通信有限公司 Identification display method and terminal device
CN111399742A (en) * 2020-03-13 2020-07-10 华为技术有限公司 Interface switching method and device and electronic equipment
CN111352571A (en) * 2020-03-27 2020-06-30 歌尔股份有限公司 Touch control method and device for smart watch, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112148171A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN110865753B (en) Application message notification method and device
CN111901896A (en) Information sharing method, information sharing device, electronic equipment and storage medium
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN112269506B (en) Screen splitting method and device and electronic equipment
CN112540740A (en) Split screen display method and device, electronic equipment and readable storage medium
CN111857460A (en) Split screen processing method, split screen processing device, electronic equipment and readable storage medium
CN112083854A (en) Application program running method and device
CN112911147A (en) Display control method, display control device and electronic equipment
CN113360062A (en) Display control method and device, electronic equipment and readable storage medium
WO2022242586A1 (en) Application interface method and apparatus, and electronic device
CN112148171B (en) Interface switching method and device and electronic equipment
CN112698775B (en) Image display method and device and electronic equipment
US20110037731A1 (en) Electronic device and operating method thereof
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN112399010B (en) Page display method and device and electronic equipment
CN113703634A (en) Interface display method and device
CN112764639A (en) Screen capturing method and device and electronic equipment
CN112148185A (en) Image display method and device
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN112486650B (en) Operation path switching method and device and electronic equipment
CN113885748A (en) Object switching method and device, electronic equipment and readable storage medium
CN113342222A (en) Application classification method and device and electronic equipment
CN117032537A (en) Image processing method, processing device, electronic equipment and readable storage medium
CN114049638A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113778278A (en) Parameter adjusting method and device and electronic equipment

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