[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109597554B - Page returning method, computer device and readable storage medium - Google Patents

Page returning method, computer device and readable storage medium Download PDF

Info

Publication number
CN109597554B
CN109597554B CN201811471719.8A CN201811471719A CN109597554B CN 109597554 B CN109597554 B CN 109597554B CN 201811471719 A CN201811471719 A CN 201811471719A CN 109597554 B CN109597554 B CN 109597554B
Authority
CN
China
Prior art keywords
page
current page
current
user
returning
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
CN201811471719.8A
Other languages
Chinese (zh)
Other versions
CN109597554A (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 Zhongke Jindezhu Intelligent Technology Co.,Ltd.
Original Assignee
Beijing Finite Element 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 Finite Element Technology Co Ltd filed Critical Beijing Finite Element Technology Co Ltd
Priority to CN201811471719.8A priority Critical patent/CN109597554B/en
Publication of CN109597554A publication Critical patent/CN109597554A/en
Application granted granted Critical
Publication of CN109597554B publication Critical patent/CN109597554B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is applicable to the field of electronic information, and provides a page returning method, a computer device and a readable storage medium, wherein the page returning method is applied to an android system and comprises the following steps: receiving pressing and sliding operations of a user on a current page; determining whether the area currently pressed by the user is a preset side area or not based on the pressing operation; if so, determining the current moving direction according to the sliding operation, and moving the current page along the moving direction; and when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, ending the current page. By implementing the method and the device, the page returning operation can be finished directly by receiving the pressing and sliding operation input by the user on the current page and according to the pressing and sliding operation, a returning key does not need to be additionally arranged on a screen or an application program page, the time for the user to search for the returning key is saved, the page returning operation is more convenient and efficient, and the user experience is better.

Description

Page returning method, computer device and readable storage medium
Technical Field
The invention belongs to the field of electronic information, and particularly relates to a page returning method, a computer device and a readable storage medium.
Background
With the rise and development of the internet industry, projects such as APP, H5 and the like play more and more important roles, these projects often play a medium for communication between companies and users, more than one APP project is developed by many large companies, and fluency and humanization of an APP during use greatly affect the experience of users. However, a very important sensory evaluation criterion for a user as to whether an APP is 'good-going' is: when a user opens a plurality of information pages in an APP and browses the information of the next page, and wants to return to the previous page, whether the operation of returning to the page is convenient and smooth enough or not is judged.
The current page returning operation is generally performed by clicking an existing return key on an APP page or a return key carried by a terminal (such as a mobile phone) and then returning to a previous page. However, when the resolution of the terminal is not high, it is difficult for the user to find the return key on the page, and therefore, the user needs to spend more time finding the return key on the page and click the return key to return to the previous page, which results in poor user experience.
Therefore, the problems of complex operation, time consumption and poor user experience exist in the conventional application program page returning.
Disclosure of Invention
The embodiment of the invention provides a page returning method, and aims to solve the problems of complex operation, time consumption and poor user experience in the conventional page returning of an application program.
The embodiment of the invention is realized in such a way that a page returning method is applied to an android system, and the method comprises the following steps:
receiving pressing and sliding operations of a user on a current page;
determining whether the area currently pressed by the user is a preset side area or not based on the pressing operation;
if so, determining the current moving direction according to the sliding operation, and moving the current page along the moving direction;
and when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, ending the current page.
The embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the page returning method.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor is enabled to execute the steps of the page returning method.
According to the page returning method provided by the embodiment of the invention, the pressing and sliding operation of the user on the current page is received, whether the area pressed by the user currently is the preset side area is determined based on the pressing operation, if yes, the current moving direction is determined according to the sliding operation, so that the current page can move along with the moving direction, and the physical feeling of the user on the page moving is increased; meanwhile, when the displacement or the final speed of the current page movement is detected to meet the preset page ending condition, the current page is ended, namely the pressing operation and the sliding operation which are input on the current page by a user are directly received, the page returning operation can be completed according to the pressing operation and the sliding operation, a returning key does not need to be additionally arranged on a screen or an application program page, the time for the user to search the returning key is saved, the page returning operation is more convenient and efficient, and the user experience is better.
Drawings
Fig. 1 is a flowchart illustrating an implementation of a page returning method according to an embodiment of the present invention;
FIG. 2 is a schematic side view of a side area arrangement provided by an embodiment of the present invention;
FIG. 3 is a flowchart of an implementation of a page returning method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating an implementation of a page returning method according to a third embodiment of the present invention;
fig. 5 is a flowchart of an implementation of a page returning method according to the fourth embodiment of the present invention;
fig. 6 is a flowchart of an implementation of a page returning method according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a page returning apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another page returning apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
According to the page returning method provided by the embodiment of the invention, the page returning operation can be finished directly by receiving the pressing and sliding operation input by the user on the current page and according to the pressing and sliding operation, a returning key does not need to be additionally arranged on a screen or an application program page, the time for the user to search the returning key is saved, the page returning operation is more convenient and efficient, and the user experience is better.
Fig. 1 is a flowchart of an implementation of a page returning method according to an embodiment of the present invention, and as shown in fig. 1, the page returning method is applied to a terminal installed with an android system, where the terminal may be a mobile phone or a tablet computer, and the method includes the following steps:
in step S101, a press and slide operation of the user on the current page is received.
In step S102, it is determined whether the area currently pressed by the user is a preset side area based on the pressing operation.
For example, as shown in fig. 2, the predetermined side area may be a partial area a cut out from the WeChat chat page based on the center point, and the remaining peripheral area B.
In the embodiment of the invention, whether the area currently pressed by the user is the area B is determined based on the pressing operation of the user on the current page.
In step S103, if yes, a current moving direction is determined according to the sliding operation, and the current page moves along the moving direction.
In the embodiment of the present invention, the current moving direction includes left, right, up, and down. Taking the current moving direction as leftward sliding as an example, when it is detected that the moving direction of the sliding operation input on the current page by the user is leftward sliding, the current page is moved leftward accordingly, so that the dynamic sense of the page is increased, the user can feel the returning process of the page in real time, and the experience degree of the user is improved.
In step S104, when it is detected that the displacement or the final speed of the current page movement satisfies a preset page end condition, the current page is ended.
In the embodiment of the disclosure, by receiving the pressing and sliding operations of the user on the current page and determining whether the current pressing area of the user is a preset side area based on the pressing operations, if so, determining the current moving direction according to the sliding operations, so that the current page can move along with the moving direction, and the physical feeling of the user on the page movement is increased; meanwhile, when the displacement or the final speed of the current page movement is detected to meet the preset page ending condition, the current page is ended, namely the pressing operation and the sliding operation which are input on the current page by a user are directly received, the page returning operation can be completed according to the pressing operation and the sliding operation, a returning key does not need to be additionally arranged on a screen or an application program page, the time for the user to search the returning key is saved, the page returning operation is more convenient and efficient, and the user experience is better.
Fig. 3 is a flowchart of implementing a page returning method according to a second embodiment of the present invention, as shown in fig. 3, the second embodiment is basically the same as the first embodiment, and is different in that a step S201 is further included before the step S101.
In step S201, all interfaces of the currently opened application are rendered, where the interfaces include the current page.
Taking the microblog application program as an example, when a user clicks the microblog application program and clicks a plurality of microblog browsing pages, the background program can render the plurality of microblog browsing pages.
In the embodiment of the invention, all interfaces of the currently opened application program can be rendered in an application software mode, and the specific rendering mode can refer to the existing android application program interface rendering technology.
In the embodiment of the present invention, taking rendering an interface as an example, when the interface is rendered, the status bar of the interface and the theme color of the interface are made to be consistent, specifically, the interface may be set as an immersive APP interface picture extending to the status bar, and the application itself is immersed in the status bar, so if the third party software does not allocate a picture to the status bar, the status bar is naturally black. The top status bar and the underlying virtual keys are hidden and are drawn from the edge when needed.
In actual applications, the status bar is set differently for different SDKs (Software Development Kit (SDK) which are typically some sets of Development tools used by Software engineers to build application Software for a specific Software package, Software framework, hardware platform, operating system, etc.). For example, if the SDK is less than 19, the status bar is not set to be in the transparent state, and the SDK24 and above support the open mode.
After the status bar transitions to transparent, the adjustResize of the input method may be invalidated. At this time, the layout change of the DecorView (top page, i.e. current page) can be monitored, and when the layout change is monitored, the height of the sub-View is dynamically adjusted to be the visible part of the DecorView.
Fig. 4 is a flowchart of an implementation of a page returning method according to a third embodiment of the present invention, and as shown in fig. 4, this embodiment is basically the same as the first embodiment, except that step S102 is replaced with step S301.
In step S301, based on the pressing operation, a position of an area currently pressed by the user is determined, and it is determined whether the position is within a preset range of the side area.
In the embodiment of the present invention, it is determined whether the pressed area is a side edge in the ACTION _ DOWN event of the displatcouche (the displatcouche handles touch event distribution, and the event (in most cases) starts from the displatcouche of Activity), and the pressed area is marked.
Illustratively, as shown in fig. 4, in combination with the example of the first embodiment, it is assumed that the area pressed by the user is located at a point C on the current page, the point C is marked, where marking the point C may be recording position coordinates of the point C, and determining, according to the position coordinates of the point C, a position of the point C relative to the current page, and determining whether the point C is located in the area B.
Fig. 5 is a flowchart of an implementation of a page returning method according to a fourth embodiment of the present invention, which is substantially the same as the first embodiment, except that step S103 is replaced with step S401 and step S402.
In step S401, if yes, it is determined whether the current moving direction is a lateral movement according to the sliding operation.
In step S402, if yes, the current page moves along with the horizontal direction.
In an embodiment of the invention, the lateral movement is horizontal left or right.
In the embodiment of the invention, the current page moves along with the horizontal direction, specifically, an offset value is set for setTranslationX called by a parent container of ContentView, so that the current page moves along with the horizontal direction.
When the current pressing area of the user is determined to be the preset side area and the moving direction of the current pressing area is determined to be the transverse movement, setTranslationX is called to the parent container of ContentView in real time to set an offset value, so that the user can sense that the current page moves along with the sliding operation of the user in real time, and the sensory feeling of the user using the application program is improved.
As an embodiment of the present invention, the step S104 specifically includes: and when the displacement of the current page movement is detected to meet a preset threshold value, ending the current page.
The preset threshold may be that the displacement of the current page movement exceeds half or three-quarters of the lateral width of the current page, and may be specifically set according to an actual situation.
As another embodiment of the present invention, the step S104 is specifically: and when the fact that the moving final speed of the current page meets a preset threshold value is detected, ending the current page.
As a preferred embodiment of the present invention, the step S104 may further include: and when detecting that the displacement and the final speed of the current page movement both meet the preset threshold value, ending the current page. Thus, whether the current page needs to be ended or not can be more accurately judged.
Fig. 6 is a flowchart of an implementation of a page returning method according to a fifth embodiment of the present invention, which is substantially the same as the first embodiment, except that step S501 is replaced with step S104.
In step S501, when it is detected that the displacement or the final speed of the current page movement satisfies a preset page end condition, the current page is converted into a layer in a transparent state.
In the embodiment of the present invention, when it is detected that the displacement or the final speed of the current page movement meets the preset page ending condition, a class object of a transparent conversion callback class is obtained according to the Activity object, then a Method object is obtained through a get cleared Method ("get Activity operations"), the current page is converted into a layer in a transparent state, and the background of the current page is removed. At this time, the Activity of the lower layer (Activity is an interactive interface which is full of the whole window or suspended on other windows) can be seen through, and the user can see the page at the lower layer, that is, the page at the upper layer is finished at this time.
As a preferred embodiment of the present invention, the step S104 specifically includes: and when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, converting the current page into a layer in a transparent state based on a reflection calling method.
It should be noted that, when using the method of this embodiment, android needs to be preset under SDK21(android5.0), because below SDK21(android5.0), the reflection call method can only convert a window converted from opaque to transparent, but cannot convert an originally opaque window to transparent.
The implementation of the page returning function provided by the above embodiment can be opened in a method form for calling by an external class.
Specifically, BaseActivity may be created within the project design, and then a tool class may be invoked to implement the page return function described above.
And each interface Activity inherits the BaseActivity, and inherits the page returning function by default.
In addition, if the page is controlled whether to inherit the page return function, the flexible control of the transmission value of the parent class method can be called.
Fig. 7 is a schematic structural diagram of a page returning apparatus according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown in the diagram, which is detailed as follows:
as shown in fig. 7, a page returning apparatus is applied to a terminal, which may be a mobile phone or a tablet computer, and includes: a receiving unit 10, a determining unit 20, a moving unit 30 and an end-of-page unit 40.
And the receiving unit 10 is used for receiving the pressing and sliding operation of the user on the current page.
A determining unit 20, configured to determine whether the area currently pressed by the user is a preset side area based on the pressing operation.
For example, as shown in fig. 2, the predetermined side area may be a partial area a cut out from the WeChat chat page based on the center point, and the remaining peripheral area B.
In the embodiment of the present invention, the determination unit 20 determines whether the area currently pressed by the user is the area B based on the pressing operation of the user on the current page.
And a moving unit 30, configured to determine a current moving direction according to the sliding operation if the current page is moved along the moving direction.
In the embodiment of the present invention, the current moving direction includes left, right, up, and down. Taking the current moving direction as leftward sliding as an example, when the moving unit 30 detects that the moving direction of the sliding operation entered on the current page by the user is leftward sliding, the current page is moved leftward, so that the dynamic sense of the page is increased, the user can feel the returning process of the page in real time, and the experience of the user is improved.
And a page ending unit 40, configured to end the current page when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition.
According to the page returning device, the pressing operation and the sliding operation of the user on the current page are received, whether the area pressed by the user at present is the preset side area or not is determined based on the pressing operation, if yes, the current moving direction is determined according to the sliding operation, so that the current page can move along with the moving direction, and the physical feeling of the user on the page moving is increased; meanwhile, when the displacement or the final speed of the current page movement is detected to meet the preset page ending condition, the current page is ended, namely the pressing operation and the sliding operation which are input on the current page by a user are directly received, the page returning operation can be completed according to the pressing operation and the sliding operation, a returning key does not need to be additionally arranged on a screen or an application program page, the time for the user to search the returning key is saved, the page returning operation is more convenient and efficient, and the user experience is better.
Fig. 8 is a schematic structural diagram of another page returning apparatus provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown in the diagram, which is detailed as follows:
in the page return apparatus of the present disclosure, an interface rendering unit 50 is further included.
And the interface rendering unit 50 is configured to render all interfaces of the currently opened application program, where the interfaces include the current page.
Taking the microblog application program as an example, when a user clicks the microblog application program and clicks a plurality of microblog browsing pages, the background program can render the plurality of microblog browsing pages.
In the embodiment of the present invention, taking rendering an interface as an example, when the interface is rendered, the status bar of the interface and the theme color of the interface are made to be consistent, specifically, the interface may be set as an immersive APP interface picture extending to the status bar, and the application itself is immersed in the status bar, so if the third party software does not allocate a picture to the status bar, the status bar is naturally black. The top status bar and the underlying virtual keys are hidden and are drawn from the edge when needed.
In actual applications, the status bar is set differently for different SDKs (Software Development Kit (SDK) which are typically some sets of Development tools used by Software engineers to build application Software for a specific Software package, Software framework, hardware platform, operating system, etc.). For example, if the SDK is less than 19, the status bar is not set to be in the transparent state, and the SDK24 and above support the open mode.
After the status bar transitions to transparent, the adjustResize of the input method may be invalidated. At this time, the layout change of the DecorView (top page, i.e. current page) can be monitored, and when the layout change is monitored, the height of the sub-View is dynamically adjusted to be the visible part of the DecorView.
As an embodiment of the present invention, the determining unit 20 is specifically configured to: and determining the position of the area currently pressed by the user based on the pressing operation, and judging whether the position is in a preset side area range.
In the embodiment of the present invention, the determining unit 20 determines whether the pressed area is a side edge in an ACTION _ DOWN event of a displatcouche (the displatcouche is to handle touch event distribution, and an event (in most cases) is started from the displatcouche of Activity), and marks the pressed area.
Illustratively, as shown in fig. 4, in combination with the example of the first embodiment, it is assumed that the area pressed by the user is located at a point C on the current page, the point C is marked, where marking the point C may be recording position coordinates of the point C, and determining, according to the position coordinates of the point C, a position of the point C relative to the current page, and determining whether the point C is located in the area B.
As another embodiment of the present invention, the mobile unit 30 includes a determination module and a moving module.
And the determining module is used for determining whether the current moving direction is transverse movement or not according to the sliding operation if the current moving direction is transverse movement.
And the moving module is used for moving the current page along with the transverse direction if the current page moves along with the transverse direction.
In an embodiment of the invention, the lateral movement is horizontal left or right.
In the embodiment of the invention, the current page moves along with the horizontal direction, specifically, an offset value is set for setTranslationX called by a parent container of ContentView, so that the current page moves along with the horizontal direction.
When the determining unit 20 determines that the current pressing area of the user is a preset side area and the determining module determines that the moving direction of the current pressing area is horizontal movement, the moving module calls a setTranslationX to a parent container of ContentView in real time to set an offset value, so that the current page moves horizontally, the user can sense that the current page moves along with own sliding operation in real time, and the sensory experience of the user using the application program is improved.
As an embodiment of the present invention, the page ending unit 40 is specifically configured to: and when the displacement of the current page movement is detected to meet a preset threshold value, ending the current page.
The preset threshold may be that the displacement of the current page movement exceeds half or three-quarters of the lateral width of the current page, and may be specifically set according to an actual situation.
As another embodiment of the present invention, the page ending unit 40 is specifically configured to: and when the fact that the moving final speed of the current page meets a preset threshold value is detected, ending the current page.
As another embodiment of the present invention, the page ending unit 40 is further specifically configured to: and when detecting that the displacement and the final speed of the current page movement both meet the preset threshold value, ending the current page. Thus, whether the current page needs to be ended or not can be more accurately judged.
As a preferred embodiment of the present invention, the page ending unit 40 is specifically configured to: and when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, converting the current page into a layer in a transparent state.
In the embodiment of the present invention, when it is detected that the displacement or the final speed of the current page movement meets the preset page ending condition, a class object of a transparent conversion callback class is obtained according to the Activity object, then a Method object is obtained through a get cleared Method ("get Activity operations"), the current page is converted into a layer in a transparent state, and the background of the current page is removed. At this time, the Activity of the lower layer (Activity is an interactive interface which is full of the whole window or suspended on other windows) can be seen through, and the user can see the page at the lower layer, that is, the page at the upper layer is finished at this time.
As a preferred embodiment of the present invention, the step S104 specifically includes: and when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, converting the current page into a layer in a transparent state based on a reflection calling method.
It should be noted that, when using the method of this embodiment, android needs to be preset under SDK21(android5.0), because below SDK21(android5.0), the reflection call method can only convert a window converted from opaque to transparent, but cannot convert an originally opaque window to transparent.
The implementation of the page returning function provided by the above embodiment can be opened in a method form for calling by an external class.
Specifically, BaseActivity may be created within the project design, and then a tool class may be invoked to implement the page return function described above.
And each interface Activity inherits the BaseActivity, and inherits the page returning function by default.
In addition, if the page is controlled whether to inherit the page return function, the flexible control of the transmission value of the parent class method can be called.
The embodiment of the invention also provides a computer device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the page returning method.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor is enabled to execute the steps of the page returning method.
Illustratively, a computer program can be partitioned into one or more modules, which are stored in memory and executed by a processor to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions. For example, the computer program may be divided into the steps of the page return method provided by the various method embodiments described above and executed by a processor.
Those skilled in the art will appreciate that the above description of a computer apparatus is by way of example only and is not intended to be limiting of computer apparatus, and that the apparatus may include more or less components than those described, or some of the components may be combined, or different components may be included, such as input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the computer apparatus and connects the various parts of the overall user terminal using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated by the computer device may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (3)

1. A page returning method is applied to an android system and comprises the following steps:
rendering all interfaces of the currently opened application program, wherein the interfaces comprise a current page;
receiving pressing and sliding operations of a user on a current page;
determining the position of the area currently pressed by the user based on the pressing operation, and judging whether the position is in a preset side area range;
if so, determining whether the current moving direction is transverse movement or not according to the sliding operation;
if so, calling setTranslationX to a parent container of ContentView to set an offset value so as to enable the current page to move along with the transverse movement;
when detecting that the displacement of the current page movement meets a preset threshold value, ending the current page; or when the final moving speed of the current page is detected to meet a preset threshold value, ending the current page;
when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, converting the current page into a layer in a transparent state;
and when detecting that the displacement or the final speed of the current page movement meets a preset page ending condition, converting the current page into a layer in a transparent state based on a reflection calling method.
2. A computer arrangement comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the page return method of claim 1.
3. A computer-readable storage medium, having stored thereon, a computer program which, when executed by a processor, causes the processor to perform the steps of the page return method of claim 1.
CN201811471719.8A 2018-12-04 2018-12-04 Page returning method, computer device and readable storage medium Active CN109597554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811471719.8A CN109597554B (en) 2018-12-04 2018-12-04 Page returning method, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811471719.8A CN109597554B (en) 2018-12-04 2018-12-04 Page returning method, computer device and readable storage medium

Publications (2)

Publication Number Publication Date
CN109597554A CN109597554A (en) 2019-04-09
CN109597554B true CN109597554B (en) 2022-04-01

Family

ID=65960925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811471719.8A Active CN109597554B (en) 2018-12-04 2018-12-04 Page returning method, computer device and readable storage medium

Country Status (1)

Country Link
CN (1) CN109597554B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463009B (en) * 2019-09-09 2022-07-15 西安诺瓦星云科技股份有限公司 Control method, device and system of electronic whiteboard and computer-readable storage medium
CN111459363B (en) * 2020-03-31 2023-07-21 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium
CN114327698B (en) * 2020-09-30 2024-04-05 深圳市万普拉斯科技有限公司 Page switching method, system, electronic device and storage medium
CN113946267B (en) * 2021-10-20 2024-09-06 百融至信(北京)科技有限公司 Mobile terminal-based return operation method and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885691A (en) * 2014-03-20 2014-06-25 小米科技有限责任公司 Method and device for executing backspacing operation
CN104182164A (en) * 2013-05-27 2014-12-03 赛龙通信技术(深圳)有限公司 Electronic device and method for operating interface through side frame
CN106155521A (en) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 A kind of method and apparatus carrying out returning operation in terminal
CN106354404A (en) * 2016-08-15 2017-01-25 合网络技术(北京)有限公司 Page operation method and device
CN106502535A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 A kind of page returning method and device
CN106527926A (en) * 2016-10-31 2017-03-22 珠海市魅族科技有限公司 Page return method and device
CN106991186A (en) * 2017-04-05 2017-07-28 福建中金在线信息科技有限公司 A kind of page returning method and device
CN108319414A (en) * 2018-01-31 2018-07-24 北京小米移动软件有限公司 interface display method and device
CN108897489A (en) * 2018-07-25 2018-11-27 上海携程商务有限公司 Exchange method, system, equipment and the storage medium that the page returns
CN108920082A (en) * 2018-06-28 2018-11-30 Oppo广东移动通信有限公司 Method of controlling operation thereof, device, storage medium and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425706B (en) * 2012-05-25 2016-03-23 腾讯科技(深圳)有限公司 Method and the device of element dragging is realized in the webpage of embedded floating frame element
CN103853606B (en) * 2012-11-29 2018-05-01 北京三星通信技术研究有限公司 Switch the method and apparatus of application program
CN103970469B (en) * 2013-02-05 2015-12-23 腾讯科技(深圳)有限公司 Mobile terminal returns method and the mobile terminal of main screen
CN104077003B (en) * 2014-07-21 2017-12-15 广东欧珀移动通信有限公司 A kind of method and device for merging mobile phone return key, home keys and Menu key
US10592080B2 (en) * 2014-07-31 2020-03-17 Microsoft Technology Licensing, Llc Assisted presentation of application windows
CN104679434A (en) * 2015-03-17 2015-06-03 北京合生共济投资咨询有限责任公司 Method for switching client pages
CN105389084A (en) * 2015-11-17 2016-03-09 惠州Tcl移动通信有限公司 Convenient information inputting method for user of mobile terminal and mobile terminal
CN107305462A (en) * 2016-04-18 2017-10-31 滴滴(中国)科技有限公司 A kind of interface switching method and device
CN107870711A (en) * 2016-09-27 2018-04-03 阿里巴巴集团控股有限公司 Page navigation method, the method and client that user interface is provided
CN108228073B (en) * 2018-01-31 2021-06-15 北京小米移动软件有限公司 Interface display method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182164A (en) * 2013-05-27 2014-12-03 赛龙通信技术(深圳)有限公司 Electronic device and method for operating interface through side frame
CN103885691A (en) * 2014-03-20 2014-06-25 小米科技有限责任公司 Method and device for executing backspacing operation
CN106155521A (en) * 2016-06-28 2016-11-23 乐视控股(北京)有限公司 A kind of method and apparatus carrying out returning operation in terminal
CN106354404A (en) * 2016-08-15 2017-01-25 合网络技术(北京)有限公司 Page operation method and device
CN106502535A (en) * 2016-10-31 2017-03-15 珠海市魅族科技有限公司 A kind of page returning method and device
CN106527926A (en) * 2016-10-31 2017-03-22 珠海市魅族科技有限公司 Page return method and device
CN106991186A (en) * 2017-04-05 2017-07-28 福建中金在线信息科技有限公司 A kind of page returning method and device
CN108319414A (en) * 2018-01-31 2018-07-24 北京小米移动软件有限公司 interface display method and device
CN108920082A (en) * 2018-06-28 2018-11-30 Oppo广东移动通信有限公司 Method of controlling operation thereof, device, storage medium and electronic equipment
CN108897489A (en) * 2018-07-25 2018-11-27 上海携程商务有限公司 Exchange method, system, equipment and the storage medium that the page returns

Also Published As

Publication number Publication date
CN109597554A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN109597554B (en) Page returning method, computer device and readable storage medium
CN108664201B (en) Text editing method and device and electronic equipment
US10983668B2 (en) Method and apparatus for component display processing
US20170024226A1 (en) Information processing method and electronic device
US20170186209A1 (en) User interface with parallax animation
US20110099299A1 (en) Mode Switching
CN106681554A (en) Mobile terminal touch screen control method and device and mobile terminal
CN103620542A (en) A physical key simulating method and apparatus based on a touch screen
CN107479818B (en) Information interaction method and mobile terminal
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
CN108762654A (en) Method, apparatus, terminal and the computer readable storage medium of text editing
CN101968698A (en) Electronic whiteboard all-in-one machine
CN106933474B (en) Image mixing processing method and device
US20140253441A1 (en) Method and Device for Executing an Operation on a Mobile Device
CN107728917B (en) Gesture judgment method for mobile phone input method for blind person
CN107291369A (en) Character editing method and device, terminal device and computer-readable recording medium
CN103729139A (en) Information processing method and electronic device
CN111158811B (en) Advertisement processing method and device, electronic equipment and storage medium
KR20130118032A (en) Method and apparatus for providing multi-function in electronic device
CN105183362A (en) Input method and terminal
CN109298907B (en) Application program display method, application program display device and terminal
CN110764683B (en) Processing operation method and terminal
CN114860149A (en) Content editing control method and device, electronic equipment and storage medium
CN104808895A (en) Icon arranging method
CN104915138A (en) Information processing method 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
CB02 Change of applicant information

Address after: 100082 129, 1f, building 5, courtyard 1, Shangdi 4th Street, Haidian District, Beijing

Applicant after: Beijing Huizhen Technology Co.,Ltd.

Address before: 100089 room 105-31, building 5, yard 59, gaoliangqiaoxie street, Haidian District, Beijing

Applicant before: BEIJING MASHANG HUIKE TECHNOLOGY Co.,Ltd.

Address after: 100082 129, 1f, building 5, courtyard 1, Shangdi 4th Street, Haidian District, Beijing

Applicant after: Beijing finite element technology Co.,Ltd.

Address before: 100082 129, 1f, building 5, courtyard 1, Shangdi 4th Street, Haidian District, Beijing

Applicant before: Beijing Huizhen Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 226, 2nd Floor, No. 5 Guanghua Road, Zhangjiawan Town, Tongzhou District, Beijing, 101100

Patentee after: Beijing Zhongkejin Finite Element Technology Co.,Ltd.

Address before: 100082 129, 1f, building 5, courtyard 1, Shangdi 4th Street, Haidian District, Beijing

Patentee before: Beijing finite element technology Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 226, 2nd Floor, No. 5 Guanghua Road, Zhangjiawan Town, Tongzhou District, Beijing, 101100

Patentee after: Beijing Zhongke Jindezhu Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: Room 226, 2nd Floor, No. 5 Guanghua Road, Zhangjiawan Town, Tongzhou District, Beijing, 101100

Patentee before: Beijing Zhongkejin Finite Element Technology Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address