WO2019206158A1 - Interface displaying method, apparatus, and device - Google Patents

Interface displaying method, apparatus, and device Download PDF

Info

Publication number
WO2019206158A1
WO2019206158A1 PCT/CN2019/083988 CN2019083988W WO2019206158A1 WO 2019206158 A1 WO2019206158 A1 WO 2019206158A1 CN 2019083988 W CN2019083988 W CN 2019083988W WO 2019206158 A1 WO2019206158 A1 WO 2019206158A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
view
target
display
favorite
Prior art date
Application number
PCT/CN2019/083988
Other languages
French (fr)
Chinese (zh)
Inventor
段竣耀
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2019206158A1 publication Critical patent/WO2019206158A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the field of mobile terminals, and in particular, to an interface display method, apparatus, and device.
  • a user interacts with a mobile terminal through an application installed on the mobile terminal.
  • An application usually generates multiple interfaces based on multiple operations of the user.
  • the user may jump between different interfaces to switch between different interfaces.
  • the user wants to see the interface that he or she is interested in again, he can only jump from the other interface to the interface of interest according to the interface jump order specified by the application, thereby realizing the display of the interface of interest, thereby causing inconvenience to the user and experience. Poor question.
  • An embodiment of the present invention provides an interface display method, device, and device for solving the problem of inconvenient operation of an interface jump in the conventional technology.
  • the first aspect of the present application provides an interface display method, which can be applied to a mobile terminal, and the method includes:
  • the mobile terminal displays a first interface, wherein the first interface includes a target favorite interface and a favorite control, the target favorite interface refers to an interface that the user pays attention to, and the favorite control refers to a control that receives a user's favorite operation, and the control can be set in the floating window.
  • the target favorite interface refers to an interface that the user pays attention to
  • the favorite control refers to a control that receives a user's favorite operation
  • the control can be set in the floating window.
  • the upper layer of the target collection interface is provided with a first floating window, the first floating window has a favorite control, the tweet interface and the first floating window containing the favorite control form a first interface.
  • the mobile terminal receives the user's collection operation on the favorite control, acquires the call information of the target collection interface, and collects the call information.
  • the call information of the target collection interface is the information required to call and display the target collection interface.
  • the mobile terminal displays a second interface, where the second interface includes a display control of the target collection interface, and the display control is associated with the calling information of the target collection interface, and when receiving the display operation performed by the user on the display control, the mobile terminal may Obtaining the calling information of the target favorite interface associated with the display control, and displaying the target favorite interface according to the calling information of the target favorite interface.
  • the user only needs to trigger the collection control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without repeating step by step in a specific order.
  • the operation saves the operation steps, thereby saving the user's operation time.
  • the call information of the target collection interface includes an activity call chain corresponding to the activity of the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface.
  • the embodiment of the present application provides one of the implementation manners of the call information of the target collection interface, that is, the activity call chain of the activity corresponding to the target collection interface, and the target collection is quickly displayed by calling the activity call chain corresponding to the target collection interface. interface.
  • the interface display method further includes: if the first interface includes multiple interfaces, determining a target favorite interface from the plurality of interfaces.
  • the multiple interfaces are not necessarily the target collection interfaces that the user wants to collect, so the target collection interface may be determined from multiple interfaces in the first interface, so as to obtain the target collection.
  • the call information of the interface realizes the collection of the target collection interface.
  • determining the target favorite interface from the plurality of interfaces includes: if the plurality of interfaces includes the preset interface, determining the target favorite interface from the plurality of interfaces other than the preset interface.
  • multiple interfaces include a preset interface, such as an interface of a shortcut menu window
  • these preset interfaces are usually not the target collection interface that the user needs to collect, so the preset interface can be filtered out from the preset interface.
  • the target collection interface is determined in the plurality of interfaces, so that the collection of the target collection interface is realized by acquiring the calling information of the target collection interface.
  • Determining the target collection interface includes: displaying an interface selection control corresponding to each interface except the preset interface, wherein the interface selection control displays a representative view of the corresponding interface and/or a name of the representative view of the corresponding interface. Receiving a user selection operation of the interface selection control, and determining an interface corresponding to the interface selection control selected by the user as the target collection interface.
  • the accuracy of the target collection interface can be improved and the user experience can be improved.
  • the interface display method further includes: after receiving a user's favorite operation of the favorite control, acquiring a view parameter of the target view of the target favorite interface, displaying the display control of the second interface includes: displaying the second interface It includes a display control that represents a view, a view that represents the content of the target view, and a view that is derived from the view parameters of the target view.
  • the display control in the second interface may further include a representative view, the representative view is a view reflecting the content of the target view, and the target view is a view in the target favorite interface, so the representative view is capable of reflecting the target favorite interface.
  • the view of the content so that the user can quickly know which target collection interface the display control corresponds to by displaying the representative view displayed by the control.
  • the mobile terminal can quickly display the target corresponding to the display control. Collection interface to improve user experience.
  • the action of acquiring the view parameter of the target view may be performed immediately after receiving the user's favorite operation of the favorite control, or may be performed when the instruction of the second interface is generated, or in other collections of the user's favorite control Execute after the operation and at any other time before the second interface is displayed.
  • the interface display method further includes: acquiring a plurality of candidate views corresponding to the target collection interface, and determining the target view from the plurality of candidate views.
  • the target view may be a view that can reflect the content of the target collection interface.
  • the target collection interface corresponds to multiple candidate views, not every candidate view can reflect the content of the target collection interface, so A target view capable of embodying the content of the target collection interface is determined from the plurality of candidate views, so as to further obtain a representative view that reflects the content of the target view according to the target view, that is, the representative view can reflect the content of the target favorite interface.
  • determining the target view from the plurality of candidate views may be in the following three manners.
  • the first way is to group the plurality of candidate views according to the display positions of the plurality of candidate views to obtain a plurality of sets of candidate views; and display, in the third interface, the view selection controls corresponding to each of the candidate views in the plurality of sets of candidate views, The user selects a view selection control, and determines a candidate view corresponding to the view selection control selected by the user as the target view.
  • the user's interactive experience is improved by grouping the candidate views according to the display position and obtaining the candidate views that the user wants to select through the view selection control.
  • attributes of multiple candidate views are respectively acquired, and target views are determined from multiple candidate views according to attributes of multiple candidate views.
  • the attributes of the candidate view may be, for example, a video, a text, a picture, or the like. Since the attributes of the candidate view may reflect the degree to which the candidate view represents the target collection interface to some extent, the target view may be determined according to the attributes of the candidate view, and the user may not be needed. Under the premise of operation, the content that the user wants to obtain is obtained as accurately as possible, and the user experience is improved.
  • the third method is to select a candidate view of the preset number of layers from the view tree formed by the multiple candidate views, and determine the target view as the target view, and the preset number is a positive integer.
  • the main candidate view can be used as the target view, so as to obtain the content that the user wants to obtain as accurately as possible without user operation, thereby improving the user experience.
  • generating a representative view according to the view parameter includes: reducing the view size in the view parameter by a preset scale to generate a representative view.
  • the representative view may be that the target view is reduced according to the size of the view, and is a thumbnail of the target view, which can reflect the characteristics of the target view, so that the user can obtain the information of the target collection interface through the representative view, thereby improving the user experience.
  • obtaining the view parameters of the target view of the target collection interface includes: obtaining an updated view parameter of the target view of the target favorite interface; and obtaining, according to the view parameter of the target view, the representative view is updated according to the target view.
  • the back view parameters are obtained.
  • the action of obtaining the view parameter of the target view may be performed immediately after receiving the user's favorite operation on the favorite control, and when the second interface is displayed, the view parameter of the target view may be updated if an update occurs.
  • the representative view can be generated according to the updated target parameter of the target view, so that the representative view can reflect the content of the updated target view, so that the user can see the representative view of the updated target collection interface and improve the user experience.
  • the interface display method before displaying the display control including the view of the second interface, the interface display method further includes: if the application corresponding to the target favorite interface is in the closed state, launching the application according to the calling information of the target favorite interface
  • the program view parameter of the target view of the target collection interface includes: obtaining the view parameter of the target view of the target collection interface from the application launched in the background.
  • the interface display method before displaying the display control including the view of the second interface, the interface display method further includes: if the application corresponding to the target favorite interface is in an active state, running the application in the background according to the calling information of the target favorite interface The program, in the process of running the application in the background, obtains the view parameters of the target view of the target collection interface.
  • the action of acquiring the view parameter of the target view may be performed when the instruction for displaying the second interface is generated, and the target view is to reflect the content of the latest version of the target collection interface, that is, the representative view is generated in real time.
  • the application corresponding to the target favorite interface is in the closed state, the application is launched in the background according to the calling information of the target favorite interface, and the target favorite interface is obtained from the application launched in the background.
  • the view parameter of the target view ensures that the generated interface from the application startup to the target collection interface and the target collection interface are not seen by the user, and the user only sees the display control that displays the latest version of the representative view.
  • the second interface enhances the user experience.
  • the application corresponding to the target favorite interface is in the active state, the application is run in the background according to the calling information of the target favorite interface, and the target favorite interface is acquired in the process of running the application in the background.
  • the view parameters of the target view ensure that the process of opening the target collection interface by the application is also not seen by the user, improving the user experience.
  • the interface display method further includes: adding an additional restart flag to the activity corresponding to the target collection interface in the process of starting the application in the background; and displaying the target collection interface includes: if the target collection interface corresponds to the activity identifier Exists in the active thread, and the activity is added with an additional restart flag, destroys the activity, and restarts the application corresponding to the activity, and displays the target collection interface according to the call information of the target favorite interface.
  • an additional restart flag may be added to the activity corresponding to the target collection interface to distinguish the background startup initiated by the startup to obtain the view parameter of the target view. It is also triggered by the user to trigger the display control to handle different processing for different startup methods. If the identity of the activity exists in the active thread, and the activity is added with an additional restart flag, the activity is initiated by the mobile terminal in the background for the view parameter of the target view, and for the activity initiated by the background, the user may receive the display control After the display operation, destroy the background-initiated activity, restart the application, and display the target collection interface on the display to realize the quick display of the interface. It should be noted that the process of restarting the application can be displayed on the display screen or not displayed, and the target collection interface can be directly displayed.
  • the display control further includes a display control, and the display control displays a view name representing the view; the method further includes: receiving a display operation of the display control by the user, and displaying the representative view in the display control.
  • the display control may include a display control for displaying the name of the target view, because the display control occupies less space on the display screen, so when there are multiple display controls, the display may be displayed on the display. More display controls.
  • the mobile terminal can display the representative view in the display control by receiving the user's display operation on the display control in the display, thereby improving the user experience.
  • the interface display method further includes: receiving a deletion operation of the display control by the user, and deleting the display control.
  • the display control corresponding to the target collection interface can also be deleted to save display space and improve user experience.
  • the interface display method further includes: after receiving the deletion operation of the display control by the user, if the activity corresponding to the target favorite interface is added with an additional restart flag, the activity is destroyed.
  • the interface display method further includes: receiving a first touch screen operation and a second touch screen operation triggered by the user on the target favorite interface, if the first touch screen operation and the second touch screen operation satisfy the pre- Set the condition to display the favorite control on the first interface.
  • the misoperation can be prevented, and the user experience can be improved.
  • the touch screen operation meets the preset condition
  • the first floating window of the favorite control can be displayed, so as to receive the user's favorite control. Collection operation.
  • the preset condition includes at least one of the following: the first touch screen operation satisfies the first preset touch screen condition, and the second touch screen operation satisfies the second preset touch screen condition and the first touch screen operation The interval between the operation with the second touch screen satisfies the preset time condition.
  • the preset condition is that the condition that the user wants to display the favorite control can be reflected, and the two touch screen operations of the receiving user satisfying the preset condition can display the favorite control, thereby preventing the user from displaying the favorite control due to the accidental touch, thereby improving the user experience.
  • the first touch screen operates as a first sliding operation
  • the first sliding operation includes a first contact and a second contact
  • the first contact being the starting point of the first sliding operation
  • the second contact being The end point of the first sliding operation
  • the coordinates of the first contact are different from the coordinates of the second contact
  • the first preset touch screen condition includes: the difference between the abscissas between the first contact and the second contact satisfies a first distance condition; and/or a difference between the ordinates between the first contact and the second contact satisfies a second distance condition; and/or, in the process of generating the first contact to the second contact
  • the second touch screen operates as a second sliding operation
  • the second sliding operation includes a third contact and a fourth contact
  • the third contact is the starting point of the first sliding operation
  • the fourth contact is The end point of the second sliding operation
  • the coordinates of the third contact are different from the coordinates of the fourth contact
  • the second preset touch screen condition includes: the difference between the abscissas between the third contact and the fourth contact satisfies a third distance condition; and/or a difference between the ordinates between the third contact and the fourth contact satisfies a fourth distance condition; and/or, during the execution of the second sliding operation, at any time on the display screen There is only one contact.
  • the touch screen operation of the user may be specifically analyzed, thereby triggering according to the user.
  • the interface display method further includes: receiving a first touch screen operation triggered by the user on the target favorite interface, and displaying the second floating window.
  • the second floating window may be used to prompt the user that the first touch screen operation is effective. After the user sees the second floating window, it may decide whether to continue to perform the second touch screen operation, if the mobile terminal receives the second trigger triggered by the user. When the touch screen operation is performed, and the first touch screen operation and the second touch screen operation satisfy the above preset condition, the favorite control is displayed to improve the user experience.
  • the second aspect of the present application provides an interface display device, where the interface display device includes:
  • a first display unit configured to display a first interface, where the first interface includes a target collection interface and a favorite control;
  • a collecting unit configured to receive a user's collection operation on the favorite control, obtain the calling information of the target collection interface, and collect the calling information
  • a second display unit configured to display a second interface, where the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface;
  • the third display unit is configured to receive a display operation of the display control by the user, obtain call information of the target favorite interface, and display the target favorite interface according to the call information of the target favorite interface.
  • the call information of the target collection interface includes an activity call chain corresponding to the activity of the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface.
  • the interface display device further includes: an activity determining unit, configured to acquire a plurality of activities corresponding to the first interface, and determine, from the plurality of activities corresponding to the first interface, one of the activities as the target favorite interface activity.
  • the interface display device further includes:
  • a view parameter obtaining unit configured to acquire a view parameter of a target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
  • the display control display unit is configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the view is obtained according to the view parameter of the target view.
  • the interface display device further includes: a target view determining unit, configured to acquire a plurality of candidate views corresponding to the target favorite interface, and determine the target view from the plurality of candidate views.
  • the target view determining unit includes:
  • a grouping unit configured to acquire a plurality of candidate views corresponding to the target collection interface, and group the plurality of candidate views according to the display positions of the plurality of candidate views to obtain a plurality of candidate views;
  • a view selection control display unit configured to display, in the third interface, a view selection control corresponding to each group of candidate views in the plurality of groups of candidate views;
  • the target view determining sub-unit is configured to receive a user selection operation of the view selection control, and determine a candidate view corresponding to the view selection control selected by the user as the target view.
  • the target view determination unit is specifically used to:
  • Obtaining a plurality of candidate views corresponding to the target collection interface respectively acquiring attributes of the plurality of candidate views, and determining the target view from the plurality of candidate views according to the attributes of the plurality of candidate views.
  • the target view determination unit is specifically used to:
  • the view parameter obtaining unit is further configured to acquire an updated view parameter of the target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
  • the display control unit is further configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the representative view is obtained according to the updated view parameter of the target view.
  • the interface display device further includes:
  • the application unit is started in the background, and is used to start the application in the background if the application corresponding to the target collection interface is in the closed state;
  • the view parameter obtaining unit is further configured to obtain a view parameter of the target view of the target favorite interface from the application launched in the background after receiving the user's favorite operation on the favorite control.
  • the display control further includes a display control, and the display control displays a view name representing the view;
  • the interface display device further includes:
  • the representative view display unit is configured to receive a display operation of the display control by the user, and display a representative view in the display control.
  • the interface display device further includes:
  • a collection control display unit configured to acquire a first touch screen operation and a second touch screen operation triggered by the user on the target collection interface, and if the first touch screen operation and the second touch screen operation meet the preset condition, the first The favorite controls are displayed on the interface.
  • the preset condition includes at least one of the following: the first touch screen operation satisfies the first preset touch screen condition, the second touch screen operation satisfies the second preset touch screen condition, and the first touch screen The interval between the operation and the second touch screen operation satisfies the preset time condition.
  • the first touch screen operates as a first sliding operation
  • the first sliding operation includes a first contact and a second contact, the first contact being the starting point of the first sliding operation, and the second contact being The end point of the first sliding operation, the coordinates of the first contact are different from the coordinates of the second contact;
  • the first preset touch screen conditions include:
  • the difference between the abscissas between the first contact and the second contact satisfies the first distance condition
  • the difference between the ordinates between the first contact and the second contact satisfies the second distance condition
  • the second touch screen operates as a second sliding operation
  • the second sliding operation includes a third contact and a fourth contact
  • the third contact is the starting point of the second sliding operation
  • the fourth contact is The end point of the second sliding operation
  • the coordinates of the third contact are different from the coordinates of the fourth contact
  • the second preset touch screen conditions include:
  • the interface display device further includes:
  • the display control deletion unit is configured to receive a deletion operation of the display control by the user, and delete the display control.
  • an interface jump device where the interface jump device includes: a processor and a memory;
  • a memory for storing instructions
  • a processor for executing instructions in the memory to perform the methods of the above aspects.
  • Yet another aspect of the present application provides a computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the methods of the above aspects.
  • Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods of the various aspects described above.
  • the user when the first interface is displayed on the display screen, the user can receive the collection in the first interface.
  • the collection operation of the control acquires the calling information of the target collection interface in the first interface, and collects the calling information, and displays the display control and the target when the second interface of the display control including the target collection interface is displayed on the display screen
  • the calling information of the collection interface is associated, so the user can display the display operation of the display control, and display the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
  • FIG. 1 is a schematic diagram of an interface in an embodiment of the present application.
  • FIG. 2 is a flowchart of an interface display method according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a floating window in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of operation of a touch screen in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of display in response to a touch screen operation in an embodiment of the present application.
  • FIG. 6 is a schematic diagram showing the display of a copy view in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of an updated target collection interface in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of updating an active view in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an operating system in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of activity generation in an embodiment of the present application.
  • FIG. 11 is a flowchart of another interface display method according to an embodiment of the present application.
  • FIG. 12 is an interaction diagram of a process of displaying a first floating window in an embodiment of the present application.
  • FIG. 13 is an interaction diagram of a determining process of a first activity in an embodiment of the present application.
  • FIG. 14 is a schematic diagram of an update process of a copy view in an embodiment of the present application.
  • FIG. 15 is an interaction diagram of an update process of a copy view according to an embodiment of the present application.
  • 16 is an interaction diagram of another update process of a copy view in the embodiment of the present application.
  • 17 is an interaction diagram of a process of displaying a target collection interface in an embodiment of the present application.
  • FIG. 18 is an interaction diagram of a process of deleting a copy view in the embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of an interface display device according to an embodiment of the present application.
  • FIG. 20 is a schematic structural diagram of an apparatus for performing an interface display method according to an embodiment of the present application.
  • the embodiment of the present invention provides an interface display method and device for quickly displaying a target collection interface, without taking a long time to repeat the jump and improving the user experience.
  • the manner of displaying the interface can only be jumped from other interfaces to the interface of interest through the specific interface jump order specified by the application, thereby realizing the display of the interface of interest.
  • the order of opening can refer to FIG. 1(a), FIG. 1(b), and FIG. 1 ( c) and FIG.
  • the dotted line portion is an area that needs to be clicked by the interface jump, specifically: "WeChat” in the main interface 110 - "Subscription number” 102 in the WeChat chat interface 120 - subscription In the “Daily Douban” 103 - tweet list interface 140 in the typographical interface 140, the introduction of the tweet “Jay Jay, I don't always think of you, but never forget” 104.
  • the tweet interface 100 is an interface that the user pays attention to, and whether the other interfaces (that is, the interfaces 110, 120, 130, and 140) are adjacent to the interface that the user pays attention to, there may be a problem of inconvenience in operation.
  • the user needs to perform a jump of the interface by multiple jump operations to display the interface of interest. For example, after the user opens the tweet interface 100 shown in FIG. 1(e), the user returns to view the WeChat message, and the display interface is the WeChat chat interface 120, as shown in FIG. 1(b). If the user wants to open the original tweet interface 100, he/she needs to click on the "Subscription No.” in the "Subscription Number” 102-Subscription Number Interface 130 in the WeChat Chat Interface 120, and the tweet profile in the tweet list interface 140. I don't think of you often, but I never forget "104. At this time, there are more steps required to implement the interface display.
  • the user opens the tweet list interface 140 shown in FIG. 1(d), in which a plurality of tweets are displayed, and each tweet is arranged in chronological order.
  • the user wants to open the tweet interface 100 shown in FIG. 1(e), and may select the tweet to be viewed from among the plurality of messages, if the typography that the user wants to see is The push date is earlier. It takes more time and effort to find the tweet in many historical tweets. It is not easy to quickly locate the previous tweets, resulting in poor user experience.
  • the embodiment of the present application provides an interface display method and device, and the method is applied to a mobile terminal, where the mobile terminal includes, but is not limited to, a mobile phone and a tablet computer.
  • the mobile phone is taken as an example for explanation.
  • the interface display method provided in the embodiment of the present application obtains the call information of the target favorite interface in the first interface by receiving the user's favorite operation in the first interface, and collects the call information and displays the second interface.
  • the display control in the second interface performs the display operation, and directly displays the target collection interface according to the calling information of the target favorite interface associated with the display control, and the user does not need to perform the step-by-step repeated operation in a specific order, thereby quickly achieving the target.
  • the display of the collection interface, the above operation is simple and fast, so the user experience is better.
  • FIG. 2 is a schematic diagram of steps of an interface display method on a mobile terminal side according to an embodiment of the present application.
  • the interface display method provided in the embodiment of the present application is specifically exemplified below.
  • the first interface is displayed, and the first interface includes a target collection interface and a favorite control.
  • the target collection interface refers to an interface that the user pays attention to, and may be an interface in the application, such as a tweet interface 100, a WeChat chat interface 120, a subscription number interface 130, and a tweet list interface 140.
  • the target collection interface is taken as an example of the tweet interface 100.
  • the user wants to jump from the other interface to the target collection interface, and realizes the display of the target collection interface, usually needs to perform one or more interface jump operations to achieve.
  • a favorite control is a control that can receive a user's favorite operation. It can be a physical button or a virtual button.
  • the collection control can be set in the floating window of the first interface, and the display position of the floating window can be a preset position on the display screen, for example, the left side of the display screen, the right side of the display screen, or the display Above or below the screen, the shape and size of the floating window can be arbitrary, can cover the entire display screen, can also be smaller than the display screen, can have a certain transparency, or can completely block the target collection interface. Referring to FIG. 3(a), "Add+" 301 can be set as a favorite control in the first floating window 310 (see the gray floating window area).
  • the favorite control can be displayed in response to user actions.
  • the currently displayed interface is the target collection interface
  • the first floating window 310 provided with the favorite control may be displayed in response to the user operation. That is, the first interface includes a target favorite interface and a first floating window 310 provided with a favorite control.
  • the user can display the favorite control by performing two touch screen operations on the target collection interface.
  • the mobile terminal acquires the first touch screen operation and the second touch screen operation triggered by the user on the target collection interface, and determines the two touch screen operations, if the first touch screen operation and the second touch screen operation meet the preset condition , the favorite control is displayed on the first interface. If the favorite control is disposed in the first floating window 310, the first floating window 310 provided with the favorite control is displayed in response to the user-triggered first touch screen operation and the second touch screen operation satisfying the preset condition.
  • the preset condition may be one or more of the following conditions: the first touch screen operation satisfies the first preset touch screen condition, the second touch screen operation satisfies the second preset touch screen condition, and the first touch screen operation The interval between the second touch screen operation and the second touch screen operation satisfies a preset time condition or the like.
  • the first touch screen operation may be a first sliding operation, and the first sliding operation includes a first contact and a second contact.
  • the first contact is the starting point of the first sliding operation
  • the second contact is the end point of the first sliding operation
  • the coordinates of the first contact are different from the coordinates of the second contact.
  • the first preset touch screen condition may include one or more of the following conditions: a difference between the abscissas between the first contact and the second contact satisfies the first distance condition, the first contact, and The difference in ordinate between the second contacts satisfies the second distance condition, and there is at least one contact or the like on the display at any time during the generation of the first contact to the second contact.
  • the first touch screen operation is the first sliding operation. If there is only one contact on the display at any time, the first sliding operation is a single-finger sliding operation. If there are multiple contacts on the display at any time, the first sliding operation is a multi-finger sliding operation. In practical applications, the first sliding operation may be a continuous sliding operation having a predetermined shape, for example, sliding along a shape such as a triangle, a “Z” shape, or a circle. Referring to FIGS. 4( a ) and 4 ( b ), And 4(c).
  • the first sliding operation is considered to be a longitudinal sliding operation. If, at the same time, the difference between the abscissas between the first contact and the second contact is less than or equal to the second distance (for example, 0.5 cm), that is, the second distance condition is satisfied, the first sliding operation is considered to be a vertical sliding operation. If at the same time the process of performing the first sliding operation is performed, and there is a condition of only one contact on the display screen at any time, the first sliding operation can be considered as a single-finger vertical sliding operation.
  • the first distance eg, 2 cm
  • the first sliding operation is considered to be a lateral sliding operation. If, at the same time, the difference in ordinate between the first contact and the second contact is less than or equal to the second distance (e.g., 0.5 cm), i.e., the second distance condition is satisfied, the first sliding operation is considered to be a horizontal sliding operation. If at the same time the process of performing the first sliding operation is performed, and there is a condition of only one contact on the display screen at any time, the first sliding operation can be considered as a single-finger horizontal sliding operation.
  • the sliding direction of the first sliding operation can be specified. That is, if the first sliding operation is a vertical sliding operation, it may also be specified that the ordinate of the first contact is smaller than the ordinate of the second contact, or the ordinate of the first contact is greater than the ordinate of the second contact. Alternatively, if the second sliding operation is a lateral sliding operation, it may be further provided that the abscissa of the first contact is smaller than the abscissa of the second contact, or the abscissa of the first contact is greater than the abscissa of the second contact.
  • the second touch screen operation may be a second sliding operation, the second sliding operation includes a third contact and a fourth contact, the third contact is a starting point of the second sliding operation, and the fourth contact is a second sliding At the end of the operation, the coordinates of the third contact are not the same as the coordinates of the fourth contact.
  • the second preset touch screen condition may include one or more of the following conditions: a difference between the abscissas between the third contact and the fourth contact satisfies the third distance condition, the third contact, and The difference in ordinate between the fourth contacts satisfies the fourth distance condition and in the process of generating the third contact to the fourth contact, there is at least one contact or the like on the display at any time.
  • the third distance condition and the fourth distance condition may be analogized to the first distance condition and the second distance condition, as described above.
  • the third distance and the fourth distance may be numerically the same as the first distance and the second distance, or may be different.
  • the preset time condition may be that the interval between the first touch screen operation and the second touch screen operation is less than or equal to the first threshold.
  • the first threshold should be a short time, for example within 1 s, that is, when the interval between the first touch screen operation and the second touch screen operation is small, the two touch screen operations are considered to be used to trigger the same instruction. , which displays the instructions of the favorite control.
  • the user may also be prompted to perform a touch screen operation, for example, when the first touch screen operation satisfies the first preset touch screen condition, the second floating window 1710 may be displayed, as shown in FIG. 5(b). Show.
  • the size of the second floating window 1701 may be smaller than the size of the first floating window 310. If the second touch screen operation of the user is not acquired within the preset time period, the display of the second floating window 1701 may be cancelled. If the second touch screen operation of the user is obtained within a preset time, the first floating window 310 provided with the favorite control is displayed, thereby giving the user an intuitive interaction feeling and improving the user experience. In the latter case, the second floating window 1701 may not be displayed, and does not affect the implementation of the embodiment of the present application.
  • the first touch screen operation and the second touch screen operation may be the same operation, or may be different operations, for example, the first touch screen operation and the second touch screen operation may all be horizontal sliding operations.
  • FIG. 5(a) in the tweet interface 100, sliding from left to right as a first touch screen operation, in response to the first touch screen operation, a smaller second suspension appears on the left side of the interface.
  • Window 1701 is shown in Figure 5(b).
  • the floating window 310 is shown in Fig. 3(a).
  • the tweet interface 100 constitutes a first interface as a target collection interface and a floating window 310.
  • S202 Receive a user's collection operation on the favorite control, obtain call information of the target collection interface, and collect the call information.
  • the user's favorite operation of the favorite control can be realized by clicking the favorite control on the first interface.
  • the mobile terminal may receive the user's collection operation on the favorite control, acquire the call information of the target collection interface, and collect the call information.
  • the call information of the target collection interface refers to a path that can open the target collection interface, for example, an activity call chain of an activity corresponding to the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface. .
  • the first interface may include multiple interfaces, which are not necessarily the target collection interfaces that the user wants to collect. Therefore, when a plurality of interfaces are included in the first interface, the target favorite interface may be determined from the plurality of interfaces.
  • the first interface may include other interfaces for assisting the user to use the application window, that is, the preset interface, which may not be the target collection interface with a large probability, so
  • the preset interfaces may be excluded first, that is, the target collection interface is determined from the interfaces other than the preset interface among the multiple interfaces of the first interface.
  • the target collection interface that the user wants to collect is the tweet interface 100
  • the preset interface may include a shortcut menu interface or the like, for example, an interface corresponding to the 360 acceleration ball; or the preset interface may be an interface including a favorite control.
  • the first floating window 310 For example, the first floating window 310.
  • the number of interfaces except the preset interface in the first interface is only one, because in most cases, only one application window is the main window, for example, FIG. 1(e), the main window is WeChat.
  • the window can directly obtain the interface displayed on the display except the preset interface, that is, the tweet interface 100, as the target collection interface.
  • the mobile terminal can respectively obtain a representative view of the plurality of interfaces other than the preset interface or a name of the representative view. For the manner of obtaining the view, refer to the obtaining mode in S203, and generate an interface selection control for each interface. The representative view of the corresponding interface and/or the name representing the view is displayed in the interface selection control.
  • the mobile terminal receives the user's selection operation of the plurality of interface selection controls, and determines an interface corresponding to the interface selection control selected by the user as the target collection interface.
  • the interface in the first interface except the preset interface is three, receiving the user's favorite operation on the favorite control, and displaying a third suspension including the view selection control on the display screen.
  • the three view interfaces corresponding to the preset interface respectively have corresponding view names: “VIEW1 name” 321, “VIEW2 name” 322, “VIEW3 name” 323 (see the dotted frame).
  • these view names can be displayed as text labels, and a view selection control of "+" 324 (see inside the dotted line frame) is formed on the right side of the view name "VIEW1 Name" 321 for the user to select.
  • the user can select the interface corresponding to VIEW1, and the mobile terminal correspondingly uses the interface corresponding to VIEW1 as the target collection interface.
  • the mobile terminal when the mobile terminal receives the user's collection operation on the favorite control, and obtains the calling information of the target collection interface according to the collection operation and collects it, the collection process is completed, and the collection control may be included at this time.
  • the floating window is hidden.
  • the corresponding hidden instruction may be generated according to a click event of the user in a preset area of the display screen, or may be generated according to a sliding event of the user in a preset area of the display screen, and the preset area may be an area covered by the floating window in the display screen.
  • the first floating window 310 is provided with a favorite control “add+” 301. Clicking on the area outside the first floating window 310 and within the tweet interface 100 can hide the first floating window. 310, that is, the favorite control "Add+" 301 in the first floating window 310 can be hidden at the same time.
  • the second interface is displayed, and the second interface includes a display control of the target collection interface.
  • the display control including the target collection interface
  • the display control refers to a control that can receive the user's display operation
  • the display control is associated with the call information of the target collection interface.
  • the mobile terminal may display the target collection interface according to the call information of the target favorite interface corresponding to the display control.
  • the display control may be a physical button or a virtual button, and the display control may be disposed in the floating window, for example, the first floating window 310 or other floating windows.
  • the display control may be displayed by responding to the user operation.
  • the application interface is included in the second interface
  • the first floating window 310 provided with the display control may be displayed in response to the user's operation on the application interface.
  • the type of operation on the application interface can refer to the type of operation required to display the first floating window 310 in which the favorite control is set in S201.
  • the second interface includes an application interface and a first floating window 310 provided with display controls.
  • the application interface may be another interface of the application corresponding to the target collection interface, or may be an interface of another application different from the target collection interface, or may be the target collection interface itself.
  • the display control of the target collection interface is a virtual key, it may be a blank virtual key, or may be a virtual key including a representative view, wherein the representative view may reflect the content of the target collection interface.
  • the representative view may be a view formed according to all or part of the view in the target favorite interface. Specifically, all or part of the view may be selected as the target view in the target collection interface, and then the representative view may be generated according to the selected target view, and the representative view may be a combination of the target view or a thumbnail of the combined view of the target view.
  • the target view is a view that can reflect the content of the target collection interface.
  • the target collection interface corresponds to multiple candidate views, not every candidate view can reflect the content of the target collection interface, and thus, the content can be obtained.
  • a plurality of candidate views corresponding to the target collection interface, and the target view is determined from the plurality of candidate views.
  • the candidate views may be grouped according to the display positions of the plurality of candidate views in the screen to obtain a plurality of sets of candidate views.
  • the view selection control corresponding to each group of candidate views in the plurality of sets of candidate views is displayed in the third interface, and the user selects the view selection control, and the candidate view corresponding to the view selection control selected by the user is determined as the target view.
  • the position of the plurality of candidate views in the screen can be divided into two groups, one set is located in the upper half of the screen, and the other set is located in the lower half of the screen.
  • Each set of candidate views corresponds to a view selection control, for example, a set of candidate views located in the upper half of the screen corresponds to the first view selection control, and a set of candidate views located in the lower half of the screen corresponds to the second view selection control. If the user clicks on the first view selection control, the set of candidate views in the upper half is taken as the target view.
  • the attributes of the multiple candidate views may be separately obtained, and the target view is determined from the plurality of candidate views according to the attributes of the multiple candidate views.
  • the plurality of candidate views may include candidate views of different attributes such as text, picture, video, audio, etc., since the attributes of the candidate view reflect to some extent the degree to which the representative view represents the target collection interface, the different attributes of the candidate view may be selected. , grouping multiple candidate views, and obtaining the content that the user wants to obtain as accurately as possible without requiring user operations. For example, the user can select a candidate view of the picture and text as the target view.
  • the above groupings do not constitute a limitation on the present application, and those skilled in the art can also design according to specific situations.
  • the candidate views can be grouped according to the page title, body or other information (eg, advertisements) in the page.
  • the artificial intelligence can also be used to obtain the user's selection result of the target view, analyze the user's preference, thereby recommending the target view for the user or automatically selecting a suitable target view for the user. For example, for an article, a user may typically select a view corresponding to the title as the target view; for a video site, the user typically selects the video itself as the target view.
  • the multiple candidate views may not be in a side-by-side relationship, for example, a view tree may be formed, and the view tree may include multiple layers, and the first layer is a root view in order from top to bottom.
  • the second layer is a level 2 subview, and so on. It can be understood that the fewer the number of layers, the smaller the number of candidate views included; the more the number of layers, the more the number of candidate views included.
  • the candidate view of the preset number of layers can be selected from the view tree, and the target view is determined, wherein the preset number is a positive integer, so that the main candidate view can be used as the target view, so that the user operation is not required. Get the content you want to get as accurately as possible.
  • the user can determine the specific number of layers.
  • the candidate view of the pre-predetermined number of layers determined by the user may be displayed to the user, if the user feels that the determined pre-predetermined number of layers of the candidate view is insufficient to express the content displayed by the target collection interface, or the determined target view Too many views, you can also determine the depth of the displayed view tree by adjusting the number of layers of the candidate view displayed by the slider displayed on the interface.
  • the representative view can be formed according to the target view. Since the representative view is obtained according to the target view, the content of the target view can be reflected, and the target view is the view in the target collection interface, so the representative view can be embodied. A view of the content of the target collection interface.
  • a representative view can be displayed in the display control of the target collection interface.
  • a plurality of display controls may be displayed on the display screen in the form of a list, which may be displayed in the first floating window 310.
  • the target view is the tweet interface 100, the corresponding public number view of the tweet, the tweet title "Jay Jay, I don't always think of you, but never forget" the combination of the view and the release date view.
  • the delegate view is a thumbnail of the target view.
  • the display control may further include a display control, wherein the display control may display the view name of the target view, and the name of the view may be the same as the name of the target favorite view, or may be the same as the name of the target view. More interface information can be included.
  • the display location representing the name of the view can be located above the representative view. Because the display controls take up less space on the display, more than one display control can be displayed on the display when there are multiple display controls.
  • the display controls represent the name of the view "Daily Douban - Jay Chou" 402 and the representative view "Jay Jay, I don't always think of you, but never forget" 401 shows in the list The first item, and the display control that represents the name of the view "Daily Douban - Jay Chou -- 402 is located above the representative view "Jay Jay, I don't always think of you, but never forget” 401.
  • the display of the terminal is small, the user can receive the hidden operation of the view and hide the representative view displayed on the display.
  • the hidden operation of the view may be a click event or a sliding event of the preset area of the user on the display screen.
  • the preset area may be a position representing the name of the view.
  • the preset area may also be other areas, such as a blank space of the first floating window 310.
  • the display control After hiding the delegate view, the display control only includes display controls that display the name of the view, and the display controls can also be displayed as a list.
  • the display control displaying the name "Daily Douban-Jay Chou" 402 representing the view displays the first item of the list in the first floating window 310, and displays the name of the representative view "QQ Aspect - So far there is no" 403 display controls and display controls representing the view name "Tmall Supermarket - Limited Time Grab" 404 as display controls for other interfaces, displayed in the second and third items of the list.
  • the representative view can be displayed by receiving the user's viewing operation on the name representing the view, which can be triggered by clicking the name of the representative view. For example, referring to FIG. 6(c), clicking on the display control showing the name "Daily Douban - Jay Chou -- 402 representing the view can be displayed below the display control of "Daily Douban - Jay Chou" 402. View “Jay Chou, I don't think of you often, but I never forget" 401, as shown in Figure 6(b).
  • the display control can only include the display control by default.
  • the corresponding display control may be clicked to display the representative view; when the user does not need to see the representative view, the display control may be clicked again, or the blank of the first floating window 310 may be clicked. To make the delegate view hidden.
  • the representative view can be used to reflect the content of the target collection interface, if the content of the target collection interface is updated, for example, the tweet in the WeChat public number in the tweet interface 100 in FIG. 1(e) is deleted, as shown in FIG.
  • the updated target collection interface 500 optionally, the representative view may be generated according to the target view, and the target view is the view in the updated target favorite interface 500. Specifically, there are two ways to generate a representative view.
  • the mobile terminal can automatically obtain the target view according to the updated target collection interface 500, and can monitor the target collection interface 500.
  • the target collection interface 500 is updated, the target is acquired from the updated target collection interface 500.
  • View which generates a representative view based on the target view.
  • the user can view the name of the representative view, obtain the view of the target collection interface, obtain the target view from the view of the target collection interface, and generate a representative view according to the target view.
  • the generated representative view is a view corresponding to the updated target favorite interface 500.
  • the user can click on the name of the representative view to implement a view of the name representing the view.
  • the display control including the name "Daily Douban-Jay Chou" 402 representing the view is displayed in the first floating window 310, and the user displays the control by clicking "Daily Douban-Jay Chou" 402,
  • the viewing operation is performed on behalf of the name of the view, and the mobile terminal receives the user's viewing operation on the name of the representative view, and generates and displays the representative view.
  • the generated first floating window 310 displaying the representative view is as shown in FIG. 8(b).
  • the generated representative view is “The content has been deleted by the publisher” 601, and the name of the representative view displayed correspondingly is “Daily Douban-The Content...” 602.
  • the user can also click on the blank of the first floating window 310 so that the mobile terminal hides the representative view "This content has been deleted by the publisher” 601, and only displays the name "Daily Douban - This Content" 602 representing the view.
  • S204 Receive a display operation of the display control by the user, obtain call information of the target favorite interface, and display a target favorite interface according to the call information of the target favorite interface.
  • the user's display of the display control can be achieved by clicking on the display control on the second interface.
  • the display control is a control that receives a display operation of the user, and may be a physical button or a virtual button.
  • the display control may be disposed in the floating window, for example, may be disposed in the first floating window 310.
  • the receiving terminal can obtain the calling information corresponding to the target collection interface corresponding to the display control according to the association relationship between the display control and the calling information of the target collection interface.
  • the mobile terminal can display the target collection interface according to the calling information of the target collection interface. For example, referring to FIG. 6(c), when the second interface includes the WeChat chat interface 120 and the first floating window 310 as shown in FIG. 1(b), the receiving user clicks on the first floating window 310 as a display control.
  • the representative view "Jay Chou, I don't think of you often, but never forget" the operation of 401, the mobile terminal ringing from the WeChat chat interface 120 to the tweet interface 100, realizing the quick display of the tweet interface 100, the user does not need Quickly display the interface by memorizing different steps.
  • the second interface includes a tweet list interface 140 and a first floating window 310 as shown in FIG. 1(d), or the second interface includes an interface of other applications other than WeChat (for example, an interface of Weibo) and the first
  • WeChat for example, an interface of Weibo
  • the user can also click on the first floating window 310 as a representative view of the display control "Jay Chou, I don't always think of you, but never forget" the operation of 401, from the tweet list interface 140 or
  • the interface of the microblog jumps to the tweet interface 100 to implement a quick display of the tweet interface 100.
  • the user does not need to find the desired tweet, and does not need to open the application corresponding to the tweet interface 100, thereby reducing the operation steps and improving the user experience.
  • the display control corresponding to the target collection interface may also be deleted, for example, the representative view as the display control and/or the name of the representative view may be deleted.
  • the mobile terminal deletes the display control by receiving a deletion operation of the display control by the user.
  • the "X" 603 on the right side of the name "Daily Douban - The Content" 602 representing the view in FIG. 8(c) can be used as a delete control, which is a control that can receive a user's delete operation, in the user.
  • the mobile terminal deletes the name and the representative view of the representative view, and adjusts the display positions of the other representative views accordingly, and the formed first floating window 310 can refer to FIG. 8(d).
  • the user may receive the collection operation of the favorite control in the first interface to obtain the target in the first interface.
  • the call information of the collection interface is collected, and the call information is collected.
  • the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface, and receives
  • the user displays the display control, and displays the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
  • an application layer and a framework layer inside the mobile terminal are required to provide support.
  • the relationship between the interface and the activity of the framework layer on the mobile terminal will be described below.
  • Android (Android) mobile phone As an example, its operating system can be divided into multiple layers, from high to low, Android application layer (Application) 710, Android application framework layer (Application Framework) 720, Android system running layer (Libraries and Runtime) 730 and Linux kernel layer (Linux Kernel) 740, as shown in FIG.
  • Android application layer Application
  • Android application framework layer Application Framework
  • Android system running layer Library and Runtime
  • Linux kernel layer Linux kernel layer
  • the application layer 710 includes some core application packages and custom applications, such as a contact 711, a microblog 712, a WeChat 713, a browser 714, and an email 715, etc.; the application framework layer 720 is the basis of Android application development. Providing a basic framework required for application implementation, for supporting content of the application layer, may include an activity manager (Activity Manager) 721, a resource manager (Resource Manager) 722, a view system 723, a content provider 724, and a notification manager 725.
  • Activity Manager Activity Manager
  • Resource Manager Resource Manager
  • view system 723 a content provider 724
  • notification manager 725 Providing a basic framework required for application implementation, for supporting content of the application layer, may include an activity manager (Activity Manager) 721, a resource manager (Resource Manager) 722, a view system 723, a content provider 724, and a notification manager 725.
  • a system operation layer 730 is used to support various components of the application framework layer, such as layer management 731 in the system runtime, media library 732, Relational database (SQLite) 733, Web browser (WebKit) 734, Open Computing Language (OpenCL) 735, etc.; Linux kernel is also used as an abstraction layer of hardware and software stack, used to support Android core system services, including Process/thread 741, power management 742, and driver 743, and the like.
  • the system running layer 730 and the Linux kernel layer 740 are not related to the embodiment of the present application, and are not specifically described herein.
  • the activity manager 721 of the application framework layer starts the activity, and the window manager calculates and draws the window, specifically, Calling the create view (setContentView) method to call the window object associated with the activity, the window object is used to describe the application window corresponding to the activity, the window object calls the view object inside it, and the view object recursively calls its subclass
  • the drawing method to complete the drawing of each sub-view control (in fact, before the drawing, you need to go through the layout and measure to determine the size of the view and the position displayed on the screen). After all the sub-views are drawn,
  • the screen buffer service communicates with the underlying hardware drawing program to complete the refresh and display of the interface on the screen.
  • the information of the activity usually exists in the form of package name, class name, etc., and in the specific implementation, the activity is usually saved in the form of a stack.
  • the WeChat is opened, the display screen displays the WeChat chat interface 120 as shown in FIG. 1(b), and the stack 801 is created, and the activity 1 corresponding to the WeChat chat interface 120 is generated, and the activity 1 is located at the top of the stack of the stack 801.
  • the subscription number 102 is displayed in the WeChat chat interface 120, and the user clicks on the subscription number 102.
  • the mobile terminal enters the subscription number interface 130 in FIG. 1(c), and generates the activity 2 corresponding to the subscription number interface 130.
  • the current stack is the stack 802.
  • the subscription number interface 130 displays a plurality of public numbers.
  • the tweet list interface 140 includes multiple The information of the tweet, and the mobile terminal generates the activity 3 corresponding to the tweet list interface, the current stack is the stack 803, and the activity 3 is on the top of the stack of the stack 803, and the activity 2 and the activity 1 are suspended.
  • the mobile terminal displays the tweet interface 100 as shown in Figure 1(e), and generates the tweet corresponding activity 4, the current stack.
  • activity 4 is at the top of stack 804, activity 3, activity 2, and activity 1 are suspended.
  • the tweet list interface 140 shown in FIG. 1(d) is returned from the tweet interface 100 shown in FIG. 1(e), and the activity 4 is ejected from the top of the stack 804. That is destroyed, the current stack is the stack 803, the activity is 3 at the top of the stack, and the activity 3 is restored.
  • the meaning that the activity is visible means that the interface corresponding to the activity is displayed on the display screen.
  • the generation of each of the above activities can be achieved through an activity call chain, which is the generation path of the activity.
  • the target collection interface When the target collection interface is in a non-visible state, it can be used to jump from the other interface to the target collection interface according to the activity call chain, so that the target collection interface is visible.
  • the activity call chain of the activity 3 may be "activity 1 - activity 2 - activity 3", that is, the activity 1 is generated first, then the activity 2 is generated, and finally the activity 3 is generated.
  • the activity manager 721 can jump from the current activity to the activity 3 according to the activity call chain of the activity 3, so that the interface corresponding to the activity 3 is in a visible state.
  • the management of the interface can be realized by managing the activity, and the jump of the interface is realized by the jump of the activity.
  • the interface display method provided in real time by the present application can be implemented, for example, by interaction between the first application, the first system service, and the second system service.
  • the first application may be an application developed at the application layer in order to implement the interface display method of the present application, and the user completes triggering of a series of instructions through an operation interface provided by the first application.
  • the first system service is a service component developed in the application framework layer to provide support for the first application
  • the second system service is a service component other than the first system service in the Android system
  • the second application is in the Android system.
  • Other applications than the first application such as WeChat, Weibo, etc.
  • FIG. 11 is a schematic diagram of steps of an interface display method on a first application side according to an embodiment of the present application.
  • the interface display method provided in the embodiment of the present application is specifically exemplified below.
  • a favorite control is a control that can receive a user's favorite operation, either a physical button or a virtual button.
  • the favorite control can be set in the floating window.
  • the “Add+” 301 can be set as a favorite control in the first floating window 310 (see the gray floating window area).
  • the favorite control may be displayed in the first application, and the display interface of the first application is the first floating window 310.
  • the target collection interface is also displayed on the display screen, and the target collection interface may be an interface in the application, such as a tweet interface 100, a WeChat chat interface 120, a subscription number interface 130, and a tweet list interface 140.
  • the floating window and the target collection interface provided with the favorite control form a first interface.
  • the favorite control can be displayed in response to the user operation.
  • the currently displayed interface is the display target collection interface
  • the first floating window 310 provided with the favorite control is displayed in response to the user operation, thereby forming the first interface.
  • the target favorite interface may be paused, but still in a visible state.
  • the user can display the favorite control by performing two touch screen operations on the target collection interface.
  • the mobile terminal acquires the first touch screen operation and the second touch screen operation triggered by the user on the target collection interface, and determines the two touch screen operations, if the first touch screen operation and the second touch screen operation meet the preset condition , the favorite control is displayed on the first interface.
  • preset conditions refer to the description in S201, and no further description is made here.
  • FIG. 12 is a first application service, a second system service, and a first application in the process of displaying a first floating window and a favorite control thereof according to a user's touch screen operation.
  • the interaction diagram between the programs is understood to be illustrative only and not to limit the technical solutions of the present application.
  • the interaction process includes the following steps:
  • the second system service acquires the user's first touch screen operation, determines the touch screen operation information of the first touch screen operation, such as the time and coordinates of pressing the screen, the time and coordinates of leaving the screen, and the like, and the first touch screen
  • the operated touch screen operation information is sent to the first system service
  • the second system service receives a request to create a second floating window 1701, obtains a view of the second floating window 1701, so that the first application displays the second floating window 1701;
  • the second system service acquires the second touch screen operation of the user, determines the touch screen operation information of the second touch screen operation, such as the time and coordinates of pressing the screen, the time and coordinates of leaving the screen, and the like, and the second touch screen
  • the operated touch screen operation information is sent to the first system service
  • the first floating window 310 is created to the second system service request.
  • S1102 Receive a user's collection operation on the favorite control, acquire the call information of the first activity corresponding to the target favorite interface, and collect the call information.
  • the user's favorite operation of the favorite control can be realized by clicking the favorite control on the first interface.
  • the user's favorite operation is an instruction indicating that the first application collects the target favorite interface, and the user may perform a collection operation on the favorite control in the first application, and the mobile terminal passes the first application and the first system service and the second system. The service interacts to achieve a response to the operation.
  • the target collection interface may be another interface other than the favorite control in the first interface, and receive the user's collection operation on the favorite control, and the mobile terminal may obtain the activity call information of the first activity, and the first activity is an activity corresponding to the target collection interface.
  • the activity call chain of the first activity may be acquired, and the activity call chain of the first activity refers to a path capable of generating the first activity, and is a call chain of activities required to display the target collection interface.
  • the interface where the favorite control is located is the interface currently displayed on the display screen, and the corresponding activity of the corresponding application is also visible. That is to say, when the target collection interface is displayed on the display screen, the first activity corresponding to the target collection interface must be in a visible state, and the activities in the visible state are not necessarily the first activity. Therefore, in order to identify the first activity corresponding to the target collection interface, in the embodiment of the present application, the activities in the visible state may be used as candidate activities, and the first activity is determined from the plurality of candidate activities.
  • the preset activity may be, for example, an activity corresponding to the application window used by the auxiliary user on the display screen, for example, the activity corresponding to the shortcut menu and the first application corresponding to the favorite control.
  • the activity, etc., at this time, the first activity can be determined from candidate activities other than the preset activities.
  • the number of candidate activities other than the preset activity is only one, because in most cases, only one application window is the main window, as shown in Figure 1(b) to Figure 1(e).
  • the window is a window of WeChat, and the application window displayed on the display screen includes a WeChat window and a first floating window 310 provided with a favorite control.
  • the candidate activities other than the preset activities corresponding to the first floating window 310 are only WeChat.
  • the corresponding activity of the window can be used as the first activity of the activity corresponding to the WeChat window.
  • the first application can acquire an activity in a visible state, such as an activity at the top of the stack, that is, as a first activity corresponding to the target collection interface.
  • the upper half of the display screen can display the WeChat window, and the lower half can display the micro screen.
  • the window of the blog also displays the floating window of the shortcut menu.
  • the two activities except the preset activity may be the first activity corresponding to the target collection interface that the user wants to select.
  • the first application may respectively obtain a representative view or a representative view corresponding to the plurality of candidate activities other than the preset activity, and perform activities for each candidate state.
  • An activity selection control is generated.
  • the activity selection control is the same as the interface selection control in S202.
  • the representative view and/or the name of the representative view are displayed in the third floating window 320, and the active selection control corresponding to the candidate activity is displayed.
  • the mobile terminal receives the user's selection operation of the activity selection control, and determines an activity corresponding to the activity selection control selected by the user as the first activity.
  • the view selected by the user may be the root view corresponding to the application, or may be a sub view corresponding to the application.
  • the view selected by the user is the root view or the sub view corresponding to the application, the user may be considered to select the activity corresponding to the application as the first activity.
  • the activity chain of the first activity may be acquired by the second system service, so that when the user performs a display operation on the display control of the target collection interface, the first activity is implemented according to the activity call chain of the first activity.
  • the corresponding target collection interface is displayed.
  • the above-mentioned first application program displays the representative view corresponding to the candidate activity to the user, and describes the process of determining the first activity according to the user's selection operation of the activity selection control. It can be understood that the following description is It is merely exemplary and does not constitute a limitation on the technical solution of the present application.
  • the interaction diagram between the first system service, the first application, and the second application includes the following steps:
  • the first application receives the collection operation on the favorite control, creates a third floating window 320 through the second system service, displays a representative view of the candidate activity, and requests the second system service to obtain the activity identifier in the visible state. ;
  • the second system service sends a list of identifiers to the first application
  • the first application requests the second system service to obtain a representative view corresponding to the activity in the visible state
  • the second system service obtains the representative view corresponding to the candidate activity by using the second application, and sends the representative view list to the first application;
  • the first application displays a representative view of the candidate activity other than the preset activity, and displays an activity selection control at a position corresponding to the view of the candidate activity other than the preset activity;
  • the activity corresponding to the selected representative view is taken as the first activity, and the activity call chain of the first activity is acquired;
  • the floating window provided with the favorite control may be hidden, and the corresponding hidden instruction may be generated according to a click event of the user in a preset area of the display screen. It may also be generated according to a sliding event of the user in a preset area of the display screen, and the preset area may be an uncovered area of the lower layer interface of the floating window.
  • the display control refers to a control that can receive a display operation of the user, and the display control is associated with the call information of the first activity corresponding to the target collection interface.
  • the display control can be a physical button or a virtual button.
  • the display control can be set in the floating window, for example, the first floating window 310 or other floating windows.
  • the display control may be displayed by responding to the user operation.
  • the application interface is included in the second interface
  • the first floating window 310 provided with the display control may be displayed in response to the user's operation on the application interface.
  • the type of operation on the application interface can refer to the type of operation required to display the first floating window 310 in which the favorite control is set in S1101.
  • the display control of the target collection interface is a virtual button, it may be a blank virtual button, or may be a virtual button including a representative view, and the representative view may reflect the content of the target collection interface.
  • the target view may be selected in the view corresponding to the first activity corresponding to the target collection interface, and the representative view may be generated according to the view parameter of the selected target view, where the representative view may be a combination of the target view or a combination of the target views.
  • a thumbnail of the view may be selected in the view corresponding to the first activity corresponding to the target collection interface, and the representative view may be generated according to the view parameter of the selected target view, where the representative view may be a combination of the target view or a combination of the target views.
  • the target view is a view that can reflect the content of the target collection interface.
  • the first activity corresponds to multiple candidate views, not every candidate view can reflect the content of the target collection interface, so the first view can be obtained.
  • the plurality of candidate views corresponding to the activity are determined, and the target view is determined from the plurality of candidate views.
  • the candidate view may be grouped by the first application, so that the user selects the target view according to the grouped candidate view.
  • S203 For the grouping process of the candidate view, reference may be made to S203, and details are not described herein again.
  • the view parameters of the target view can be obtained, and the representative view is generated according to the view parameters of the target view.
  • the view parameter of the target view is the basis for drawing the target view, for example, the view size of the target view, the position displayed on the screen, the pixel value, etc., and the view parameter of the target view may be called by the View object corresponding to the first activity. And the measure function is calculated.
  • the view size in the view parameter of the target view can be reduced by a preset ratio according to the reduced view size.
  • the preset ratio can be determined according to the actual situation, for example, the view size can be reduced to 1/5 of the original.
  • the generation mode of the representative view of the target view can also be determined according to the actual situation, and will not be specifically described herein.
  • a display control of the target collection interface can be formed. If there are multiple display controls, they can be displayed in the form of a list, for example, in the form of a list in the floating window of the overlay display.
  • the display control may further include a display control, wherein the display control may display the view name of the target view, and the name of the view may be the same as the name of the target favorite view, or may be the same as the name of the target view. More interface information can be included.
  • the display location representing the name of the view can be located above the representative view. Because the display controls take up less space on the display, more than one display control can be displayed on the display when there are multiple display controls.
  • the representative view can be used to reflect the content of the favorite collection interface of the collection, if the content of the target collection interface is updated, for example, the tweet in the WeChat public number is deleted, the representative view can be generated according to the updated data of the target view.
  • the view of the target favorite interface corresponding to the first activity changes, and the view component of the application framework layer redraws the view in the target favorite interface according to the updated view parameter.
  • the view in the target collection interface is updated accordingly.
  • the first application can obtain the target view of the updated target collection interface, and generate a representative view according to the updated view parameter of the target view.
  • the first generation method of the representative view can automatically generate the representative view through the background. Specifically, the view parameters of the target view corresponding to the view can be monitored, and the corresponding representative is generated when the view parameter of the target view is updated. view. In this manner, when the view parameter of the target view is modified, the first system service can obtain the modified view parameter of the target view, and generate a representative view according to the modified view parameter.
  • the second system service may notify the first application after monitoring the notification that the view has been drawn, and the first application determines whether the view is in the saved view list, because the view list is saved.
  • the view corresponding to the favorite activity If the view is in the saved view list, it indicates that the view is the target view corresponding to the favorite activity.
  • the view parameter of the target view corresponding to the favorite activity can be considered to be modified. , so that the drawn target view can be obtained, and the representative view is generated according to the modified view parameter of the target view.
  • the representative view After the representative view is generated, the representative view can be displayed on the display interface of the first application, so that the user can obtain the view information corresponding to the first activity in real time, thereby improving the user experience. If the representative view is not in the display state at this time, or the first application is in the non-visible state, it is possible to save only the representative view, not to display the representative view, and display it when the first application is started next time.
  • FIG. 15 is a process of generating a representative view according to the modified view parameter when the view parameter of the target view is modified, the first system service, the second system service, the first application, and the first
  • the interaction process includes the following steps:
  • the second system service monitors the notification that the view of the second application is completed, and sends the drawn view of the second application to the first system service;
  • the first system service determines whether the view is located in the stored view list, and if so, determines whether the first application is in a visible state by using the second system service, and if yes, obtains a representative view according to the completed view, and sends the representative view Give the first application;
  • the first application receives the representative view, checks whether the representative view corresponding to the view is being displayed, and if so, updates the representative view to refresh the screen display content.
  • the second generation method of the representative view can receive the user's view operation on the name of the representative view, obtain the view corresponding to the first activity, obtain the target view from the view of the first activity, and generate a representative view according to the target view.
  • the target collection interface is the updated target collection interface 500
  • the generated representative view is a view corresponding to the updated target collection interface 500.
  • the user can click on the name of the representative view to implement a view of the name representing the view.
  • there may be two cases where the application corresponding to the first activity may be running or may have finished running. Determining whether the application corresponding to the first activity is running.
  • the identifier of the first activity may be obtained, and determining whether the identifier of the first activity exists in the active thread, and the identifier may receive the user's view operation on the name of the representative view.
  • the identifier of the first activity may be an activity name or an activity code, and the identifier of the different activity may be the same, or may be the same as the name of the interface corresponding to the first activity or the name of the view. If the identifier of the first activity is in the active thread, it indicates that the application corresponding to the first activity is running in the background; if the identifier of the first activity is not in the active thread, it indicates that the application corresponding to the first activity has finished running, corresponding The first activity is also destroyed and is therefore no longer active in the thread.
  • the receiving user's viewing operation on the name of the representative view slightly differs in the acquisition process of the view parameters of the target view.
  • the following two cases are introduced separately.
  • the identifier of the first activity exists in the active thread, it indicates that the application corresponding to the first activity runs in the background, and the application corresponding to the target favorite interface is in the active state, and the application may be run in the background according to the calling information of the target favorite interface.
  • the view parameters of the target view corresponding to the first activity are obtained.
  • the identifier of the first activity does not exist in the active thread, the first activity has been destroyed, and the application corresponding to the target collection interface is in a closed state.
  • the corresponding activity of the first activity may be started according to the calling information of the target collection interface.
  • the application, and the activity generated by the application from the time of startup until jumping to the first activity and the first activity are in a non-visible state, that is, the application corresponding to the first activity is before the user launches the application Runs only in the background, and obtains the view parameters of the target view through the first activity corresponding to the application launched in the background.
  • the purpose of launching the application corresponding to the first activity is to obtain the updated view parameters of the target view, so that the application can be run in the background without being displayed on the display screen, and the user manually launches the application or the mobile terminal.
  • the target collection interface is displayed.
  • the target view is guaranteed to reflect the content of the latest version of the target favorite interface, that is, the representative view is generated in real time. If the application corresponding to the target collection interface is in the closed state, the application is started in the background according to the calling information of the target favorite interface, and the view parameter of the target view of the target favorite interface is obtained from the application launched in the background, and the application is started from the application to the application.
  • the generated interface and the target collection interface before jumping to the target collection interface are not seen by the user, and the user only sees the second interface of the display control that displays the latest version of the representative view, thereby improving the user experience.
  • the application corresponding to the target favorite interface is in the active state, the application is run in the background according to the calling information of the target favorite interface, and the target favorite interface is acquired in the process of running the application in the background.
  • the view parameters of the target view ensure that the process of opening the target collection interface by the application is also not seen by the user, improving the user experience.
  • the representative view can be generated according to the updated view parameters of the target view.
  • the process can refer to the process of generating a representative view according to the view parameters of the target view, and details are not described herein.
  • the display control of the target favorite interface is formed.
  • starting the application corresponding to the first activity is to obtain the updated view parameter of the target view, which is different from the application. Normal startup, so you can also add an extra restart token to the first activity to distinguish it from the normal startup of the application.
  • FIG. 16 is an interaction between the first system service, the second system service, the first application, and the second application in the process of generating a representative view by the user performing a viewing operation on the name of the representative view. It should be understood that the following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application.
  • the interaction process includes the following steps:
  • the first application receives the user's viewing operation on the name of the representative view, and sends the identifier of the first activity corresponding to the view to the second system service;
  • the second system service determines whether the first activity exists in the active thread, if not, performs step 3), and if so, performs step 4);
  • the first application restarts the second application corresponding to the first activity by using the second system service, adds an additional restart flag to the first activity, causes the second application to run in the background, does not display on the screen, and performs step 4) ;
  • the first application obtains the view parameter of the target view through the second system service, generates a representative view according to the view parameter of the target view, and performs step 5);
  • the first application sends information representing the view to the first system service.
  • the update of the target collection interface may be obtained according to the displayed representative view without opening the application, and the first activity is not required to be displayed.
  • the application window is closed, the floating window is hidden to facilitate user viewing and improve the user experience.
  • S1104 Receive a display operation of the display control by the user, obtain an activity call chain of the first activity, and make the first activity visible according to the activity call chain of the first activity.
  • the user's display of the display control can be achieved by clicking on the display control on the second interface.
  • the display control refers to a control that receives the user's display operation, and can be a physical button or a virtual button, and the display control can be set in the floating window.
  • the receiving, by the user, the displaying operation of the display control, the first application may obtain an activity calling chain of the first activity corresponding to the display control according to the association relationship between the display control and the activity chain of the first activity.
  • the activity corresponding to the application interface other than the interface corresponding to the display control in the second interface is used as the second activity, and the first interface corresponding to the first activity corresponding to the application interface of the second activity may be an adjacent interface, or may be It is not an adjacent interface, and may be the same interface, and is not specifically limited herein.
  • the activity call chain can be related to the package name, class name, and the like corresponding to the activity.
  • the view component of the application framework layer can obtain the activity and its corresponding view parameters according to the activity chain of the first activity, draw the view according to the view parameter, and display the completed view on the display screen of the mobile terminal by the window manager.
  • the calling information of the target collecting interface may include an activity calling chain of the first activity corresponding to the target collecting interface, and therefore, the display control may be obtained according to the display operation of the display control by the user.
  • the first activity corresponding to the target collection interface, and then the interaction call chain of the first activity may be obtained according to the display operation of the display control by the user.
  • the activity corresponding to the tweet interface 100 is activity 4, and the activity call chain is: activity 1 - activity 2 - activity 3 - activity 4.
  • the representative view "Jay Jay, I don't always think of you, but I never forget" 401 can be used as a display control for the tweet interface 100, by receiving the user-representative view "Jay Jay, I don't always think of you, but never forget The display operation of the 401, the first application may obtain the first activity corresponding to the target collection interface according to the representative view, and then obtain the activity call chain of the first activity, and implement the first activity according to the activity call chain of the first activity. Generation.
  • the first activity may or may not exist in the active thread.
  • the jump from the second activity to the first activity may be different depending on whether the first activity exists in the active thread.
  • the identifier of the first activity may be obtained first, and according to the identifier of the first activity, whether the identifier of the first activity exists in the active thread.
  • the activity may be directly jumped from the second activity to the first activity according to the activity chain of the first activity, and the second activity is an activity corresponding to the second interface, so that The second interface in the visible state jumps to the target collection interface. If it is detected that the first activity is added with an additional restart flag at this time, in order to enable the user to feel the jump action, the first activity may be destroyed, and the application corresponding to the first activity is restarted, and then jump to the first activity according to the activity call chain. An activity.
  • the application corresponding to the first activity may be restarted, and the activity is jumped from the second activity to the first activity according to the activity call chain. After completing the jump of the second activity to the first activity, the first application can be suspended or stopped.
  • FIG. 17 is a process of displaying a target collection interface corresponding to the first activity after the user displays the display control, and between the second system service, the first application, and the second application. It should be understood that the following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application.
  • the interaction process includes the following steps:
  • the first application receives the display operation of the display control by the user, and sends the identifier of the first activity to the second system service;
  • the second system service determines whether the activity identifier of the first activity exists in the active thread, and if so, performs step 3), and if not, performs step 4);
  • the first application determines whether the first activity has an additional restart flag, and if so, cancels the additional restart flag, destroys the first activity through the second system service, and if not, destroys the first activity through the second system service, and performs the step 4);
  • the display control corresponding to the target collection interface may also be deleted, for example, deleting the representative view and/or the name representing the view.
  • the first activity is added with an additional restart flag, the first activity is started to obtain the view parameter of the second view, and the user does not make it in the background.
  • the first activity can be destroyed by the need of the operation.
  • FIG. 18 is an interaction diagram between the first system service, the second system service, the first application, and the second application after receiving the deletion operation of the display control by the user. It can be understood that The following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application.
  • the interaction process includes the following steps:
  • the first application receives the deletion operation of the display control in the display control list
  • the first application removes the list item in which the delete control is located, and updates the interface
  • the first application acquires an activity identifier corresponding to the representative view corresponding to the deleted item, determines whether the activity has an additional restart flag, and if so, requests the second system service to destroy the activity;
  • the first application clears the representative view corresponding to the activity, and sends the updated representative view to the first system service;
  • the user may receive the collection operation of the favorite control in the first interface to obtain the target in the first interface.
  • the call information of the collection interface is collected, and the call information is collected.
  • the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface, and receives
  • the user displays the display control, and displays the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
  • the interface display device 1900 provided by the embodiment of the present application specifically corresponds to the function of the interface display method provided above.
  • the functions can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more units corresponding to the functions described above, which may be software and/or hardware.
  • the device 1900 can include:
  • the first display unit 1901 is configured to display a first interface, where the first interface includes a target collection interface and a favorite control;
  • the collecting unit 1902 is configured to receive a user's collection operation on the favorite control, obtain the calling information of the target collection interface, and collect the calling information;
  • the second display unit 1903 is configured to display a second interface, where the second interface includes a display control of the target favorite interface, and the display control is associated with the call information of the target favorite interface;
  • the third display unit 1904 is configured to receive a display operation of the display control by the user, obtain call information of the target favorite interface, and display the target favorite interface according to the call information of the target favorite interface.
  • the call information of the target collection interface includes an activity call chain corresponding to the activity of the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface.
  • the interface display device further includes: an activity determining unit, configured to acquire a plurality of activities corresponding to the first interface, and determine, from the plurality of activities corresponding to the first interface, one of the activities as the target favorite interface activity.
  • the interface display device further includes:
  • a view parameter obtaining unit configured to acquire a view parameter of a target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
  • the display control display unit is configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the view is obtained according to the view parameter of the target view.
  • the interface display device further includes: a target view determining unit, configured to acquire a plurality of candidate views corresponding to the target favorite interface, and determine the target view from the plurality of candidate views.
  • the target view determining unit includes:
  • a grouping unit configured to acquire a plurality of candidate views corresponding to the target collection interface, and group the plurality of candidate views according to the display positions of the plurality of candidate views to obtain a plurality of candidate views;
  • a view selection control display unit configured to display, in the third interface, a view selection control corresponding to each group of candidate views in the plurality of groups of candidate views;
  • the target view determining sub-unit is configured to receive a user selection operation of the view selection control, and determine a candidate view corresponding to the view selection control selected by the user as the target view.
  • the target view determination unit is specifically used to:
  • Obtaining a plurality of candidate views corresponding to the target collection interface respectively acquiring attributes of the plurality of candidate views, and determining the target view from the plurality of candidate views according to the attributes of the plurality of candidate views.
  • the target view determination unit is specifically used to:
  • the view parameter obtaining unit is further configured to acquire an updated view parameter of the target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
  • the display control unit is further configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the representative view is obtained according to the updated view parameter of the target view.
  • the interface display device further includes:
  • the application unit is started in the background, and is used to start the application in the background if the application corresponding to the target collection interface is in the closed state;
  • the view parameter obtaining unit is further configured to obtain a view parameter of the target view of the target favorite interface from the application launched in the background after receiving the user's favorite operation on the favorite control.
  • the display control further includes a display control, and the display control displays a view name representing the view;
  • the interface display device further includes:
  • the representative view display unit is configured to receive a display operation of the display control by the user, and display a representative view in the display control.
  • the interface display device further includes:
  • a collection control display unit configured to acquire a first touch screen operation and a second touch screen operation triggered by the user on the target collection interface, and if the first touch screen operation and the second touch screen operation meet the preset condition, the first The favorite controls are displayed on the interface.
  • the preset condition includes at least one of the following: the first touch screen operation satisfies the first preset touch screen condition, the second touch screen operation satisfies the second preset touch screen condition, and the first touch screen The interval between the operation and the second touch screen operation satisfies the preset time condition.
  • the first touch screen operates as a first sliding operation
  • the first sliding operation includes a first contact and a second contact, the first contact being the starting point of the first sliding operation, and the second contact being The end point of the first sliding operation, the coordinates of the first contact are different from the coordinates of the second contact;
  • the first preset touch screen conditions include:
  • the difference between the abscissas between the first contact and the second contact satisfies the first distance condition
  • the difference between the ordinates between the first contact and the second contact satisfies the second distance condition
  • the second touch screen operates as a second sliding operation
  • the second sliding operation includes a third contact and a fourth contact
  • the third contact is the starting point of the second sliding operation
  • the fourth contact is The end point of the second sliding operation
  • the coordinates of the third contact are different from the coordinates of the fourth contact
  • the second preset touch screen conditions include:
  • the interface display device further includes:
  • the display control deletion unit is configured to receive a deletion operation of the display control by the user, and delete the display control.
  • the user may receive the favorite operation of the favorite control in the first interface to obtain the target in the first interface.
  • the call information of the collection interface is collected, and the call information is collected.
  • the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface, and receives
  • the user displays the display control, and displays the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
  • the device may be a terminal device.
  • the interface jump device 2000 includes an input unit 2050, a processor 2030, an output unit 2010, a communication unit 2070, a memory 2040, a radio frequency circuit 2080, and the like.
  • the structure of the interface jump device shown in FIG. 20 does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more than the illustration. Or fewer parts, or combine some parts, or different parts.
  • the interface jump device may be any mobile or portable electronic device including, but not limited to, a smart phone, a mobile computer, a tablet computer, a personal digital assistant (PDA), a media player, and the like.
  • a smart phone a mobile computer
  • a tablet computer a personal digital assistant (PDA)
  • PDA personal digital assistant
  • the interface jump device 2000 includes:
  • the output unit 2010 is configured to output an image to be displayed.
  • the output unit 2010 includes but is not limited to the image output unit 2011 and the sound output unit 2012.
  • the image output unit 2011 is for outputting text, pictures, and/or video.
  • the image output unit 2011 may include a display panel, such as a display configured by a liquid crystal display (LCD), an organic light-emitting diode (OLED), a field emission display (FED), or the like. panel.
  • the image output unit 2011 may comprise a reflective display, such as an electrophoretic display, or a display utilizing an interferometric modulation of Light.
  • the image output unit 2011 may include a single display or multiple displays of different sizes.
  • the touch screen can also serve as a display panel of the output unit 2010 at the same time.
  • the touch screen detects a touch or proximity gesture operation thereon, it is communicated to the processor 2030 to determine the type of touch event, and then the processor 2030 provides a corresponding visual output on the display panel depending on the type of touch event.
  • the input unit 2050 and the output unit 2010 are implemented as two separate components to implement the input and output functions of the interface jump device, in some embodiments, the touch screen and the display panel may be integrated into one.
  • the interface jumps to the input and output functions of the device.
  • the image output unit 2011 can display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch through. operating.
  • GUIs graphical user interfaces
  • the image output unit 2011 includes a filter and an amplifier for filtering and amplifying the video output by the processor 2030.
  • the sound output unit 2012 includes a digital to analog converter for converting the audio signal output by the processor 2030 from a digital format to an analog format.
  • the processor 2030 is configured to execute a generation instruction in the memory, execute the interface display method, and process the received information to generate and output a corresponding interface.
  • the processor 2030 is a control center of the interface jump device, and connects various parts of the entire interface jump device by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory, and calling the storage. Data within the memory to perform various functions of the interface jump device and/or process data.
  • the processor 2030 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • IC integrated circuit
  • the processor 2030 may include only a central processing unit (CPU), or may be a graphics processing unit (GPU), a digital signal processor (DSP), and a communication unit.
  • CPU central processing unit
  • GPU graphics processing unit
  • DSP digital signal processor
  • a combination of control chips eg, baseband chips.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the memory 2040 is configured to store code and data, and the code is run by the processor 2030.
  • the memory 2040 can be used to store software programs and modules, and the processor 2030 executes various functional applications of the interface jump device and implements data processing by running software programs and modules stored in the memory 2040.
  • the memory 2040 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, such as a sound playing program, an image playing program, and the like; and the data storage area can be stored according to the interface jump Data created by the use of the device (such as audio data, phone book, etc.).
  • the memory 2040 may include a volatile memory such as a nonvolatile random access memory (NVRAM) or a phase change random access memory (PRAM). a magnetoresistive random access memory (MRAM), etc., may also include a non-volatile memory, such as at least one disk storage device, electrically erasable programmable read-only memory (electrically erasable programmable read-only memory) Memory, EEPROM), flash memory devices, such as NOR flash memory or NAND flash memory.
  • NVRAM nonvolatile random access memory
  • PRAM phase change random access memory
  • MRAM magnetoresistive random access memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory devices such as NOR flash memory or NAND flash memory.
  • the non-volatile memory stores the operating system and applications executed by the processor 2030.
  • the processor 2030 loads the running program and data from the non-volatile memory into the memory and stores the digital content in a plurality of storage devices.
  • the operating system includes controls and management of general system tasks such as memory management, storage device control, power management, etc., as well as various components and/or drivers that facilitate communication between various hardware and software.
  • the operating system may be an Android operating system of Google Inc., an iOS system developed by Apple Inc., or a Windows operating system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
  • Applications include any application installed on the interface jump device, including but not limited to browsers, email, instant messaging services, word processing, keyboard virtualization, widgets, encryption, digital rights management, voice recognition, voice Copy, locate (such as those provided by GPS), music playback, and more.
  • the input unit 2050 is configured to implement interaction between the user and the interface jump device and/or input information into the interface jump device.
  • the input unit 2050 can receive numeric or character information input by the user to generate a signal input related to user settings or function control.
  • the input unit 2050 may be a touch screen, or may be other human-computer interaction interfaces, such as physical input keys, microphones, etc., and may also be other external information capture devices, such as cameras.
  • the touch screen shown in the embodiment of the present invention can collect an operation action touched or approached by a user.
  • the user uses an action of any suitable object or accessory such as a finger, a stylus, or the like on the touch screen or near the touch screen, and drives the corresponding connecting device according to a preset program.
  • the touch screen may include two parts: a touch detection device and a touch controller. Wherein the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into The contact coordinates are sent to the processor 2030.
  • the touch controller can also receive commands from the processor 2030 and execute them.
  • the touch screen can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the physical input keys used by the input unit 2050 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. kind or more.
  • the input unit 2050 in the form of a microphone can collect the voice input by the user or the environment and convert it into a command executable by the processor 2030 in the form of an electrical signal.
  • the input unit 2050 may also be various types of sensor components, such as Hall devices, for detecting physical quantities of the interface jump device, such as force, moment, pressure, stress, position, displacement, Speed, acceleration, angle, angular velocity, number of revolutions, speed, and time when the operating state changes, etc., are converted into electricity for detection and control.
  • sensor components may also include gravity sensors, three-axis accelerometers, gyroscopes, electronic compasses, ambient light sensors, proximity sensors, temperature sensors, humidity sensors, pressure sensors, heart rate sensors, fingerprint readers, and the like.
  • the communication unit 2070 is configured to establish a communication channel, enable the interface jump device to connect to the remote server through the communication channel, and download the media data from the remote server.
  • the communication unit 2070 may include a wireless local area network (wireless LAN) module, a Bluetooth module, a baseband module, and the like, and a radio frequency (RF) circuit corresponding to the communication module, configured to perform wireless local area network communication, and Bluetooth.
  • wireless LAN wireless local area network
  • RF radio frequency
  • Communication infrared communication, and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or high speed downlink packet access (HSDPA).
  • W-CDMA wideband code division multiple access
  • HSDPA high speed downlink packet access
  • the communication module is used to control communication of components in the interface jump device and can support direct memory access.
  • various communication modules in the communication unit 2070 generally appear in the form of integrated circuit chips, and can be selectively combined without including all communication modules and corresponding antenna groups.
  • communication unit 2070 can include only baseband chips, radio frequency chips, and corresponding antennas to provide communication functionality in a cellular communication system.
  • the interface jump device can be connected to a cellular network or the Internet via a wireless communication connection established by the communication unit 2070, such as wireless local area network access or WCDMA access.
  • communication modules, such as baseband modules, in communication unit 2070 may be integrated into processor 2030, typically an APQ+MDM series platform such as that provided by Qualcomm.
  • the RF circuit 2080 is configured to receive and transmit signals during information transmission and reception or during a call. For example, after the downlink information of the base station is received, it is processed by the processor 2030; in addition, the uplink data is designed to be sent to the base station.
  • radio frequency circuit 2080 includes well-known circuitry for performing these functions, including but not limited to antenna systems, radio frequency transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, codecs ( Codec) Chipset, Subscriber Identity Module (SIM) card, memory, etc.
  • radio frequency circuit 2080 can also communicate with the network and other devices via wireless communication.
  • Wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple Access, CDMA), wideband code division multiple access (WCDMA), high speed uplink packet access (HSUPA), long term evolution (LTE), electronic Mail, short message service (SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple Access
  • WCDMA wideband code division multiple access
  • HSUPA high speed uplink packet access
  • LTE long term evolution
  • SMS short message service
  • a power supply 2090 is used to power different components of the interface jump device to maintain its operation.
  • the power source 2090 can be a built-in battery, such as a common lithium ion battery, a nickel metal hydride battery, etc., and an external power source that directly supplies power to the interface jump device, such as an AC adapter.
  • the power supply 2090 can also be more widely defined, for example, can also include a power management system, a charging system, a power failure detection circuit, a power converter or an inverter, and a power status indicator (eg, Light-emitting diodes), as well as any other components associated with the power generation, management, and distribution of interface jump devices.
  • Yet another aspect of the present application provides a computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the methods described in the various aspects above.
  • Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Abstract

Disclosed in embodiments of the present application are an interface displaying method, apparatus, and device. When a first interface is displayed on a display screen, a collection operation of a user on a collection control in the first interface is received, invoking information on a target collection interface in the first interface is obtained, and the invoking information is collected; when a second interface comprising a display control of the target collection interface is displayed on the display screen, since the display control is associated with the invoking information of the target collection interface, a display operation of the user on the display control can be received, and the target collection interface is displayed according to the invoking information of the target collection interface associated with the display control. That is to say, in order to achieve a second display of a target collection interface, a user just needs to trigger a collection control of a first interface and a display control of a second interface, without performing repeated operations step by step in a specific order, thereby saving the operation steps and saving the operation time of a user.

Description

一种界面显示方法、装置及设备Interface display method, device and device
本申请要求于2018年4月28日提交中国国家知识产权局、申请号为201810402152.2、发明名称为“一种界面显示方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201810402152.2, entitled "Interface Display Method, Apparatus and Equipment", filed on April 28, 2018, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及移动终端领域,尤其涉及一种界面显示方法、装置及设备。The present application relates to the field of mobile terminals, and in particular, to an interface display method, apparatus, and device.
背景技术Background technique
通常情况下,用户通过在移动终端安装的应用程序与移动终端发生交互。一个应用程序基于用户的多次操作通常会产生多个界面,用户在使用该应用程序的过程中,可能会在不同的界面之间进行跳转,以实现不同界面的切换。而当用户想要再次看到自己关注的界面时,只能按照应用程序规定的界面跳转顺序从其他界面跳转至关注的界面,实现关注的界面的显示,从而导致用户操作不便、体验较差的问题。Typically, a user interacts with a mobile terminal through an application installed on the mobile terminal. An application usually generates multiple interfaces based on multiple operations of the user. During the process of using the application, the user may jump between different interfaces to switch between different interfaces. When the user wants to see the interface that he or she is interested in again, he can only jump from the other interface to the interface of interest according to the interface jump order specified by the application, thereby realizing the display of the interface of interest, thereby causing inconvenience to the user and experience. Poor question.
发明内容Summary of the invention
本申请实施例提供了一种界面显示方法、装置及设备,用于解决传统技术中对界面跳转的操作不便的问题。An embodiment of the present invention provides an interface display method, device, and device for solving the problem of inconvenient operation of an interface jump in the conventional technology.
本申请第一方面提供一种界面显示方法,该方法可以应用于移动终端,该方法包括:The first aspect of the present application provides an interface display method, which can be applied to a mobile terminal, and the method includes:
移动终端显示第一界面,其中第一界面包括目标收藏界面和收藏控件,目标收藏界面是指用户关注的界面,收藏控件是指接收用户的收藏操作的控件,该控件可以设置在悬浮窗中。例如在微信中的推文界面作为目标收藏界面,目标收藏界面的上层设置有第一悬浮窗,第一悬浮窗中有收藏控件,推文界面和包含收藏控件的第一悬浮窗形成第一界面。移动终端接收用户对收藏控件的收藏操作,获取目标收藏界面的调用信息,并对调用信息进行收藏。其中目标收藏界面的调用信息是调用并显示目标收藏界面所需的信息。接着,移动终端显示第二界面,第二界面包括目标收藏界面的展示控件,该展示控件与目标收藏界面的调用信息相关联,在接收到用户对该展示控件进行的展示操作时,移动终端可以获取与展示控件相关联的目标收藏界面的调用信息,并根据目标收藏界面的调用信息显示目标收藏界面。The mobile terminal displays a first interface, wherein the first interface includes a target favorite interface and a favorite control, the target favorite interface refers to an interface that the user pays attention to, and the favorite control refers to a control that receives a user's favorite operation, and the control can be set in the floating window. For example, in the tweet interface in WeChat as the target collection interface, the upper layer of the target collection interface is provided with a first floating window, the first floating window has a favorite control, the tweet interface and the first floating window containing the favorite control form a first interface. . The mobile terminal receives the user's collection operation on the favorite control, acquires the call information of the target collection interface, and collects the call information. The call information of the target collection interface is the information required to call and display the target collection interface. Then, the mobile terminal displays a second interface, where the second interface includes a display control of the target collection interface, and the display control is associated with the calling information of the target collection interface, and when receiving the display operation performed by the user on the display control, the mobile terminal may Obtaining the calling information of the target favorite interface associated with the display control, and displaying the target favorite interface according to the calling information of the target favorite interface.
与传统技术相比,本申请实施例用户只需要触发第一界面的收藏控件以及第二界面的展示控件,就可以实现对目标收藏界面的再次显示,而无需按照特定的顺序进行一步步的重复操作,节省了操作步骤,从而节省了用户的操作时间。Compared with the conventional technology, the user only needs to trigger the collection control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without repeating step by step in a specific order. The operation saves the operation steps, thereby saving the user's operation time.
在一些可能的设计中,目标收藏界面的调用信息包括目标收藏界面对应的活动的活动调用链,活动调用链为显示目标收藏界面所需要生成的活动的调用链条。In some possible designs, the call information of the target collection interface includes an activity call chain corresponding to the activity of the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface.
本申请实施例提供了目标收藏界面的调用信息的其中一种实现方式,即目标收藏界面对应的活动的活动调用链,通过调用目标收藏界面对应的活动的活动调用链,可以快速的显示目标收藏界面。The embodiment of the present application provides one of the implementation manners of the call information of the target collection interface, that is, the activity call chain of the activity corresponding to the target collection interface, and the target collection is quickly displayed by calling the activity call chain corresponding to the target collection interface. interface.
在一些可能的设计中,该界面显示方法还包括:若第一界面包括多个界面,则从多个界面中确定目标收藏界面。In some possible designs, the interface display method further includes: if the first interface includes multiple interfaces, determining a target favorite interface from the plurality of interfaces.
当第一界面包括多个界面时,这些多个界面并不一定都是用户想要收藏的目标收藏界面,因此可以从第一界面中的多个界面中确定目标收藏界面,以便通过获取目标收藏界面的调用信息实现对目标收藏界面的收藏。When the first interface includes multiple interfaces, the multiple interfaces are not necessarily the target collection interfaces that the user wants to collect, so the target collection interface may be determined from multiple interfaces in the first interface, so as to obtain the target collection. The call information of the interface realizes the collection of the target collection interface.
在一些可能的设计中,从多个界面中确定出目标收藏界面包括:若多个界面包括预设界面,则从除预设界面之外的多个界面中确定出目标收藏界面。In some possible designs, determining the target favorite interface from the plurality of interfaces includes: if the plurality of interfaces includes the preset interface, determining the target favorite interface from the plurality of interfaces other than the preset interface.
若多个界面中包括预设界面,例如快捷菜单窗口的界面等,这些预设界面通常不会是用户需要收藏的目标收藏界面,因此可以通过筛选预设界面,从除预设界面之外的多个界面中确定出目标收藏界面,以便通过获取目标收藏界面的调用信息实现对目标收藏界面的收藏。If multiple interfaces include a preset interface, such as an interface of a shortcut menu window, these preset interfaces are usually not the target collection interface that the user needs to collect, so the preset interface can be filtered out from the preset interface. The target collection interface is determined in the plurality of interfaces, so that the collection of the target collection interface is realized by acquiring the calling information of the target collection interface.
在一些可能的设计中,若除预设界面之外的界面的数目为多个,例如有两个或两个以上的应用程序窗口同屏显示时,可以从除预设界面之外的界面中确定出目标收藏界面包括:显示除预设界面之外的每个界面分别对应的界面选择控件,界面选择控件中显示有对应界面的代表视图和/或对应界面的代表视图的名称。接收用户对界面选择控件的选择操作,将与用户选择的界面选择控件对应的界面确定为目标收藏界面。In some possible designs, if there are multiple interfaces other than the preset interface, for example, when two or more application windows are displayed on the same screen, the interface may be omitted from the interface other than the preset interface. Determining the target collection interface includes: displaying an interface selection control corresponding to each interface except the preset interface, wherein the interface selection control displays a representative view of the corresponding interface and/or a name of the representative view of the corresponding interface. Receiving a user selection operation of the interface selection control, and determining an interface corresponding to the interface selection control selected by the user as the target collection interface.
通过将除预设界面之外的多个界面中用户选择的界面选择控件对应的界面作为目标收藏界面,可以提高目标收藏界面确定准确度,提高用户体验。By using the interface corresponding to the interface selection control selected by the user in the plurality of interfaces other than the preset interface as the target collection interface, the accuracy of the target collection interface can be improved and the user experience can be improved.
在一些可能的设计中,该界面显示方法还包括:在接收用户对收藏控件的收藏操作之后,获取目标收藏界面的目标视图的视图参数,则显示第二界面的展示控件包括:显示第二界面的包括代表视图的展示控件,代表视图为体现目标视图内容的视图,代表视图根据目标视图的视图参数得到。In some possible designs, the interface display method further includes: after receiving a user's favorite operation of the favorite control, acquiring a view parameter of the target view of the target favorite interface, displaying the display control of the second interface includes: displaying the second interface It includes a display control that represents a view, a view that represents the content of the target view, and a view that is derived from the view parameters of the target view.
在本申请实施例中,第二界面中的展示控件还可以包括代表视图,代表视图为体现目标视图内容的视图,而目标视图是目标收藏界面中的视图,因此代表视图是能够体现目标收藏界面的内容的视图,因此用户能够通过展示控件显示的代表视图快速获知展示控件与哪个目标收藏界面相对应,当用户触发了某个展示控件之后,移动终端就可以快速显示出该展示控件对应的目标收藏界面,提高用户体验。另外,获取目标视图的视图参数的动作可以是在接收到用户对收藏控件的收藏操作之后立即执行,也可以在显示第二界面的指令生成的时候执行,或者在其他接收用户对收藏控件的收藏操作之后且在显示第二界面之前的其他任意时刻执行。In the embodiment of the present application, the display control in the second interface may further include a representative view, the representative view is a view reflecting the content of the target view, and the target view is a view in the target favorite interface, so the representative view is capable of reflecting the target favorite interface. The view of the content, so that the user can quickly know which target collection interface the display control corresponds to by displaying the representative view displayed by the control. When the user triggers a display control, the mobile terminal can quickly display the target corresponding to the display control. Collection interface to improve user experience. In addition, the action of acquiring the view parameter of the target view may be performed immediately after receiving the user's favorite operation of the favorite control, or may be performed when the instruction of the second interface is generated, or in other collections of the user's favorite control Execute after the operation and at any other time before the second interface is displayed.
在一些可能的设计中,该界面显示方法还包括:获取目标收藏界面对应的多个候选视图,并从多个候选视图中确定出目标视图。In some possible designs, the interface display method further includes: acquiring a plurality of candidate views corresponding to the target collection interface, and determining the target view from the plurality of candidate views.
在本申请实施例中,目标视图可以是能够体现目标收藏界面内容的视图,当目标收藏界面对应有多个候选视图时,并不是每个候选视图都能够体现出目标收藏界面的内容,所以可以从多个候选视图中确定出能够体现目标收藏界面内容的目标视图,以便进一步根据目标视图得到体现该目标视图内容的代表视图,也就是说,以便代表视图能够体现目标收藏界面的内容。In the embodiment of the present application, the target view may be a view that can reflect the content of the target collection interface. When the target collection interface corresponds to multiple candidate views, not every candidate view can reflect the content of the target collection interface, so A target view capable of embodying the content of the target collection interface is determined from the plurality of candidate views, so as to further obtain a representative view that reflects the content of the target view according to the target view, that is, the representative view can reflect the content of the target favorite interface.
具体的,从多个候选视图中确定出目标视图可以有如下三种方式。Specifically, determining the target view from the plurality of candidate views may be in the following three manners.
第一种方式是,根据多个候选视图的显示位置对多个候选视图进行分组,得到多组候选视图;在第三界面中显示多组候选视图中每组候选视图分别对应的视图选择控件,接收用户对视图选择控件的选择操作,将用户选择的视图选择控件对应的候选视图确定为目标视图。The first way is to group the plurality of candidate views according to the display positions of the plurality of candidate views to obtain a plurality of sets of candidate views; and display, in the third interface, the view selection controls corresponding to each of the candidate views in the plurality of sets of candidate views, The user selects a view selection control, and determines a candidate view corresponding to the view selection control selected by the user as the target view.
通过将候选视图按照显示位置进行分组,并通过视图选择控件获取用户想要选择的候选视图,从而提高用户的交互体验。The user's interactive experience is improved by grouping the candidate views according to the display position and obtaining the candidate views that the user wants to select through the view selection control.
第二种方式是,分别获取多个候选视图的属性,根据多个候选视图的属性从多个候选视图中确定出目标视图。In the second method, attributes of multiple candidate views are respectively acquired, and target views are determined from multiple candidate views according to attributes of multiple candidate views.
候选视图的属性例如可以是视频、文字、图片等,由于候选视图的属性可以在一定程度上反映候选视图代表目标收藏界面的程度,因此根据候选视图的属性来确定目标视图,可以在不需要用户操作的前提下尽量准确的获取用户想要获取的内容,提高用户的使用体验。The attributes of the candidate view may be, for example, a video, a text, a picture, or the like. Since the attributes of the candidate view may reflect the degree to which the candidate view represents the target collection interface to some extent, the target view may be determined according to the attributes of the candidate view, and the user may not be needed. Under the premise of operation, the content that the user wants to obtain is obtained as accurately as possible, and the user experience is improved.
第三种方式是,从多个候选视图形成的视图树中,选取前预设数目层的候选视图,确定为目标视图,预设数目为正整数。The third method is to select a candidate view of the preset number of layers from the view tree formed by the multiple candidate views, and determine the target view as the target view, and the preset number is a positive integer.
通过从视图树中选取前预设数目层的候选视图,能够将主要的候选视图作为目标视图,从而在不需要用户操作的前提下尽量准确的获取用户想要获取的内容,提高用户的使用体验。By selecting a candidate view of the preset number of layers from the view tree, the main candidate view can be used as the target view, so as to obtain the content that the user wants to obtain as accurately as possible without user operation, thereby improving the user experience. .
当然可以理解的是,上述三种方式并不构成对本申请技术方案的限定,本领域技术人员还可以采用其他方法确定目标视图。It should be understood that the above three manners do not constitute a limitation on the technical solution of the present application, and those skilled in the art may also adopt other methods to determine the target view.
在一些可能的设计中,根据视图参数生成代表视图包括:将视图参数中的视图尺寸缩小预设比例,生成代表视图。In some possible designs, generating a representative view according to the view parameter includes: reducing the view size in the view parameter by a preset scale to generate a representative view.
代表视图可以是目标视图按照视图尺寸缩小生成,是目标视图的缩略图,能够体现目标视图的特征,从而使用户能够通过代表视图获取目标收藏界面的信息,提高用户体验。The representative view may be that the target view is reduced according to the size of the view, and is a thumbnail of the target view, which can reflect the characteristics of the target view, so that the user can obtain the information of the target collection interface through the representative view, thereby improving the user experience.
在一些可能的设计中,获取目标收藏界面的目标视图的视图参数包括:获取目标收藏界面的目标视图的更新后视图参数;代表视图根据目标视图的视图参数得到包括:代表视图根据目标视图的更新后视图参数得到。In some possible designs, obtaining the view parameters of the target view of the target collection interface includes: obtaining an updated view parameter of the target view of the target favorite interface; and obtaining, according to the view parameter of the target view, the representative view is updated according to the target view. The back view parameters are obtained.
如前文所述,获取目标视图的视图参数的动作可以是在接收到用户对收藏控件的收藏操作之后立即执行,那么在显示第二界面时,目标视图的视图参数可能会发生更新,如果发生更新,则可以根据目标视图更新后的目标参数生成代表视图,使代表视图能够体现更新后的目标视图的内容,从而使用户能够看到体现更新后目标收藏界面的代表视图,提高用户体验。As described above, the action of obtaining the view parameter of the target view may be performed immediately after receiving the user's favorite operation on the favorite control, and when the second interface is displayed, the view parameter of the target view may be updated if an update occurs. The representative view can be generated according to the updated target parameter of the target view, so that the representative view can reflect the content of the updated target view, so that the user can see the representative view of the updated target collection interface and improve the user experience.
在一些可能的设计中,在显示第二界面的包括代表视图的展示控件之前,界面显示方法还包括:若目标收藏界面对应的应用程序处于关闭状态,则根据目标收藏界面的调用信息后台启动应用程序;获取目标收藏界面的目标视图的视图参数包括:从后台启动的应用程序中,获取目标收藏界面的目标视图的视图参数。In some possible designs, before displaying the display control including the view of the second interface, the interface display method further includes: if the application corresponding to the target favorite interface is in the closed state, launching the application according to the calling information of the target favorite interface The program view parameter of the target view of the target collection interface includes: obtaining the view parameter of the target view of the target collection interface from the application launched in the background.
在一些可能的设计中,在显示第二界面的包括代表视图的展示控件之前,界面显示方法还包括:若目标收藏界面对应的应用程序处于激活状态,则根据目标收藏界面的调用信息后台运行应用程序,在后台运行应用程序的过程中,获取目标收藏界面的目标视图的视 图参数。In some possible designs, before displaying the display control including the view of the second interface, the interface display method further includes: if the application corresponding to the target favorite interface is in an active state, running the application in the background according to the calling information of the target favorite interface The program, in the process of running the application in the background, obtains the view parameters of the target view of the target collection interface.
如前文所述,获取目标视图的视图参数的动作可以是在显示第二界面的指令生成的时候执行,保证目标视图体现最新版本的目标收藏界面的内容,也即保证代表视图是实时生成的。在获取最新版本的目标视图的视图参数时,如果目标收藏界面对应的应用程序处于关闭状态,则根据目标收藏界面的调用信息后台启动应用程序,并从后台启动的应用程序中获取目标收藏界面的目标视图的视图参数,保证从应用程序启动到跳转到目标收藏界面之前的生成的界面以及目标收藏界面是不被用户看见的,用户看到的只有显示了最新版代表视图的展示控件的第二界面,提高用户体验。在获取最新版本的目标视图的视图参数时,如果目标收藏界面对应的应用程序处于激活状态,则根据目标收藏界面的调用信息后台运行应用程序,在后台运行应用程序的过程中,获取目标收藏界面的目标视图的视图参数,保证应用程序打开目标收藏界面的过程也是不被用户看见的,提高用户体验。As described above, the action of acquiring the view parameter of the target view may be performed when the instruction for displaying the second interface is generated, and the target view is to reflect the content of the latest version of the target collection interface, that is, the representative view is generated in real time. When obtaining the view parameter of the latest version of the target view, if the application corresponding to the target favorite interface is in the closed state, the application is launched in the background according to the calling information of the target favorite interface, and the target favorite interface is obtained from the application launched in the background. The view parameter of the target view ensures that the generated interface from the application startup to the target collection interface and the target collection interface are not seen by the user, and the user only sees the display control that displays the latest version of the representative view. The second interface enhances the user experience. When obtaining the view parameter of the latest version of the target view, if the application corresponding to the target favorite interface is in the active state, the application is run in the background according to the calling information of the target favorite interface, and the target favorite interface is acquired in the process of running the application in the background. The view parameters of the target view ensure that the process of opening the target collection interface by the application is also not seen by the user, improving the user experience.
在一些可能的设计中,该界面显示方法还包括:在后台启动应用程序的过程中,对目标收藏界面对应的活动添加额外重启标记;显示目标收藏界面包括:若目标收藏界面对应的活动的标识存在于活动线程中,且活动被添加额外重启标记,则销毁活动,并重新启动活动对应的应用程序,并根据目标收藏界面的调用信息显示目标收藏界面。In some possible designs, the interface display method further includes: adding an additional restart flag to the activity corresponding to the target collection interface in the process of starting the application in the background; and displaying the target collection interface includes: if the target collection interface corresponds to the activity identifier Exists in the active thread, and the activity is added with an additional restart flag, destroys the activity, and restarts the application corresponding to the activity, and displays the target collection interface according to the call information of the target favorite interface.
在为了获取目标视图的视图参数而启动目标收藏界面对应的应用程序时,还可以对目标收藏界面对应的活动添加额外重启标记,以区分该启动是为了获取目标视图的视图参数而进行的后台启动还是由用户触发展示控件而导致的启动,以便针对不同的启动方式进行不同的处理。若活动的标识存在于活动线程中,且活动被添加额外重启标记,说明活动是移动终端为了目标视图的视图参数而在后台启动的,对于后台启动的活动,可以在接收到用户对展示控件的展示操作之后,先销毁后台启动的活动,再重新启动应用程序,在显示屏上显示目标收藏界面,实现界面的快速显示。需要注意的是,重新启动应用程序的过程可以显示在显示屏上,也可以不显示,直接显示目标收藏界面。When the application corresponding to the target collection interface is started in order to obtain the view parameter of the target view, an additional restart flag may be added to the activity corresponding to the target collection interface to distinguish the background startup initiated by the startup to obtain the view parameter of the target view. It is also triggered by the user to trigger the display control to handle different processing for different startup methods. If the identity of the activity exists in the active thread, and the activity is added with an additional restart flag, the activity is initiated by the mobile terminal in the background for the view parameter of the target view, and for the activity initiated by the background, the user may receive the display control After the display operation, destroy the background-initiated activity, restart the application, and display the target collection interface on the display to realize the quick display of the interface. It should be noted that the process of restarting the application can be displayed on the display screen or not displayed, and the target collection interface can be directly displayed.
在一些可能的设计中,展示控件还包括显示控件,显示控件中显示代表视图的视图名称;方法还包括:接收用户对显示控件的显示操作,在显示控件中显示代表视图。In some possible designs, the display control further includes a display control, and the display control displays a view name representing the view; the method further includes: receiving a display operation of the display control by the user, and displaying the representative view in the display control.
在本申请实施例中,展示控件中可以包括显示目标视图的名称的显示控件,因为显示控件在显示屏上占用的空间较小,所以当展示控件有多个时,可以在显示屏上显示较多的展示控件。当用户想要观看某个展示控件中的代表视图时,移动终端可以通过接收用户对该展示中显示控件的显示操作,在该展示控件中显示代表视图,提高用户体验。In the embodiment of the present application, the display control may include a display control for displaying the name of the target view, because the display control occupies less space on the display screen, so when there are multiple display controls, the display may be displayed on the display. More display controls. When the user wants to view the representative view in a display control, the mobile terminal can display the representative view in the display control by receiving the user's display operation on the display control in the display, thereby improving the user experience.
在一些可能的设计中,该界面显示方法还包括:接收用户对展示控件的删除操作,删除展示控件。In some possible designs, the interface display method further includes: receiving a deletion operation of the display control by the user, and deleting the display control.
在不需要快速显示目标收藏界面时,还可以删除目标收藏界面对应的展示控件,以节省显示空间,提高用户体验。When the target collection interface is not required to be displayed quickly, the display control corresponding to the target collection interface can also be deleted to save display space and improve user experience.
在一些可能的设计中,该界面显示方法还包括:在接收用户对展示控件的删除操作之后,若目标收藏界面对应的活动被添加额外重启标记,则销毁活动。In some possible designs, the interface display method further includes: after receiving the deletion operation of the display control by the user, if the activity corresponding to the target favorite interface is added with an additional restart flag, the activity is destroyed.
在接收用户对展示控件的删除操作时,如果目标收藏界面对应的活动被添加额外重启标记,则说明目标收藏界面对应的应用程序是由移动终端在后台启动的,因此还可以销毁有额外重启标记的活动,减少后台运行的不必要的应用程序,降低系统负担。When the user deletes the display control, if the activity corresponding to the target favorite interface is added with an additional restart flag, the application corresponding to the target favorite interface is started by the mobile terminal in the background, so the additional restart flag can also be destroyed. Activities that reduce unnecessary applications running in the background and reduce system load.
在一些可能的设计中,该界面显示方法还包括:接收用户在目标收藏界面上先后触发的第一触屏操作和第二触屏操作,若第一触屏操作和第二触屏操作满足预设条件,则在第一界面上显示收藏控件。In some possible designs, the interface display method further includes: receiving a first touch screen operation and a second touch screen operation triggered by the user on the target favorite interface, if the first touch screen operation and the second touch screen operation satisfy the pre- Set the condition to display the favorite control on the first interface.
通过判断用户的两次触屏操作是否满足预设条件,可以防止误操作,提高用户体验,在触屏操作满足预设条件时,可以显示收藏控件的第一悬浮窗,以便接收用户对收藏控件的收藏操作。By judging whether the user's two touch screen operations meet the preset condition, the misoperation can be prevented, and the user experience can be improved. When the touch screen operation meets the preset condition, the first floating window of the favorite control can be displayed, so as to receive the user's favorite control. Collection operation.
在一些可能的设计中,预设条件至少包括以下其中一项:第一触屏操作满足第一预设触屏条件,第二触屏操作满足第二预设触屏条件以及第一触屏操作和第二触屏操作之间的间隔时间满足预设时间条件。In some possible designs, the preset condition includes at least one of the following: the first touch screen operation satisfies the first preset touch screen condition, and the second touch screen operation satisfies the second preset touch screen condition and the first touch screen operation The interval between the operation with the second touch screen satisfies the preset time condition.
预设条件是能够体现用户想要显示收藏控件的条件,接收用户的满足预设条件的两次触屏操作可以显示收藏控件,避免用户由于误触而显示收藏控件,提高用户体验。The preset condition is that the condition that the user wants to display the favorite control can be reflected, and the two touch screen operations of the receiving user satisfying the preset condition can display the favorite control, thereby preventing the user from displaying the favorite control due to the accidental touch, thereby improving the user experience.
在一些可能的设计中,第一触屏操作为第一滑动操作,第一滑动操作包括第一触点和第二触点,第一触点为第一滑动操作的起点,第二触点为第一滑动操作的终点,第一触点的坐标与第二触点的坐标不相同;则第一预设触屏条件包括:第一触点和第二触点之间的横坐标之差满足第一距离条件;和/或,第一触点和第二触点之间的纵坐标之差满足第二距离条件;和/或,在产生第一触点到产生第二触点的过程中,任意时刻显示屏上有且至少有一个触点。In some possible designs, the first touch screen operates as a first sliding operation, the first sliding operation includes a first contact and a second contact, the first contact being the starting point of the first sliding operation, and the second contact being The end point of the first sliding operation, the coordinates of the first contact are different from the coordinates of the second contact; then the first preset touch screen condition includes: the difference between the abscissas between the first contact and the second contact satisfies a first distance condition; and/or a difference between the ordinates between the first contact and the second contact satisfies a second distance condition; and/or, in the process of generating the first contact to the second contact There is at least one contact on the display at any time.
在一些可能的设计中,第二触屏操作为第二滑动操作,第二滑动操作包括第三触点和第四触点,第三触点为第一滑动操作的起点,第四触点为第二滑动操作的终点,第三触点的坐标与第四触点的坐标不相同;则第二预设触屏条件包括:第三触点和第四触点之间的横坐标之差满足第三距离条件;和/或,第三触点和第四触点之间的纵坐标之差满足第四距离条件;和/或,在第二滑动操作执行的过程中,任意时刻显示屏上有且仅有一个触点。In some possible designs, the second touch screen operates as a second sliding operation, the second sliding operation includes a third contact and a fourth contact, the third contact is the starting point of the first sliding operation, and the fourth contact is The end point of the second sliding operation, the coordinates of the third contact are different from the coordinates of the fourth contact; then the second preset touch screen condition includes: the difference between the abscissas between the third contact and the fourth contact satisfies a third distance condition; and/or a difference between the ordinates between the third contact and the fourth contact satisfies a fourth distance condition; and/or, during the execution of the second sliding operation, at any time on the display screen There is only one contact.
通过上述对第一触屏操作和第二触屏操作、第一预设触屏条件和第二预设触屏条件进行限定,可以具体的对用户的触屏操作进行分析,从而根据用户触发的满足预设条件的触屏操作,显示收藏控件,以便接收用户对收藏控件的收藏操作,提高用户的交互体验。By limiting the first touch screen operation and the second touch screen operation, the first preset touch screen condition, and the second preset touch screen condition, the touch screen operation of the user may be specifically analyzed, thereby triggering according to the user. A touch screen operation that satisfies a preset condition, and displays a favorite control to receive a user's favorite operation on the favorite control and improve the user's interactive experience.
在一些可能的设计中,该界面显示方法还包括:接收用户在目标收藏界面上触发的第一触屏操作,显示第二悬浮窗。In some possible designs, the interface display method further includes: receiving a first touch screen operation triggered by the user on the target favorite interface, and displaying the second floating window.
第二悬浮窗可以是用来提示用户第一触屏操作是有效的,当用户看到第二悬浮窗之后,可以决定是否继续执行第二触屏操作,如果移动终端接收到用户触发的第二触屏操作,且第一触屏操作和第二触屏操作满足上述预设条件,则显示收藏控件,提高用户体验。The second floating window may be used to prompt the user that the first touch screen operation is effective. After the user sees the second floating window, it may decide whether to continue to perform the second touch screen operation, if the mobile terminal receives the second trigger triggered by the user. When the touch screen operation is performed, and the first touch screen operation and the second touch screen operation satisfy the above preset condition, the favorite control is displayed to improve the user experience.
本申请第二方面提供了一种界面显示装置,界面显示装置包括:The second aspect of the present application provides an interface display device, where the interface display device includes:
第一显示单元,用于显示第一界面,第一界面包括目标收藏界面和收藏控件;a first display unit, configured to display a first interface, where the first interface includes a target collection interface and a favorite control;
收藏单元,用于接收用户对收藏控件的收藏操作,获取目标收藏界面的调用信息,并对调用信息进行收藏;a collecting unit, configured to receive a user's collection operation on the favorite control, obtain the calling information of the target collection interface, and collect the calling information;
第二显示单元,用于显示第二界面,第二界面包括目标收藏界面的展示控件,展示控件与目标收藏界面的调用信息相关联;a second display unit, configured to display a second interface, where the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface;
第三显示单元,用于接收用户对展示控件的展示操作,获取目标收藏界面的调用信息, 根据目标收藏界面的调用信息显示目标收藏界面。The third display unit is configured to receive a display operation of the display control by the user, obtain call information of the target favorite interface, and display the target favorite interface according to the call information of the target favorite interface.
在一些可能的设计中,目标收藏界面的调用信息包括目标收藏界面对应的活动的活动调用链,活动调用链为显示目标收藏界面所需要生成的活动的调用链条。In some possible designs, the call information of the target collection interface includes an activity call chain corresponding to the activity of the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface.
在一些可能的设计中,界面显示装置还包括:活动确定单元,用于获取第一界面对应的多个活动,并从第一界面对应的多个活动中确定出其中一个活动作为目标收藏界面对应的活动。In some possible designs, the interface display device further includes: an activity determining unit, configured to acquire a plurality of activities corresponding to the first interface, and determine, from the plurality of activities corresponding to the first interface, one of the activities as the target favorite interface activity.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
视图参数获取单元,用于在接收用户对收藏控件的收藏操作之后,获取目标收藏界面的目标视图的视图参数;a view parameter obtaining unit, configured to acquire a view parameter of a target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
展示控件显示单元,用于显示第二界面的包括代表视图的展示控件,代表视图为体现目标视图内容的视图,代表视图根据目标视图的视图参数得到。The display control display unit is configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the view is obtained according to the view parameter of the target view.
在一些可能的设计中,界面显示装置还包括:目标视图确定单元,用于获取目标收藏界面对应的多个候选视图,并从多个候选视图中确定出目标视图。In some possible designs, the interface display device further includes: a target view determining unit, configured to acquire a plurality of candidate views corresponding to the target favorite interface, and determine the target view from the plurality of candidate views.
在一些可能的设计中,目标视图确定单元包括:In some possible designs, the target view determining unit includes:
分组单元,用于获取目标收藏界面对应的多个候选视图,根据多个候选视图的显示位置对多个候选视图进行分组,得到多组候选视图;a grouping unit, configured to acquire a plurality of candidate views corresponding to the target collection interface, and group the plurality of candidate views according to the display positions of the plurality of candidate views to obtain a plurality of candidate views;
视图选择控件显示单元,用于在第三界面中显示多组候选视图中每组候选视图分别对应的视图选择控件;a view selection control display unit, configured to display, in the third interface, a view selection control corresponding to each group of candidate views in the plurality of groups of candidate views;
目标视图确定子单元,用于接收用户对视图选择控件的选择操作,将用户选择的视图选择控件对应的候选视图确定为目标视图。The target view determining sub-unit is configured to receive a user selection operation of the view selection control, and determine a candidate view corresponding to the view selection control selected by the user as the target view.
在一些可能的设计中,目标视图确定单元具体用于:In some possible designs, the target view determination unit is specifically used to:
获取目标收藏界面对应的多个候选视图,分别获取多个候选视图的属性,根据多个候选视图的属性从多个候选视图中确定出目标视图。Obtaining a plurality of candidate views corresponding to the target collection interface, respectively acquiring attributes of the plurality of candidate views, and determining the target view from the plurality of candidate views according to the attributes of the plurality of candidate views.
在一些可能的设计中,目标视图确定单元具体用于:In some possible designs, the target view determination unit is specifically used to:
获取目标收藏界面对应的多个候选视图,从多个候选视图形成的视图树中,选取前预设数目层的候选视图,确定为目标视图,预设数目为正整数。Obtaining a plurality of candidate views corresponding to the target collection interface, and selecting a candidate view of the preset number of layers from the view tree formed by the plurality of candidate views, and determining the target view, the preset number being a positive integer.
在一些可能的设计中,视图参数获取单元,还用于在接收用户对收藏控件的收藏操作之后,获取目标收藏界面的目标视图的更新后视图参数;In some possible designs, the view parameter obtaining unit is further configured to acquire an updated view parameter of the target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
展示控件显示单元,还用于显示第二界面的包括代表视图的展示控件,代表视图为体现目标视图内容的视图,代表视图根据目标视图的更新后视图参数得到。The display control unit is further configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the representative view is obtained according to the updated view parameter of the target view.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
后台启动应用程序单元,用于若目标收藏界面对应的应用程序处于关闭状态,则后台启动应用程序;The application unit is started in the background, and is used to start the application in the background if the application corresponding to the target collection interface is in the closed state;
视图参数获取单元,还用于在接收用户对收藏控件的收藏操作之后,从后台启动的应用程序中,获取目标收藏界面的目标视图的视图参数。The view parameter obtaining unit is further configured to obtain a view parameter of the target view of the target favorite interface from the application launched in the background after receiving the user's favorite operation on the favorite control.
在一些可能的设计中,展示控件还包括显示控件,显示控件中显示代表视图的视图名称;界面显示装置还包括:In some possible designs, the display control further includes a display control, and the display control displays a view name representing the view; the interface display device further includes:
代表视图显示单元,用于接收用户对显示控件的显示操作,在显示控件中显示代表视 图。The representative view display unit is configured to receive a display operation of the display control by the user, and display a representative view in the display control.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
收藏控件显示单元,用于获取用户在目标收藏界面上先后触发的第一触屏操作和第二触屏操作,若第一触屏操作和第二触屏操作满足预设条件,则在第一界面上显示收藏控件。a collection control display unit, configured to acquire a first touch screen operation and a second touch screen operation triggered by the user on the target collection interface, and if the first touch screen operation and the second touch screen operation meet the preset condition, the first The favorite controls are displayed on the interface.
在一些可能的设计中,预设条件至少包括以下其中一项:第一触屏操作满足第一预设触屏条件,第二触屏操作满足第二预设触屏条件以及,第一触屏操作和第二触屏操作之间的间隔时间满足预设时间条件。In some possible designs, the preset condition includes at least one of the following: the first touch screen operation satisfies the first preset touch screen condition, the second touch screen operation satisfies the second preset touch screen condition, and the first touch screen The interval between the operation and the second touch screen operation satisfies the preset time condition.
在一些可能的设计中,第一触屏操作为第一滑动操作,第一滑动操作包括第一触点和第二触点,第一触点为第一滑动操作的起点,第二触点为第一滑动操作的终点,第一触点的坐标与第二触点的坐标不相同;In some possible designs, the first touch screen operates as a first sliding operation, the first sliding operation includes a first contact and a second contact, the first contact being the starting point of the first sliding operation, and the second contact being The end point of the first sliding operation, the coordinates of the first contact are different from the coordinates of the second contact;
第一预设触屏条件包括:The first preset touch screen conditions include:
第一触点和第二触点之间的横坐标之差满足第一距离条件;和/或,The difference between the abscissas between the first contact and the second contact satisfies the first distance condition; and/or,
第一触点和第二触点之间的纵坐标之差满足第二距离条件;和/或,The difference between the ordinates between the first contact and the second contact satisfies the second distance condition; and/or,
在产生第一触点到产生第二触点的过程中,任意时刻显示屏上有且至少有一个触点。In the process of generating the first contact to the second contact, there is at least one contact on the display at any time.
在一些可能的设计中,第二触屏操作为第二滑动操作,第二滑动操作包括第三触点和第四触点,第三触点为第二滑动操作的起点,第四触点为第二滑动操作的终点,第三触点的坐标与第四触点的坐标不相同;In some possible designs, the second touch screen operates as a second sliding operation, the second sliding operation includes a third contact and a fourth contact, the third contact is the starting point of the second sliding operation, and the fourth contact is The end point of the second sliding operation, the coordinates of the third contact are different from the coordinates of the fourth contact;
第二预设触屏条件包括:The second preset touch screen conditions include:
第三触点和第四触点之间的横坐标之差满足第三距离条件;和/或,The difference between the abscissas between the third contact and the fourth contact satisfies the third distance condition; and/or,
第三触点和第四触点之间的纵坐标之差满足第四距离条件;和/或,The difference between the ordinates between the third contact and the fourth contact satisfies the fourth distance condition; and/or,
在第二滑动操作执行的过程中,任意时刻显示屏上有且仅有一个触点。During the execution of the second sliding operation, there is only one contact on the display at any time.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
展示控件删除单元,用于接收用户对展示控件的删除操作,删除展示控件。The display control deletion unit is configured to receive a deletion operation of the display control by the user, and delete the display control.
本申请又一方面提供了一种界面跳转设备,该界面跳转设备包括:处理器和存储器;Another aspect of the present application provides an interface jump device, where the interface jump device includes: a processor and a memory;
存储器,用于存储指令;处理器,用于执行存储器中的指令,执行上述各方面的方法。a memory for storing instructions; a processor for executing instructions in the memory to perform the methods of the above aspects.
本申请又一方面提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述各方面的方法。Yet another aspect of the present application provides a computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the methods of the above aspects.
本申请又一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面的方法。Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods of the various aspects described above.
从以上技术方案可以看出,与传统技术相比,本申请实施例提供的界面显示方法、装置及设备中,第一界面显示在显示屏上时,可以通过接收用户对第一界面中的收藏控件的收藏操作,获取第一界面中的目标收藏界面的调用信息,并对调用信息进行收藏,在包括目标收藏界面的展示控件的第二界面显示在显示屏上时,由于该展示控件与目标收藏界面的调用信息相关联,所以可以接收用户对展示控件的展示操作,根据与展示控件相关联的目标收藏界面的调用信息显示目标收藏界面。也就是说,用户只需要触发第一界面的收藏控件以及第二界面的展示控件,就可以实现对目标收藏界面的再次显示,而无需按照特定 的顺序进行一步步的重复操作,节省了操作步骤,从而节省了用户的操作时间。As can be seen from the above technical solutions, in the interface display method, device and device provided by the embodiments of the present application, when the first interface is displayed on the display screen, the user can receive the collection in the first interface. The collection operation of the control acquires the calling information of the target collection interface in the first interface, and collects the calling information, and displays the display control and the target when the second interface of the display control including the target collection interface is displayed on the display screen The calling information of the collection interface is associated, so the user can display the display operation of the display control, and display the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
附图说明DRAWINGS
图1为本申请实施例中的界面示意图;1 is a schematic diagram of an interface in an embodiment of the present application;
图2为本申请实施例提供的一种界面显示方法流程图;2 is a flowchart of an interface display method according to an embodiment of the present application;
图3为本申请实施例中悬浮窗示意图;3 is a schematic diagram of a floating window in an embodiment of the present application;
图4为本申请实施例中触屏操作示意图;4 is a schematic diagram of operation of a touch screen in an embodiment of the present application;
图5为本申请实施例中响应触屏操作的显示示意图;FIG. 5 is a schematic diagram of display in response to a touch screen operation in an embodiment of the present application; FIG.
图6为本申请实施例中复制视图的显示示意图;6 is a schematic diagram showing the display of a copy view in the embodiment of the present application;
图7为本申请实施例中更新后的目标收藏界面示意图;FIG. 7 is a schematic diagram of an updated target collection interface in an embodiment of the present application;
图8为本申请实施例中复制视图的更新示意图;FIG. 8 is a schematic diagram of updating an active view in an embodiment of the present application;
图9为本申请实施例中操作系统示意图;9 is a schematic diagram of an operating system in an embodiment of the present application;
图10为本申请实施例中活动生成示意图;FIG. 10 is a schematic diagram of activity generation in an embodiment of the present application;
图11为本申请实施例提供的另一种界面显示方法流程图;FIG. 11 is a flowchart of another interface display method according to an embodiment of the present application;
图12为本申请实施例中显示第一悬浮窗过程的交互图;12 is an interaction diagram of a process of displaying a first floating window in an embodiment of the present application;
图13为本申请实施例中第一活动的确定过程的交互图;13 is an interaction diagram of a determining process of a first activity in an embodiment of the present application;
图14为本申请实施例中复制视图的更新过程示意图;14 is a schematic diagram of an update process of a copy view in an embodiment of the present application;
图15为本申请实施例中一种复制视图的更新过程的交互图;FIG. 15 is an interaction diagram of an update process of a copy view according to an embodiment of the present application;
图16为本申请实施例中另一种复制视图的更新过程的交互图;16 is an interaction diagram of another update process of a copy view in the embodiment of the present application;
图17为本申请实施例中展现目标收藏界面过程的交互图;17 is an interaction diagram of a process of displaying a target collection interface in an embodiment of the present application;
图18为本申请实施例中删除复制视图过程的交互图;FIG. 18 is an interaction diagram of a process of deleting a copy view in the embodiment of the present application;
图19为本申请实施例中界面显示装置的结构示意图;FIG. 19 is a schematic structural diagram of an interface display device according to an embodiment of the present application;
图20为本申请实施例中执行界面显示方法的设备的结构示意图。FIG. 20 is a schematic structural diagram of an apparatus for performing an interface display method according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种界面显示方法及装置,用于快速显示目标收藏界面,无需花费较长时间重复跳转,提高用户体验。The embodiment of the present invention provides an interface display method and device for quickly displaying a target collection interface, without taking a long time to repeat the jump and improving the user experience.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present application and the above figures are used to distinguish similar objects without having to use To describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
目前显示界面的方式,只能通过应用程序规定的特定的界面跳转顺序从其他界面跳转至关注的界面,实现关注的界面的显示。例如,如图1(e)所示,对于微信(一种即时通讯应用程序)公众号里的推文界面100,其打开顺序可以参考图1(a)、图1(b)、图1(c)和图1(d)所示,其中虚线部分为界面跳转所需要点击的区域,具体为:主界面110中的 “微信”101-微信聊天界面120中的“订阅号”102-订阅号界面130中的“每日豆瓣”103-推文列表界面140中的推文简介“周杰伦,我不会常常想起你,但也从来没有忘记”104。假设推文界面100为用户关注的界面,不论其他界面(也就是界面110、120、130和140)是否与用户关注的界面相邻,都可能会存在操作不便的问题。下面按照其他界面与用户关注的界面相邻与否分情况进行介绍。At present, the manner of displaying the interface can only be jumped from other interfaces to the interface of interest through the specific interface jump order specified by the application, thereby realizing the display of the interface of interest. For example, as shown in FIG. 1(e), for the tweet interface 100 in the public number of WeChat (an instant messaging application), the order of opening can refer to FIG. 1(a), FIG. 1(b), and FIG. 1 ( c) and FIG. 1(d), wherein the dotted line portion is an area that needs to be clicked by the interface jump, specifically: "WeChat" in the main interface 110 - "Subscription number" 102 in the WeChat chat interface 120 - subscription In the "Daily Douban" 103 - tweet list interface 140 in the typographical interface 140, the introduction of the tweet "Jay Jay, I don't always think of you, but never forget" 104. It is assumed that the tweet interface 100 is an interface that the user pays attention to, and whether the other interfaces (that is, the interfaces 110, 120, 130, and 140) are adjacent to the interface that the user pays attention to, there may be a problem of inconvenience in operation. The following describes how the other interfaces are adjacent to or not related to the interface that the user cares about.
当上述的其他界面与用户关注的界面不相邻时,用户需要通过多次跳转操作来实现界面的跳转,以显示关注的界面。举例来说,当用户打开图1(e)所示的推文界面100后,返回查看微信消息,其显示界面为微信聊天界面120,如图1(b)所示。用户若想打开原来的推文界面100,需要点击微信聊天界面120中的“订阅号”102-订阅号界面130中的“每日豆瓣”103-推文列表界面140中的推文简介“周杰伦,我不会常常想起你,但也从来没有忘记”104,此时实现界面的显示所需要的操作步骤较多,用户需要记忆不同的操作步骤,花费较多的时间和精力,如果用户不记得原来的推文界面100是哪个公众号的,很可能找不到这篇文章,即不能成功打开推文界面100,导致用户体验较差。再例如,用户退出微信,并打开另一个应用程序后,例如打开微博(一种简短实时消息即时分享的应用程序)后,若想打开微信公众号中图1(e)的推文界面100,需要先打开微信,然后按照上述的打开顺序进行重复跳转,同样需要花费较多的时间和精力。When the other interfaces mentioned above are not adjacent to the interface that the user pays attention to, the user needs to perform a jump of the interface by multiple jump operations to display the interface of interest. For example, after the user opens the tweet interface 100 shown in FIG. 1(e), the user returns to view the WeChat message, and the display interface is the WeChat chat interface 120, as shown in FIG. 1(b). If the user wants to open the original tweet interface 100, he/she needs to click on the "Subscription No." in the "Subscription Number" 102-Subscription Number Interface 130 in the WeChat Chat Interface 120, and the tweet profile in the tweet list interface 140. I don't think of you often, but I never forget "104. At this time, there are more steps required to implement the interface display. Users need to memorize different operation steps and spend more time and effort if the user does not remember. Which public number is the original tweet interface 100, and it is very likely that this article cannot be found, that is, the tweet interface 100 cannot be successfully opened, resulting in a poor user experience. For another example, after the user exits WeChat and opens another application, for example, after opening Weibo (an application for short real-time message sharing), if you want to open the tweet interface 100 of Figure 1(e) in the WeChat public account. It is necessary to open WeChat first, and then repeat the jump according to the above-mentioned opening sequence, which also takes more time and effort.
当上述的其他界面与用户关注的界面相邻时,用户虽然只需要进行一次跳转操作即可实现界面的跳转,但是还是会出现跳转效率低下的问题。例如,用户打开图1(d)所示的推文列表界面140,该界面中展现的是多个推文,各个推文按照时间顺序排列。在推文的数量较多时,用户想要打开图1(e)所示的推文界面100,可能要从多个消息中选择其中想看的那一个推文打开,若用户想看的推文的推送日期较早,在众多历史推文中寻找该推文需要花费较多的时间和精力,不容易快速定位到之前的推文,导致用户体验较差。When the other interfaces mentioned above are adjacent to the interface that the user pays attention to, the user only needs to perform a jump operation to realize the jump of the interface, but there is still a problem that the jump efficiency is low. For example, the user opens the tweet list interface 140 shown in FIG. 1(d), in which a plurality of tweets are displayed, and each tweet is arranged in chronological order. When the number of tweets is large, the user wants to open the tweet interface 100 shown in FIG. 1(e), and may select the tweet to be viewed from among the plurality of messages, if the typography that the user wants to see is The push date is earlier. It takes more time and effort to find the tweet in many historical tweets. It is not easy to quickly locate the previous tweets, resulting in poor user experience.
为了解决上述问题,本申请实施例提供了一种界面显示方法及装置,该方法应用于移动终端,该移动终端包括但不限定于手机和平板电脑等,本申请实施例中该移动终端可以以手机为例进行说明。本申请实施例中提供的一种界面显示方法,通过接收用户在第一界面中的收藏操作,获取第一界面中的目标收藏界面的调用信息,并对调用信息进行收藏,在第二界面显示在显示屏上时,若用户需要显示目标收藏界面,不论第二界面是目标收藏界面对应的应用程序的其他界面,还是与目标收藏界面对应的应用程序不同的其他应用程序的界面,都可以对第二界面中的展示控件进行展示操作,并根据与展示控件相关联的目标收藏界面的调用信息直接显示目标收藏界面,用户不需要按照特定的顺序进行一步步的重复操作,从而快速的实现目标收藏界面的显示,以上操作简单快捷,因此用户体验较好。In order to solve the above problem, the embodiment of the present application provides an interface display method and device, and the method is applied to a mobile terminal, where the mobile terminal includes, but is not limited to, a mobile phone and a tablet computer. The mobile phone is taken as an example for explanation. The interface display method provided in the embodiment of the present application obtains the call information of the target favorite interface in the first interface by receiving the user's favorite operation in the first interface, and collects the call information and displays the second interface. On the display screen, if the user needs to display the target collection interface, whether the second interface is the other interface of the application corresponding to the target collection interface, or the interface of other applications different from the application corresponding to the target collection interface, The display control in the second interface performs the display operation, and directly displays the target collection interface according to the calling information of the target favorite interface associated with the display control, and the user does not need to perform the step-by-step repeated operation in a specific order, thereby quickly achieving the target. The display of the collection interface, the above operation is simple and fast, so the user experience is better.
请参阅图2,图2为本申请实施例中一种界面显示方法在移动终端侧的步骤示意图。下面对本申请实施例中提供的界面显示方法进行具体的示例性说明。Referring to FIG. 2, FIG. 2 is a schematic diagram of steps of an interface display method on a mobile terminal side according to an embodiment of the present application. The interface display method provided in the embodiment of the present application is specifically exemplified below.
S201,显示第一界面,第一界面包括目标收藏界面和收藏控件。S201. The first interface is displayed, and the first interface includes a target collection interface and a favorite control.
目标收藏界面是指用户关注的界面,它可以是应用程序中的界面,例如推文界面100、微信聊天界面120、订阅号界面130和推文列表界面140等。在本实施例中,均以目标收藏界面为推文界面100为例来举例。The target collection interface refers to an interface that the user pays attention to, and may be an interface in the application, such as a tweet interface 100, a WeChat chat interface 120, a subscription number interface 130, and a tweet list interface 140. In this embodiment, the target collection interface is taken as an example of the tweet interface 100.
在传统方式中,用户想从其他界面跳转至目标收藏界面,实现目标收藏界面的显示,通常需要执行一次或多次的界面跳转操作来实现。In the traditional mode, the user wants to jump from the other interface to the target collection interface, and realizes the display of the target collection interface, usually needs to perform one or more interface jump operations to achieve.
收藏控件是指可以接收用户的收藏操作的控件,它可以是物理按键,也可以是虚拟按键。收藏控件可以设置于第一界面的悬浮窗中,悬浮窗的显示位置可以是显示屏上的预设位置,例如可以是显示屏的左侧,也可以是显示屏的右侧,还可以是显示屏的上方或下方,悬浮窗的形状和大小可以是任意的,可以覆盖整个显示屏,也可以比显示屏小,可以是具有一定透明度的,也可以是完全遮挡目标收藏界面的。参考图3(a)所示,“添加+”301可作为收藏控件,设置于第一悬浮窗310中(参见灰色悬浮窗区域)。A favorite control is a control that can receive a user's favorite operation. It can be a physical button or a virtual button. The collection control can be set in the floating window of the first interface, and the display position of the floating window can be a preset position on the display screen, for example, the left side of the display screen, the right side of the display screen, or the display Above or below the screen, the shape and size of the floating window can be arbitrary, can cover the entire display screen, can also be smaller than the display screen, can have a certain transparency, or can completely block the target collection interface. Referring to FIG. 3(a), "Add+" 301 can be set as a favorite control in the first floating window 310 (see the gray floating window area).
可选的,收藏控件可以通过响应用户操作而显示。在当前显示的界面为目标收藏界面时,可以响应于用户操作,显示设置有收藏控件的第一悬浮窗310。也就是说,第一界面包括目标收藏界面和设置有收藏控件的第一悬浮窗310。Optionally, the favorite control can be displayed in response to user actions. When the currently displayed interface is the target collection interface, the first floating window 310 provided with the favorite control may be displayed in response to the user operation. That is, the first interface includes a target favorite interface and a first floating window 310 provided with a favorite control.
为了避免误操作,可以采用用户在目标收藏界面上执行两次触屏操作的方式来显示收藏控件。移动终端获取用户在目标收藏界面上先后触发的第一触屏操作和第二触屏操作,对这两次触屏操作进行判定,若第一触屏操作和第二触屏操作满足预设条件,则在第一界面上显示收藏控件。若收藏控件设置于第一悬浮窗310中,则响应于用户触发的满足预设条件的第一触屏操作和第二触屏操作,显示设置有收藏控件的第一悬浮窗310。In order to avoid misoperation, the user can display the favorite control by performing two touch screen operations on the target collection interface. The mobile terminal acquires the first touch screen operation and the second touch screen operation triggered by the user on the target collection interface, and determines the two touch screen operations, if the first touch screen operation and the second touch screen operation meet the preset condition , the favorite control is displayed on the first interface. If the favorite control is disposed in the first floating window 310, the first floating window 310 provided with the favorite control is displayed in response to the user-triggered first touch screen operation and the second touch screen operation satisfying the preset condition.
预设条件可以是以下条件中的其中一项或多项:第一触屏操作满足第一预设触屏条件、第二触屏操作满足第二预设触屏条件,以及第一触屏操作和第二触屏操作之间的间隔时间满足预设时间条件等。The preset condition may be one or more of the following conditions: the first touch screen operation satisfies the first preset touch screen condition, the second touch screen operation satisfies the second preset touch screen condition, and the first touch screen operation The interval between the second touch screen operation and the second touch screen operation satisfies a preset time condition or the like.
作为一种可能的实现方式,第一触屏操作可以为第一滑动操作,第一滑动操作包括第一触点和第二触点。其中第一触点为第一滑动操作的起点,第二触点为第一滑动操作的终点,第一触点的坐标与第二触点的坐标不相同。此时,第一预设触屏条件可以包括以下条件中的其中一项或多项:第一触点和第二触点之间的横坐标之差满足第一距离条件、第一触点和第二触点之间的纵坐标之差满足第二距离条件,以及在产生第一触点到产生第二触点的过程中,任意时刻显示屏上有且至少有一个触点等。As a possible implementation manner, the first touch screen operation may be a first sliding operation, and the first sliding operation includes a first contact and a second contact. The first contact is the starting point of the first sliding operation, and the second contact is the end point of the first sliding operation, and the coordinates of the first contact are different from the coordinates of the second contact. At this time, the first preset touch screen condition may include one or more of the following conditions: a difference between the abscissas between the first contact and the second contact satisfies the first distance condition, the first contact, and The difference in ordinate between the second contacts satisfies the second distance condition, and there is at least one contact or the like on the display at any time during the generation of the first contact to the second contact.
在产生第一触点到产生第二触点的过程中,若任意时刻显示屏上有且至少有一个触点,说明第一触屏操作为第一滑动操作。若任意时刻显示屏上有且仅有一个触点,那么第一滑动操作为单指滑动操作。若任意时刻显示屏上有且有多个触点,那么第一滑动操作为多指滑动操作。在实际应用中,该第一滑动操作可以是具有预设形状的连续的滑动操作,例如沿三角形、“Z”字型或圆形等形状滑动,参考图4(a)、4(b)、和4(c)所示。In the process of generating the first contact to the second contact, if there is at least one contact on the display at any time, the first touch screen operation is the first sliding operation. If there is only one contact on the display at any time, the first sliding operation is a single-finger sliding operation. If there are multiple contacts on the display at any time, the first sliding operation is a multi-finger sliding operation. In practical applications, the first sliding operation may be a continuous sliding operation having a predetermined shape, for example, sliding along a shape such as a triangle, a “Z” shape, or a circle. Referring to FIGS. 4( a ) and 4 ( b ), And 4(c).
若第一触点和第二触点之间的纵坐标之差大于或等于第一距离(例如2cm),即满足第一距离条件,则认为第一滑动操作为纵向滑动操作。若同时,第一触点和第二触点之间的横坐标之差小于或等于第二距离(例如0.5cm),即满足第二距离条件,则认为第一滑动操作为垂直滑动操作。若同时结合在第一滑动操作执行的过程中,任意时刻显示屏上有且仅有一个触点这个条件,则可以认为第一滑动操作为单指垂直滑动操作。If the difference in ordinate between the first contact and the second contact is greater than or equal to the first distance (eg, 2 cm), ie, the first distance condition is satisfied, the first sliding operation is considered to be a longitudinal sliding operation. If, at the same time, the difference between the abscissas between the first contact and the second contact is less than or equal to the second distance (for example, 0.5 cm), that is, the second distance condition is satisfied, the first sliding operation is considered to be a vertical sliding operation. If at the same time the process of performing the first sliding operation is performed, and there is a condition of only one contact on the display screen at any time, the first sliding operation can be considered as a single-finger vertical sliding operation.
若第一触点和第二触点之间的横坐标之差大于或等于第一距离(例如2cm),即满足第一距离条件,则认为第一滑动操作为横向滑动操作。若同时,第一触点和第二触点之间的纵坐标之差小于或等于第二距离(例如0.5cm),即满足第二距离条件,则认为第一滑动 操作为水平滑动操作。若同时结合在第一滑动操作执行的过程中,任意时刻显示屏上有且仅有一个触点这个条件,则可以认为第一滑动操作为单指水平滑动操作。If the difference between the abscissas between the first contact and the second contact is greater than or equal to the first distance (eg, 2 cm), ie, the first distance condition is satisfied, the first sliding operation is considered to be a lateral sliding operation. If, at the same time, the difference in ordinate between the first contact and the second contact is less than or equal to the second distance (e.g., 0.5 cm), i.e., the second distance condition is satisfied, the first sliding operation is considered to be a horizontal sliding operation. If at the same time the process of performing the first sliding operation is performed, and there is a condition of only one contact on the display screen at any time, the first sliding operation can be considered as a single-finger horizontal sliding operation.
当然,除了上述条件,还可以规定第一滑动操作的滑动方向。即若第一滑动操作为纵向滑动操作,那么还可以规定第一触点的纵坐标小于第二触点的纵坐标,或者第一触点的纵坐标大于第二触点的纵坐标。或者,若第二滑动操作为横向滑动操作,还可以规定第一触点的横坐标小于第二触点的横坐标,或者第一触点的横坐标大于第二触点的横坐标。Of course, in addition to the above conditions, the sliding direction of the first sliding operation can be specified. That is, if the first sliding operation is a vertical sliding operation, it may also be specified that the ordinate of the first contact is smaller than the ordinate of the second contact, or the ordinate of the first contact is greater than the ordinate of the second contact. Alternatively, if the second sliding operation is a lateral sliding operation, it may be further provided that the abscissa of the first contact is smaller than the abscissa of the second contact, or the abscissa of the first contact is greater than the abscissa of the second contact.
类似的,第二触屏操作可以为第二滑动操作,第二滑动操作包括第三触点和第四触点,第三触点为第二滑动操作的起点,第四触点为第二滑动操作的终点,第三触点的坐标与第四触点的坐标不相同。此时,第二预设触屏条件可以包括以下条件中的其中一项或多项:第三触点和第四触点之间的横坐标之差满足第三距离条件、第三触点和第四触点之间的纵坐标之差满足第四距离条件以及在产生第三触点到产生第四触点的过程中,任意时刻显示屏上有且至少有一个触点等。第三距离条件和第四距离条件可以类比于第一距离条件和第二距离条件,相关例子参见上文。第三距离和第四距离可以与第一距离和第二距离在数值上相同,也可以不同。Similarly, the second touch screen operation may be a second sliding operation, the second sliding operation includes a third contact and a fourth contact, the third contact is a starting point of the second sliding operation, and the fourth contact is a second sliding At the end of the operation, the coordinates of the third contact are not the same as the coordinates of the fourth contact. At this time, the second preset touch screen condition may include one or more of the following conditions: a difference between the abscissas between the third contact and the fourth contact satisfies the third distance condition, the third contact, and The difference in ordinate between the fourth contacts satisfies the fourth distance condition and in the process of generating the third contact to the fourth contact, there is at least one contact or the like on the display at any time. The third distance condition and the fourth distance condition may be analogized to the first distance condition and the second distance condition, as described above. The third distance and the fourth distance may be numerically the same as the first distance and the second distance, or may be different.
此外,若第一触屏操作和第二触屏操作之间的间隔时间满足预设时间条件,则认为第一触屏操作和第二触屏操作满足预设条件,则可以显示收藏控件。预设时间条件可以是第一触屏操作和第二触屏操作的间隔时间小于或等于第一阈值。第一阈值应当为较短的时间,例如在1s之内,即在第一触屏操作和第二触屏操作的间隔时间较小时,认为这两个触屏操作是用于触发同一个指令的,即显示收藏控件的指令。In addition, if the interval time between the first touch screen operation and the second touch screen operation satisfies the preset time condition, it is considered that the first touch screen operation and the second touch screen operation satisfy the preset condition, and the favorite control may be displayed. The preset time condition may be that the interval between the first touch screen operation and the second touch screen operation is less than or equal to the first threshold. The first threshold should be a short time, for example within 1 s, that is, when the interval between the first touch screen operation and the second touch screen operation is small, the two touch screen operations are considered to be used to trigger the same instruction. , which displays the instructions of the favorite control.
在本申请实施例中,还可以提示用户触屏操作是有效的,例如可以在第一触屏操作满足第一预设触屏条件时,显示第二悬浮窗1710,参见图5(b)所示。其中,第二悬浮窗1701的大小可以小于第一悬浮窗310的大小。若在预设时间段之内没有获取到用户的第二触屏操作,可取消第二悬浮窗1701的显示。若在预设时间之内获取到用户的第二触屏操作,显示设置有收藏控件的第一悬浮窗310,给用户直观的交互感受,提高用户体验。对于后一种情况,第二悬浮窗1701可以不显示,不影响本申请实施例的实现。In the embodiment of the present application, the user may also be prompted to perform a touch screen operation, for example, when the first touch screen operation satisfies the first preset touch screen condition, the second floating window 1710 may be displayed, as shown in FIG. 5(b). Show. The size of the second floating window 1701 may be smaller than the size of the first floating window 310. If the second touch screen operation of the user is not acquired within the preset time period, the display of the second floating window 1701 may be cancelled. If the second touch screen operation of the user is obtained within a preset time, the first floating window 310 provided with the favorite control is displayed, thereby giving the user an intuitive interaction feeling and improving the user experience. In the latter case, the second floating window 1701 may not be displayed, and does not affect the implementation of the embodiment of the present application.
在本申请实施例中,第一触屏操作和第二触屏操作可以是相同的操作,也可以是不同的操作,例如第一触屏操作和第二触屏操作可以都是横向滑动操作,如图5(a)所示,在推文界面100中,将从左向右滑动作为第一触屏操作,响应于该第一触屏操作,在界面的左侧出现较小的第二悬浮窗1701,如图5(b)所示。将再次从左向右滑动作为第二触屏操作,如图5(c)所示,响应于该第二触屏操作,在界面的左侧出现设置有收藏控件“添加+”301的第一悬浮窗310,参考图3(a)所示。推文界面100作为目标收藏界面和悬浮窗310构成可第一界面。In the embodiment of the present application, the first touch screen operation and the second touch screen operation may be the same operation, or may be different operations, for example, the first touch screen operation and the second touch screen operation may all be horizontal sliding operations. As shown in FIG. 5(a), in the tweet interface 100, sliding from left to right as a first touch screen operation, in response to the first touch screen operation, a smaller second suspension appears on the left side of the interface. Window 1701 is shown in Figure 5(b). Will slide from left to right again as the second touch screen operation, as shown in FIG. 5(c), in response to the second touch screen operation, the first set with the favorite control "Add+" 301 appears on the left side of the interface. The floating window 310 is shown in Fig. 3(a). The tweet interface 100 constitutes a first interface as a target collection interface and a floating window 310.
S202,接收用户对收藏控件的收藏操作,获取目标收藏界面的调用信息,并对调用信息进行收藏。S202: Receive a user's collection operation on the favorite control, obtain call information of the target collection interface, and collect the call information.
用户对收藏控件的收藏操作可以通过点击第一界面上的收藏控件来实现。在本实施例中,移动终端可以接收用户对收藏控件的收藏操作,获取目标收藏界面的调用信息,并对调用信息进行收藏。The user's favorite operation of the favorite control can be realized by clicking the favorite control on the first interface. In this embodiment, the mobile terminal may receive the user's collection operation on the favorite control, acquire the call information of the target collection interface, and collect the call information.
目标收藏界面的调用信息是指能够打开目标收藏界面的路径,例如可以是目标收藏界面对应的活动(Activity)的活动调用链,该活动调用链为显示目标收藏界面所需要生成的活动的调用链条。The call information of the target collection interface refers to a path that can open the target collection interface, for example, an activity call chain of an activity corresponding to the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface. .
在实际应用中,第一界面可能会包括多个界面,这些界面并不一定都是用户想要收藏的目标收藏界面。所以,当第一界面中包括多个界面时,可以从多个界面中确定目标收藏界面。In practical applications, the first interface may include multiple interfaces, which are not necessarily the target collection interfaces that the user wants to collect. Therefore, when a plurality of interfaces are included in the first interface, the target favorite interface may be determined from the plurality of interfaces.
比如说,除了目标收藏界面以外,第一界面还可能包括其他用于辅助用户使用的应用程序窗口的界面,即预设界面,这些界面在较大的概率上不可能成为目标收藏界面,所以在确定目标收藏界面时可以先将这些预设界面排除出去,即从第一界面的多个界面中除预设界面之外的界面中确定目标收藏界面。For example, in addition to the target collection interface, the first interface may include other interfaces for assisting the user to use the application window, that is, the preset interface, which may not be the target collection interface with a large probability, so When the target collection interface is determined, the preset interfaces may be excluded first, that is, the target collection interface is determined from the interfaces other than the preset interface among the multiple interfaces of the first interface.
举例来说,用户想要收藏的目标收藏界面为推文界面100,而预设界面可以包括快捷菜单界面等,例如360加速球对应的界面;或者,预设界面可以是包括收藏控件的界面,例如第一悬浮窗310。For example, the target collection interface that the user wants to collect is the tweet interface 100, and the preset interface may include a shortcut menu interface or the like, for example, an interface corresponding to the 360 acceleration ball; or the preset interface may be an interface including a favorite control. For example, the first floating window 310.
显示方法通常情况下,第一界面中除预设界面的界面数目仅为一个,因为在大多数情况下,仅有一个应用程序窗口为主窗口,例如图1(e),主窗口为微信的窗口,则可以直接获取显示在显示屏上的除预设界面外的界面,即推文界面100,作为目标收藏界面。Display method Generally, the number of interfaces except the preset interface in the first interface is only one, because in most cases, only one application window is the main window, for example, FIG. 1(e), the main window is WeChat. The window can directly obtain the interface displayed on the display except the preset interface, that is, the tweet interface 100, as the target collection interface.
如果第一界面中除预设界面之外的界面有多个,具体选择哪个界面作为目标收藏界面可以由用户来选择。例如,第一界面中有两个或两个以上的应用程序窗口同屏显示,比如说显示屏的上半部显示微信的窗口,下半部显示微博的窗口,这两个应用程序的界面都有可能是用户想要选择的目标收藏界面。此时移动终端可以分别获取除预设界面之外的多个界面的代表视图或代表视图的名称,代表视图的获取方式可以参考S203中的获取方式,为每个界面生成一个界面选择控件,在界面选择控件中显示对应界面的代表视图和/或代表视图的名称。移动终端接收用户对多个界面选择控件的选择操作,将与用户选择的界面选择控件对应的界面确定为目标收藏界面。If there are multiple interfaces other than the preset interface in the first interface, which interface is selected as the target favorite interface may be selected by the user. For example, two or more application windows in the first interface are displayed on the same screen, for example, the upper half of the display screen displays the WeChat window, and the lower half displays the microblog window, the interfaces of the two applications. It is possible that the target collection interface that the user wants to select. At this time, the mobile terminal can respectively obtain a representative view of the plurality of interfaces other than the preset interface or a name of the representative view. For the manner of obtaining the view, refer to the obtaining mode in S203, and generate an interface selection control for each interface. The representative view of the corresponding interface and/or the name representing the view is displayed in the interface selection control. The mobile terminal receives the user's selection operation of the plurality of interface selection controls, and determines an interface corresponding to the interface selection control selected by the user as the target collection interface.
举例来说,参考图3(b)所示,第一界面中除预设界面之外的界面为三个,接收用户对收藏控件的收藏操作,显示屏上显示包括视图选择控件的第三悬浮窗320,在第三悬浮窗320中,除预设界面之外的三个候选界面分别对应的视图名称为:“VIEW1名称”321、“VIEW2名称”322、“VIEW3名称”323(参见虚线框内),这些视图名称可以作为文本标签显示,在视图名称“VIEW1名称”321的右侧形成有“+”324(参见虚线框内)的视图选择控件供用户选择。若检测到用户点击“VIEW1名称”321右侧的视图选择控件“+”324,即可认为用户选定VIEW1对应的界面,移动终端相应的将VIEW1对应的界面作为目标收藏界面。For example, referring to FIG. 3(b), the interface in the first interface except the preset interface is three, receiving the user's favorite operation on the favorite control, and displaying a third suspension including the view selection control on the display screen. In the third floating window 320, the three view interfaces corresponding to the preset interface respectively have corresponding view names: “VIEW1 name” 321, “VIEW2 name” 322, “VIEW3 name” 323 (see the dotted frame). Inside, these view names can be displayed as text labels, and a view selection control of "+" 324 (see inside the dotted line frame) is formed on the right side of the view name "VIEW1 Name" 321 for the user to select. If it is detected that the user clicks the view selection control "+" 324 on the right side of the "VIEW1 name" 321 , the user can select the interface corresponding to VIEW1, and the mobile terminal correspondingly uses the interface corresponding to VIEW1 as the target collection interface.
此外,在实际应用中,当移动终端接收用户对收藏控件的收藏操作,并根据收藏操作获取目标收藏界面的调用信息并进行收藏之后,就完成了收藏的过程,此时可以对包含有收藏控件的悬浮窗进行隐藏。相应的隐藏指令可以根据用户在显示屏的预设区域的点击事件生成,也可以根据用户在显示屏的预设区域的滑动事件生成,预设区域可以是显示屏中未被悬浮窗覆盖的区域。以第一悬浮窗310中设置有收藏控件“添加+”301为例,如图3 (a)所示,点击第一悬浮窗310外、推文界面100以内的区域,可以隐藏第一悬浮窗310,即同时可隐藏第一悬浮窗310中的收藏控件“添加+”301。In addition, in the actual application, when the mobile terminal receives the user's collection operation on the favorite control, and obtains the calling information of the target collection interface according to the collection operation and collects it, the collection process is completed, and the collection control may be included at this time. The floating window is hidden. The corresponding hidden instruction may be generated according to a click event of the user in a preset area of the display screen, or may be generated according to a sliding event of the user in a preset area of the display screen, and the preset area may be an area covered by the floating window in the display screen. . For example, as shown in FIG. 3( a ), the first floating window 310 is provided with a favorite control “add+” 301. Clicking on the area outside the first floating window 310 and within the tweet interface 100 can hide the first floating window. 310, that is, the favorite control "Add+" 301 in the first floating window 310 can be hidden at the same time.
S203,显示第二界面,第二界面中包括目标收藏界面的展示控件。S203. The second interface is displayed, and the second interface includes a display control of the target collection interface.
在第二界面中,包括目标收藏界面的展示控件,展示控件是指可以接收用户的展示操作的控件,展示控件与目标收藏界面的调用信息相关联。当用户触发了展示控件之后,移动终端可以根据该展示控件对应的目标收藏界面的调用信息显示目标收藏界面。与收藏控件相类似,展示控件可以是物理按键,也可以是虚拟按键,展示控件可以设置于悬浮窗中,例如可以是第一悬浮窗310,也可以是其他悬浮窗。In the second interface, the display control including the target collection interface, the display control refers to a control that can receive the user's display operation, and the display control is associated with the call information of the target collection interface. After the user triggers the display control, the mobile terminal may display the target collection interface according to the call information of the target favorite interface corresponding to the display control. Similar to the favorite control, the display control may be a physical button or a virtual button, and the display control may be disposed in the floating window, for example, the first floating window 310 or other floating windows.
可选的,展示控件可以通过响应用户操作而显示,在第二界面中包括应用程序界面时,可以响应用户在该应用程序界面上的操作,显示设置有展示控件的第一悬浮窗310,用户在应用程序界面上的操作的类型可以参考S201中显示设置有收藏控件的第一悬浮窗310所需的操作类型。Optionally, the display control may be displayed by responding to the user operation. When the application interface is included in the second interface, the first floating window 310 provided with the display control may be displayed in response to the user's operation on the application interface. The type of operation on the application interface can refer to the type of operation required to display the first floating window 310 in which the favorite control is set in S201.
也就是说,第二界面包括应用程序界面和设置有展示控件的第一悬浮窗310。应用程序界面可以是与目标收藏界面对应的应用程序的其他界面,也可以是与目标收藏界面对应的应用程序不同的其他应用程序的界面,还可以是目标收藏界面本身。That is, the second interface includes an application interface and a first floating window 310 provided with display controls. The application interface may be another interface of the application corresponding to the target collection interface, or may be an interface of another application different from the target collection interface, or may be the target collection interface itself.
在目标收藏界面的展示控件为虚拟按键时,可以是空白的虚拟按键,也可以是包括代表视图的虚拟按键,其中,代表视图可以体现目标收藏界面内容。When the display control of the target collection interface is a virtual key, it may be a blank virtual key, or may be a virtual key including a representative view, wherein the representative view may reflect the content of the target collection interface.
代表视图可以是根据目标收藏界面中的全部或部分视图形成的视图。具体的,可以通过在目标收藏界面中选取全部或部分视图作为目标视图,进而根据选取的目标视图生成代表视图,代表视图可以是目标视图的组合,也可以是目标视图的组合视图的缩略图。The representative view may be a view formed according to all or part of the view in the target favorite interface. Specifically, all or part of the view may be selected as the target view in the target collection interface, and then the representative view may be generated according to the selected target view, and the representative view may be a combination of the target view or a thumbnail of the combined view of the target view.
在本申请实施例中,目标视图是能够体现目标收藏界面内容的视图,当目标收藏界面对应有多个候选视图时,并不是每个候选视图都能够体现目标收藏界面的内容,因此,可以获取目标收藏界面对应的多个候选视图,并从多个候选视图中确定出目标视图。In the embodiment of the present application, the target view is a view that can reflect the content of the target collection interface. When the target collection interface corresponds to multiple candidate views, not every candidate view can reflect the content of the target collection interface, and thus, the content can be obtained. A plurality of candidate views corresponding to the target collection interface, and the target view is determined from the plurality of candidate views.
作为一种可能的实现方式,可以根据多个候选视图在屏幕中的显示位置对这些候选视图进行分组,得到多组候选视图。在第三界面中显示多组候选视图中每组候选视图分别对应的视图选择控件,接收用户对视图选择控件的选择操作,将用户选择的视图选择控件对应的候选视图确定为目标视图。例如可以按照多个候选视图在屏幕中的位置,分为两组,一组位于屏幕的上半部分,另外一组位于屏幕的下半部分。每组候选视图对应一个视图选择控件,例如位于屏幕上半部分的一组候选视图对应第一视图选择控件,位于屏幕下半部分的一组候选视图对应第二视图选择控件。若用户点击了第一视图选择控件,则将位于上半部分的一组候选视图作为目标视图。As a possible implementation manner, the candidate views may be grouped according to the display positions of the plurality of candidate views in the screen to obtain a plurality of sets of candidate views. The view selection control corresponding to each group of candidate views in the plurality of sets of candidate views is displayed in the third interface, and the user selects the view selection control, and the candidate view corresponding to the view selection control selected by the user is determined as the target view. For example, the position of the plurality of candidate views in the screen can be divided into two groups, one set is located in the upper half of the screen, and the other set is located in the lower half of the screen. Each set of candidate views corresponds to a view selection control, for example, a set of candidate views located in the upper half of the screen corresponds to the first view selection control, and a set of candidate views located in the lower half of the screen corresponds to the second view selection control. If the user clicks on the first view selection control, the set of candidate views in the upper half is taken as the target view.
作为另一种可能的实现方式,可以分别获取多个候选视图的属性,根据多个候选视图的属性从多个候选视图中确定出目标视图。例如,多个候选视图可以包括文字、图片、视频、音频等不同属性的候选视图,由于候选视图的属性在一定程度上反映代表候选视图代表目标收藏界面的程度,因此可以按照候选视图的不同属性,将多个候选视图进行分组,在不需要用户操作的前提下尽量准确的获取用户想要获取的内容。例如用户可以选择图片和文字的候选视图作为目标视图。当然,上述分组依据并不构成对本申请的限定,本领域 技术人员还可以根据具体情况自行设计。例如可以根据页面中的网页标题、正文或其他信息(例如广告)来对候选视图进行分组。As another possible implementation manner, the attributes of the multiple candidate views may be separately obtained, and the target view is determined from the plurality of candidate views according to the attributes of the multiple candidate views. For example, the plurality of candidate views may include candidate views of different attributes such as text, picture, video, audio, etc., since the attributes of the candidate view reflect to some extent the degree to which the representative view represents the target collection interface, the different attributes of the candidate view may be selected. , grouping multiple candidate views, and obtaining the content that the user wants to obtain as accurately as possible without requiring user operations. For example, the user can select a candidate view of the picture and text as the target view. Of course, the above groupings do not constitute a limitation on the present application, and those skilled in the art can also design according to specific situations. For example, the candidate views can be grouped according to the page title, body or other information (eg, advertisements) in the page.
在实际应用中,还可以通过人工智能获取用户对目标视图的选择结果,分析用户的偏好,从而为用户推荐目标视图或自动为用户选择合适的目标视图。例如对于文章而言,用户可能通常会选择标题对应的视图作为目标视图;对于视频网站而言,用户通常会选择视频本身作为目标视图。In practical applications, the artificial intelligence can also be used to obtain the user's selection result of the target view, analyze the user's preference, thereby recommending the target view for the user or automatically selecting a suitable target view for the user. For example, for an article, a user may typically select a view corresponding to the title as the target view; for a video site, the user typically selects the video itself as the target view.
作为又一种可能的实现方式,多个候选视图还可以不是并列的关系,例如可以形成视图树,该视图树中可以包括有多层,按照从上至下的顺序,第一层为根视图,第二层为2级子视图,依次类推。可以理解的是,层数越少,包含的候选视图的数目越少;层数越多,包含的候选视图的数目越多。此时,可从视图树中选取前预设数目层的候选视图,确定为目标视图,其中预设数目为正整数,从而能够将主要的候选视图作为目标视图,以便在不需要用户操作的前提下尽量准确的获取用户想要获取的内容。As a further possible implementation, the multiple candidate views may not be in a side-by-side relationship, for example, a view tree may be formed, and the view tree may include multiple layers, and the first layer is a root view in order from top to bottom. The second layer is a level 2 subview, and so on. It can be understood that the fewer the number of layers, the smaller the number of candidate views included; the more the number of layers, the more the number of candidate views included. At this time, the candidate view of the preset number of layers can be selected from the view tree, and the target view is determined, wherein the preset number is a positive integer, so that the main candidate view can be used as the target view, so that the user operation is not required. Get the content you want to get as accurately as possible.
在实际应用中,为了提高用户体验,用户可以确定具体的层数。为了方便用户确定,可以向用户显示用户确定的前预设数目层的候选视图,若用户觉得其确定的前预设数目层候选视图不足以表达目标收藏界面显示的内容,或者确定的目标视图的视图数目过多,还可以通过显示在界面上的滑块来调整显示的候选视图的层数,以此来确定显示的视图树的深度。In practical applications, in order to improve the user experience, the user can determine the specific number of layers. In order to facilitate the user to determine, the candidate view of the pre-predetermined number of layers determined by the user may be displayed to the user, if the user feels that the determined pre-predetermined number of layers of the candidate view is insufficient to express the content displayed by the target collection interface, or the determined target view Too many views, you can also determine the depth of the displayed view tree by adjusting the number of layers of the candidate view displayed by the slider displayed on the interface.
在选取除目标视图后,可以根据目标视图形成代表视图,由于代表视图是根据目标视图得到的,可以体现目标视图的内容,而目标视图又是目标收藏界面中的视图,因此代表视图是可以体现目标收藏界面的内容的视图。After selecting the target view, the representative view can be formed according to the target view. Since the representative view is obtained according to the target view, the content of the target view can be reflected, and the target view is the view in the target collection interface, so the representative view can be embodied. A view of the content of the target collection interface.
在获得可以体现目标收藏界面内容的代表视图后,可以在目标收藏界面的展示控件中显示代表视图。After obtaining a representative view that can reflect the content of the target collection interface, a representative view can be displayed in the display control of the target collection interface.
举例来说,多个展示控件可以以列表的形式显示在显示屏上,其显示位置可以是第一悬浮窗310中。如图6(a)所示,视图“周杰伦,我不会常常想起你,但也从来没有忘记”401作为代表视图,位于第一悬浮窗310中代表视图列表第一项的位置。若代表视图有多个,可以显示在代表视图列表第二项、第三项等的位置(图6(a)中未示出)。在上述示例中,目标视图是推文界面100中,推文对应的公众号视图、推文的标题“周杰伦,我不会常常想起你,但也从来没有忘记”的视图和发布日期视图的组合,代表视图是目标视图的缩略图。For example, a plurality of display controls may be displayed on the display screen in the form of a list, which may be displayed in the first floating window 310. As shown in Figure 6(a), the view "Jay Jay, I don't always think of you, but never forgets" 401 as a representative view, located in the first floating window 310 representing the first item of the view list. If there are a plurality of representative views, it can be displayed at a position representing the second item, the third item, and the like of the view list (not shown in FIG. 6(a)). In the above example, the target view is the tweet interface 100, the corresponding public number view of the tweet, the tweet title "Jay Jay, I don't always think of you, but never forget" the combination of the view and the release date view. , the delegate view is a thumbnail of the target view.
在本申请实施例中,展示控件还可以包括显示控件,其中显示控件中可以显示目标视图的视图名称,代表视图的名称可以与目标收藏视图的名称相同,也可以与目标视图的名称相同,还可以包括更多界面信息。可选的,代表视图的名称的显示位置可以位于代表视图的上方。因为显示控件在显示屏上占用的空间较小,所以当展示控件有多个时,可以在显示屏上显示较多个展示控件。In the embodiment of the present application, the display control may further include a display control, wherein the display control may display the view name of the target view, and the name of the view may be the same as the name of the target favorite view, or may be the same as the name of the target view. More interface information can be included. Optionally, the display location representing the name of the view can be located above the representative view. Because the display controls take up less space on the display, more than one display control can be displayed on the display when there are multiple display controls.
如图6(b)所示,显示代表视图的名称“每日豆瓣-周杰伦…”402的显示控件和代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401显示在列表的第一项,且显示代表视图的名称“每日豆瓣-周杰伦…”402的显示控件位于代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401的上方。As shown in Figure 6(b), the display controls represent the name of the view "Daily Douban - Jay Chou..." 402 and the representative view "Jay Jay, I don't always think of you, but never forget" 401 shows in the list The first item, and the display control that represents the name of the view "Daily Douban - Jay Chou..." 402 is located above the representative view "Jay Jay, I don't always think of you, but never forget" 401.
在具体实现时,还可以对展示控件的内容进行更改,例如在展示控件的内容包括代表视图,或包括代表视图和显示有代表视图的名称的显示控件时,若代表视图有多个,而移动终端的显示屏较小,则可以接收用户对视图的隐藏操作,隐藏在显示屏上显示的代表视图。对视图的隐藏操作可以是用户在显示屏上的预设区域的点击事件或滑动事件,在代表视图的名称显示于第一悬浮窗310中时,预设区域可以为代表视图的名称的位置,当然,预设区域也可以其他区域,例如是第一悬浮窗310的空白处。In the specific implementation, you can also change the content of the display control, for example, when the content of the display control includes a representative view, or when the display control represents a view and displays a display with a name representing the view, if there are multiple representative views, the mobile If the display of the terminal is small, the user can receive the hidden operation of the view and hide the representative view displayed on the display. The hidden operation of the view may be a click event or a sliding event of the preset area of the user on the display screen. When the name of the representative view is displayed in the first floating window 310, the preset area may be a position representing the name of the view. Of course, the preset area may also be other areas, such as a blank space of the first floating window 310.
在对代表视图进行隐藏后,展示控件只包括显示代表视图的名称的展示控件,此时展示控件也可以以列表的形式显示。如图6(c)所示,显示代表视图的名称“每日豆瓣-周杰伦…”402的显示控件显示在第一悬浮窗310中列表的第一项,显示代表视图的名称“QQ看点-至今没有…”403的显示控件和显示代表视图名称“天猫超市-限时抢…”404的显示控件作为其他界面的显示控件,显示在列表的第二项和第三项。After hiding the delegate view, the display control only includes display controls that display the name of the view, and the display controls can also be displayed as a list. As shown in FIG. 6(c), the display control displaying the name "Daily Douban-Jay Chou..." 402 representing the view displays the first item of the list in the first floating window 310, and displays the name of the representative view "QQ Aspect - So far there is no..." 403 display controls and display controls representing the view name "Tmall Supermarket - Limited Time Grab..." 404 as display controls for other interfaces, displayed in the second and third items of the list.
在对代表视图进行隐藏之前,代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401可参考图6(b)所示,在对代表视图进行隐藏之后,仅显示显示有代表视图的名称“每日豆瓣-周杰伦…”402的显示控件,参考图6(c)所示。Before hiding the delegate view, the delegate view "Jay Jay, I don't think of you often, but never forgets" 401 can refer to Figure 6(b). After hiding the delegate view, only the display is representative. The display name of the view "Daily Douban - Jay Chou..." 402 is shown in Figure 6(c).
相应的,若展示控件的显示内容只包括代表视图的名称,可以通过接收用户对代表视图的名称的查看操作来显示代表视图,其触发方式可以是点击代表视图的名称。例如,参考图6(c)所示,点击显示有代表视图的名称“每日豆瓣-周杰伦…”402的显示控件,可以在“每日豆瓣-周杰伦…”402的显示控件的下方显示出代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401,如图6(b)所示。Correspondingly, if the display content of the display control only includes the name of the representative view, the representative view can be displayed by receiving the user's viewing operation on the name representing the view, which can be triggered by clicking the name of the representative view. For example, referring to FIG. 6(c), clicking on the display control showing the name "Daily Douban - Jay Chou..." 402 representing the view can be displayed below the display control of "Daily Douban - Jay Chou..." 402. View "Jay Chou, I don't think of you often, but I never forget" 401, as shown in Figure 6(b).
在实际应用中,为了让用户看到更多的内容,展示控件可以默认仅包括显示控件。当用户需要看到某个代表视图时,可以点击对应的显示控件,显示该代表视图;当用户不需要看到代表视图时,可以再次点击该显示控件,或者点击第一悬浮窗310的空白处,以使代表视图被隐藏。In practical applications, in order for the user to see more content, the display control can only include the display control by default. When the user needs to see a representative view, the corresponding display control may be clicked to display the representative view; when the user does not need to see the representative view, the display control may be clicked again, or the blank of the first floating window 310 may be clicked. To make the delegate view hidden.
当然,可以理解的是,在隐藏或显示某个代表视图的过程中,其他代表视图的位置或其他显示控件位置也应当相应变化。例如,若从图6(b)变化到图6(c),即隐藏代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401时,显示代表视图的名称“QQ看点-至今没有…”403的显示控件和显示代表视图名称“天猫超市-限时抢…”404的显示控件的位置适应性向上移动;而从图6(c)变化到图6(b),即显示代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401时,显示代表视图的名称“QQ看点-至今没有…”403的显示控件和显示代表视图的名称“天猫超市-限时抢…”404的显示控件的位置适应性向下移动。Of course, it can be understood that in the process of hiding or displaying a representative view, the position of other representative views or other display control positions should also be changed accordingly. For example, if you change from Figure 6(b) to Figure 6(c), the hidden representative view "Jay Jay, I don't always think of you, but never forgets" 401, the name representing the view "QQ Aspect - So far no..." display control of 403 and display positional adaptation of the display control representing the view name "Tmall Supermarket - Limited Time Grab..." 404; and changing from Figure 6(c) to Figure 6(b), The representative view "Jay Jay, I don't always think of you, but never forget" 401 when the display represents the name of the view "QQ Aspect - so far no..." 403 display control and display the name of the representative view "Tmall Supermarket - Limit time grab..." The position of the display control of the 404 is adaptively moved downward.
由于代表视图可用于体现目标收藏界面的内容,若目标收藏界面的内容有更新,例如图1(e)中的推文界面100中的微信公众号中推文被删除,形成如图7所示的更新后目标收藏界面500,可选的,代表视图可以根据目标视图生成,目标视图是更新后目标收藏界面500中的视图。具体的,生成代表视图的方式可以有以下两种。Since the representative view can be used to reflect the content of the target collection interface, if the content of the target collection interface is updated, for example, the tweet in the WeChat public number in the tweet interface 100 in FIG. 1(e) is deleted, as shown in FIG. The updated target collection interface 500, optionally, the representative view may be generated according to the target view, and the target view is the view in the updated target favorite interface 500. Specifically, there are two ways to generate a representative view.
第一种方式,移动终端可以自动根据更新后目标收藏界面500获取目标视图,可以对目标收藏界面500进行监控,在监控到目标收藏界面500有更新时,从更新后目标收藏界面500中获取目标视图,根据目标视图生成代表视图。In the first manner, the mobile terminal can automatically obtain the target view according to the updated target collection interface 500, and can monitor the target collection interface 500. When the target collection interface 500 is updated, the target is acquired from the updated target collection interface 500. View, which generates a representative view based on the target view.
第二种方式,可以通过接收用户对代表视图的名称的查看操作,获取目标收藏界面的视图,从目标收藏界面的视图中获得目标视图,根据目标视图生成代表视图,此时若目标收藏界面为更新后目标收藏界面500,则生成的代表视图是对应于更新后目标收藏界面500的视图。例如用户可以点击代表视图的名称来实现对代表视图的名称的查看操作。In the second method, the user can view the name of the representative view, obtain the view of the target collection interface, obtain the target view from the view of the target collection interface, and generate a representative view according to the target view. After the updated target collection interface 500, the generated representative view is a view corresponding to the updated target favorite interface 500. For example, the user can click on the name of the representative view to implement a view of the name representing the view.
下面结合附图对代表视图的第二种生成方式进行说明。参考图8(a)所示,第一悬浮窗310中显示包含代表视图的名称“每日豆瓣-周杰伦…”402的显示控件,用户通过点击“每日豆瓣-周杰伦…”402显示控件,对代表视图的名称进行查看操作,移动终端接收到用户对代表视图的名称的查看操作,进行代表视图的生成和显示,生成的显示有代表视图的第一悬浮窗310如图8(b)所示,其中,生成的代表视图为“该内容已被发布者删除”601,对应显示的代表视图的名称为“每日豆瓣-该内容…”602。用户还可以点击第一悬浮窗310的空白处,使得移动终端隐藏代表视图“该内容已被发布者删除”601,只显示代表视图的名称“每日豆瓣-该内容…”602。The second generation manner of the representative view will be described below with reference to the accompanying drawings. Referring to FIG. 8(a), the display control including the name "Daily Douban-Jay Chou..." 402 representing the view is displayed in the first floating window 310, and the user displays the control by clicking "Daily Douban-Jay Chou..." 402, The viewing operation is performed on behalf of the name of the view, and the mobile terminal receives the user's viewing operation on the name of the representative view, and generates and displays the representative view. The generated first floating window 310 displaying the representative view is as shown in FIG. 8(b). The generated representative view is “The content has been deleted by the publisher” 601, and the name of the representative view displayed correspondingly is “Daily Douban-The Content...” 602. The user can also click on the blank of the first floating window 310 so that the mobile terminal hides the representative view "This content has been deleted by the publisher" 601, and only displays the name "Daily Douban - This Content..." 602 representing the view.
S204,接收用户对展示控件的展示操作,获取目标收藏界面的调用信息,根据目标收藏界面的调用信息显示目标收藏界面。S204: Receive a display operation of the display control by the user, obtain call information of the target favorite interface, and display a target favorite interface according to the call information of the target favorite interface.
用户对展示控件的展示操作可以通过点击第二界面上的展示控件来实现。展示控件是指接收用户的展示操作的控件,可以是物理按键,也可以是虚拟按键,展示控件可以设置于悬浮窗中,例如可以设置于第一悬浮窗310中。通过接收用户对展示控件的展示操作,移动终端可以根据该展示控件与目标收藏界面的调用信息的关联关系,获取该展示控件对应的目标收藏界面对应的调用信息。The user's display of the display control can be achieved by clicking on the display control on the second interface. The display control is a control that receives a display operation of the user, and may be a physical button or a virtual button. The display control may be disposed in the floating window, for example, may be disposed in the first floating window 310. The receiving terminal can obtain the calling information corresponding to the target collection interface corresponding to the display control according to the association relationship between the display control and the calling information of the target collection interface.
移动终端可以根据目标收藏界面的调用信息显示目标收藏界面。举例来说,参考图6(c)所示,在第二界面包括如图1(b)的微信聊天界面120和第一悬浮窗310时,通过接收用户点击第一悬浮窗310中作为展示控件的代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401的操作,移动终端响从微信聊天界面120跳转至推文界面100,实现推文界面100的快速显示,用户无需记忆不同的操作步骤即可实现界面的快速显示。The mobile terminal can display the target collection interface according to the calling information of the target collection interface. For example, referring to FIG. 6(c), when the second interface includes the WeChat chat interface 120 and the first floating window 310 as shown in FIG. 1(b), the receiving user clicks on the first floating window 310 as a display control. The representative view "Jay Chou, I don't think of you often, but never forget" the operation of 401, the mobile terminal ringing from the WeChat chat interface 120 to the tweet interface 100, realizing the quick display of the tweet interface 100, the user does not need Quickly display the interface by memorizing different steps.
在第二界面包括如图1(d)所示的推文列表界面140和第一悬浮窗310,或第二界面包括微信之外的其他应用程序的界面(例如微博的界面)和第一悬浮窗310时,同样可以通过接收用户点击第一悬浮窗310中作为展示控件的代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401的操作,从推文列表界面140或微博的界面跳转至推文界面100,实现推文界面100的快速显示。用户不需要寻找想要的推文,也不需要额外打开推文界面100对应的应用程序,从而减少操作步骤,提高用户体验。The second interface includes a tweet list interface 140 and a first floating window 310 as shown in FIG. 1(d), or the second interface includes an interface of other applications other than WeChat (for example, an interface of Weibo) and the first When the window 310 is suspended, the user can also click on the first floating window 310 as a representative view of the display control "Jay Chou, I don't always think of you, but never forget" the operation of 401, from the tweet list interface 140 or The interface of the microblog jumps to the tweet interface 100 to implement a quick display of the tweet interface 100. The user does not need to find the desired tweet, and does not need to open the application corresponding to the tweet interface 100, thereby reducing the operation steps and improving the user experience.
在本申请实施例中,还可以删除目标收藏界面对应的展示控件,例如可以删除作为展示控件的代表视图和/或代表视图的名称等。In the embodiment of the present application, the display control corresponding to the target collection interface may also be deleted, for example, the representative view as the display control and/or the name of the representative view may be deleted.
具体的,可以通过接收用户对展示控件的删除操作,移动终端删除该展示控件。如图8(c)中代表视图的名称“每日豆瓣-该内容…”602右侧的“X”603,可作为删除控件,该删除控件是指可以接收用户的删除操作的控件,在用户触发该删除控件时,移动终端删除该代表视图的名称和代表视图,相应调整其他代表视图的显示位置,形成的第一悬浮窗310可参考图8(d)。Specifically, the mobile terminal deletes the display control by receiving a deletion operation of the display control by the user. The "X" 603 on the right side of the name "Daily Douban - The Content..." 602 representing the view in FIG. 8(c) can be used as a delete control, which is a control that can receive a user's delete operation, in the user. When the delete control is triggered, the mobile terminal deletes the name and the representative view of the representative view, and adjusts the display positions of the other representative views accordingly, and the formed first floating window 310 can refer to FIG. 8(d).
需要说明的是,本申请实施例中对于各个控件的触发方式中,单击、双击、长按等方式仅仅是示例性的,具体操作时,还可以有其他点击方式,本申请实施例中并不做相应的限定,可以理解的是,可以通过对同一控件执行不同点击操作来触发不同的指令,其点击方式彼此不发生冲突即可。It should be noted that, in the triggering manner of each control in the embodiment of the present application, the manners of clicking, double-clicking, long-pressing, and the like are merely exemplary. In the specific operation, there may be other click modes, which are in the embodiment of the present application. Without corresponding limitation, it can be understood that different instructions can be triggered by performing different click operations on the same control, and the click modes do not conflict with each other.
综上所述,本申请实施例中提供的界面显示方法中,第一界面显示在显示屏上时,可以通过接收用户对第一界面中的收藏控件的收藏操作,获取第一界面中的目标收藏界面的调用信息,并对调用信息进行收藏,在第二界面显示在显示屏上时,第二界面中包括目标收藏界面的展示控件,该展示控件与目标收藏界面的调用信息相关联,接收用户对展示控件的展示操作,根据与展示控件相关联的目标收藏界面的调用信息显示目标收藏界面。也就是说,用户只需要触发第一界面的收藏控件以及第二界面的展示控件,就可以实现对目标收藏界面的再次显示,而无需按照特定的顺序进行一步步的重复操作,节省了操作步骤,从而节省了用户的操作时间。In summary, in the interface display method provided in the embodiment of the present application, when the first interface is displayed on the display screen, the user may receive the collection operation of the favorite control in the first interface to obtain the target in the first interface. The call information of the collection interface is collected, and the call information is collected. When the second interface is displayed on the display screen, the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface, and receives The user displays the display control, and displays the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
本申请实施例中,为了实现上述界面显示方法,需要移动终端内部的应用层和框架层提供支持。为了便于理解,下面对移动终端上界面和框架层的活动的关系进行说明。In the embodiment of the present application, in order to implement the foregoing interface display method, an application layer and a framework layer inside the mobile terminal are required to provide support. For ease of understanding, the relationship between the interface and the activity of the framework layer on the mobile terminal will be described below.
以安卓(Android)手机为例,其操作系统可以分为多层,从高到低分别为Android应用层(Application)710、Android应用框架层(Application Framework)720、Android系统运行层(Libraries and Runtime)730和Linux内核层(Linux Kernel)740,参考图9所示。Take Android (Android) mobile phone as an example, its operating system can be divided into multiple layers, from high to low, Android application layer (Application) 710, Android application framework layer (Application Framework) 720, Android system running layer (Libraries and Runtime) 730 and Linux kernel layer (Linux Kernel) 740, as shown in FIG.
其中,应用层710包括一些核心应用程序包和自定义的应用程序,例如联系人711、微博712、微信713、浏览器714和电子邮件715等;应用框架层720是安卓应用开发的基础,提供应用实现所需的基本框架,用于支撑应用层的内容,可以包括活动管理器(Activity Manager)721、资源管理器(Resource Manager)722、视图系统723、内容提供者724、通知管理器725、安装包管理器(Package Manager)726、窗口管理器(Window Manager)727等;系统运行层730用于支持应用框架层的各个组件,例如系统运行库中的图层管理731、媒体库732、关系数据库(SQLite)733、Web浏览器引擎(WebKit)734、开放运算语言(Open Computing Language,OpenCL)735等;Linux内核也是作为硬件与软件栈的抽象层,用于支撑安卓核心系统服务,包括进程/线程741、电源管理742和驱动743等。系统运行层730和Linux内核层740与本申请实施例关系不大,在此不做具体说明。The application layer 710 includes some core application packages and custom applications, such as a contact 711, a microblog 712, a WeChat 713, a browser 714, and an email 715, etc.; the application framework layer 720 is the basis of Android application development. Providing a basic framework required for application implementation, for supporting content of the application layer, may include an activity manager (Activity Manager) 721, a resource manager (Resource Manager) 722, a view system 723, a content provider 724, and a notification manager 725. , a package manager (Package Manager) 726, a window manager (Window Manager) 727, etc.; a system operation layer 730 is used to support various components of the application framework layer, such as layer management 731 in the system runtime, media library 732, Relational database (SQLite) 733, Web browser (WebKit) 734, Open Computing Language (OpenCL) 735, etc.; Linux kernel is also used as an abstraction layer of hardware and software stack, used to support Android core system services, including Process/thread 741, power management 742, and driver 743, and the like. The system running layer 730 and the Linux kernel layer 740 are not related to the embodiment of the present application, and are not specifically described herein.
对于应用层和应用框架层,举例来说,在用户点击属于应用层的桌面上的应用图标后,应用框架层的活动管理器721启动活动,窗口管理器计算并绘制窗口,具体的,可以通过调用建立视图(setContentView)方法,调用与该活动关联的窗口对象,该窗口对象用于描述该活动对应的应用程序窗口,窗口对象调用其内的视图(View)对象,视图对象递归调用其子类的绘制方法来完成各个子视图控件的绘制(实际上绘制之前还需要经过布局(layout)和度量(measure),确定视图的大小和在屏幕中显示的位置),最后所有子视图绘制完毕后,由屏幕缓冲服务和底层的硬件绘制程序进行沟通,完成界面在屏幕上的刷新和显示。For the application layer and the application framework layer, for example, after the user clicks the application icon on the desktop belonging to the application layer, the activity manager 721 of the application framework layer starts the activity, and the window manager calculates and draws the window, specifically, Calling the create view (setContentView) method to call the window object associated with the activity, the window object is used to describe the application window corresponding to the activity, the window object calls the view object inside it, and the view object recursively calls its subclass The drawing method to complete the drawing of each sub-view control (in fact, before the drawing, you need to go through the layout and measure to determine the size of the view and the position displayed on the screen). After all the sub-views are drawn, The screen buffer service communicates with the underlying hardware drawing program to complete the refresh and display of the interface on the screen.
活动的信息通常以程序包名、类名等形式存在,在具体实现时,活动通常以堆栈的形式保存。参考图10所示,打开微信,显示屏显示如图1(b)所示的微信聊天界面120,并且创建堆栈801,产生微信聊天界面120对应的活动1,活动1位于堆栈801的栈顶。微信 聊天界面120中显示有订阅号102,用户点击订阅号102,移动终端进入图1(c)示出订阅号界面130,同时产生订阅号界面130对应的活动2,当前的堆栈为堆栈802,且活动2在堆栈802的栈顶,活动1被暂停。订阅号界面130显示有多个公众号,用户点击其中一个公众号“每日豆瓣”103,移动终端打开一个如图1(d)所示的推文列表界面140,推文列表界面140包括多个推文的信息,并且,移动终端产生推文列表界面对应的活动3,当前的堆栈为堆栈803,且活动3在堆栈803的栈顶,活动2和活动1被暂停。用户点击推文简介“周杰伦,我不会常常想起你,但也从来没有忘记”104,移动终端显示如图1(e)的推文界面100,并产生推文对应的活动4,当前的堆栈为堆栈804,且活动4在堆栈804的栈顶,活动3、活动2和活动1被暂停。当通过触发返回上一个界面的动作时,从如图1(e)所示的推文界面100中返回图1(d)所示的推文列表界面140,活动4从堆栈804的栈顶弹出,即被销毁,当前的堆栈为堆栈803,处于栈顶的即为活动3,活动3恢复可见。在本实施例中,活动可见的含义是指活动对应的界面显示在显示屏幕上。The information of the activity usually exists in the form of package name, class name, etc., and in the specific implementation, the activity is usually saved in the form of a stack. Referring to FIG. 10, the WeChat is opened, the display screen displays the WeChat chat interface 120 as shown in FIG. 1(b), and the stack 801 is created, and the activity 1 corresponding to the WeChat chat interface 120 is generated, and the activity 1 is located at the top of the stack of the stack 801. The subscription number 102 is displayed in the WeChat chat interface 120, and the user clicks on the subscription number 102. The mobile terminal enters the subscription number interface 130 in FIG. 1(c), and generates the activity 2 corresponding to the subscription number interface 130. The current stack is the stack 802. And activity 2 is on the top of stack 802, activity 1 is paused. The subscription number interface 130 displays a plurality of public numbers. The user clicks on one of the public numbers "Daily Douban" 103, and the mobile terminal opens a tweet list interface 140 as shown in FIG. 1(d). The tweet list interface 140 includes multiple The information of the tweet, and the mobile terminal generates the activity 3 corresponding to the tweet list interface, the current stack is the stack 803, and the activity 3 is on the top of the stack of the stack 803, and the activity 2 and the activity 1 are suspended. The user clicks on the tweet introduction "Jay Chou, I don't think of you often, but never forgets" 104, the mobile terminal displays the tweet interface 100 as shown in Figure 1(e), and generates the tweet corresponding activity 4, the current stack. For stack 804, and activity 4 is at the top of stack 804, activity 3, activity 2, and activity 1 are suspended. When the action of returning to the previous interface is triggered by the trigger, the tweet list interface 140 shown in FIG. 1(d) is returned from the tweet interface 100 shown in FIG. 1(e), and the activity 4 is ejected from the top of the stack 804. That is destroyed, the current stack is the stack 803, the activity is 3 at the top of the stack, and the activity 3 is restored. In the present embodiment, the meaning that the activity is visible means that the interface corresponding to the activity is displayed on the display screen.
以上各个活动的产生可以通过活动调用链来实现,活动调用链是指活动的生成路径。当目标收藏界面处于非可见状态时,可根据活动调用链用于从其他界面跳转到目标收藏界面,使目标收藏界面可见。例如通过堆栈803可知,活动3的活动调用链可以是“活动1-活动2-活动3”,即先产生活动1,再产生活动2,最后产生活动3。活动管理器721可以根据活动3的活动调用链从当前的活动跳转至活动3,使活动3对应的界面处于可见状态。The generation of each of the above activities can be achieved through an activity call chain, which is the generation path of the activity. When the target collection interface is in a non-visible state, it can be used to jump from the other interface to the target collection interface according to the activity call chain, so that the target collection interface is visible. For example, through the stack 803, the activity call chain of the activity 3 may be "activity 1 - activity 2 - activity 3", that is, the activity 1 is generated first, then the activity 2 is generated, and finally the activity 3 is generated. The activity manager 721 can jump from the current activity to the activity 3 according to the activity call chain of the activity 3, so that the interface corresponding to the activity 3 is in a visible state.
因此,对于每个显示在应用层的界面,均由应用框架层的活动来支撑。本申请实施例中,可通过对活动的管理实现对界面的管理,通过活动的跳转实现界面的跳转。本申请实时提供的界面显示方法例如可以通过第一应用程序、第一系统服务以及第二系统服务之间的交互来实现。如前文所述,第一应用程序可以是为了实现本申请界面显示方法而在应用层开发的应用程序,用户通过第一应用程序提供的操作界面完成一系列指令的触发。第一系统服务是为了给第一应用程序提供支撑而在应用框架层开发的服务组件,第二系统服务是安卓系统中除第一系统服务外的其他服务组件,第二应用程序是安卓系统中除第一应用程序外的其他应用程序,例如微信、微博等。Therefore, for each interface displayed at the application layer, it is supported by the activity of the application framework layer. In the embodiment of the present application, the management of the interface can be realized by managing the activity, and the jump of the interface is realized by the jump of the activity. The interface display method provided in real time by the present application can be implemented, for example, by interaction between the first application, the first system service, and the second system service. As described above, the first application may be an application developed at the application layer in order to implement the interface display method of the present application, and the user completes triggering of a series of instructions through an operation interface provided by the first application. The first system service is a service component developed in the application framework layer to provide support for the first application, and the second system service is a service component other than the first system service in the Android system, and the second application is in the Android system. Other applications than the first application, such as WeChat, Weibo, etc.
请参阅图11,图11为本申请实施例中一种界面显示方法在第一应用程序侧的步骤示意图。下面对本申请实施例中提供的界面显示方法进行具体的示例性说明。Please refer to FIG. 11. FIG. 11 is a schematic diagram of steps of an interface display method on a first application side according to an embodiment of the present application. The interface display method provided in the embodiment of the present application is specifically exemplified below.
S1101,显示第一界面中的收藏控件。S1101, displaying a favorite control in the first interface.
收藏控件是指可以接收用户的收藏操作的控件,可以是物理按键,也可以是虚拟按键。收藏控件可以设置于悬浮窗中,参考图3(a)所示,“添加+”301可作为收藏控件,设置于第一悬浮窗310中(参见灰色悬浮窗区域)。收藏控件可以在第一应用程序中显示,第一应用程序的显示界面即为第一悬浮窗310。A favorite control is a control that can receive a user's favorite operation, either a physical button or a virtual button. The favorite control can be set in the floating window. Referring to FIG. 3(a), the “Add+” 301 can be set as a favorite control in the first floating window 310 (see the gray floating window area). The favorite control may be displayed in the first application, and the display interface of the first application is the first floating window 310.
与此同时,显示屏上还显示有目标收藏界面,目标收藏界面可以是应用程序中的界面,例如推文界面100、微信聊天界面120、订阅号界面130和推文列表界面140等。设置有收藏控件的悬浮窗和目标收藏界面形成第一界面。At the same time, the target collection interface is also displayed on the display screen, and the target collection interface may be an interface in the application, such as a tweet interface 100, a WeChat chat interface 120, a subscription number interface 130, and a tweet list interface 140. The floating window and the target collection interface provided with the favorite control form a first interface.
收藏控件可以通过响应用户操作而显示,在当前显示的界面为显示目标收藏界面时,响应于用户操作,显示设置有收藏控件的第一悬浮窗310,从而形成第一界面。在第一悬浮窗310处于显示状态时,目标收藏界面可暂停,但仍处于可见状态。The favorite control can be displayed in response to the user operation. When the currently displayed interface is the display target collection interface, the first floating window 310 provided with the favorite control is displayed in response to the user operation, thereby forming the first interface. When the first floating window 310 is in the display state, the target favorite interface may be paused, but still in a visible state.
为了避免误操作,可以采用用户在目标收藏界面上执行两次触屏操作的方式来显示收藏控件。移动终端获取用户在目标收藏界面上先后触发的第一触屏操作和第二触屏操作,对这两次触屏操作进行判定,若第一触屏操作和第二触屏操作满足预设条件,则在第一界面上显示收藏控件。预设条件可以参考S201中的说明,在此不做赘述。In order to avoid misoperation, the user can display the favorite control by performing two touch screen operations on the target collection interface. The mobile terminal acquires the first touch screen operation and the second touch screen operation triggered by the user on the target collection interface, and determines the two touch screen operations, if the first touch screen operation and the second touch screen operation meet the preset condition , the favorite control is displayed on the first interface. For the preset conditions, refer to the description in S201, and no further description is made here.
为了便于理解,参考图12所示,图12为第一应用程序根据用户的触屏操作显示第一悬浮窗及其中的收藏控件的过程中,第一系统服务、第二系统服务、第一应用程序之间的交互图,可以理解的是,下述说明仅仅是示例性的,并不构成对本申请技术方案的限定。交互过程包括如下步骤:For ease of understanding, referring to FIG. 12, FIG. 12 is a first application service, a second system service, and a first application in the process of displaying a first floating window and a favorite control thereof according to a user's touch screen operation. The interaction diagram between the programs is understood to be illustrative only and not to limit the technical solutions of the present application. The interaction process includes the following steps:
1)第二系统服务获取用户的第一触屏操作,确定第一触屏操作的触屏操作信息,例如按下屏幕的时间和坐标、离开屏幕的时间和坐标等,并将第一触屏操作的触屏操作信息发送至第一系统服务;1) The second system service acquires the user's first touch screen operation, determines the touch screen operation information of the first touch screen operation, such as the time and coordinates of pressing the screen, the time and coordinates of leaving the screen, and the like, and the first touch screen The operated touch screen operation information is sent to the first system service;
2)若第一系统服务根据触屏操作信息判断出第一触屏操作符合第一触屏条件时,向第二系统服务请求创建第二悬浮窗1701;2) if the first system service determines, according to the touch screen operation information, that the first touch screen operation meets the first touch screen condition, requesting to create a second floating window 1701 to the second system service request;
3)第二系统服务接收创建第二悬浮窗1701的请求,获取第二悬浮窗1701的视图,以便第一应用程序显示第二悬浮窗1701;3) The second system service receives a request to create a second floating window 1701, obtains a view of the second floating window 1701, so that the first application displays the second floating window 1701;
4)第二系统服务获取用户的第二触屏操作,确定第二触屏操作的触屏操作信息,例如按下屏幕的时间和坐标、离开屏幕的时间和坐标等,并将第二触屏操作的触屏操作信息发送至第一系统服务;4) The second system service acquires the second touch screen operation of the user, determines the touch screen operation information of the second touch screen operation, such as the time and coordinates of pressing the screen, the time and coordinates of leaving the screen, and the like, and the second touch screen The operated touch screen operation information is sent to the first system service;
5)若第一系统服务根据触屏操作信息判断出第二触屏操作符合第二触屏条件时,向第二系统服务请求创建第一悬浮窗310。5) If the first system service determines that the second touch screen operation conforms to the second touch screen condition according to the touch screen operation information, the first floating window 310 is created to the second system service request.
S1102,接收用户对收藏控件的收藏操作,获取目标收藏界面对应的第一活动的调用信息,并对调用信息进行收藏。S1102: Receive a user's collection operation on the favorite control, acquire the call information of the first activity corresponding to the target favorite interface, and collect the call information.
用户对收藏控件的收藏操作可以通过点击第一界面上的收藏控件来实现。用户的收藏操作是指示第一应用程序对目标收藏界面进行收藏的指令,用户可以在第一应用程序中对收藏控件进行收藏操作,移动终端通过第一应用程序和第一系统服务与第二系统服务进行交互来实现对该操作的响应。The user's favorite operation of the favorite control can be realized by clicking the favorite control on the first interface. The user's favorite operation is an instruction indicating that the first application collects the target favorite interface, and the user may perform a collection operation on the favorite control in the first application, and the mobile terminal passes the first application and the first system service and the second system. The service interacts to achieve a response to the operation.
目标收藏界面可以为第一界面中除收藏控件外的其他界面,接收用户对收藏控件的收藏操作,移动终端可以获取第一活动的活动调用信息,第一活动为与目标收藏界面对应的活动,具体的,可以获取第一活动的活动调用链,第一活动的活动调用链是指能够生成第一活动的路径,为显示目标收藏界面所需要生成的活动的调用链条。The target collection interface may be another interface other than the favorite control in the first interface, and receive the user's collection operation on the favorite control, and the mobile terminal may obtain the activity call information of the first activity, and the first activity is an activity corresponding to the target collection interface. Specifically, the activity call chain of the first activity may be acquired, and the activity call chain of the first activity refers to a path capable of generating the first activity, and is a call chain of activities required to display the target collection interface.
用户对收藏控件的收藏操作时,由于第一界面包括收藏控件和目标收藏界面,收藏控件所在的界面作为当前显示在显示屏上的界面,其对应的应用程序对应的活动也处于可见状态。也就是说,当显示屏上显示目标收藏界面时,目标收藏界面对应的第一活动一定处于可见状态,而处于可见状态的活动不一定都是第一活动。所以为了识别出目标收藏界面 对应的第一活动,在本申请实施例中,可以将这些处于可见状态的活动作为候选活动,从多个候选活动中确定出第一活动。When the user operates the favorite control of the favorite control, since the first interface includes the favorite control and the target favorite interface, the interface where the favorite control is located is the interface currently displayed on the display screen, and the corresponding activity of the corresponding application is also visible. That is to say, when the target collection interface is displayed on the display screen, the first activity corresponding to the target collection interface must be in a visible state, and the activities in the visible state are not necessarily the first activity. Therefore, in order to identify the first activity corresponding to the target collection interface, in the embodiment of the present application, the activities in the visible state may be used as candidate activities, and the first activity is determined from the plurality of candidate activities.
具体的,若候选活动中包括预设活动,该预设活动例如可以是显示屏上辅助用户使用的应用程序窗口对应的活动,例如快捷菜单对应的活动、收藏控件所对应的第一应用程序对应的活动等,此时可从除预设活动之外的候选活动中确定出第一活动。Specifically, if the candidate activity includes the preset activity, the preset activity may be, for example, an activity corresponding to the application window used by the auxiliary user on the display screen, for example, the activity corresponding to the shortcut menu and the first application corresponding to the favorite control. The activity, etc., at this time, the first activity can be determined from candidate activities other than the preset activities.
通常情况下,除预设活动之外的候选活动的数目仅为一个,因为在大多数情况下,仅有一个应用程序窗口为主窗口,如图1(b)至图1(e),主窗口为微信的窗口,显示屏上显示的应用程序窗口包括微信的窗口和设置有收藏控件的第一悬浮窗310,此时除第一悬浮窗310对应的预设活动之外的候选活动只有微信的窗口对应的活动,即可将微信的窗口对应的活动作为第一活动。此时,第一应用程序可以获取处于可见状态的活动,例如处于栈顶的活动,即可以作为与目标收藏界面对应的第一活动。In general, the number of candidate activities other than the preset activity is only one, because in most cases, only one application window is the main window, as shown in Figure 1(b) to Figure 1(e). The window is a window of WeChat, and the application window displayed on the display screen includes a WeChat window and a first floating window 310 provided with a favorite control. At this time, the candidate activities other than the preset activities corresponding to the first floating window 310 are only WeChat. The corresponding activity of the window can be used as the first activity of the activity corresponding to the WeChat window. At this time, the first application can acquire an activity in a visible state, such as an activity at the top of the stack, that is, as a first activity corresponding to the target collection interface.
当两个或两个以上的应用程序窗口同屏显示时,即除预设界面之外的候选界面有多个时,例如显示屏的上半部可以显示微信的窗口,下半部可以显示微博的窗口,同时还显示有快捷菜单的悬浮窗,此时除预设活动之外的两个活动都有可能是用户想要选择的目标收藏界面对应的第一活动。此时,第一应用程序在接收用户对收藏控件的收藏操作后,可以分别获取除预设活动之外的多个候选活动对应的代表视图或代表视图的名称,并为每个候选状态的活动生成一个活动选择控件,该活动选择控件与S202中的界面选择控件相同,在第三悬浮窗320中显示这些代表视图和/或代表视图的名称,以及显示候选活动对应的活动选择控件。移动终端接收用户对活动选择控件的选择操作,将与用户选择的活动选择控件对应的活动确定为第一活动。When two or more application windows are displayed on the same screen, that is, there are multiple candidate interfaces besides the preset interface, for example, the upper half of the display screen can display the WeChat window, and the lower half can display the micro screen. The window of the blog also displays the floating window of the shortcut menu. At this time, the two activities except the preset activity may be the first activity corresponding to the target collection interface that the user wants to select. At this time, after receiving the user's favorite operation on the favorite control, the first application may respectively obtain a representative view or a representative view corresponding to the plurality of candidate activities other than the preset activity, and perform activities for each candidate state. An activity selection control is generated. The activity selection control is the same as the interface selection control in S202. The representative view and/or the name of the representative view are displayed in the third floating window 320, and the active selection control corresponding to the candidate activity is displayed. The mobile terminal receives the user's selection operation of the activity selection control, and determines an activity corresponding to the activity selection control selected by the user as the first activity.
在显示的应用程序对应的活动的视图为树状结构时,用户选择的视图可以是应用程序对应的根视图,也可以是该应用程序对应的子视图。在用户选择的视图为该应用程序对应的根视图或子视图时,均可认为用户选择该应用程序对应的活动作为第一活动。When the view of the active corresponding to the displayed application is a tree structure, the view selected by the user may be the root view corresponding to the application, or may be a sub view corresponding to the application. When the view selected by the user is the root view or the sub view corresponding to the application, the user may be considered to select the activity corresponding to the application as the first activity.
在确定第一活动后,可以通过第二系统服务获取第一活动的活动调用链,以便在用户对目标收藏界面的展示控件进行展示操作时,根据第一活动的活动调用链来实现第一活动对应的目标收藏界面的展现。After determining the first activity, the activity chain of the first activity may be acquired by the second system service, so that when the user performs a display operation on the display control of the target collection interface, the first activity is implemented according to the activity call chain of the first activity. The corresponding target collection interface is displayed.
为了便于理解,下面对上述第一应用程序向用户显示候选活动对应的代表视图,并根据用户对活动选择控件的选择操作来确定第一活动的过程进行说明,可以理解的是,下述说明仅仅是示例性的,并不构成对本申请技术方案的限定。参考图13所示,为第一活动的确定过程中,第一系统服务、第一应用程序、第二应用程序之间的交互图,包括如下步骤:For ease of understanding, the above-mentioned first application program displays the representative view corresponding to the candidate activity to the user, and describes the process of determining the first activity according to the user's selection operation of the activity selection control. It can be understood that the following description is It is merely exemplary and does not constitute a limitation on the technical solution of the present application. Referring to FIG. 13, in the process of determining the first activity, the interaction diagram between the first system service, the first application, and the second application includes the following steps:
1)第一应用程序接收到对收藏控件的收藏操作,通过第二系统服务创建第三悬浮窗320,用于显示候选活动的代表视图,向第二系统服务请求获取处于可见状态的活动的标识;1) The first application receives the collection operation on the favorite control, creates a third floating window 320 through the second system service, displays a representative view of the candidate activity, and requests the second system service to obtain the activity identifier in the visible state. ;
2)第二系统服务向第一应用程序发送标识列表;2) the second system service sends a list of identifiers to the first application;
3)第一应用程序向第二系统服务请求获取处于可见状态的活动对应的代表视图;3) the first application requests the second system service to obtain a representative view corresponding to the activity in the visible state;
4)第二系统服务通过第二应用程序获取候选活动对应的代表视图,将代表视图列表发送至第一应用程序;4) The second system service obtains the representative view corresponding to the candidate activity by using the second application, and sends the representative view list to the first application;
5)第一应用程序显示除预设活动之外的候选活动的代表视图,在除预设活动之外的候选活动的视图对应的位置上显示一个活动选择控件;5) the first application displays a representative view of the candidate activity other than the preset activity, and displays an activity selection control at a position corresponding to the view of the candidate activity other than the preset activity;
6)第一应用程序在接收到用户对活动选择控件的选择操作后,将选定的代表视图对应的活动作为第一活动,获取第一活动的活动调用链;After the first application receives the selection operation of the activity selection control by the user, the activity corresponding to the selected representative view is taken as the first activity, and the activity call chain of the first activity is acquired;
7)保存第一活动的活动调用链,在第一悬浮窗310中显示第一活动的代表视图,更新第一应用程序界面。7) Saving the activity call chain of the first activity, displaying the representative view of the first activity in the first floating window 310, and updating the first application interface.
本申请实施例中,在对目标收藏界面的调用信息进行收藏后,还可以对设置有收藏控件的悬浮窗进行隐藏,相应的隐藏指令可以根据用户在显示屏的预设区域的点击事件生成,也可以根据用户在显示屏的预设区域的滑动事件生成,预设区域可以是悬浮窗下层界面的未被覆盖的区域。In the embodiment of the present application, after the call information of the target collection interface is collected, the floating window provided with the favorite control may be hidden, and the corresponding hidden instruction may be generated according to a click event of the user in a preset area of the display screen. It may also be generated according to a sliding event of the user in a preset area of the display screen, and the preset area may be an uncovered area of the lower layer interface of the floating window.
S1103,显示第二界面中的展示控件。S1103, displaying the display control in the second interface.
在本申请实施例中,展示控件是指可以接收用户的展示操作的控件,展示控件与目标收藏界面对应的第一活动的调用信息相关联。类比于收藏控件,展示控件可以是物理按键,也可以是虚拟按键,展示控件可以设置于悬浮窗中,例如可以是第一悬浮窗310,也可以是其他悬浮窗。In the embodiment of the present application, the display control refers to a control that can receive a display operation of the user, and the display control is associated with the call information of the first activity corresponding to the target collection interface. Analogous to the favorite control, the display control can be a physical button or a virtual button. The display control can be set in the floating window, for example, the first floating window 310 or other floating windows.
可选的,展示控件可以通过响应用户操作而显示,在第二界面中包括应用程序界面时,可以响应用户在该应用程序界面上的操作,显示设置有展示控件的第一悬浮窗310,用户在应用程序界面上的操作的类型可以参考S1101中显示设置有收藏控件的第一悬浮窗310所需的操作类型。Optionally, the display control may be displayed by responding to the user operation. When the application interface is included in the second interface, the first floating window 310 provided with the display control may be displayed in response to the user's operation on the application interface. The type of operation on the application interface can refer to the type of operation required to display the first floating window 310 in which the favorite control is set in S1101.
在目标收藏界面的展示控件为虚拟按键时,可以是空白的虚拟按键,也可以是包括代表视图的虚拟按键,代表视图可以体现目标收藏界面内容。When the display control of the target collection interface is a virtual button, it may be a blank virtual button, or may be a virtual button including a representative view, and the representative view may reflect the content of the target collection interface.
具体的,可以通过在目标收藏界面对应的第一活动对应的视图中选取目标视图,根据选取的目标视图的视图参数生成代表视图,代表视图可以是目标视图的组合,也可以是目标视图的组合视图的缩略图。Specifically, the target view may be selected in the view corresponding to the first activity corresponding to the target collection interface, and the representative view may be generated according to the view parameter of the selected target view, where the representative view may be a combination of the target view or a combination of the target views. A thumbnail of the view.
在实际应用中,目标视图是能够体现目标收藏界面内容的视图,当第一活动对应有多个候选视图时,并不是每个候选视图都能够体现目标收藏界面的内容,因此,可以获取第一活动对应的多个候选视图,并从多个候选视图中确定出目标视图,例如可以通过第一应用程序对候选视图进行分组处理,以便用户根据分组处理后的候选视图进行目标视图的选择。对于候选视图的分组处理过程可以参考S203,在此不再赘述。In an actual application, the target view is a view that can reflect the content of the target collection interface. When the first activity corresponds to multiple candidate views, not every candidate view can reflect the content of the target collection interface, so the first view can be obtained. The plurality of candidate views corresponding to the activity are determined, and the target view is determined from the plurality of candidate views. For example, the candidate view may be grouped by the first application, so that the user selects the target view according to the grouped candidate view. For the grouping process of the candidate view, reference may be made to S203, and details are not described herein again.
在确定了目标视图之后,可以获取目标视图的视图参数,根据目标视图的视图参数生成代表视图。目标视图的视图参数是目标视图的绘制依据,例如可以为目标视图的视图尺寸、在屏幕中显示的位置、像素值等,目标视图的视图参数可以由第一活动对应的View对象调用其layout函数和measure函数计算得到。After the target view is determined, the view parameters of the target view can be obtained, and the representative view is generated according to the view parameters of the target view. The view parameter of the target view is the basis for drawing the target view, for example, the view size of the target view, the position displayed on the screen, the pixel value, etc., and the view parameter of the target view may be called by the View object corresponding to the first activity. And the measure function is calculated.
对于代表视图的形成过程,由于代表视图的显示是为了用户能够更便捷的获取目标收藏界面的信息,因此,可以将目标视图的视图参数中的视图尺寸缩小预设比例,根据缩小后的视图尺寸生成代表视图,其中预设比例可以依实际情况而定,例如可以将视图尺寸缩小为原来的1/5。在目标视图的数量较少时,还可以更改目标视图在屏幕中显示的位置和像素值,将目标视图重新排列组合生成代表视图。目标视图的代表视图的生成方式还可以依实际情况而定,在此不做具体说明。For the formation process of the representative view, since the display of the representative view is for the user to more easily obtain the information of the target collection interface, the view size in the view parameter of the target view can be reduced by a preset ratio according to the reduced view size. Generate a representative view, where the preset ratio can be determined according to the actual situation, for example, the view size can be reduced to 1/5 of the original. When the number of target views is small, you can also change the position and pixel values that the target view displays on the screen, and rearrange the target views to create a representative view. The generation mode of the representative view of the target view can also be determined according to the actual situation, and will not be specifically described herein.
在获得可以体现目标收藏界面内容的代表视图后,可以形成目标收藏界面的展示控件。若展示控件有多个,则可以以列表的形式显示,例如可以以列表的形式在覆盖显示屏的悬浮窗中显示。After obtaining a representative view that can reflect the content of the target collection interface, a display control of the target collection interface can be formed. If there are multiple display controls, they can be displayed in the form of a list, for example, in the form of a list in the floating window of the overlay display.
在本申请实施例中,展示控件还可以包括显示控件,其中显示控件中可以显示目标视图的视图名称,代表视图的名称可以与目标收藏视图的名称相同,也可以与目标视图的名称相同,还可以包括更多界面信息。可选的,代表视图的名称的显示位置可以位于代表视图的上方。因为显示控件在显示屏上占用的空间较小,所以当展示控件有多个时,可以在显示屏上显示较多个展示控件。In the embodiment of the present application, the display control may further include a display control, wherein the display control may display the view name of the target view, and the name of the view may be the same as the name of the target favorite view, or may be the same as the name of the target view. More interface information can be included. Optionally, the display location representing the name of the view can be located above the representative view. Because the display controls take up less space on the display, more than one display control can be displayed on the display when there are multiple display controls.
在具体实现时,还可以是展示控件的显示内容进行更改,参考S203。In the specific implementation, it is also possible to change the display content of the display control, refer to S203.
由于代表视图可用于体现收藏的目标收藏界面的内容,若目标收藏界面的内容有更新,例如微信公众号中推文被删除,此时可以相应的根据目标视图的更新后数据生成代表视图。Since the representative view can be used to reflect the content of the favorite collection interface of the collection, if the content of the target collection interface is updated, for example, the tweet in the WeChat public number is deleted, the representative view can be generated according to the updated data of the target view.
代表视图的生成过程,可以参考图14所示的步骤:第一活动对应的目标收藏界面的视图发生变动,应用框架层的视图组件根据更新后的视图参数对目标收藏界面中的视图进行重绘,在视图绘制完毕后,目标收藏界面中的视图相应的进行更新,同时,第一应用程序可以获取更新后的目标收藏界面的目标视图,根据目标视图的更新后视图参数生成代表视图。For the generation process of the representative view, reference may be made to the step shown in FIG. 14: the view of the target favorite interface corresponding to the first activity changes, and the view component of the application framework layer redraws the view in the target favorite interface according to the updated view parameter. After the view is drawn, the view in the target collection interface is updated accordingly. At the same time, the first application can obtain the target view of the updated target collection interface, and generate a representative view according to the updated view parameter of the target view.
生成代表视图的方式可以有以下两种。There are two ways to generate a representative view.
代表视图的第一种生成方式,可以通过后台自动进行对代表视图的生成,具体的,可以对代表视图对应的目标视图的视图参数进行监控,在目标视图的视图参数有更新时相应的生成代表视图。该方式中,第一系统服务在监控到目标视图的视图参数被修改时,可以获取目标视图的修改后的视图参数,根据该修改后的视图参数生成代表视图。The first generation method of the representative view can automatically generate the representative view through the background. Specifically, the view parameters of the target view corresponding to the view can be monitored, and the corresponding representative is generated when the view parameter of the target view is updated. view. In this manner, when the view parameter of the target view is modified, the first system service can obtain the modified view parameter of the target view, and generate a representative view according to the modified view parameter.
具体的,可以由第二系统服务在监控到有视图绘制完毕的通知后,向第一应用程序发出通知,由第一应用程序判断该视图是否处于保存的视图列表中,由于该视图列表中保存的是已收藏的活动对应的视图,若该视图处于保存的视图列表中,说明该视图是已收藏的活动对应的目标视图,此时可认为已收藏的活动对应的目标视图的视图参数被修改,从而可以获取绘制完毕的目标视图,根据目标视图的修改后的视图参数生成代表视图。Specifically, the second system service may notify the first application after monitoring the notification that the view has been drawn, and the first application determines whether the view is in the saved view list, because the view list is saved. The view corresponding to the favorite activity. If the view is in the saved view list, it indicates that the view is the target view corresponding to the favorite activity. In this case, the view parameter of the target view corresponding to the favorite activity can be considered to be modified. , so that the drawn target view can be obtained, and the representative view is generated according to the modified view parameter of the target view.
在生成代表视图后,可以在第一应用程序的显示界面显示代表视图,使用户能够实时获取第一活动对应的视图信息,提高用户体验。若此时代表视图并非处于显示状态,或第一应用程序处于非可见状态,可以只保存代表视图,不进行代表视图的显示,在下次启动第一应用程序时进行显示即可。After the representative view is generated, the representative view can be displayed on the display interface of the first application, so that the user can obtain the view information corresponding to the first activity in real time, thereby improving the user experience. If the representative view is not in the display state at this time, or the first application is in the non-visible state, it is possible to save only the representative view, not to display the representative view, and display it when the first application is started next time.
参考图15所示,图15为在监控到目标视图的视图参数被修改时,根据修改后的视图参数生成代表视图的过程中,第一系统服务、第二系统服务、第一应用程序和第二应用程序之间的交互图,可以理解的是,下述说明仅仅是示例性的,并不构成对本申请技术方案的限定。交互过程包括如下步骤:Referring to FIG. 15, FIG. 15 is a process of generating a representative view according to the modified view parameter when the view parameter of the target view is modified, the first system service, the second system service, the first application, and the first For the interaction diagram between the two applications, it is to be understood that the following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application. The interaction process includes the following steps:
1)第二系统服务监控到第二应用程序的视图绘制完毕的通知,并向第一系统服务发送第二应用程序的绘制完毕的视图;1) the second system service monitors the notification that the view of the second application is completed, and sends the drawn view of the second application to the first system service;
2)第一系统服务判断该视图是否位于已存储的视图列表中,若是,通过第二系统服务判断第一应用程序是否处于可见状态,若是,根据绘制完成的视图获取代表视图,将代表视图发送给第一应用程序;2) The first system service determines whether the view is located in the stored view list, and if so, determines whether the first application is in a visible state by using the second system service, and if yes, obtains a representative view according to the completed view, and sends the representative view Give the first application;
3)第一应用程序接收到代表视图,检查该视图对应的代表视图是否正在显示,若是,则更新代表视图,刷新屏幕显示内容。3) The first application receives the representative view, checks whether the representative view corresponding to the view is being displayed, and if so, updates the representative view to refresh the screen display content.
代表视图的第二种生成方式,可以接收用户对代表视图的名称的查看操作,获取第一活动对应的视图,从第一活动的视图中获取目标视图,根据目标视图生成代表视图,此时若目标收藏界面为更新后目标收藏界面500,则生成的代表视图是对应于更新后目标收藏界面500的视图。例如用户可以点击代表视图的名称实现对代表视图的名称的查看操作。该方法中,可能会出现两种情况,即第一活动对应的应用程序可能正在运行,也可能已经结束运行。判断第一活动对应的应用程序是否正在运行,具体的,可以获取第一活动的标识,判断第一活动的标识是否存在与活动线程中,该标识可以通过接收用户对代表视图的名称的查看操作获取,第一活动的标识可以是活动名称,也可以是活动代码等能够区别不同活动的标识,可以与第一活动对应的界面的名称或视图的名称相同,也可以不同。若第一活动的标识在活动线程中,则说明第一活动对应的应用程序正在后台运行;若第一活动的标识不在活动线程中,则说明第一活动对应的应用程序已经结束运行,相应的第一活动也被销毁,因此不再活动线程中。The second generation method of the representative view can receive the user's view operation on the name of the representative view, obtain the view corresponding to the first activity, obtain the target view from the view of the first activity, and generate a representative view according to the target view. The target collection interface is the updated target collection interface 500, and the generated representative view is a view corresponding to the updated target collection interface 500. For example, the user can click on the name of the representative view to implement a view of the name representing the view. In this method, there may be two cases where the application corresponding to the first activity may be running or may have finished running. Determining whether the application corresponding to the first activity is running. Specifically, the identifier of the first activity may be obtained, and determining whether the identifier of the first activity exists in the active thread, and the identifier may receive the user's view operation on the name of the representative view. The identifier of the first activity may be an activity name or an activity code, and the identifier of the different activity may be the same, or may be the same as the name of the interface corresponding to the first activity or the name of the view. If the identifier of the first activity is in the active thread, it indicates that the application corresponding to the first activity is running in the background; if the identifier of the first activity is not in the active thread, it indicates that the application corresponding to the first activity has finished running, corresponding The first activity is also destroyed and is therefore no longer active in the thread.
在以上两种情况下,接收用户对代表视图的名称的查看操作对目标视图的视图参数的获取过程略有不同。下面针对这两种情况分别进行介绍。In the above two cases, the receiving user's viewing operation on the name of the representative view slightly differs in the acquisition process of the view parameters of the target view. The following two cases are introduced separately.
若第一活动的标识存在于活动线程中,则说明第一活动对应的应用程序在后台运行,目标收藏界面对应的应用程序处于激活状态,则可以根据目标收藏界面的调用信息后台运行应用程序,在后台运行应用程序的过程中,获取第一活动对应的目标视图的视图参数。If the identifier of the first activity exists in the active thread, it indicates that the application corresponding to the first activity runs in the background, and the application corresponding to the target favorite interface is in the active state, and the application may be run in the background according to the calling information of the target favorite interface. In the process of running the application in the background, the view parameters of the target view corresponding to the first activity are obtained.
若第一活动的标识不存在于活动线程中,则说明第一活动已被销毁,目标收藏界面对应的应用程序处于关闭状态,此时可根据目标收藏界面的调用信息后台启动第一活动对应的应用程序,并令该应用程序从启动之后到跳转到第一活动之前产生的活动以及第一活动处于非可见状态,也就是说,使第一活动对应的应用程序在用户启动该应用程序之前只在后台运行,通过后台启动的应用程序对应的第一活动,获取目标视图的视图参数。这是因为启动第一活动对应的应用程序的目的是获取目标视图的更新后的视图参数,因此可令该应用程序在后台运行而不在显示屏上显示,在用户手动启动该应用程序或移动终端执行目标收藏界面的展示操作跳转至第一活动对应的目标收藏界面后,再显示目标收藏界面即可。If the identifier of the first activity does not exist in the active thread, the first activity has been destroyed, and the application corresponding to the target collection interface is in a closed state. At this time, the corresponding activity of the first activity may be started according to the calling information of the target collection interface. The application, and the activity generated by the application from the time of startup until jumping to the first activity and the first activity are in a non-visible state, that is, the application corresponding to the first activity is before the user launches the application Runs only in the background, and obtains the view parameters of the target view through the first activity corresponding to the application launched in the background. This is because the purpose of launching the application corresponding to the first activity is to obtain the updated view parameters of the target view, so that the application can be run in the background without being displayed on the display screen, and the user manually launches the application or the mobile terminal. After the display operation of the target collection interface is jumped to the target collection interface corresponding to the first activity, the target collection interface is displayed.
由于获取目标视图的视图参数的动作可以是在显示第二界面的指令生成的时候执行,保证目标视图体现最新版本的目标收藏界面的内容,也即保证代表视图是实时生成的。如果目标收藏界面对应的应用程序处于关闭状态,则根据目标收藏界面的调用信息后台启动应用程序,并从后台启动的应用程序中获取目标收藏界面的目标视图的视图参数,保证从应用程序启动到跳转到目标收藏界面之前的生成的界面以及目标收藏界面是不被用户看见的,用户看到的只有显示了最新版代表视图的展示控件的第二界面,提高用户体验。在获取最新版本的目标视图的视图参数时,如果目标收藏界面对应的应用程序处于激活状态,则根据目标收藏界面的调用信息后台运行应用程序,在后台运行应用程序的过程中,获取 目标收藏界面的目标视图的视图参数,保证应用程序打开目标收藏界面的过程也是不被用户看见的,提高用户体验。Since the action of obtaining the view parameter of the target view may be performed when the instruction for displaying the second interface is generated, the target view is guaranteed to reflect the content of the latest version of the target favorite interface, that is, the representative view is generated in real time. If the application corresponding to the target collection interface is in the closed state, the application is started in the background according to the calling information of the target favorite interface, and the view parameter of the target view of the target favorite interface is obtained from the application launched in the background, and the application is started from the application to the application. The generated interface and the target collection interface before jumping to the target collection interface are not seen by the user, and the user only sees the second interface of the display control that displays the latest version of the representative view, thereby improving the user experience. When obtaining the view parameter of the latest version of the target view, if the application corresponding to the target favorite interface is in the active state, the application is run in the background according to the calling information of the target favorite interface, and the target favorite interface is acquired in the process of running the application in the background. The view parameters of the target view ensure that the process of opening the target collection interface by the application is also not seen by the user, improving the user experience.
在获取目标视图的更新后的视图参数后,可以根据目标视图的更新后的视图参数生成代表视图,该过程可以参考根据目标视图的视图参数生成代表视图的过程,在此也不再赘述。After the updated view parameters of the target view are obtained, the representative view can be generated according to the updated view parameters of the target view. The process can refer to the process of generating a representative view according to the view parameters of the target view, and details are not described herein.
在生成代表视图后,形成目标收藏界面的展示控件。After the representative view is generated, the display control of the target favorite interface is formed.
可以理解的是,在判断第一活动的标识不存在于活动线程中时,进行第一活动对应的应用程序的启动,是为了实现目标视图的更新后的视图参数的获取,不同于应用程序的正常启动,因此还可以对第一活动添加额外重启标记,将其与应用程序的正常启动区分开。It can be understood that, when determining that the identifier of the first activity does not exist in the active thread, starting the application corresponding to the first activity is to obtain the updated view parameter of the target view, which is different from the application. Normal startup, so you can also add an extra restart token to the first activity to distinguish it from the normal startup of the application.
参考图16所示,图16为在接收用户对代表视图的名称的查看操作生成代表视图的过程中,第一系统服务、第二系统服务、第一应用程序和第二应用程序之间的交互图,可以理解的是,下述说明仅仅是示例性的,并不构成对本申请技术方案的限定。交互过程包括如下步骤:Referring to FIG. 16, FIG. 16 is an interaction between the first system service, the second system service, the first application, and the second application in the process of generating a representative view by the user performing a viewing operation on the name of the representative view. It should be understood that the following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application. The interaction process includes the following steps:
1)第一应用程序接收到用户对代表视图的名称的查看操作,将代表视图对应的第一活动的标识发送至第二系统服务;1) The first application receives the user's viewing operation on the name of the representative view, and sends the identifier of the first activity corresponding to the view to the second system service;
2)第二系统服务判断第一活动是否存在与活动线程中,如果不存在,执行步骤3),如果存在,执行步骤4);2) The second system service determines whether the first activity exists in the active thread, if not, performs step 3), and if so, performs step 4);
3)第一应用程序通过第二系统服务重启第一活动对应的第二应用程序,为第一活动添加额外重启标记,使第二应用程序在后台运行,不显示在屏幕上,执行步骤4);3) The first application restarts the second application corresponding to the first activity by using the second system service, adds an additional restart flag to the first activity, causes the second application to run in the background, does not display on the screen, and performs step 4) ;
4)第一应用程序通过第二系统服务获取目标视图的视图参数,根据目标视图的视图参数,生成代表视图,执行步骤5);4) The first application obtains the view parameter of the target view through the second system service, generates a representative view according to the view parameter of the target view, and performs step 5);
5)第一应用程序将代表视图的信息发送至第一系统服务。5) The first application sends information representing the view to the first system service.
本申请实施例中,在目标收藏界面有更新时,可以在不打开该应用程序的情况下,即可根据显示的代表视图来获取目标收藏界面的更新情况,并在不需要显示第一活动对应的应用程序窗口时,进行悬浮窗的隐藏,方便用户查看,提高用户体验。In the embodiment of the present application, when the target collection interface is updated, the update of the target collection interface may be obtained according to the displayed representative view without opening the application, and the first activity is not required to be displayed. When the application window is closed, the floating window is hidden to facilitate user viewing and improve the user experience.
S1104,接收用户对展示控件的展示操作,获取第一活动的活动调用链,根据第一活动的活动调用链使第一活动处于可见状态。S1104: Receive a display operation of the display control by the user, obtain an activity call chain of the first activity, and make the first activity visible according to the activity call chain of the first activity.
用户对展示控件的展示操作可以通过点击第二界面上的展示控件来实现。展示控件是指接收用户的展示操作的控件,可以物理按键,也可以是虚拟按键,展示控件可以设置于悬浮窗中。通过接收用户对展示控件的展示操作,第一应用程序可以根据该展示控件与第一活动的活动调用链的关联关系,获取该展示控件对应的第一活动的活动调用链。The user's display of the display control can be achieved by clicking on the display control on the second interface. The display control refers to a control that receives the user's display operation, and can be a physical button or a virtual button, and the display control can be set in the floating window. The receiving, by the user, the displaying operation of the display control, the first application may obtain an activity calling chain of the first activity corresponding to the display control according to the association relationship between the display control and the activity chain of the first activity.
将第二界面中除展示控件对应的界面外的其他应用程序界面对应的活动作为第二活动,第二活动对应的应用程序界面与第一活动对应的第一界面可以是相邻界面,也可以是不相邻界面,还可以是相同界面,在此不做具体限定。The activity corresponding to the application interface other than the interface corresponding to the display control in the second interface is used as the second activity, and the first interface corresponding to the first activity corresponding to the application interface of the second activity may be an adjacent interface, or may be It is not an adjacent interface, and may be the same interface, and is not specifically limited herein.
活动调用链可以与活动对应的程序包名、类名等相关。应用框架层的视图组件可以根据第一活动的活动调用链获取该活动及其对应的视图参数,根据视图参数绘制视图,并由窗口管理器将绘制完成的视图显示在移动终端的显示屏上,实现目标收藏的界面的显示。The activity call chain can be related to the package name, class name, and the like corresponding to the activity. The view component of the application framework layer can obtain the activity and its corresponding view parameters according to the activity chain of the first activity, draw the view according to the view parameter, and display the completed view on the display screen of the mobile terminal by the window manager. The display of the interface that implements the target collection.
由于展示控件与目标收藏界面的调用信息相关联,目标收藏界面的调用信息可以包括目标收藏界面对应的第一活动的活动调用链,因此,可以根据用户对展示控件的展示操作,获取与展示控件关联的目标收藏界面对应的第一活动,进而获取第一活动的互动调用链。Since the display control is associated with the calling information of the target collection interface, the calling information of the target collecting interface may include an activity calling chain of the first activity corresponding to the target collecting interface, and therefore, the display control may be obtained according to the display operation of the display control by the user. The first activity corresponding to the target collection interface, and then the interaction call chain of the first activity.
举例来说,参考图6(b)和6(c),推文界面100对应的活动为活动4,其活动调用链为:活动1-活动2-活动3-活动4。代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401可作为推文界面100的展示控件,通过接收用户对代表视图“周杰伦,我不会常常想起你,但也从来没有忘记”401的展示操作,第一应用程序可以根据该代表视图获取对应的目标收藏界面对应的第一活动,进而获取到第一活动的活动调用链,根据第一活动的活动调用链实现第一活动的生成。For example, referring to FIGS. 6(b) and 6(c), the activity corresponding to the tweet interface 100 is activity 4, and the activity call chain is: activity 1 - activity 2 - activity 3 - activity 4. The representative view "Jay Jay, I don't always think of you, but I never forget" 401 can be used as a display control for the tweet interface 100, by receiving the user-representative view "Jay Jay, I don't always think of you, but never forget The display operation of the 401, the first application may obtain the first activity corresponding to the target collection interface according to the representative view, and then obtain the activity call chain of the first activity, and implement the first activity according to the activity call chain of the first activity. Generation.
用户对展示控件的展示操作时,第一活动可能存在于活动线程中,也可能不存在于活动线程中。从第二活动向第一活动的跳转,可以根据第一活动是否存在于活动线程中,其具体实现方式有所不同。具体的,可以先获取第一活动的标识,根据第一活动的标识,判断第一活动的标识是否存在于活动线程中。When a user presents a display control operation, the first activity may or may not exist in the active thread. The jump from the second activity to the first activity may be different depending on whether the first activity exists in the active thread. Specifically, the identifier of the first activity may be obtained first, and according to the identifier of the first activity, whether the identifier of the first activity exists in the active thread.
若第一活动的活动标识存在于活动线程中,则可以直接根据第一活动的活动调用链从第二活动跳转到第一活动,第二活动为与第二界面对应的活动,以使从处于可见状态的第二界面跳转至目标收藏界面。若此时检测到第一活动被添加额外重启标记,为了使用户能够感受到跳转动作,可以销毁第一活动,并重新启动第一活动对应的应用程序,再根据活动调用链跳转到第一活动。若第一活动的标识不存在于活动线程中,可以重新启动第一活动对应的应用程序,并根据活动调用链从第二活动跳转到第一活动。在完成第二活动向第一活动的跳转后,第一应用程序可以被暂停或停止。If the activity identifier of the first activity exists in the active thread, the activity may be directly jumped from the second activity to the first activity according to the activity chain of the first activity, and the second activity is an activity corresponding to the second interface, so that The second interface in the visible state jumps to the target collection interface. If it is detected that the first activity is added with an additional restart flag at this time, in order to enable the user to feel the jump action, the first activity may be destroyed, and the application corresponding to the first activity is restarted, and then jump to the first activity according to the activity call chain. An activity. If the identifier of the first activity does not exist in the active thread, the application corresponding to the first activity may be restarted, and the activity is jumped from the second activity to the first activity according to the activity call chain. After completing the jump of the second activity to the first activity, the first application can be suspended or stopped.
参考图17所示,图17为在用户对展示控件的展示操作后对第一活动对应的目标收藏界面进行展现的过程中,第二系统服务、第一应用程序和第二应用程序之间的交互图,可以理解的是,下述说明仅仅是示例性的,并不构成对本申请技术方案的限定。交互过程包括如下步骤:Referring to FIG. 17, FIG. 17 is a process of displaying a target collection interface corresponding to the first activity after the user displays the display control, and between the second system service, the first application, and the second application. It should be understood that the following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application. The interaction process includes the following steps:
1)第一应用程序接收到用户对展示控件的展示操作,将第一活动的标识发送至第二系统服务;1) The first application receives the display operation of the display control by the user, and sends the identifier of the first activity to the second system service;
2)第二系统服务判断第一活动的活动标识是否存在于活动线程中,若是,执行步骤3),若否,执行步骤4);2) The second system service determines whether the activity identifier of the first activity exists in the active thread, and if so, performs step 3), and if not, performs step 4);
3)第一应用程序判断第一活动是否有额外重启标记,如果是,则取消额外重启标记,通过第二系统服务销毁第一活动,如果否,通过第二系统服务销毁第一活动,执行步骤4);3) The first application determines whether the first activity has an additional restart flag, and if so, cancels the additional restart flag, destroys the first activity through the second system service, and if not, destroys the first activity through the second system service, and performs the step 4);
4)根据第一活动的活动标识重启目标收藏界面的应用程序,并根据第一活动的活动调用链跳转至第一活动,显示目标收藏界面,第一应用程序被暂停或停止。4) Restarting the application of the target collection interface according to the activity identifier of the first activity, and jumping to the first activity according to the activity call chain of the first activity, displaying the target collection interface, and the first application is suspended or stopped.
在本申请实施例中,还可以删除目标收藏界面对应的展示控件,例如删除代表视图和/或代表视图的名称等。特别的,在接收到用户对展示控件的删除操作后,若第一活动被添加额外重启标记,则说明第一活动是为了获取第二视图的视图参数而启动的,用户并没有使其在后台运行的需要,则可以销毁该第一活动。In the embodiment of the present application, the display control corresponding to the target collection interface may also be deleted, for example, deleting the representative view and/or the name representing the view. In particular, after receiving the deletion operation of the display control by the user, if the first activity is added with an additional restart flag, the first activity is started to obtain the view parameter of the second view, and the user does not make it in the background. The first activity can be destroyed by the need of the operation.
参考图18所示,图18为在接收用户对展示控件的删除操作后,第一系统服务、第二系统服务、第一应用程序和第二应用程序之间的交互图,可以理解的是,下述说明仅仅是示例性的,并不构成对本申请技术方案的限定。交互过程包括如下步骤:Referring to FIG. 18, FIG. 18 is an interaction diagram between the first system service, the second system service, the first application, and the second application after receiving the deletion operation of the display control by the user. It can be understood that The following description is merely exemplary and does not constitute a limitation of the technical solutions of the present application. The interaction process includes the following steps:
1)第一应用程序接收到展示控件列表内对展示控件的删除操作;1) The first application receives the deletion operation of the display control in the display control list;
2)第一应用程序移除该删除控件所在的列表项,更新界面;2) The first application removes the list item in which the delete control is located, and updates the interface;
3)第一应用程序获取删除项对应的代表视图对应的活动标识,判断该活动是否有额外重启标记,如果有,则向第二系统服务请求销毁该活动;3) The first application acquires an activity identifier corresponding to the representative view corresponding to the deleted item, determines whether the activity has an additional restart flag, and if so, requests the second system service to destroy the activity;
4)第一应用程序清空该活动对应的代表视图,向第一系统服务发送更新后的代表视图;4) The first application clears the representative view corresponding to the activity, and sends the updated representative view to the first system service;
5)第一系统服务更新代表视图。5) The first system service update representative view.
综上所述,本申请实施例中提供的界面显示方法中,第一界面显示在显示屏上时,可以通过接收用户对第一界面中的收藏控件的收藏操作,获取第一界面中的目标收藏界面的调用信息,并对调用信息进行收藏,在第二界面显示在显示屏上时,第二界面中包括目标收藏界面的展示控件,该展示控件与目标收藏界面的调用信息相关联,接收用户对展示控件的展示操作,根据与展示控件相关联的目标收藏界面的调用信息显示目标收藏界面。也就是说,用户只需要触发第一界面的收藏控件以及第二界面的展示控件,就可以实现对目标收藏界面的再次显示,而无需按照特定的顺序进行一步步的重复操作,节省了操作步骤,从而节省了用户的操作时间。In summary, in the interface display method provided in the embodiment of the present application, when the first interface is displayed on the display screen, the user may receive the collection operation of the favorite control in the first interface to obtain the target in the first interface. The call information of the collection interface is collected, and the call information is collected. When the second interface is displayed on the display screen, the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface, and receives The user displays the display control, and displays the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
为便于更好的实施本申请实施例的上述方案,下面还提供用于实施上述方案的相关装置。请参考图19所示,本申请实施例提供的界面显示装置1900,具体对应于上述提供的界面显示方法的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的单元,单元可以是软件和/或硬件。该装置1900可以包括:In order to facilitate the implementation of the above solution of the embodiments of the present application, related devices for implementing the above solutions are also provided below. Referring to FIG. 19, the interface display device 1900 provided by the embodiment of the present application specifically corresponds to the function of the interface display method provided above. The functions can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more units corresponding to the functions described above, which may be software and/or hardware. The device 1900 can include:
第一显示单元1901,用于显示第一界面,第一界面包括目标收藏界面和收藏控件;The first display unit 1901 is configured to display a first interface, where the first interface includes a target collection interface and a favorite control;
收藏单元1902,用于接收用户对收藏控件的收藏操作,获取目标收藏界面的调用信息,并对调用信息进行收藏;The collecting unit 1902 is configured to receive a user's collection operation on the favorite control, obtain the calling information of the target collection interface, and collect the calling information;
第二显示单元1903,用于显示第二界面,第二界面包括目标收藏界面的展示控件,展示控件与目标收藏界面的调用信息相关联;The second display unit 1903 is configured to display a second interface, where the second interface includes a display control of the target favorite interface, and the display control is associated with the call information of the target favorite interface;
第三显示单元1904,用于接收用户对展示控件的展示操作,获取目标收藏界面的调用信息,根据目标收藏界面的调用信息显示目标收藏界面。The third display unit 1904 is configured to receive a display operation of the display control by the user, obtain call information of the target favorite interface, and display the target favorite interface according to the call information of the target favorite interface.
在一些可能的设计中,目标收藏界面的调用信息包括目标收藏界面对应的活动的活动调用链,活动调用链为显示目标收藏界面所需要生成的活动的调用链条。In some possible designs, the call information of the target collection interface includes an activity call chain corresponding to the activity of the target collection interface, and the activity call chain is a call chain of activities required to display the target collection interface.
在一些可能的设计中,界面显示装置还包括:活动确定单元,用于获取第一界面对应的多个活动,并从第一界面对应的多个活动中确定出其中一个活动作为目标收藏界面对应的活动。In some possible designs, the interface display device further includes: an activity determining unit, configured to acquire a plurality of activities corresponding to the first interface, and determine, from the plurality of activities corresponding to the first interface, one of the activities as the target favorite interface activity.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
视图参数获取单元,用于在接收用户对收藏控件的收藏操作之后,获取目标收藏界面的目标视图的视图参数;a view parameter obtaining unit, configured to acquire a view parameter of a target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
展示控件显示单元,用于显示第二界面的包括代表视图的展示控件,代表视图为体现目标视图内容的视图,代表视图根据目标视图的视图参数得到。The display control display unit is configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the view is obtained according to the view parameter of the target view.
在一些可能的设计中,界面显示装置还包括:目标视图确定单元,用于获取目标收藏界面对应的多个候选视图,并从多个候选视图中确定出目标视图。In some possible designs, the interface display device further includes: a target view determining unit, configured to acquire a plurality of candidate views corresponding to the target favorite interface, and determine the target view from the plurality of candidate views.
在一些可能的设计中,目标视图确定单元包括:In some possible designs, the target view determining unit includes:
分组单元,用于获取目标收藏界面对应的多个候选视图,根据多个候选视图的显示位置对多个候选视图进行分组,得到多组候选视图;a grouping unit, configured to acquire a plurality of candidate views corresponding to the target collection interface, and group the plurality of candidate views according to the display positions of the plurality of candidate views to obtain a plurality of candidate views;
视图选择控件显示单元,用于在第三界面中显示多组候选视图中每组候选视图分别对应的视图选择控件;a view selection control display unit, configured to display, in the third interface, a view selection control corresponding to each group of candidate views in the plurality of groups of candidate views;
目标视图确定子单元,用于接收用户对视图选择控件的选择操作,将用户选择的视图选择控件对应的候选视图确定为目标视图。The target view determining sub-unit is configured to receive a user selection operation of the view selection control, and determine a candidate view corresponding to the view selection control selected by the user as the target view.
在一些可能的设计中,目标视图确定单元具体用于:In some possible designs, the target view determination unit is specifically used to:
获取目标收藏界面对应的多个候选视图,分别获取多个候选视图的属性,根据多个候选视图的属性从多个候选视图中确定出目标视图。Obtaining a plurality of candidate views corresponding to the target collection interface, respectively acquiring attributes of the plurality of candidate views, and determining the target view from the plurality of candidate views according to the attributes of the plurality of candidate views.
在一些可能的设计中,目标视图确定单元具体用于:In some possible designs, the target view determination unit is specifically used to:
获取目标收藏界面对应的多个候选视图,从多个候选视图形成的视图树中,选取前预设数目层的候选视图,确定为目标视图,预设数目为正整数。Obtaining a plurality of candidate views corresponding to the target collection interface, and selecting a candidate view of the preset number of layers from the view tree formed by the plurality of candidate views, and determining the target view, the preset number being a positive integer.
在一些可能的设计中,视图参数获取单元,还用于在接收用户对收藏控件的收藏操作之后,获取目标收藏界面的目标视图的更新后视图参数;In some possible designs, the view parameter obtaining unit is further configured to acquire an updated view parameter of the target view of the target favorite interface after receiving the user's favorite operation on the favorite control;
展示控件显示单元,还用于显示第二界面的包括代表视图的展示控件,代表视图为体现目标视图内容的视图,代表视图根据目标视图的更新后视图参数得到。The display control unit is further configured to display a display control including a view on the second interface, and the view is a view that reflects the content of the target view, and the representative view is obtained according to the updated view parameter of the target view.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
后台启动应用程序单元,用于若目标收藏界面对应的应用程序处于关闭状态,则后台启动应用程序;The application unit is started in the background, and is used to start the application in the background if the application corresponding to the target collection interface is in the closed state;
视图参数获取单元,还用于在接收用户对收藏控件的收藏操作之后,从后台启动的应用程序中,获取目标收藏界面的目标视图的视图参数。The view parameter obtaining unit is further configured to obtain a view parameter of the target view of the target favorite interface from the application launched in the background after receiving the user's favorite operation on the favorite control.
在一些可能的设计中,展示控件还包括显示控件,显示控件中显示代表视图的视图名称;界面显示装置还包括:In some possible designs, the display control further includes a display control, and the display control displays a view name representing the view; the interface display device further includes:
代表视图显示单元,用于接收用户对显示控件的显示操作,在显示控件中显示代表视图。The representative view display unit is configured to receive a display operation of the display control by the user, and display a representative view in the display control.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
收藏控件显示单元,用于获取用户在目标收藏界面上先后触发的第一触屏操作和第二触屏操作,若第一触屏操作和第二触屏操作满足预设条件,则在第一界面上显示收藏控件。a collection control display unit, configured to acquire a first touch screen operation and a second touch screen operation triggered by the user on the target collection interface, and if the first touch screen operation and the second touch screen operation meet the preset condition, the first The favorite controls are displayed on the interface.
在一些可能的设计中,预设条件至少包括以下其中一项:第一触屏操作满足第一预设触屏条件,第二触屏操作满足第二预设触屏条件以及,第一触屏操作和第二触屏操作之间的间隔时间满足预设时间条件。In some possible designs, the preset condition includes at least one of the following: the first touch screen operation satisfies the first preset touch screen condition, the second touch screen operation satisfies the second preset touch screen condition, and the first touch screen The interval between the operation and the second touch screen operation satisfies the preset time condition.
在一些可能的设计中,第一触屏操作为第一滑动操作,第一滑动操作包括第一触点和第二触点,第一触点为第一滑动操作的起点,第二触点为第一滑动操作的终点,第一触点 的坐标与第二触点的坐标不相同;In some possible designs, the first touch screen operates as a first sliding operation, the first sliding operation includes a first contact and a second contact, the first contact being the starting point of the first sliding operation, and the second contact being The end point of the first sliding operation, the coordinates of the first contact are different from the coordinates of the second contact;
第一预设触屏条件包括:The first preset touch screen conditions include:
第一触点和第二触点之间的横坐标之差满足第一距离条件;和/或,The difference between the abscissas between the first contact and the second contact satisfies the first distance condition; and/or,
第一触点和第二触点之间的纵坐标之差满足第二距离条件;和/或,The difference between the ordinates between the first contact and the second contact satisfies the second distance condition; and/or,
在产生第一触点到产生第二触点的过程中,任意时刻显示屏上有且至少有一个触点。In the process of generating the first contact to the second contact, there is at least one contact on the display at any time.
在一些可能的设计中,第二触屏操作为第二滑动操作,第二滑动操作包括第三触点和第四触点,第三触点为第二滑动操作的起点,第四触点为第二滑动操作的终点,第三触点的坐标与第四触点的坐标不相同;In some possible designs, the second touch screen operates as a second sliding operation, the second sliding operation includes a third contact and a fourth contact, the third contact is the starting point of the second sliding operation, and the fourth contact is The end point of the second sliding operation, the coordinates of the third contact are different from the coordinates of the fourth contact;
第二预设触屏条件包括:The second preset touch screen conditions include:
第三触点和第四触点之间的横坐标之差满足第三距离条件;和/或,The difference between the abscissas between the third contact and the fourth contact satisfies the third distance condition; and/or,
第三触点和第四触点之间的纵坐标之差满足第四距离条件;和/或,The difference between the ordinates between the third contact and the fourth contact satisfies the fourth distance condition; and/or,
在第二滑动操作执行的过程中,任意时刻显示屏上有且仅有一个触点。During the execution of the second sliding operation, there is only one contact on the display at any time.
在一些可能的设计中,界面显示装置还包括:In some possible designs, the interface display device further includes:
展示控件删除单元,用于接收用户对展示控件的删除操作,删除展示控件。The display control deletion unit is configured to receive a deletion operation of the display control by the user, and delete the display control.
综上所述,本申请实施例中提供的界面显示装置中,第一界面显示在显示屏上时,可以通过接收用户对第一界面中的收藏控件的收藏操作,获取第一界面中的目标收藏界面的调用信息,并对调用信息进行收藏,在第二界面显示在显示屏上时,第二界面中包括目标收藏界面的展示控件,该展示控件与目标收藏界面的调用信息相关联,接收用户对展示控件的展示操作,根据与展示控件相关联的目标收藏界面的调用信息显示目标收藏界面。也就是说,用户只需要触发第一界面的收藏控件以及第二界面的展示控件,就可以实现对目标收藏界面的再次显示,而无需按照特定的顺序进行一步步的重复操作,节省了操作步骤,从而节省了用户的操作时间。In summary, in the interface display device provided in the embodiment of the present application, when the first interface is displayed on the display screen, the user may receive the favorite operation of the favorite control in the first interface to obtain the target in the first interface. The call information of the collection interface is collected, and the call information is collected. When the second interface is displayed on the display screen, the second interface includes a display control of the target collection interface, and the display control is associated with the call information of the target collection interface, and receives The user displays the display control, and displays the target collection interface according to the calling information of the target collection interface associated with the display control. That is to say, the user only needs to trigger the favorite control of the first interface and the display control of the second interface, so that the target collection interface can be displayed again without step by step in a specific order, saving operation steps. , thereby saving the user's operating time.
接下来介绍本申请实施例中的实现界面跳转设备,该设备可以是终端设备。The implementation of the interface jump device in the embodiment of the present application is described next, and the device may be a terminal device.
请参考图20所示,界面跳转的设备2000包括输入单元2050、处理器2030、输出单元2010、通信单元2070、存储器2040、射频电路2080等组件。Referring to FIG. 20, the interface jump device 2000 includes an input unit 2050, a processor 2030, an output unit 2010, a communication unit 2070, a memory 2040, a radio frequency circuit 2080, and the like.
这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图20中示出的界面跳转设备的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。These components communicate over one or more buses. It will be understood by those skilled in the art that the structure of the interface jump device shown in FIG. 20 does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may include more than the illustration. Or fewer parts, or combine some parts, or different parts.
在本发明实施方式中,界面跳转设备可以是任何移动或便携式电子设备,包括但不限于智能手机、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、媒体播放器等。In an embodiment of the present invention, the interface jump device may be any mobile or portable electronic device including, but not limited to, a smart phone, a mobile computer, a tablet computer, a personal digital assistant (PDA), a media player, and the like.
界面跳转设备2000包括:The interface jump device 2000 includes:
输出单元2010,用于输出待显示的图像。The output unit 2010 is configured to output an image to be displayed.
具体的,输出单元2010包括但不限于影像输出单元2011和声音输出单元2012。Specifically, the output unit 2010 includes but is not limited to the image output unit 2011 and the sound output unit 2012.
影像输出单元2011用于输出文字、图片和/或视频。影像输出单元2011可包括显示面板,例如采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、场发射显示器(field emission display,FED)等形式来配置的显示面板。或 者影像输出单元2011可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(interferometric modulation of Light)的显示器。The image output unit 2011 is for outputting text, pictures, and/or video. The image output unit 2011 may include a display panel, such as a display configured by a liquid crystal display (LCD), an organic light-emitting diode (OLED), a field emission display (FED), or the like. panel. Alternatively, the image output unit 2011 may comprise a reflective display, such as an electrophoretic display, or a display utilizing an interferometric modulation of Light.
影像输出单元2011可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,触摸屏亦可同时作为输出单元2010的显示面板。The image output unit 2011 may include a single display or multiple displays of different sizes. In a specific embodiment of the present invention, the touch screen can also serve as a display panel of the output unit 2010 at the same time.
例如,当触摸屏检测到在其上的触摸或接近的手势操作后,传送给处理器2030以确定触摸事件的类型,随后处理器2030根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图20中,输入单元2050与输出单元2010是作为两个独立的部件来实现界面跳转设备的输入和输出功能,但是在某些实施例中,可以将触摸屏与显示面板集成一体而实现界面跳转设备的输入和输出功能。例如,影像输出单元2011可以显示各种图形化用户接口(graphical user interface,GUI)以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。For example, when the touch screen detects a touch or proximity gesture operation thereon, it is communicated to the processor 2030 to determine the type of touch event, and then the processor 2030 provides a corresponding visual output on the display panel depending on the type of touch event. Although in FIG. 20, the input unit 2050 and the output unit 2010 are implemented as two separate components to implement the input and output functions of the interface jump device, in some embodiments, the touch screen and the display panel may be integrated into one. The interface jumps to the input and output functions of the device. For example, the image output unit 2011 can display various graphical user interfaces (GUIs) as virtual control components, including but not limited to windows, scroll axes, icons, and scrapbooks, for the user to touch through. operating.
在本发明具体实施方式中,影像输出单元2011包括滤波器及放大器,用来将处理器2030所输出的视频滤波及放大。声音输出单元2012包括数字模拟转换器,用来将处理器2030所输出的音频信号从数字格式转换为模拟格式。In an embodiment of the invention, the image output unit 2011 includes a filter and an amplifier for filtering and amplifying the video output by the processor 2030. The sound output unit 2012 includes a digital to analog converter for converting the audio signal output by the processor 2030 from a digital format to an analog format.
处理器2030,用于运行存储器中的代指令,执行上述界面显示方法,对接收信息进行处理,以生成并输出相应的界面。The processor 2030 is configured to execute a generation instruction in the memory, execute the interface display method, and process the received information to generate and output a corresponding interface.
具体的,处理器2030为界面跳转设备的控制中心,利用各种接口和线路连接整个界面跳转设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行界面跳转设备的各种功能和/或处理数据。处理器2030可以由集成电路(integrated circuit,IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。Specifically, the processor 2030 is a control center of the interface jump device, and connects various parts of the entire interface jump device by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory, and calling the storage. Data within the memory to perform various functions of the interface jump device and/or process data. The processor 2030 may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
举例来说,处理器2030可以仅包括中央处理器(central processing unit,CPU),也可以是图形处理器(graphics processing unit,GPU),数字信号处理器(digital signal processor,DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。For example, the processor 2030 may include only a central processing unit (CPU), or may be a graphics processing unit (GPU), a digital signal processor (DSP), and a communication unit. A combination of control chips (eg, baseband chips). In the embodiment of the present invention, the CPU may be a single operation core, and may also include multiple operation cores.
存储器2040,用于存储代码和数据,代码供处理器2030运行。The memory 2040 is configured to store code and data, and the code is run by the processor 2030.
具体的,存储器2040可用于存储软件程序以及模块,处理器2030通过运行存储在存储器2040的软件程序以及模块,从而执行界面跳转设备的各种功能应用以及实现数据处理。存储器2040主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用,比如声音播放程序、图像播放程序等等;数据存储区可存储根据界面跳转设备的使用所创建的数据(比如音频数据、电话本等)等。Specifically, the memory 2040 can be used to store software programs and modules, and the processor 2030 executes various functional applications of the interface jump device and implements data processing by running software programs and modules stored in the memory 2040. The memory 2040 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, such as a sound playing program, an image playing program, and the like; and the data storage area can be stored according to the interface jump Data created by the use of the device (such as audio data, phone book, etc.).
在本发明具体实施方式中,存储器2040可以包括易失性存储器,例如非挥发性动态随机存取内存(nonvolatile random access memory,NVRAM)、相变化随机存取内存(phase change random access memory,PRAM)、磁阻式随机存取内存(magetoresistive random access memory,MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可擦除可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。In a specific embodiment of the present invention, the memory 2040 may include a volatile memory such as a nonvolatile random access memory (NVRAM) or a phase change random access memory (PRAM). a magnetoresistive random access memory (MRAM), etc., may also include a non-volatile memory, such as at least one disk storage device, electrically erasable programmable read-only memory (electrically erasable programmable read-only memory) Memory, EEPROM), flash memory devices, such as NOR flash memory or NAND flash memory.
非易失存储器储存处理器2030所执行的操作系统及应用。处理器2030从非易失存储器加载运行程序与数据到内存并将数字内容储存于大量储存装置中。操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。The non-volatile memory stores the operating system and applications executed by the processor 2030. The processor 2030 loads the running program and data from the non-volatile memory into the memory and stores the digital content in a plurality of storage devices. The operating system includes controls and management of general system tasks such as memory management, storage device control, power management, etc., as well as various components and/or drivers that facilitate communication between various hardware and software.
在本发明实施方式中,操作系统可以是Google公司的Android操作系统、Apple公司开发的iOS系统或Microsoft公司开发的Windows操作系统等,或者是Vxworks这类的嵌入式操作系统。In the embodiment of the present invention, the operating system may be an Android operating system of Google Inc., an iOS system developed by Apple Inc., or a Windows operating system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
应用包括安装在界面跳转设备上的任何应用,包括但不限于浏览器、电子邮件、即时消息服务、文字处理、键盘虚拟、窗口小部件(widget)、加密、数字版权管理、语音识别、语音复制、定位(例如由全球定位系统提供的功能)、音乐播放等等。Applications include any application installed on the interface jump device, including but not limited to browsers, email, instant messaging services, word processing, keyboard virtualization, widgets, encryption, digital rights management, voice recognition, voice Copy, locate (such as those provided by GPS), music playback, and more.
输入单元2050,用于实现用户与界面跳转设备的交互和/或信息输入到界面跳转设备中。The input unit 2050 is configured to implement interaction between the user and the interface jump device and/or input information into the interface jump device.
例如,输入单元2050可以接收用户输入的数字或字符信息,以产生与用户设置或功能控制有关的信号输入。在本发明具体实施方式中,输入单元2050可以是触摸屏,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。For example, the input unit 2050 can receive numeric or character information input by the user to generate a signal input related to user settings or function control. In the specific embodiment of the present invention, the input unit 2050 may be a touch screen, or may be other human-computer interaction interfaces, such as physical input keys, microphones, etc., and may also be other external information capture devices, such as cameras.
本发明实施例所示的触摸屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触摸屏上或接近触摸屏的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收电信号,并将它转换成触点坐标,再送给处理器2030。The touch screen shown in the embodiment of the present invention can collect an operation action touched or approached by a user. For example, the user uses an action of any suitable object or accessory such as a finger, a stylus, or the like on the touch screen or near the touch screen, and drives the corresponding connecting device according to a preset program. Optionally, the touch screen may include two parts: a touch detection device and a touch controller. Wherein the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into The contact coordinates are sent to the processor 2030.
触摸控制器还可以接收处理器2030发来的命令并执行。此外,触摸屏可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏。The touch controller can also receive commands from the processor 2030 and execute them. In addition, the touch screen can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
在本发明的其他实施方式中,输入单元2050所采用的实体输入键可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。麦克风形式的输入单元2050可以收集用户或环境输入的语音并将其转换成电信号形式的、处理器2030可执行的命令。In other embodiments of the present invention, the physical input keys used by the input unit 2050 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. Kind or more. The input unit 2050 in the form of a microphone can collect the voice input by the user or the environment and convert it into a command executable by the processor 2030 in the form of an electrical signal.
在本发明的其他一些实施方式中,输入单元2050还可以是各类传感器件,例如霍尔器件,用于侦测界面跳转设备的物理量,例如力、力矩、压力、应力、位置、位移、速度、加速度、角度、角速度、转数、转速以及工作状态发生变化的时间等,转变成电量来进行检测和控制。其他的一些传感器件还可以包括重力感应计、三轴加速计、陀螺仪、电子罗盘、环境光传感器、接近传感器、温度传感器、湿度传感器、压力传感器、心率传感器、指纹识别器等。In other embodiments of the present invention, the input unit 2050 may also be various types of sensor components, such as Hall devices, for detecting physical quantities of the interface jump device, such as force, moment, pressure, stress, position, displacement, Speed, acceleration, angle, angular velocity, number of revolutions, speed, and time when the operating state changes, etc., are converted into electricity for detection and control. Other sensor components may also include gravity sensors, three-axis accelerometers, gyroscopes, electronic compasses, ambient light sensors, proximity sensors, temperature sensors, humidity sensors, pressure sensors, heart rate sensors, fingerprint readers, and the like.
通信单元2070,用于建立通信信道,使界面跳转设备通过通信信道以连接至远程服务器,并从远程服务器下媒体数据。通信单元2070可以包括无线局域网(wireless local area network,wireless LAN)模块、蓝牙模块、基带模块等通信模块,以及通信模块对应的射频(radio frequency,RF)电路,用于进行无线局域网络通信、蓝牙通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(wideband code division multiple access, W-CDMA)及/或高速下行封包存取(high speed downlink packet access,HSDPA)。通信模块用于控制界面跳转设备中的各组件的通信,并且可以支持直接内存存取。The communication unit 2070 is configured to establish a communication channel, enable the interface jump device to connect to the remote server through the communication channel, and download the media data from the remote server. The communication unit 2070 may include a wireless local area network (wireless LAN) module, a Bluetooth module, a baseband module, and the like, and a radio frequency (RF) circuit corresponding to the communication module, configured to perform wireless local area network communication, and Bluetooth. Communication, infrared communication, and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or high speed downlink packet access (HSDPA). The communication module is used to control communication of components in the interface jump device and can support direct memory access.
在本发明的不同实施方式中,通信单元2070中的各种通信模块一般以集成电路芯片(integrated circuit chip)的形式出现,并可进行选择性组合,而不必包括所有通信模块及对应的天线组。例如,通信单元2070可以仅包括基带芯片、射频芯片以及相应的天线以在一个蜂窝通信系统中提供通信功能。经由通信单元2070建立的无线通信连接,例如无线局域网接入或WCDMA接入,界面跳转设备可以连接至蜂窝网(cellular network)或因特网。在本发明的一些可选实施方式中,通信单元2070中的通信模块,例如基带模块可以集成到处理器2030中,典型的如高通(qualcomm)公司提供的APQ+MDM系列平台。In various embodiments of the present invention, various communication modules in the communication unit 2070 generally appear in the form of integrated circuit chips, and can be selectively combined without including all communication modules and corresponding antenna groups. . For example, communication unit 2070 can include only baseband chips, radio frequency chips, and corresponding antennas to provide communication functionality in a cellular communication system. The interface jump device can be connected to a cellular network or the Internet via a wireless communication connection established by the communication unit 2070, such as wireless local area network access or WCDMA access. In some alternative embodiments of the invention, communication modules, such as baseband modules, in communication unit 2070 may be integrated into processor 2030, typically an APQ+MDM series platform such as that provided by Qualcomm.
射频电路2080,用于信息收发或通话过程中接收和发送信号。例如,将基站的下行信息接收后,给处理器2030处理;另外,将设计上行的数据发送给基站。通常,射频电路2080包括用于执行这些功能的公知电路,包括但不限于天线系统、射频收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编解码(codec)芯片组、用户身份模块(SIM)卡、存储器等等。此外,射频电路2080还可以通过无线通信与网络和其他设备通信。The RF circuit 2080 is configured to receive and transmit signals during information transmission and reception or during a call. For example, after the downlink information of the base station is received, it is processed by the processor 2030; in addition, the uplink data is designed to be sent to the base station. In general, radio frequency circuit 2080 includes well-known circuitry for performing these functions, including but not limited to antenna systems, radio frequency transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, codecs ( Codec) Chipset, Subscriber Identity Module (SIM) card, memory, etc. In addition, radio frequency circuit 2080 can also communicate with the network and other devices via wireless communication.
无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、高速上行行链路分组接入技术(high speed uplink packet access,HSUPA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。Wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple Access, CDMA), wideband code division multiple access (WCDMA), high speed uplink packet access (HSUPA), long term evolution (LTE), electronic Mail, short message service (SMS), etc.
电源2090,用于给界面跳转设备的不同部件进行供电以维持其运行。作为一般性理解,电源2090可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向界面跳转设备供电的外接电源,例如AC适配器等。在本发明的一些实施方式中,电源2090还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与界面跳转设备的电能生成、管理及分布相关联的其他任何组件。A power supply 2090 is used to power different components of the interface jump device to maintain its operation. As a general understanding, the power source 2090 can be a built-in battery, such as a common lithium ion battery, a nickel metal hydride battery, etc., and an external power source that directly supplies power to the interface jump device, such as an AC adapter. In some embodiments of the present invention, the power supply 2090 can also be more widely defined, for example, can also include a power management system, a charging system, a power failure detection circuit, a power converter or an inverter, and a power status indicator (eg, Light-emitting diodes), as well as any other components associated with the power generation, management, and distribution of interface jump devices.
本申请又一方面提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Yet another aspect of the present application provides a computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the methods described in the various aspects above.
本申请又一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显 示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Claims (18)

  1. 一种界面显示方法,其特征在于,所述方法包括:An interface display method, characterized in that the method comprises:
    显示第一界面,所述第一界面包括目标收藏界面和收藏控件;Displaying a first interface, where the first interface includes a target favorite interface and a favorite control;
    接收用户对所述收藏控件的收藏操作,获取所述目标收藏界面的调用信息,并对所述调用信息进行收藏;Receiving a user's collection operation on the favorite control, acquiring call information of the target favorite interface, and collecting the call information;
    显示第二界面,所述第二界面包括所述目标收藏界面的展示控件,所述展示控件与所述目标收藏界面的调用信息相关联;Displaying a second interface, where the second interface includes a display control of the target favorite interface, and the display control is associated with call information of the target favorite interface;
    接收所述用户对所述展示控件的展示操作,获取所述目标收藏界面的调用信息,根据所述目标收藏界面的调用信息显示所述目标收藏界面。Receiving a display operation of the display control by the user, acquiring call information of the target favorite interface, and displaying the target favorite interface according to the call information of the target favorite interface.
  2. 根据权利要求1所述的方法,其特征在于,所述目标收藏界面的调用信息包括所述目标收藏界面对应的活动的活动调用链,所述活动调用链为显示所述目标收藏界面所需要生成的活动的调用链条。The method according to claim 1, wherein the call information of the target favorite interface comprises an activity call chain of the activity corresponding to the target favorite interface, and the activity call chain is required to generate the target favorite interface. The calling chain of the activity.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    若所述第一界面包括多个界面,则从所述多个界面中确定所述目标收藏界面。If the first interface includes a plurality of interfaces, determining the target favorite interface from the plurality of interfaces.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在所述接收用户对所述收藏控件的收藏操作之后,获取所述目标收藏界面的目标视图的视图参数;After receiving the user's favorite operation on the favorite control, acquiring a view parameter of the target view of the target favorite interface;
    所述显示第二界面的展示控件包括:The display control for displaying the second interface includes:
    显示所述第二界面的包括代表视图的展示控件,所述代表视图为体现所述目标视图内容的视图,所述代表视图根据所述目标视图的视图参数得到。Displaying a display control of the second interface including a representative view, wherein the representative view is a view embodying the target view content, and the representative view is obtained according to a view parameter of the target view.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    获取所述目标收藏界面对应的多个候选视图,并从所述多个候选视图中确定出所述目标视图。Acquiring a plurality of candidate views corresponding to the target collection interface, and determining the target view from the plurality of candidate views.
  6. 根据权利要求5所述的方法,其特征在于,所述从所述多个候选视图中确定出所述目标视图包括:The method according to claim 5, wherein the determining the target view from the plurality of candidate views comprises:
    根据所述多个候选视图的显示位置对所述多个候选视图进行分组,得到多组候选视图;And grouping the plurality of candidate views according to display positions of the plurality of candidate views to obtain a plurality of sets of candidate views;
    在第三界面中显示所述多组候选视图中每组候选视图分别对应的视图选择控件;Displaying, in the third interface, a view selection control corresponding to each candidate view in the plurality of candidate views;
    接收所述用户对所述视图选择控件的选择操作,将所述用户选择的视图选择控件对应的候选视图确定为所述目标视图。Receiving a selection operation of the view selection control by the user, and determining a candidate view corresponding to the view selection control selected by the user as the target view.
  7. 根据权利要求5所述的方法,其特征在于,所述从所述多个候选视图中确定出所述目标视图包括:The method according to claim 5, wherein the determining the target view from the plurality of candidate views comprises:
    分别获取所述多个候选视图的属性,根据所述多个候选视图的属性从所述多个候选视图中确定出所述目标视图。Obtaining attributes of the plurality of candidate views respectively, and determining the target view from the plurality of candidate views according to attributes of the plurality of candidate views.
  8. 根据权利要求5所述的方法,其特征在于,所述从所述多个候选视图中确定出所述目标视图包括:The method according to claim 5, wherein the determining the target view from the plurality of candidate views comprises:
    从所述多个候选视图形成的视图树中,选取前预设数目层的候选视图,确定为所述目标视图,所述预设数目为正整数。And selecting, from the view tree formed by the multiple candidate views, a candidate view of a preset number of layers, and determining the target view, the preset number being a positive integer.
  9. 根据权利要求4所述的方法,其特征在于,The method of claim 4 wherein:
    所述获取所述目标收藏界面的目标视图的视图参数包括:The obtaining the view parameters of the target view of the target collection interface includes:
    获取所述目标收藏界面的目标视图的更新后视图参数;Obtaining an updated view parameter of the target view of the target collection interface;
    所述代表视图根据所述目标视图的视图参数得到包括:The representative view is obtained according to the view parameter of the target view, including:
    所述代表视图根据所述目标视图的更新后视图参数得到。The representative view is obtained according to the updated view parameter of the target view.
  10. 根据权利要求4所述的方法,其特征在于,在显示所述第二界面的包括代表视图的展示控件之前,所述方法还包括:The method of claim 4, wherein before the displaying the display control including the view of the second interface, the method further comprises:
    若所述目标收藏界面对应的应用程序处于关闭状态,则根据所述目标收藏界面的调用信息后台启动所述应用程序;If the application corresponding to the target collection interface is in the closed state, the application is started in the background according to the calling information of the target collection interface;
    所述获取所述目标收藏界面的目标视图的视图参数包括:The obtaining the view parameters of the target view of the target collection interface includes:
    从所述后台启动的应用程序中,获取所述目标收藏界面的目标视图的所述视图参数。Obtaining the view parameter of the target view of the target favorite interface from the application launched in the background.
  11. 根据权利要求4所述的方法,其特征在于,所述展示控件还包括显示控件,所述显示控件中显示所述代表视图的视图名称;The method according to claim 4, wherein the display control further comprises a display control, wherein the view name of the representative view is displayed in the display control;
    所述方法还包括:The method further includes:
    接收用户对所述显示控件的显示操作,在所述展示控件中显示所述代表视图。Receiving a display operation of the display control by the user, and displaying the representative view in the display control.
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收所述用户在所述目标收藏界面上先后触发的第一触屏操作和第二触屏操作,若所述第一触屏操作和所述第二触屏操作满足预设条件,则在所述第一界面上显示所述收藏控件。Receiving, by the user, the first touch screen operation and the second touch screen operation triggered on the target collection interface, if the first touch screen operation and the second touch screen operation meet the preset condition, The favorite control is displayed on the first interface.
  13. 根据权利要求12所述的方法,其特征在于,所述预设条件至少包括以下其中一项:The method according to claim 12, wherein the preset condition comprises at least one of the following:
    所述第一触屏操作满足第一预设触屏条件,所述第二触屏操作满足第二预设触屏条件以及,所述第一触屏操作和所述第二触屏操作之间的间隔时间满足预设时间条件。The first touch screen operation satisfies a first preset touch screen condition, the second touch screen operation satisfies a second preset touch screen condition and between the first touch screen operation and the second touch screen operation The interval time satisfies the preset time condition.
  14. 根据权利要求12所述的方法,其特征在于,所述第一触屏操作为第一滑动操作,所述第一滑动操作包括第一触点和第二触点,所述第一触点为所述第一滑动操作的起点,所述第二触点为所述第一滑动操作的终点,所述第一触点的坐标与所述第二触点的坐标不相同;The method of claim 12 wherein said first touchscreen operation is a first sliding operation, said first sliding operation comprising a first contact and a second contact, said first contact being a starting point of the first sliding operation, the second contact is an end point of the first sliding operation, and a coordinate of the first contact is different from a coordinate of the second contact;
    所述第一预设触屏条件包括:The first preset touch screen condition includes:
    所述第一触点和所述第二触点之间的横坐标之差满足第一距离条件;和/或,a difference between the abscissas between the first contact and the second contact satisfies a first distance condition; and/or,
    所述第一触点和所述第二触点之间的纵坐标之差满足第二距离条件;和/或,a difference between the ordinates between the first contact and the second contact satisfies a second distance condition; and/or,
    在产生所述第一触点到产生所述第二触点的过程中,任意时刻显示屏上有且至少有一个触点。During the generation of the first contact to the generation of the second contact, there is at least one contact on the display at any time.
  15. 根据权利要求13所述的方法,其特征在于,所述第二触屏操作为第二滑动操作,所述第二滑动操作包括第三触点和第四触点,所述第三触点为所述第二滑动操作的起点,所述第四触点为所述第二滑动操作的终点,所述第三触点的坐标与所述第四触点的坐标不相同;The method of claim 13 wherein said second touchscreen operation is a second slide operation, said second slide operation comprising a third contact and a fourth contact, said third contact being a starting point of the second sliding operation, the fourth contact is an end point of the second sliding operation, and a coordinate of the third contact is different from a coordinate of the fourth contact;
    所述第二预设触屏条件包括:The second preset touch screen condition includes:
    所述第三触点和所述第四触点之间的横坐标之差满足第三距离条件;和/或,a difference between the abscissas between the third contact and the fourth contact satisfies a third distance condition; and/or,
    所述第三触点和所述第四触点之间的纵坐标之差满足第四距离条件;和/或,a difference between the ordinates between the third contact and the fourth contact satisfies a fourth distance condition; and/or,
    在所述第二滑动操作执行的过程中,任意时刻显示屏上有且仅有一个触点。During the execution of the second sliding operation, there is one and only one contact on the display at any time.
  16. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收所述用户对所述展示控件的删除操作,删除所述展示控件。Receiving a deletion operation of the display control by the user, and deleting the display control.
  17. 一种界面显示显示装置,其特征在于,所述装置包括:An interface display display device, characterized in that the device comprises:
    第一显示单元,用于显示第一界面,所述第一界面包括目标收藏界面和收藏控件;a first display unit, configured to display a first interface, where the first interface includes a target collection interface and a favorite control;
    收藏单元,用于接收用户对所述收藏控件的收藏操作,获取所述目标收藏界面的调用信息,并对所述调用信息进行收藏;a collecting unit, configured to receive a user's collection operation on the favorite control, acquire call information of the target favorite interface, and collect the call information;
    第二显示单元,用于显示第二界面,所述第二界面包括所述目标收藏界面的展示控件,所述展示控件与所述目标收藏界面的调用信息相关联;a second display unit, configured to display a second interface, where the second interface includes a display control of the target favorite interface, where the display control is associated with call information of the target favorite interface;
    第三显示单元,用于接收所述用户对所述展示控件的展示操作,获取所述目标收藏界面的调用信息,根据所述目标收藏界面的调用信息显示所述目标收藏界面。The third display unit is configured to receive the display operation of the display control by the user, obtain call information of the target favorite interface, and display the target favorite interface according to the call information of the target favorite interface.
  18. 一种界面显示设备,其特征在于,所述设备包括:处理器和存储器;An interface display device, characterized in that the device comprises: a processor and a memory;
    所述存储器,用于存储指令;The memory is configured to store an instruction;
    所述处理器,用于执行所述存储器中的所述指令,执行如权利要求1至16中任一项所述的方法。The processor, for executing the instructions in the memory, to perform the method of any one of claims 1 to 16.
PCT/CN2019/083988 2018-04-28 2019-04-24 Interface displaying method, apparatus, and device WO2019206158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810402152.2A CN110417988B (en) 2018-04-28 2018-04-28 Interface display method, device and equipment
CN201810402152.2 2018-04-28

Publications (1)

Publication Number Publication Date
WO2019206158A1 true WO2019206158A1 (en) 2019-10-31

Family

ID=68293766

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/083988 WO2019206158A1 (en) 2018-04-28 2019-04-24 Interface displaying method, apparatus, and device

Country Status (2)

Country Link
CN (2) CN115174733A (en)
WO (1) WO2019206158A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399742A (en) * 2020-03-13 2020-07-10 华为技术有限公司 Interface switching method and device and electronic equipment
CN111880703A (en) * 2020-07-07 2020-11-03 北京小米移动软件有限公司 Method and device for processing content of smart television and storage medium
CN112818259A (en) * 2019-11-15 2021-05-18 腾讯科技(深圳)有限公司 Content recommendation method, electronic device and computer-readable storage medium
CN113110905A (en) * 2021-03-29 2021-07-13 联想(北京)有限公司 Control method, device, equipment and computer readable storage medium
CN113648661A (en) * 2021-08-18 2021-11-16 网易(杭州)网络有限公司 Method and device for processing information in game, electronic equipment and storage medium
CN111399742B (en) * 2020-03-13 2024-04-26 华为技术有限公司 Interface switching method and device and electronic equipment

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767108A (en) * 2020-06-28 2020-10-13 Oppo广东移动通信有限公司 Application program label generation method, application interface display method and device
CN111782298B (en) * 2020-06-30 2024-03-19 Oppo(重庆)智能科技有限公司 Application management method and device, storage medium and electronic equipment
CN111984809A (en) * 2020-08-20 2020-11-24 深圳集智数字科技有限公司 Image searching method and related device
CN112068763A (en) * 2020-09-22 2020-12-11 深圳市欢太科技有限公司 Target information management method and device, electronic equipment and storage medium
CN114650330A (en) * 2020-12-18 2022-06-21 华为技术有限公司 Method, electronic equipment and system for adding operation sequence
CN113900571B (en) * 2021-10-14 2023-11-14 北京淇瑀信息科技有限公司 Information display method and device and electronic equipment
CN114296611B (en) * 2021-12-29 2024-03-26 北京字跳网络技术有限公司 Live broadcasting room control method, device, electronic equipment, medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202223A (en) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 Content collection method, device and for collecting the device of content in application program
CN106406995A (en) * 2016-09-07 2017-02-15 珠海市魅族科技有限公司 Application page task switching method and device and mobile terminal
CN106648707A (en) * 2017-01-10 2017-05-10 深圳铂睿智恒科技有限公司 Collecting method and collecting system of intelligent terminal application information and intelligent terminal
CN107092707A (en) * 2017-05-31 2017-08-25 北京安云世纪科技有限公司 A kind of methods of exhibiting and device for collecting the application program page
CN107193975A (en) * 2017-05-25 2017-09-22 北京小米移动软件有限公司 Information resources collecting method, device and computer-readable recording medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008070814A2 (en) * 2006-12-06 2008-06-12 Fusion Multisystems, Inc. (Dba Fusion-Io) Apparatus, system, and method for a scalable, composite, reconfigurable backplane
CN102323932A (en) * 2011-08-30 2012-01-18 百度在线网络技术(北京)有限公司 Method for processing web page collection information and equipment
CN102508597A (en) * 2011-09-30 2012-06-20 北京风灵创景科技有限公司 Method and equipment for collecting applications on desktop of movable terminal
US20140359488A1 (en) * 2013-05-29 2014-12-04 Microsoft Corporation Centralized Management of Link Data for Multiple Applications, Computers and Resources, through Operating Systems and Networked Storage Services
CN104407937B (en) * 2014-11-19 2018-07-03 北京奇虎科技有限公司 The method and browser of data are loaded in browser
CN106648364A (en) * 2016-12-20 2017-05-10 四川长虹电器股份有限公司 Mobile application view structure-based method for viewing collected contents immediately
CN107203630B (en) * 2017-05-31 2020-11-24 北京安云世纪科技有限公司 Application page collection method and device and corresponding mobile terminal
CN107085617B (en) * 2017-05-31 2020-11-24 北京安云世纪科技有限公司 Application page collection method and device and corresponding mobile terminal
CN107402690A (en) * 2017-07-07 2017-11-28 上海爱优威软件开发有限公司 A kind of global collecting method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202223A (en) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 Content collection method, device and for collecting the device of content in application program
CN106406995A (en) * 2016-09-07 2017-02-15 珠海市魅族科技有限公司 Application page task switching method and device and mobile terminal
CN106648707A (en) * 2017-01-10 2017-05-10 深圳铂睿智恒科技有限公司 Collecting method and collecting system of intelligent terminal application information and intelligent terminal
CN107193975A (en) * 2017-05-25 2017-09-22 北京小米移动软件有限公司 Information resources collecting method, device and computer-readable recording medium
CN107092707A (en) * 2017-05-31 2017-08-25 北京安云世纪科技有限公司 A kind of methods of exhibiting and device for collecting the application program page

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818259A (en) * 2019-11-15 2021-05-18 腾讯科技(深圳)有限公司 Content recommendation method, electronic device and computer-readable storage medium
CN111399742A (en) * 2020-03-13 2020-07-10 华为技术有限公司 Interface switching method and device and electronic equipment
CN111399742B (en) * 2020-03-13 2024-04-26 华为技术有限公司 Interface switching method and device and electronic equipment
CN111880703A (en) * 2020-07-07 2020-11-03 北京小米移动软件有限公司 Method and device for processing content of smart television and storage medium
CN113110905A (en) * 2021-03-29 2021-07-13 联想(北京)有限公司 Control method, device, equipment and computer readable storage medium
CN113110905B (en) * 2021-03-29 2023-06-23 联想(北京)有限公司 Control method, device, equipment and computer readable storage medium
CN113648661A (en) * 2021-08-18 2021-11-16 网易(杭州)网络有限公司 Method and device for processing information in game, electronic equipment and storage medium
CN113648661B (en) * 2021-08-18 2024-04-12 网易(杭州)网络有限公司 Method and device for processing information in game, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115174733A (en) 2022-10-11
CN110417988B (en) 2022-06-14
CN110417988A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
WO2019206158A1 (en) Interface displaying method, apparatus, and device
US11496600B2 (en) Remote execution of machine-learned models
JP6182689B1 (en) Device, method and graphical user interface for managing folders
US9652145B2 (en) Method and apparatus for providing user interface of portable device
US20190028418A1 (en) Apparatus and method for providing information
CN105359121B (en) Use the application remote operation for receiving data
US9542949B2 (en) Satisfying specified intent(s) based on multimodal request(s)
US20220107712A1 (en) Systems and methods for providing tab previews via an operating system user interface
US11079926B2 (en) Method and apparatus for providing user interface of portable device
CN105389173B (en) Interface switching display method and device based on long connection task
US20240089366A1 (en) Providing user interfaces based on use contexts and managing playback of media
JP6378451B2 (en) Method and apparatus for processing new messages associated with an application
WO2017193496A1 (en) Application data processing method and apparatus, and terminal device
AU2019257433B2 (en) Device, method and graphic user interface used to move application interface element
WO2020006669A1 (en) Icon switching method, method for displaying gui, and electronic device
CN108780400A (en) Data processing method and electronic equipment
US20140365964A1 (en) Multiple panel touch user interface navigation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19793152

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19793152

Country of ref document: EP

Kind code of ref document: A1