WO2022057407A1 - Widget dislay method and electronic device - Google Patents

Widget dislay method and electronic device Download PDF

Info

Publication number
WO2022057407A1
WO2022057407A1 PCT/CN2021/105318 CN2021105318W WO2022057407A1 WO 2022057407 A1 WO2022057407 A1 WO 2022057407A1 CN 2021105318 W CN2021105318 W CN 2021105318W WO 2022057407 A1 WO2022057407 A1 WO 2022057407A1
Authority
WO
WIPO (PCT)
Prior art keywords
pendant
page
preset
location information
display
Prior art date
Application number
PCT/CN2021/105318
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 WO2022057407A1 publication Critical patent/WO2022057407A1/en

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present disclosure relates to the field of display technology, and in particular, to a pendant display method, an electronic device and a storage medium.
  • Displaying a page widget such as a floating window on the page of the application can provide a richer page display effect while implementing the corresponding interactive function.
  • the present disclosure provides a pendant display method, electronic device and storage medium.
  • a pendant display method including: acquiring pendant attribute information of a preset pendant in a current first page.
  • the pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status.
  • the display of the first page is switched to the second page.
  • preset widgets are displayed according to the widget attribute information.
  • the displaying the preset pendant according to the pendant attribute information on the second page includes: in the second page, in the position corresponding to the target location information, according to The pendant state displays the preset pendant; or, at the position corresponding to the target location information on the second page, continue to display the preset pendant with the pendant state as a starting point according to a preset display rule .
  • the pendant state includes a hidden state; wherein, on the second page, displaying the preset pendant according to the pendant state at a position corresponding to the target location information includes: In the second page, the preset pendant is hidden and displayed at the position corresponding to the target position information.
  • acquiring the widget attribute information of the preset widget in the current first page includes: in response to a page switching operation, acquiring the actual location information and display state of the preset widget in the current first page ; and determine that the target location information is the actual location information, and the pendant state includes a display state.
  • the displaying the preset widget on the second page according to the widget attribute information includes: creating the preset widget on the second page, and the preset widget
  • the initial position information of the pendant is the target position information; and on the second page, the preset pendant is displayed in the position corresponding to the target position information according to the pendant state.
  • the displaying, on the second page, the preset widget according to the widget attribute information includes: acquiring initial position information of the preset widget on the second page; The initial position information is updated to the target position information; and on the second page, the preset pendant is displayed in the position corresponding to the target position information according to the pendant state.
  • displaying the preset widget on the second page according to the widget attribute information includes: acquiring actual location information of the preset widget on the second page; After the actual location information is updated to the initial location information, the initial location information is updated to the target location information; and on the second page, the state of the pendant is displayed at the position corresponding to the target location information according to the state of the pendant.
  • the preset widget is displayed.
  • the pendant display method further includes: storing the pendant attribute information; after exiting the service on which the page displaying the preset pendant is displayed, and running the service again, according to the pendant attribute Information displays the preset pendant.
  • an electronic device including an acquisition unit, a processing unit, and a display unit.
  • the acquiring unit is configured to acquire the pendant attribute information of the preset pendant in the current first page.
  • the pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status.
  • the processing unit is configured to switch the display of the first page to the second page in response to the page switching operation acquired by the acquiring unit.
  • the display unit is configured to display the preset pendant on the second page according to the pendant attribute information acquired by the acquisition unit.
  • the display unit is further configured to, on the second page, display according to the status of the pendant acquired by the acquisition unit at a position corresponding to the target location information acquired by the acquisition unit the preset pendant; or, the display unit is further configured to, at the position corresponding to the target location information acquired by the acquisition unit of the second page, display the information by the acquisition unit according to a preset display rule The acquired state of the pendant is the starting point to continue displaying the preset pendant.
  • the pendant state includes a hidden state; the display unit is further configured on the second page to hide and display the preset at a position corresponding to the target location information acquired by the acquiring unit. Set up accessories.
  • the obtaining unit is further configured to obtain the actual location information and display state of the preset widget in the current first page in response to a page switching operation; the processing unit is further configured to determine a target The location information is the actual location information, and the pendant state includes a display state.
  • the processing unit is further configured to create the preset widget on the second page, and the initial position information of the preset widget is the target position information obtained by the obtaining unit;
  • the display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  • the obtaining unit is further configured to obtain initial position information of the preset widget in the second page; the processing unit is further configured to obtain the initial position information obtained by the obtaining unit The location information is updated to the target location information acquired by the acquiring unit; and the display unit is further configured to, on the second page, perform according to the desired location on the location corresponding to the target location information acquired by the acquiring unit.
  • the status of the pendant acquired by the acquiring unit displays the preset pendant.
  • the acquiring unit is further configured to acquire actual location information of the preset widget in the second page; the processing unit is further configured to acquire the actual location information acquired by the acquiring unit After the location information is updated to the initial location information, the initial location information is updated to the target location information acquired by the acquisition unit; The preset pendant is displayed at the position corresponding to the acquired target location information according to the pendant state acquired by the acquiring unit.
  • the electronic device further includes a storage unit; the storage unit is configured to store the attribute information of the pendant acquired by the acquisition unit; the display unit is configured to display the preset after exiting After the service of the page of the widget, when the service is run again, the preset widget is displayed according to the attribute information of the widget stored in the storage unit.
  • an electronic device comprising:
  • a processor a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the widget display method provided by the first aspect.
  • a computer-readable storage medium is provided, when the instructions in the storage medium are executed by the processor of the electronic device provided in the third aspect, the electronic device can execute the first aspect.
  • the pendant display method when the instructions in the storage medium are executed by the processor of the electronic device provided in the third aspect, the electronic device can execute the first aspect.
  • the pendant display method when the instructions in the storage medium are executed by the processor of the electronic device provided in the third aspect, the electronic device can execute the first aspect.
  • a computer program product including, when the computer program product runs on a computer, causing the computer to execute the pendant display method according to the design manner of the first aspect.
  • the pendant display method every time a page switching operation is received, the pendant attribute information of the preset pendant in the current first page is obtained, so that when the first page is switched to the display of the second page, the The preset pendant is displayed on the second page according to the pendant attribute information, so that each page displays the preset pendant according to the same pendant attribute information.
  • the page is displayed, there is no need to re-display the widget and then display the entire display change process in which the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
  • FIG. 1 is an architectural diagram of an implementation environment according to an exemplary embodiment.
  • Fig. 2 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram of a rectangular coordinate system in a pendant display method according to an exemplary embodiment.
  • Fig. 4 is an interaction diagram of a method for displaying widgets according to an exemplary embodiment.
  • Fig. 5 is an interaction diagram of a method for displaying widgets according to an exemplary embodiment.
  • Fig. 6 is an interaction diagram showing a method for displaying widgets according to an exemplary embodiment.
  • Fig. 7 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 8 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 9 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 10 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 11 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 12 is a flowchart showing a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 13 is a flowchart showing a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 14 is an interaction diagram showing a method for displaying widgets according to an exemplary embodiment.
  • Fig. 15 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
  • Fig. 16 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
  • Fig. 17 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
  • a widget is a widget that is a draggable widget.
  • the preset pendants provided by the embodiments of the present disclosure may be, but are not limited to, lottery pendants, advertisement pendants, activity pendants, and the like.
  • the lottery pendant can be triggered when the host or background manager sends live benefits to the viewers watching the live broadcast.
  • Clients with the corresponding live broadcast interface can display the lottery pendant, so that the audience can click the pendant to draw the lottery, thereby Attract other users to the live room.
  • FIG. 1 is an architecture diagram of an implementation environment according to an exemplary embodiment. As shown in FIG. 1 , the following display method can be applied to the implementation environment.
  • the implementation environment includes an electronic device 01 for publishing a work (eg, a short video), a server 02, and an electronic device 02 for a user to watch the work.
  • the electronic device 01 and the electronic device 02 establish a communication connection with the server 02 through the application program installed on the electronic device. After the electronic device 01 publishes the work through the server 02, the electronic device 02 can view the electronic device when accessing the server 02. 01 published work.
  • the server 02 may be a server, a server cluster composed of multiple servers, or a cloud computing service center.
  • Server 02 may include processors, memory, and network interfaces, among others.
  • the current terminal has a pendant hiding scheme: when the user operates the pendant, the pendant is hidden by the horizontal movement animation.
  • the widget When the user enters the next-level page, the widget still starts from the border of the upper-level page before the edge suction, and moves in translation to the inside of the screen. No matter which new page you enter, you will see a pan animation.
  • an embodiment of the present disclosure provides a pendant display method.
  • the pendant attribute information of the preset pendant in the current first page is obtained, so that the first page is switched to the first page.
  • the preset pendant is displayed on the second page according to the attribute information of the pendant, so that each page displays the preset pendant according to the same pendant attribute information, so that the user has operated to hide a certain pendant when switching pages.
  • the switched page is displayed, there is no need to re-display the widget and then display the entire display change process that the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
  • the specific implementation process is as follows:
  • the execution subject of the pendant display method provided by the embodiments of the present disclosure may be the above-mentioned electronic device, or may be a functional module and/or functional entity in a server capable of implementing the display method.
  • the examples are not limited.
  • the following is an exemplary description of the pendant display method provided by the embodiments of the present disclosure, taking the execution subject as an electronic device, and the electronic device adopts the Android operating system as an example.
  • Fig. 2 is a flowchart of a method for displaying a pendant according to an exemplary embodiment. As shown in Fig. 2 , the method includes S11-S13.
  • the electronic device acquires the pendant attribute information of the preset pendant in the current first page.
  • the pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status.
  • a coordinate system may be established on the electronic device, so that the target location information of the preset pendant on the first page may be determined.
  • a Cartesian coordinate system as shown in FIG. 3 is established.
  • the display screen of the electronic device is parallel to the horizontal plane, and the upper left corner of the display screen is selected as the coordinate origin (the upper left corner of the display screen of the electronic device as shown in FIG. 3 ), and a rectangular coordinate system parallel to the display screen is established. .
  • the widget state includes any one of a hidden state, a non-hidden state, a partially hidden state, or a preset display rule.
  • the first page shown in b in Figure 4 is displayed.
  • the hidden pendant also called icon, "X" as shown in b in Figure 4
  • the first page after hiding the preset pendant is as follows: shown in c in Figure 4.
  • the state of the pendant as a partially hidden state as an example, as shown in a in Figure 5, after the user clicks on the application, the first page shown in b in Figure 5 is displayed. After the hidden pendant of the preset pendant is hidden, the hidden preset pendant is at the position shown in c in FIG. 5 .
  • the state of the pendant as a partially hidden state as an example, as shown in d in Figure 5, after the user clicks on the application, the first page shown in e in Figure 5 is displayed. At this time, when the user clicks After the preset pendant is hidden, the hidden preset pendant (at this time, the display form of the preset pendant is switched from the first form (circle as shown in e in Figure 5) to the second form (f in Figure 5). The rectangle shown)) is in the position shown by f in Figure 5.
  • the first page shown in b in Figure 6 is displayed, and the preset The widget also displays a progress bar displayed according to the preset display rules.
  • the first page is switched to the second page as shown in c in FIG. 6
  • the progress bar displayed by the preset pendant in the first page according to the preset display rules is The starting point continues to be displayed.
  • the second page is switched to the third page as shown in d in FIG. 6
  • the progress bar is displayed on the second page according to the preset display rules with the preset pendant. Continue to display for the starting point.
  • the electronic device switches the display of the first page to the second page in response to the page switching operation.
  • the electronic device displays a preset pendant on the second page according to the pendant attribute information.
  • the pendant attribute information of the preset pendant in the current first page is obtained, so as to switch the first page to the second page.
  • the preset pendant is displayed on the second page according to the attribute information of the pendant, so that each page displayed on the electronic device displays the preset pendant according to the same attribute information of the pendant, so that the user has already operated and hidden when switching pages.
  • a certain widget is displayed, when the switched page is displayed, there is no need to re-display the widget and then display the entire display change process that the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
  • S13 may be implemented by the following S130.
  • the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
  • the pendant display method when the user switches the first page to the second page display by performing a page switching operation on the electronic device, in the second page, the corresponding target location information is displayed on the second page.
  • the preset pendant is displayed according to the pendant state in the position, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to re-display the pendant and then display the entire display change process that the pendant is hidden. Page display efficiency, get better page display effect.
  • S13 may be implemented by the following S131.
  • the electronic device continues to display the preset pendant at the position corresponding to the target location information on the second page according to the preset display rule with the pendant state as the starting point.
  • the preset pendant is displayed according to the preset display rules, and when the user performs a page switching operation on the electronic device, the first page is switched to the second page at this time.
  • the electronic device continues to display the preset pendant at the position corresponding to the target location information of the second page according to the preset display rules, with the pendant state as the starting point, so that after the user has operated to hide a pendant in the switching page,
  • the switched page is displayed, there is no need to re-display the widget and then display the entire display change process in which the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
  • the pendant state includes a hidden state.
  • S13 may be implemented by the following S132.
  • the electronic device hides and displays the preset pendant at the position corresponding to the target position information on the second page.
  • the electronic device hides and displays the preset pendant at the position corresponding to the target location information on the second page, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to display the preset pendant. Redisplay the widget and then display the entire display change process in which the widget is hidden, improve page display efficiency, and obtain better page display effects.
  • S13 may be implemented by the following S133 and S134.
  • the electronic device acquires the actual position information and display state of the preset pendant in the current first page.
  • the display state includes any one of a hidden state, a non-hidden state, a partially hidden state, or a preset display rule.
  • the electronic device determines that the target location information is the actual location information, and the pendant state includes the display state.
  • the electronic device in response to the page switching operation, acquires the actual location information and display state of the preset pendant in the current first page, so as to determine the target location information as the actual location information.
  • the pendant state includes the display state.
  • the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page, so that the user has operated to hide a certain pendant in the switching page.
  • a widget is displayed, when the switched page is displayed, it is not necessary to re-display the widget and then display the entire display change process that the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
  • S13 may be implemented by the following S135 and S136.
  • the electronic device creates a preset pendant on the second page, and the initial location information of the preset pendant is target location information.
  • the application needs to create a preset widget on each page, and the newly created preset widget is at the initial stage location information.
  • the application needs to create a preset widget on each page, and each preset widget is located in the upper left corner of the page by default (the The initial position of the preset pendant in this coordinate system is (X, Y).
  • the feature point on the preset pendant can be selected as the initial position, (such as the left vertex of the preset pendant, or the center position of the preset pendant) .
  • the preset pendant is hidden according to the preset hiding ratio (for example, the preset pendant is shifted to the left by 90px), so that the preset pendant is hidden on the first page.
  • the preset pendant After the preset pendant is hidden in , only a part of the preset pendant is displayed on the first page. At this time, when switching from the first page to the second page, a preset pendant needs to be created on the second page first, and the preset pendant is The initial position on the second page is (X, Y). Since the target position information of the hidden preset pendant is different from the initial position information of the pre-hidden preset pendant, in order to ensure that the preset pendant is displayed on the second page If the location does not change, the initial location information of the preset pendant on the second page needs to be updated to the target location information.
  • the state of the pendant is a partially hidden state and is hidden by suction.
  • the user clicks a preset pendant on the first page (assuming the initial position information is (0, 0))
  • the electronic device uses the ObjectAnimator property animation to perform translation animation with TranslationX.
  • startTranslationX is 0, and if it moves left by 90px, then endTranslationX is -90px. 90px is hidden in the screen.
  • the preset pendant is displayed on the second page according to the position identified by the target position information of the hidden preset pendant in the first page, so that the mobile animation does not need to be played again, so that the pendant is hidden and the user's safety is guaranteed.
  • YFloatPosition is the height of the widget dragged by the user from the upper left corner origin (0, 0), so the target position information of the hidden preset widget in the first page is (-90px, 0).
  • the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
  • the initial position information of the newly created preset pendant is the initial position information
  • the initial position information may be different from the target position information, so that the page switching operation is received and the display is switched from the first page to the second page.
  • the actual displayed location information of the preset pendant is different. Therefore, in the pendant display method provided by the embodiment of the present disclosure, by updating the initial position information of the newly created preset pendant to the target position information, when the first page is switched to display the second page, the electronic device is displayed on the second page.
  • the preset pendant is displayed according to the pendant state at the position corresponding to the target location information, so that after the user has operated to hide a pendant in the switching page, when the page after switching is displayed, there is no need to re-display the pendant and then show that the pendant is displayed.
  • the entire display change process is hidden, which improves the page display efficiency and obtains a better page display effect.
  • S13 may be implemented by the following S136-S138.
  • the electronic device acquires initial position information of the preset pendant in the second page.
  • the second page is a page before the first page.
  • the location information of the preset pendant is the initial location information.
  • the electronic device updates the initial location information to the target location information.
  • the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
  • the location information of the preset pendant is the initial position information, when switching the display of the first page to the second page, in order to ensure that the preset pendant is displayed.
  • the position displayed on the second page does not change.
  • the pendant display method by updating the initial position information of the newly created preset pendant to the target position information, so that when the first page is switched to the second page display, the electronic device is in the second page, in the second page
  • the preset pendant is displayed according to the pendant state at the position corresponding to the target location information, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to re-display the pendant and then display the entire hidden pendant. Display the change process, improve the page display efficiency, and obtain a better page display effect.
  • S13 may be implemented by the following S136 , S139 and S140 .
  • the electronic device acquires actual location information of the preset pendant on the second page.
  • the second page is a page before the first page.
  • the location information of the preset pendant is not the initial location information, so
  • the actual location information of the preset pendant on the second page needs to be updated to the target location information.
  • the electronic device after updating the actual location information to the initial location information, the electronic device updates the initial location information to the target location information.
  • the first page shown in b in FIG. 14 is displayed.
  • the user clicks a preset pendant this time After the preset pendant fully displays its own hidden pendant, the hidden preset pendant is in the position shown by c in Figure 14.
  • a custom View widget ie, a preset widget
  • Its position information is the target position information (-90px, 0) of the hidden preset widget in the first page.
  • the user drags the preset pendant from the left side of the screen to the right side of the screen as shown in d in Figure 14 and e in Figure 14, but it is not hidden. .
  • the work details page needs to create a new custom form View pendant.
  • the user has dragged the preset pendant to the right side of the screen, so the initial position of the preset pendant in the work details page is (846px, YFloatPosition), because only It involves translation in the X-axis direction, so the initial position of the preset pendant in the work details page is (846px, 0).
  • 846px is the screen width of 1080px minus the default widget's own width of 234px.
  • the user wants to hide the preset pendant on the right side of the screen on the work details page, as shown in f in Figure 14, so after clicking the hidden pendant of the preset pendant, the ObjectAnimator property animation is used to translate with TranslationX.
  • the ObjectAnimator property animation is used to translate with TranslationX.
  • startTranslationX is 846px
  • the preset pendant as shown in g in Figure 14 will hide the 101px on the right side of itself on the screen.
  • the hidden preset pendant is the target of the work details page.
  • the position information is (947px, YFloatPosition). Since only the movement in the X-axis direction is involved here, and the movement in the Y-axis direction is not involved, the target position information of the hidden preset pendant in the work details page is (947px, 0).
  • the location information of the preset pendant is consistent with the location information on the work details page when the user enters the first page and the author information page
  • the location information of the preset pendant on the first page and the author information page needs to be updated as The target location information (947px, 0) of the hidden preset pendant in the work details page, so that the preset pendant on the first page and the author information page will follow the target of the hidden preset pendant in the work details page.
  • the preset widget is displayed at the position identified by the position information (947px, 0).
  • the pendant display method provided by the embodiment of the present disclosure only uses LayoutParams as the only dimension to update the position of the pendant, so the distance of TranslationX can be reset before updating LayoutParams.
  • the specific method is to set TranslationX to 0.
  • the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
  • the preset pendant is pre-created in the second page, and the location information of the preset pendant is not the initial location information, when switching the display of the first page to the second page, in order to ensure that the preset pendant is displayed.
  • the position displayed on the second page does not change.
  • the pendant display method by updating the actual location information of the newly created preset pendant to the target location information, when switching the display of the first page to the second page, the electronic device is in the second page, and the electronic device is in the second page.
  • the preset pendant is displayed according to the pendant state at the position corresponding to the target location information, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to re-display the pendant and then display the entire hidden pendant. Display the change process, improve the page display efficiency, and obtain a better page display effect.
  • the pendant display method provided by the embodiment of the present disclosure further includes S15 and S16.
  • the electronic device stores the pendant attribute information.
  • the display state of the preset widget is the same as the display state before killing the application. Therefore, the pendant attribute information is preset and stored on the electronic device, so that when the user opens the application program again, the preset pendant can be displayed according to the pendant attribute information according to the pre-stored pendant attribute information.
  • the pendant attribute information is stored in the server 02, and when the user opens the application, the user interacts with the server 02 through signaling, so as to display the preset pendant according to the pendant attribute information stored in the server 02, thereby ensuring that the user opens the application again.
  • the widget attribute information displayed by the preset widget when the application is applied is the same as the widget attribute information displayed by the preset widget before the user closes the application.
  • the electronic device displays the preset pendant according to the pendant attribute information under the condition of running the service again after exiting the service of the page displaying the preset pendant.
  • the electronic device after the electronic device exits the service of the page displaying the preset pendant, in order to ensure that the service is run again, it still follows the method of exiting the page displaying the preset pendant.
  • the preset pendant by pre-storing pendant attribute information, the preset pendant can be displayed according to the pre-stored pendant attribute information when the service is run again after exiting the service on the page displaying the preset pendant , which ensures the uniformity of the display and facilitates the user experience.
  • Fig. 16 is a block diagram of an electronic device according to an exemplary embodiment.
  • the electronic device 10 includes an acquisition unit 101 , a processing unit 102 and a display unit 103 .
  • the acquiring unit is configured to acquire the pendant attribute information of the preset pendant in the current first page.
  • the pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status.
  • the processing unit is configured to switch the display of the first page to the second page in response to the page switching operation acquired by the acquiring unit.
  • the display unit is configured to display the preset pendant on the second page according to the pendant attribute information acquired by the acquisition unit.
  • the display unit is further configured to display the preset widget according to the status of the widget obtained by the obtaining unit at the position corresponding to the target location information obtained by the obtaining unit on the second page.
  • the display unit is further configured to continue to display the preset pendant at the position corresponding to the target location information acquired by the acquisition unit of the second page according to a preset display rule, starting from the pendant state acquired by the acquisition unit.
  • the pendant state includes a hidden state.
  • the display unit is further configured on the second page to hide and display the preset pendant at a position corresponding to the target location information acquired by the acquiring unit.
  • the obtaining unit is further configured to obtain the actual position information and display state of the preset widget in the current first page in response to the page switching operation.
  • the processing unit is further configured to determine that the target location information is actual location information, and the pendant state includes a display state.
  • the processing unit is further configured to create a preset widget on the second page, and the initial position information of the preset widget is the target position information obtained by the obtaining unit.
  • the display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  • the obtaining unit is further configured to obtain initial position information of the preset widget in the second page.
  • the processing unit is further configured to update the initial location information acquired by the acquiring unit to the target location information acquired by the acquiring unit.
  • the display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  • the acquiring unit is further configured to acquire actual location information of the preset widget in the second page.
  • the processing unit is further configured to update the initial location information to the target location information acquired by the acquiring unit after updating the actual location information acquired by the acquiring unit to the initial location information.
  • the display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  • the electronic device further includes a storage unit configured to store the attribute information of the pendant acquired by the acquisition unit.
  • the display unit is further configured to display the preset pendant according to the pendant attribute information stored in the storage unit under the condition of running the service again after exiting the service on the page displaying the preset pendant.
  • Fig. 17 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
  • Electronic devices include but are not limited to mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, and pedometers.
  • the electronic device includes but is not limited to: a processor 101, a memory 102, a display 103, an input unit 104, an output unit 105, a network unit 106, an interface unit 107, a radio frequency unit 108, a power supply 109, a sensor 110, and the like.
  • FIG. 17 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in FIG. 17 , or combinations thereof certain components, or different component arrangements.
  • the interface unit 107 is configured to, in response to the page switching operation input by the input unit 104, acquire the widget attribute information of the preset widget in the current first page.
  • the processor 101 is configured to switch the display of the first page to the second page in response to the page switching operation input by the input unit 104 .
  • the display 103 is configured to display a preset widget in the second page according to the attribute information of the widget acquired by the interface unit 107 .
  • the memory 102 is used to store the attribute information of the pendant acquired by the interface unit 107 .
  • the above electronic device can implement each process implemented by the electronic device in the above method embodiments, and can achieve the same technical effect. To avoid repetition, the detailed description is not repeated here.
  • the processor 101 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 102, and calling the data stored in the memory 102. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole.
  • the processor 101 may include one or more processing units; optionally, the processor 101 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages, application programs, etc., and the modem
  • the modulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 101 .
  • the memory 102 may be used to store software programs as well as various data.
  • the memory 102 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc.
  • memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the display 103 is used to display information input by the user or information provided to the user.
  • the display 103 may include a display panel, and the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), and the like.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the input unit 104 may be used to receive audio or video signals.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) and a microphone, and the graphics processor processes image data of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode .
  • the processed image frames can be displayed on the display 103 .
  • the image frames processed by the graphics processor may be stored in the memory 102 (or other storage medium) or transmitted via the radio frequency unit 108 or the network unit 106 .
  • the microphone can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 108 for output in the case of a telephone call mode.
  • the input unit 104 may be a user input unit, and may be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the electronic device.
  • the user input unit includes a touch panel and other input devices.
  • a touch panel also known as a touch screen, collects user touch operations on or near it (such as a user's operations on or near the touch panel using a finger, stylus, or any suitable object or accessory).
  • the touch panel may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch panel can be realized by various types of resistive, capacitive, infrared, and surface acoustic waves.
  • the user input unit may also include other input devices. Specifically, other input devices may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • the touch panel can be overlaid on the display panel.
  • the touch panel detects a touch operation on or near it, it transmits it to the processor 101 to determine the type of the touch event, and then the processor 101 determines the type of the touch event according to the type of the touch event.
  • the processor 101 determines the type of the touch event according to the type of the touch event.
  • the touch panel and the display panel 1061 can be used as two independent components to realize the input and output functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device, which are not limited here. .
  • the output unit 105 may be an audio output unit, which may convert audio data received by the radio frequency unit 108 or the network unit 106 or stored in the memory 102 into audio signals and output as sound. Also, the audio output unit may also provide audio output related to a specific function performed by the electronic device (eg, call signal reception sound, message reception sound, etc.).
  • the audio output unit includes speakers, buzzers, and receivers.
  • the electronic device provides the user with wireless broadband Internet access through the network unit 106, such as helping the user to send and receive emails, browse the web, access streaming media, and the like.
  • the interface unit 107 is an interface for connecting an external device to an electronic device.
  • external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more.
  • the interface unit 107 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device or may be used to interface between the electronic device and the external device. transfer data between.
  • the radio frequency unit 108 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving downlink data from the base station, it is processed by the processor 101; in addition, it sends the uplink data to the base station.
  • the radio frequency unit 108 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 108 can also communicate with the network and other devices through a wireless communication system.
  • the power supply 109 (such as a battery) can be used to supply power to various components.
  • the power supply 109 can be logically connected to the processor 101 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
  • the sensor 110 may include at least one of a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor can turn off the display panel and/or the backlight when the electronic device is moved to the ear .
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 110 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.
  • the electronic device includes some unshown functional modules (for example, a camera), and details are not described herein again.
  • an embodiment of the present disclosure further provides a storage medium including instructions, for example, a memory 102 including instructions, and the above-mentioned instructions can be executed by the processor 101 of the electronic device to complete the above-mentioned method.
  • the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices, etc.
  • an embodiment of the present disclosure also provides a computer program product including one or more instructions, which can be executed by the processor 101 of the electronic device to complete the above method.
  • the functions implemented by the acquisition unit 101 in the electronic device are the same as those of the interface unit 107 in FIG. 17
  • the functions implemented by the processing unit 102 are the same as those of the processor 101 in FIG. 17
  • the function realized by 103 is the same as that of the display 103 in FIG. 17
  • the function realized by the storage unit 104 is the same as that of the memory 102 in FIG. 17 .
  • Another embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on the computer, the computer is made to execute the method shown in the above method embodiments.
  • the disclosed methods may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of manufacture.
  • an embodiment of the present disclosure further provides a storage medium including instructions, such as a memory 102 including instructions, and the above-mentioned instructions can be executed by the processor 101 of the electronic device 10 to complete the above-mentioned method.
  • the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices, etc.
  • an embodiment of the present disclosure also provides a computer program product including one or more instructions, which can be executed by the processor 101 of the electronic device 10 to accomplish the above method.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present invention are essentially or contribute to the prior art, or all or part of the technical solutions may be embodied in the form of software products, and the software products are stored in a storage medium Among them, several instructions are included to cause a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.

Landscapes

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

Abstract

A widget display method and an electronic device, relating to the technical field of display. The display method comprises: obtaining widget attribute information of a preset widget in the current first page, wherein the widget attribute information at least comprises target position information of the preset widget in the first page and a widget state; in response to a page switching operation, switching the first page to be a second page for display; and in the second page, displaying the preset widget according to the widget attribute information.

Description

挂件显示方法和电子设备Pendant display method and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2020年9月16日递交的中国专利申请202010977163.0的优先权,在此全文引用上述中国专利申请公开的内容以作为本申请的一部分。This application claims the priority of Chinese patent application 202010977163.0 filed on September 16, 2020. The contents disclosed in the above Chinese patent application are hereby cited in their entirety as a part of this application.
技术领域technical field
本公开涉及显示技术领域,尤其涉及一种挂件显示方法、电子设备和存储介质。The present disclosure relates to the field of display technology, and in particular, to a pendant display method, an electronic device and a storage medium.
背景技术Background technique
在应用程序的页面上显示例如悬浮窗这样页面挂件,可以在实现对应的交互功能之余提供更为丰富的页面显示效果。Displaying a page widget such as a floating window on the page of the application can provide a richer page display effect while implementing the corresponding interactive function.
发明内容SUMMARY OF THE INVENTION
本公开提供一种挂件显示方法、电子设备和存储介质。The present disclosure provides a pendant display method, electronic device and storage medium.
本公开的技术方案如下:The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种挂件显示方法,包括:获取当前的第一页面中预设挂件的挂件属性信息。其中,挂件属性信息至少包括预设挂件在第一页面中的目标位置信息以及挂件状态。响应于页面切换操作,将第一页面切换为第二页面显示。在第二页面中,根据挂件属性信息显示预设挂件。According to a first aspect of the embodiments of the present disclosure, there is provided a pendant display method, including: acquiring pendant attribute information of a preset pendant in a current first page. The pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status. In response to the page switching operation, the display of the first page is switched to the second page. On the second page, preset widgets are displayed according to the widget attribute information.
在一些实施例中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件;或者,在所述第二页面的所述目标位置信息对应的位置上,按照预设的显示规则以所述挂件状态为起点继续显示所述预设挂件。In some embodiments, the displaying the preset pendant according to the pendant attribute information on the second page includes: in the second page, in the position corresponding to the target location information, according to The pendant state displays the preset pendant; or, at the position corresponding to the target location information on the second page, continue to display the preset pendant with the pendant state as a starting point according to a preset display rule .
在一些实施例中,所述挂件状态包括隐藏状态;其中,在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件,包括:在所述第二页面中,在所述目标位置信息对应的位置上隐藏显示所述预设挂件。In some embodiments, the pendant state includes a hidden state; wherein, on the second page, displaying the preset pendant according to the pendant state at a position corresponding to the target location information includes: In the second page, the preset pendant is hidden and displayed at the position corresponding to the target position information.
在一些实施例中,所述获取当前的第一页面中预设挂件的挂件属性信息,包括:响应于页面切换操作,获取当前的第一页面中所述预设挂件的实际位置信息和显示状态;以及确定目标位置信息为所述实际位置信息,所述挂件状态包括显示状态。In some embodiments, acquiring the widget attribute information of the preset widget in the current first page includes: in response to a page switching operation, acquiring the actual location information and display state of the preset widget in the current first page ; and determine that the target location information is the actual location information, and the pendant state includes a display state.
在一些实施例中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:在所述第二页面中创建所述预设挂件,且所述预设挂件的初始位置信息为所述目标位置信息;以及在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。In some embodiments, the displaying the preset widget on the second page according to the widget attribute information includes: creating the preset widget on the second page, and the preset widget The initial position information of the pendant is the target position information; and on the second page, the preset pendant is displayed in the position corresponding to the target position information according to the pendant state.
在一些实施例中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:获取所述预设挂件在所述第二页面中的初始位置信息;将所述初始位置信息更新为所述目标位置信息;以及在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。In some embodiments, the displaying, on the second page, the preset widget according to the widget attribute information includes: acquiring initial position information of the preset widget on the second page; The initial position information is updated to the target position information; and on the second page, the preset pendant is displayed in the position corresponding to the target position information according to the pendant state.
在一些实施例中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:获取所述预设挂件在所述第二页面中的实际位置信息;将所述实际位置信息更新为初始位置信息后,将所述初始位置信息更新为所述目标位置信息;以及在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。In some embodiments, displaying the preset widget on the second page according to the widget attribute information includes: acquiring actual location information of the preset widget on the second page; After the actual location information is updated to the initial location information, the initial location information is updated to the target location information; and on the second page, the state of the pendant is displayed at the position corresponding to the target location information according to the state of the pendant. The preset widget is displayed.
在一些实施例中,所述挂件显示方法还包括:存储所述挂件属性信息;在退出显示有所述预设挂件的页面的服务后,再次运行所述服务的情况下,按照所述挂件属性信息显示所述预设挂件。In some embodiments, the pendant display method further includes: storing the pendant attribute information; after exiting the service on which the page displaying the preset pendant is displayed, and running the service again, according to the pendant attribute Information displays the preset pendant.
根据本公开实施例的第二方面,提供一种电子设备,包括获取单元、处理单元和显示单元。According to a second aspect of the embodiments of the present disclosure, there is provided an electronic device including an acquisition unit, a processing unit, and a display unit.
获取单元,被配置为获取当前的第一页面中预设挂件的挂件属性信息。其中,挂件属性信息至少包括预设挂件在第一页面中的目标位置信息以及挂件状态。处理单元,被配置为响应于获取单元获取的页面切换操作,将第一页面切换为第二页面显示。显示单元,被配置为在第二页面中,根据获取单元获取的挂件属性信息显示预设挂件。The acquiring unit is configured to acquire the pendant attribute information of the preset pendant in the current first page. The pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status. The processing unit is configured to switch the display of the first page to the second page in response to the page switching operation acquired by the acquiring unit. The display unit is configured to display the preset pendant on the second page according to the pendant attribute information acquired by the acquisition unit.
在一些实施例中,所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件;或者,所述显示单元还被配置为在所述第二页面的所述获取单元获取的所述目标位置信息对应的位置上,按照预设的显示规则以所述获取单元获取的所述挂件状态为起点继续显示所述预设挂件。In some embodiments, the display unit is further configured to, on the second page, display according to the status of the pendant acquired by the acquisition unit at a position corresponding to the target location information acquired by the acquisition unit the preset pendant; or, the display unit is further configured to, at the position corresponding to the target location information acquired by the acquisition unit of the second page, display the information by the acquisition unit according to a preset display rule The acquired state of the pendant is the starting point to continue displaying the preset pendant.
在一些实施例中,所述挂件状态包括隐藏状态;所述显示单元还被配置在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上隐藏显示所述预设挂件。In some embodiments, the pendant state includes a hidden state; the display unit is further configured on the second page to hide and display the preset at a position corresponding to the target location information acquired by the acquiring unit. Set up accessories.
在一些实施例中,所述获取单元还被配置为响应于页面切换操作,获取当前的第一页面中所述预设挂件的实际位置信息和显示状态;所述处理单元还被配置为确定目标位置信息为所述实际位置信息,所述挂件状态包括显示状态。In some embodiments, the obtaining unit is further configured to obtain the actual location information and display state of the preset widget in the current first page in response to a page switching operation; the processing unit is further configured to determine a target The location information is the actual location information, and the pendant state includes a display state.
在一些实施例中,所述处理单元还被配置在所述第二页面中创建所述预设挂件,且所述预设挂件的初始位置信息为所述获取单元获取的所述目标位置信息;所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件。In some embodiments, the processing unit is further configured to create the preset widget on the second page, and the initial position information of the preset widget is the target position information obtained by the obtaining unit; The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
在一些实施例中,所述获取单元还被配置为获取所述预设挂件在所述第二页面中的初始位置信息;所述处理单元还被配置为将所述获取单元获取的所述初始位置信息更新为所述获取单元获取的所述目标位置信息;所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状 态显示所述预设挂件。In some embodiments, the obtaining unit is further configured to obtain initial position information of the preset widget in the second page; the processing unit is further configured to obtain the initial position information obtained by the obtaining unit The location information is updated to the target location information acquired by the acquiring unit; and the display unit is further configured to, on the second page, perform according to the desired location on the location corresponding to the target location information acquired by the acquiring unit. The status of the pendant acquired by the acquiring unit displays the preset pendant.
在一些实施例中,所述获取单元还被配置为获取所述预设挂件在所述第二页面中的实际位置信息;所述处理单元还被配置为将所述获取单元获取的所述实际位置信息更新为初始位置信息后,将所述初始位置信息更新为所述获取单元获取的所述目标位置信息;所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件。In some embodiments, the acquiring unit is further configured to acquire actual location information of the preset widget in the second page; the processing unit is further configured to acquire the actual location information acquired by the acquiring unit After the location information is updated to the initial location information, the initial location information is updated to the target location information acquired by the acquisition unit; The preset pendant is displayed at the position corresponding to the acquired target location information according to the pendant state acquired by the acquiring unit.
在一些实施例中,所述电子设备还包括存储单元;所述存储单元被配置为存储所述获取单元获取的所述挂件属性信息;所述显示单元被配置为在退出显示有所述预设挂件的页面的服务后,再次运行所述服务的情况下,按照所述存储单元存储的所述挂件属性信息显示所述预设挂件。In some embodiments, the electronic device further includes a storage unit; the storage unit is configured to store the attribute information of the pendant acquired by the acquisition unit; the display unit is configured to display the preset after exiting After the service of the page of the widget, when the service is run again, the preset widget is displayed according to the attribute information of the widget stored in the storage unit.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising:
处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现第一方面提供的挂件显示方法。a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the widget display method provided by the first aspect.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,当所述存储介质中的指令由第三方面提供的电子设备的处理器执行时,使得电子设备能够执行第一方面提供的挂件显示方法。According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, when the instructions in the storage medium are executed by the processor of the electronic device provided in the third aspect, the electronic device can execute the first aspect. The pendant display method.
根据本公开实施例的第五方面,提供一种计算机程序产品,包括,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面的设计方式所述的挂件显示方法。According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, including, when the computer program product runs on a computer, causing the computer to execute the pendant display method according to the design manner of the first aspect.
本公开的实施例提供的技术方案至少带来以下有益效果:The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
本公开实施例提供的挂件显示方法,每次在接收到页面切换操作时,通过获取当前的第一页面中预设挂件的挂件属性信息,从而在第一页面切换为第二页面显示时,该预设挂件按照该挂件属性信息在第二页面中显示,使得每个页面均按照同一个挂件属性信息显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。In the pendant display method provided by the embodiment of the present disclosure, every time a page switching operation is received, the pendant attribute information of the preset pendant in the current first page is obtained, so that when the first page is switched to the display of the second page, the The preset pendant is displayed on the second page according to the pendant attribute information, so that each page displays the preset pendant according to the same pendant attribute information. When the page is displayed, there is no need to re-display the widget and then display the entire display change process in which the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据示例性实施例示出的一种实施环境的架构图。FIG. 1 is an architectural diagram of an implementation environment according to an exemplary embodiment.
图2是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 2 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图3是根据示例性实施例示出的一种挂件显示方法中直角坐标系的示意图。Fig. 3 is a schematic diagram of a rectangular coordinate system in a pendant display method according to an exemplary embodiment.
图4是根据示例性实施例示出的一种挂件显示方法的交互图。Fig. 4 is an interaction diagram of a method for displaying widgets according to an exemplary embodiment.
图5是根据示例性实施例示出的一种挂件显示方法的交互图。Fig. 5 is an interaction diagram of a method for displaying widgets according to an exemplary embodiment.
图6是根据示例性实施例示出的一种挂件显示方法的交互图。Fig. 6 is an interaction diagram showing a method for displaying widgets according to an exemplary embodiment.
图7是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 7 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图8是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 8 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图9是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 9 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图10是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 10 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图11是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 11 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图12是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 12 is a flowchart showing a method for displaying a pendant according to an exemplary embodiment.
图13是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 13 is a flowchart showing a method for displaying a pendant according to an exemplary embodiment.
图14是根据示例性实施例示出的一种挂件显示方法的交互图。Fig. 14 is an interaction diagram showing a method for displaying widgets according to an exemplary embodiment.
图15是根据示例性实施例示出的一种挂件显示方法的流程图。Fig. 15 is a flow chart of a method for displaying a pendant according to an exemplary embodiment.
图16是根据示例性实施例示出的一种电子设备的结构示意图。Fig. 16 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
图17是根据示例性实施例示出的一种电子设备的结构示意图。Fig. 17 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
具体实施方式detailed description
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
挂件是挂件是一个可拖拽的微件Widget。A widget is a widget that is a draggable widget.
示例性的,本公开实施例提供的预设挂件可以为,但不限于抽奖挂件、广告挂件、活动挂件等。例如,抽奖挂件可以是在主播或后台管理者在向观看直播的观众发送直播福利时触发,开启有对应直播界面的客户端均可以对抽奖挂件进行展示,使得观众可以通过点击挂件进行抽奖,从而吸引其他用户进入该直播间。Exemplarily, the preset pendants provided by the embodiments of the present disclosure may be, but are not limited to, lottery pendants, advertisement pendants, activity pendants, and the like. For example, the lottery pendant can be triggered when the host or background manager sends live benefits to the viewers watching the live broadcast. Clients with the corresponding live broadcast interface can display the lottery pendant, so that the audience can click the pendant to draw the lottery, thereby Attract other users to the live room.
图1是根据示例性实施例示出的一种实施环境的架构图,如图1所示,下述显示方法可以应用于该实施环境中。该实施环境包括用于发表作品(如短视频)的电子设备01、服务器02以及用户观看作品的电子设备02。其中,电子设备01和电子设备02通过安装在电子设备上的应用程序与服务器02建立通信连接,当电子设备01通过服务器02发表了作品后,电子设备02在访问服务器02时可查看到电子设备01发表的作品。FIG. 1 is an architecture diagram of an implementation environment according to an exemplary embodiment. As shown in FIG. 1 , the following display method can be applied to the implementation environment. The implementation environment includes an electronic device 01 for publishing a work (eg, a short video), a server 02, and an electronic device 02 for a user to watch the work. Among them, the electronic device 01 and the electronic device 02 establish a communication connection with the server 02 through the application program installed on the electronic device. After the electronic device 01 publishes the work through the server 02, the electronic device 02 can view the electronic device when accessing the server 02. 01 published work.
在一些实施例中,服务器02可以是一台服务器,也可以是由多台服务器组成的服务 器集群,或者是一个云计算服务中心。服务器02可以包括处理器、存储器以及网络接口等。In some embodiments, the server 02 may be a server, a server cluster composed of multiple servers, or a cloud computing service center. Server 02 may include processors, memory, and network interfaces, among others.
当前终端有一种挂件的隐藏方案:用户在操作挂件时,挂件通过水平移动动画进行吸边隐藏。当用户进入下一级页面时,挂件仍然从上级页面吸边前的边界开始,往屏幕内侧平移移动。不管进入哪个新页面,都会看到一次平移动画。The current terminal has a pendant hiding scheme: when the user operates the pendant, the pendant is hidden by the horizontal movement animation. When the user enters the next-level page, the widget still starts from the border of the upper-level page before the edge suction, and moves in translation to the inside of the screen. No matter which new page you enter, you will see a pan animation.
基于此,本公开的实施例提供一种挂件显示方法中,每次在接收到页面切换操作时,通过获取当前的第一页面中预设挂件的挂件属性信息,从而在第一页面切换为第二页面显示时,该预设挂件按照该挂件属性信息在第二页面中显示,使得每个页面均按照同一个挂件属性信息显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果,具体的实现过程如下:Based on this, an embodiment of the present disclosure provides a pendant display method. Each time a page switching operation is received, the pendant attribute information of the preset pendant in the current first page is obtained, so that the first page is switched to the first page. When two pages are displayed, the preset pendant is displayed on the second page according to the attribute information of the pendant, so that each page displays the preset pendant according to the same pendant attribute information, so that the user has operated to hide a certain pendant when switching pages. Then, when the switched page is displayed, there is no need to re-display the widget and then display the entire display change process that the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect. The specific implementation process is as follows:
本公开的实施例提供的挂件显示方法的执行主体可以为上述的电子设备,也可以为服务器中能够实现该显示方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本公开的实施例不作限定。下面以执行主体为电子设备,并且该电子设备采用安卓Android操作系统为例,对本公开的实施例提供的挂件显示方法进行示例性的说明。The execution subject of the pendant display method provided by the embodiments of the present disclosure may be the above-mentioned electronic device, or may be a functional module and/or functional entity in a server capable of implementing the display method. The examples are not limited. The following is an exemplary description of the pendant display method provided by the embodiments of the present disclosure, taking the execution subject as an electronic device, and the electronic device adopts the Android operating system as an example.
本领域技术人员应能理解上述电子设备和服务器仅为举例,其他现有的或今后可能出现的电子设备或服务器如可适用于本公开,也应包含在本公开保护范围以内,并在此以引用方式包含于此。Those skilled in the art should understand that the above-mentioned electronic devices and servers are only examples. If other existing or future electronic devices or servers are applicable to the present disclosure, they should also be included in the protection scope of the present disclosure, and hereby refer to References are included here.
下面结合各个附图对本公开实施例提供的挂件显示方法进行示例性的说明。The method for displaying a pendant provided by an embodiment of the present disclosure will be exemplarily described below with reference to the accompanying drawings.
图2是根据示例性实施例示出的一种挂件显示方法的流程图,如图2所示,包括S11-S13。Fig. 2 is a flowchart of a method for displaying a pendant according to an exemplary embodiment. As shown in Fig. 2 , the method includes S11-S13.
在S11中,电子设备获取当前的第一页面中预设挂件的挂件属性信息。其中,挂件属性信息至少包括预设挂件在第一页面中的目标位置信息以及挂件状态。In S11, the electronic device acquires the pendant attribute information of the preset pendant in the current first page. The pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status.
在一些实施例中,在确定目标位置信息时,可以通过在电子设备上建立坐标系,从而可以确定预设挂件在第一页面中的目标位置信息。In some embodiments, when the target location information is determined, a coordinate system may be established on the electronic device, so that the target location information of the preset pendant on the first page may be determined.
示例性的,建立如图3所示的直角坐标系。其中,电子设备的显示屏幕平行于水平面,并且并选取该显示屏幕的左上角作为坐标原点(如图3所示的电子设备的显示屏幕的左上角),建立与该显示屏幕平行的直角坐标系。Exemplarily, a Cartesian coordinate system as shown in FIG. 3 is established. Wherein, the display screen of the electronic device is parallel to the horizontal plane, and the upper left corner of the display screen is selected as the coordinate origin (the upper left corner of the display screen of the electronic device as shown in FIG. 3 ), and a rectangular coordinate system parallel to the display screen is established. .
在一些实施例中,挂件状态包括隐藏状态、非隐藏状态、部分隐藏状态或者预设的显示规则中的任一项。In some embodiments, the widget state includes any one of a hidden state, a non-hidden state, a partially hidden state, or a preset display rule.
示例性的,以挂件状态为隐藏状态为例,如图4中的a所示,用户在点击应用程序后,显示如图4中的b所示的第一页面,此时当用户点了预设挂件(此时预设挂件的挂件状态为非隐藏状态)的隐藏挂件(也称为icon,如图4中的b所示的“×”)后,隐藏预设挂件后的第一页面如图4中的c所示。Exemplarily, taking the state of the pendant as the hidden state as an example, as shown in a in Figure 4, after the user clicks on the application, the first page shown in b in Figure 4 is displayed. After setting the hidden pendant (also called icon, "X" as shown in b in Figure 4) of the pendant (at this time, the pendant state of the preset pendant is non-hidden), the first page after hiding the preset pendant is as follows: shown in c in Figure 4.
示例性的,以挂件状态为部分隐藏状态为例,如图5中的a所示,用户在点击应用程 序后,显示如图5中的b所示的第一页面,此时当用户点了预设挂件的隐藏挂件后,隐藏后的预设挂件处于如图5中的c所示的位置。Illustratively, taking the state of the pendant as a partially hidden state as an example, as shown in a in Figure 5, after the user clicks on the application, the first page shown in b in Figure 5 is displayed. After the hidden pendant of the preset pendant is hidden, the hidden preset pendant is at the position shown in c in FIG. 5 .
示例性的,以挂件状态为部分隐藏状态为例,如图5中的d所示,用户在点击应用程序后,显示如图5中的e所示的第一页面,此时当用户点了预设挂件的隐藏挂件后,隐藏后的预设挂件(此时预设挂件的显示形态由第一形态(如图5中e所示的圆形)切换为第二形态(如图5中f所示的矩形))处于如图5中的f所示的位置。Illustratively, taking the state of the pendant as a partially hidden state as an example, as shown in d in Figure 5, after the user clicks on the application, the first page shown in e in Figure 5 is displayed. At this time, when the user clicks After the preset pendant is hidden, the hidden preset pendant (at this time, the display form of the preset pendant is switched from the first form (circle as shown in e in Figure 5) to the second form (f in Figure 5). The rectangle shown)) is in the position shown by f in Figure 5.
示例性的,以挂件状态为预设的显示规则为例,如图6中的a所示,用户在点击应用程序后,显示如图6中的b所示的第一页面,此时预设挂件中还显示了按照预设的显示规则显示的进度条。当接收到页面切换操作时,此时由第一页面切换为如图6中的c所示的第二页面,并以预设挂件在第一页面中按照预设的显示规则显示的进度条为起点继续显示。当再次接收到页面切换操作时,此时由第二页面切换为如图6中的d所示的第三页面,并以预设挂件在第二页面中按照预设的显示规则显示的进度条为起点继续显示。Exemplarily, taking the display rule that the state of the pendant is preset as an example, as shown in a in Figure 6, after the user clicks on the application, the first page shown in b in Figure 6 is displayed, and the preset The widget also displays a progress bar displayed according to the preset display rules. When a page switching operation is received, the first page is switched to the second page as shown in c in FIG. 6 , and the progress bar displayed by the preset pendant in the first page according to the preset display rules is The starting point continues to be displayed. When the page switching operation is received again, the second page is switched to the third page as shown in d in FIG. 6 , and the progress bar is displayed on the second page according to the preset display rules with the preset pendant. Continue to display for the starting point.
在SS12中,电子设备响应于页面切换操作,将第一页面切换为第二页面显示。In SS12, the electronic device switches the display of the first page to the second page in response to the page switching operation.
在S13中,电子设备在第二页面中,根据挂件属性信息显示预设挂件。In S13, the electronic device displays a preset pendant on the second page according to the pendant attribute information.
由上述可知,本公开实施例提供的挂件显示方法中,用户使用电子设备进行页面切换操作时,通过获取当前的第一页面中预设挂件的挂件属性信息,从而在第一页面切换为第二页面显示时,该预设挂件按照该挂件属性信息在第二页面中显示,使得电子设备上显示的每个页面均按照同一个挂件属性信息显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。It can be seen from the above that in the pendant display method provided by the embodiment of the present disclosure, when the user performs a page switching operation using an electronic device, the pendant attribute information of the preset pendant in the current first page is obtained, so as to switch the first page to the second page. When the page is displayed, the preset pendant is displayed on the second page according to the attribute information of the pendant, so that each page displayed on the electronic device displays the preset pendant according to the same attribute information of the pendant, so that the user has already operated and hidden when switching pages. After a certain widget is displayed, when the switched page is displayed, there is no need to re-display the widget and then display the entire display change process that the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
在一些实施例中,由图7所示,S13可以通过下面的S130实现。In some embodiments, as shown in FIG. 7 , S13 may be implemented by the following S130.
在S130中,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件。In S130, the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
由上述可知,本公开实施例提供的挂件显示方法中,用户通过在电子设备上进行页面切换操作,从而将第一页面切换为第二页面显示时,第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。It can be seen from the above that in the pendant display method provided by the embodiments of the present disclosure, when the user switches the first page to the second page display by performing a page switching operation on the electronic device, in the second page, the corresponding target location information is displayed on the second page. The preset pendant is displayed according to the pendant state in the position, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to re-display the pendant and then display the entire display change process that the pendant is hidden. Page display efficiency, get better page display effect.
在一些实施例中,由图8所示,S13可以通过下面的S131实现。In some embodiments, as shown in FIG. 8 , S13 may be implemented by the following S131.
在S131中,电子设备在第二页面的目标位置信息对应的位置上,按照预设的显示规则以挂件状态为起点继续显示预设挂件。In S131 , the electronic device continues to display the preset pendant at the position corresponding to the target location information on the second page according to the preset display rule with the pendant state as the starting point.
由上述可知,本公开实施例提供的挂件显示方法中,通过预设的显示规则展示预设挂件,当用户通过在电子设备上进行页面切换操作时,此时将第一页面切换为第二页面显示时,电子设备在第二页面的目标位置信息对应的位置上,按照预设的显示规则以挂件状态为起点继续显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后 的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。As can be seen from the above, in the pendant display method provided by the embodiment of the present disclosure, the preset pendant is displayed according to the preset display rules, and when the user performs a page switching operation on the electronic device, the first page is switched to the second page at this time. When displaying, the electronic device continues to display the preset pendant at the position corresponding to the target location information of the second page according to the preset display rules, with the pendant state as the starting point, so that after the user has operated to hide a pendant in the switching page, When the switched page is displayed, there is no need to re-display the widget and then display the entire display change process in which the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
在一些实施例中,挂件状态包括隐藏状态,在此情况下,如图9所示,S13可以通过下面的S132实现。In some embodiments, the pendant state includes a hidden state. In this case, as shown in FIG. 9 , S13 may be implemented by the following S132.
在S132中,电子设备在第二页面中,在目标位置信息对应的位置上隐藏显示预设挂件。In S132, the electronic device hides and displays the preset pendant at the position corresponding to the target position information on the second page.
由上述可知,本公开实施例提供的挂件显示方法中,当预设挂件在第一页面中隐藏显示,并且用户通过在电子设备上进行页面切换操作时,此时将第一页面切换为第二页面显示时,电子设备在第二页面中,在目标位置信息对应的位置上隐藏显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。It can be seen from the above that in the pendant display method provided by the embodiment of the present disclosure, when the preset pendant is hidden and displayed on the first page, and the user performs a page switching operation on the electronic device, the first page is switched to the second page at this time. When the page is displayed, the electronic device hides and displays the preset pendant at the position corresponding to the target location information on the second page, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to display the preset pendant. Redisplay the widget and then display the entire display change process in which the widget is hidden, improve page display efficiency, and obtain better page display effects.
在一些实施例中,如图10所示,S13可以通过下面的S133和S134实现。In some embodiments, as shown in FIG. 10 , S13 may be implemented by the following S133 and S134.
在S133中,电子设备响应于页面切换操作,获取当前的第一页面中预设挂件的实际位置信息和显示状态。In S133, in response to the page switching operation, the electronic device acquires the actual position information and display state of the preset pendant in the current first page.
在一些实施例中,显示状态包括隐藏状态、非隐藏状态、部分隐藏状态或者预设的显示规则中的任一项。In some embodiments, the display state includes any one of a hidden state, a non-hidden state, a partially hidden state, or a preset display rule.
在S134中,电子设备确定目标位置信息为实际位置信息,挂件状态包括显示状态。In S134, the electronic device determines that the target location information is the actual location information, and the pendant state includes the display state.
由上述可知,本公开实施例提供的挂件显示方法中,电子设备响应于页面切换操作,获取当前的第一页面中预设挂件的实际位置信息和显示状态,从而确定目标位置信息为实际位置信息,挂件状态包括显示状态。进一步地,将第一页面切换为第二页面显示时,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。As can be seen from the above, in the pendant display method provided by the embodiment of the present disclosure, the electronic device, in response to the page switching operation, acquires the actual location information and display state of the preset pendant in the current first page, so as to determine the target location information as the actual location information. , the pendant state includes the display state. Further, when the first page is switched to display the second page, the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page, so that the user has operated to hide a certain pendant in the switching page. After a widget is displayed, when the switched page is displayed, it is not necessary to re-display the widget and then display the entire display change process that the widget is hidden, so as to improve the page display efficiency and obtain a better page display effect.
在一些实施例中,如图11所示,S13可以通过下面的S135和S136实现。In some embodiments, as shown in FIG. 11 , S13 may be implemented by the following S135 and S136.
在S135中,电子设备在第二页面中创建预设挂件,且预设挂件的初始位置信息为目标位置信息。In S135, the electronic device creates a preset pendant on the second page, and the initial location information of the preset pendant is target location information.
在一些实施例中,采用Android系统的终端在用户点击了应用程序后,用户在打开每个页面时,应用程序均需要在每个页面上创建一个预设挂件,新创建的预设挂件处于初始位置信息。In some embodiments, after the user clicks on the application on the terminal using the Android system, when the user opens each page, the application needs to create a preset widget on each page, and the newly created preset widget is at the initial stage location information.
示例性的,当用户点击了应用程序后,用户在打开每个页面时,应用程序均需要在每个页面上创建一个预设挂件,并且每个预设挂件默认在该页面的左上角(该预设挂件在该坐标系中的初始位置为(X,Y),这里可以选定预设挂件上的特征点作为初始位置,(如预设挂件的左顶点,或者预设挂件的中心位置)。当用户需要隐藏第一页面中的预设挂件 时,此时根据预设设定的隐藏比例(如:将该预设挂件向左平移90px)对预设挂件进行隐藏,从而在第一页面中隐藏预设挂件后,预设挂件在第一页面中仅显示一部分。此时,从第一页面切换至第二页面时,首先需要在第二页面中创建一个预设挂件,并且预设挂件在第二页面中的初始位置为(X,Y),由于隐藏后的预设挂件的目标位置信息与隐藏前的预设挂件的初始位置信息不同,为了保证预设挂件在第二页面显示的位置不变,需要将该预设挂件在第二页面中的初始位置信息更新为该目标位置信息。Exemplarily, after the user clicks on the application, when the user opens each page, the application needs to create a preset widget on each page, and each preset widget is located in the upper left corner of the page by default (the The initial position of the preset pendant in this coordinate system is (X, Y). Here, the feature point on the preset pendant can be selected as the initial position, (such as the left vertex of the preset pendant, or the center position of the preset pendant) .When the user needs to hide the preset pendant in the first page, the preset pendant is hidden according to the preset hiding ratio (for example, the preset pendant is shifted to the left by 90px), so that the preset pendant is hidden on the first page. After the preset pendant is hidden in , only a part of the preset pendant is displayed on the first page. At this time, when switching from the first page to the second page, a preset pendant needs to be created on the second page first, and the preset pendant is The initial position on the second page is (X, Y). Since the target position information of the hidden preset pendant is different from the initial position information of the pre-hidden preset pendant, in order to ensure that the preset pendant is displayed on the second page If the location does not change, the initial location information of the preset pendant on the second page needs to be updated to the target location information.
在一些实施例中,挂件状态为部分隐藏状态,并且为吸边隐藏,如图5中的b所示,用户点击了第一页面中预设挂件(假设初始位置信息为(0,0))的隐藏挂件后,电子设备通过ObjectAnimator属性动画,配合TranslationX进行平移动画,此时由于预设挂件距离Y轴的距离小于预设阈值,因此需要执行左贴边隐藏,由于用户并未拖动预设挂件(即预设挂件并没有平移),所以startTranslationX是0,左移90px,那么endTranslationX就是-90px,执行完平移动画后,如图5中的c所示预设挂件就会把自己左侧的90px隐藏在屏幕里。In some embodiments, the state of the pendant is a partially hidden state and is hidden by suction. As shown in b in FIG. 5 , the user clicks a preset pendant on the first page (assuming the initial position information is (0, 0)) After hiding the pendant, the electronic device uses the ObjectAnimator property animation to perform translation animation with TranslationX. At this time, since the distance between the preset pendant and the Y-axis is less than the preset threshold, it is necessary to perform left-edge hiding. Since the user did not drag the preset The pendant (that is, the preset pendant does not translate), so startTranslationX is 0, and if it moves left by 90px, then endTranslationX is -90px. 90px is hidden in the screen.
这时为了保证用户体验的一致性,我们就需要记录当前预设挂件的目标位置信息(-90px,YFloatPosition),以便打开新页面(第二页面)时,通过这个目标位置信息初始化预设挂件,从而在第二页面中按照隐藏后的预设挂件在第一页面中的目标位置信息所标识的位置显示预设挂件,从而无需再次播放该移动动画从而将该挂件吸边隐藏,保证了用户的体验。其中,YFloatPosition为挂件被用户拖动的距离左上角原点(0,0)的高度,因此隐藏后的预设挂件在第一页面中的目标位置信息为(-90px,0)。At this time, in order to ensure the consistency of user experience, we need to record the target position information of the current preset pendant (-90px, YFloatPosition), so that when opening a new page (the second page), the preset pendant is initialized through this target position information, Therefore, the preset pendant is displayed on the second page according to the position identified by the target position information of the hidden preset pendant in the first page, so that the mobile animation does not need to be played again, so that the pendant is hidden and the user's safety is guaranteed. experience. Among them, YFloatPosition is the height of the widget dragged by the user from the upper left corner origin (0, 0), so the target position information of the hidden preset widget in the first page is (-90px, 0).
在S136中,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件。In S136, the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
由上述可知,新创建的预设挂件的初始的位置信息为初始位置信息,而初始位置信息与目标位置信息可能不同,从而造成在接收到页面切换操作并由第一页面切换为第二页面显示时,造成预设挂件的实际显示的位置信息不同。为此,本公开实施例提供的挂件显示方法,通过将新创建的预设挂件的初始位置信息更新为目标位置信息,从而将第一页面切换为第二页面显示时,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。It can be seen from the above that the initial position information of the newly created preset pendant is the initial position information, and the initial position information may be different from the target position information, so that the page switching operation is received and the display is switched from the first page to the second page. , the actual displayed location information of the preset pendant is different. Therefore, in the pendant display method provided by the embodiment of the present disclosure, by updating the initial position information of the newly created preset pendant to the target position information, when the first page is switched to display the second page, the electronic device is displayed on the second page. , the preset pendant is displayed according to the pendant state at the position corresponding to the target location information, so that after the user has operated to hide a pendant in the switching page, when the page after switching is displayed, there is no need to re-display the pendant and then show that the pendant is displayed. The entire display change process is hidden, which improves the page display efficiency and obtains a better page display effect.
在一些实施例中,如图12所示,S13可以通过下面的S136-S138实现。In some embodiments, as shown in FIG. 12 , S13 may be implemented by the following S136-S138.
在S137中,电子设备获取预设挂件在第二页面中的初始位置信息。In S137, the electronic device acquires initial position information of the preset pendant in the second page.
在一些实施例中,第二页面为第一页面之前的页面,此时由于已经在第二页面创建好了预设挂件,并且该预设挂件的所处的位置信息为初始位置信息,从而将第一页面切换为第二页面显示时,为了保证预设挂件在第二页面上显示的位置不变,需要将该预设挂件在第二页面中的初始位置信息更新为该目标位置信息。In some embodiments, the second page is a page before the first page. At this time, since the preset pendant has been created on the second page, and the location information of the preset pendant is the initial location information, the When the first page is switched to be displayed on the second page, in order to ensure that the displayed position of the preset pendant on the second page remains unchanged, the initial location information of the preset pendant on the second page needs to be updated to the target location information.
在S138中,电子设备将初始位置信息更新为目标位置信息。In S138, the electronic device updates the initial location information to the target location information.
在S136中,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件。In S136, the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
由上述可知,由于第二页面中预先创建好了预设挂件,并且该预设挂件的所处的位置信息为初始位置信息,将第一页面切换为第二页面显示时,为了保证预设挂件在第二页面上显示的位置不变。本公开实施例提供的挂件显示方法,通过将新创建的预设挂件的初始位置信息更新为目标位置信息,从而将第一页面切换为第二页面显示时,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。It can be seen from the above that since the preset pendant is pre-created in the second page, and the location information of the preset pendant is the initial position information, when switching the display of the first page to the second page, in order to ensure that the preset pendant is displayed. The position displayed on the second page does not change. In the pendant display method provided by the embodiment of the present disclosure, by updating the initial position information of the newly created preset pendant to the target position information, so that when the first page is switched to the second page display, the electronic device is in the second page, in the second page The preset pendant is displayed according to the pendant state at the position corresponding to the target location information, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to re-display the pendant and then display the entire hidden pendant. Display the change process, improve the page display efficiency, and obtain a better page display effect.
在一些实施例中,如图13所示,S13可以通过下面的S136、S139和S140实现。In some embodiments, as shown in FIG. 13 , S13 may be implemented by the following S136 , S139 and S140 .
在S139中,电子设备获取预设挂件在第二页面中的实际位置信息。In S139, the electronic device acquires actual location information of the preset pendant on the second page.
在一些实施例中,第二页面为第一页面之前的页面,此时由于已经在第二页面创建好了预设挂件,并且该预设挂件的所处的位置信息并不是初始位置信息,从而将第一页面切换为第二页面显示时,为了保证预设挂件在第二页面上显示的位置不变,需要将该预设挂件在第二页面中的实际位置信息更新为该目标位置信息。In some embodiments, the second page is a page before the first page. At this time, since the preset pendant has been created on the second page, and the location information of the preset pendant is not the initial location information, so When switching the display of the first page to the second page, in order to ensure that the displayed position of the preset pendant on the second page remains unchanged, the actual location information of the preset pendant on the second page needs to be updated to the target location information.
在S140中,电子设备将实际位置信息更新为初始位置信息后,将初始位置信息更新为目标位置信息。In S140, after updating the actual location information to the initial location information, the electronic device updates the initial location information to the target location information.
在一些实施例中,如图14中的a所示用户点击电子设备上的应用程序后,显示如图14中的b所示的第一页面,此时当用户点了预设挂件(此时预设挂件完整的展示自己)的隐藏挂件后,隐藏后的预设挂件处于如图14中的c所示的位置.此时,用户想进入当前作品的作者信息页面浏览一下作者的介绍,于是跳转进二级页面即作者信息页面。此时,作者信息页面内会新创建一个自定义View挂件(即预设挂件)。它的位置信息为隐藏后的预设挂件在第一页面中的目标位置信息(-90px,0)。这时,用户为了看清屏幕左侧的内容,如图14中的d和图14中的e所示用户将预设挂件从屏幕的左侧拖拽到了屏幕的右侧,但是并没有隐藏起来。接着,用户又点击了作品列表的一个作品详情页面,即三级页面中。这时作品详情页面又需要新建了一个自定义窗体View挂件。由于在作者信息页面中,如图14中的e所示用户已经将预设挂件拖到了屏幕的右侧,所以在作品详情页面的中预设挂件的初始位置是(846px,YFloatPosition),由于仅涉及到X轴方向上的平移,因此预设挂件在作品详情页面的中的初始位置是(846px,0)。其中,846px是屏幕宽度1080px减去预设挂件自身宽度234px。In some embodiments, after the user clicks an application on the electronic device as shown in a in FIG. 14 , the first page shown in b in FIG. 14 is displayed. At this time, when the user clicks a preset pendant (this time After the preset pendant fully displays its own hidden pendant, the hidden preset pendant is in the position shown by c in Figure 14. At this time, the user wants to enter the author information page of the current work to browse the author's introduction, so Jump to the second page, the author information page. At this point, a custom View widget (ie, a preset widget) will be newly created in the author information page. Its position information is the target position information (-90px, 0) of the hidden preset widget in the first page. At this time, in order to see the content on the left side of the screen clearly, the user drags the preset pendant from the left side of the screen to the right side of the screen as shown in d in Figure 14 and e in Figure 14, but it is not hidden. . Next, the user clicks on a work detail page of the work list, that is, in the third-level page. At this time, the work details page needs to create a new custom form View pendant. In the author information page, as shown in e in Figure 14, the user has dragged the preset pendant to the right side of the screen, so the initial position of the preset pendant in the work details page is (846px, YFloatPosition), because only It involves translation in the X-axis direction, so the initial position of the preset pendant in the work details page is (846px, 0). Among them, 846px is the screen width of 1080px minus the default widget's own width of 234px.
这时,用户又想在作品详情页面将预设挂件就近隐藏在屏幕的右侧,如图14中的f所示于是点击了预设挂件的隐藏挂件后,通过ObjectAnimator属性动画,配合TranslationX进行平移动画,此时由于预设挂件距离Y轴的距离大于或等于预设阈值,因此需要执行右贴边隐藏,由于用户拖动了预设挂件,所以startTranslationX是846px,右移101px,那么 endTranslationX就是846px+101px=947px,执行完平移动画后,如图14中的g所示预设挂件就会把自己右侧的101px隐藏在屏幕里,此时隐藏后的预设挂件在作品详情页面中的目标位置信息为(947px,YFloatPosition)。由于此处仅涉及到X轴方向上的移动,并未在Y轴方向上移动,因此隐藏后的预设挂件在作品详情页面中的目标位置信息为(947px,0)。At this time, the user wants to hide the preset pendant on the right side of the screen on the work details page, as shown in f in Figure 14, so after clicking the hidden pendant of the preset pendant, the ObjectAnimator property animation is used to translate with TranslationX. For animation, at this time, since the distance between the preset pendant and the Y axis is greater than or equal to the preset threshold, it is necessary to perform right-edge hiding. Since the user drags the preset pendant, startTranslationX is 846px, and if it moves to the right by 101px, then endTranslationX is 846px +101px=947px, after performing the panning animation, the preset pendant as shown in g in Figure 14 will hide the 101px on the right side of itself on the screen. At this time, the hidden preset pendant is the target of the work details page. The position information is (947px, YFloatPosition). Since only the movement in the X-axis direction is involved here, and the movement in the Y-axis direction is not involved, the target position information of the hidden preset pendant in the work details page is (947px, 0).
由于用户已经位于作品详情页面内了。此时,栈顶Activity任务栈里也存在3个挂件(分别为第一页面中的预设挂件、作者信息页面中的预设挂件以及作品详情页面中的预设挂件)。所以为了保证用户在进入第一页面以及作者信息页面时预设挂件的位置信息与作品详情页面中的位置信息保持一致,需要将预设挂件在第一页面以及作者信息页面中的位置信息更新为该隐藏后的预设挂件在作品详情页面中的目标位置信息(947px,0),从而预设挂件在第一页面以及作者信息页面上会按照隐藏后的预设挂件在作品详情页面中的目标位置信息(947px,0)所标识的位置显示预设挂件。Because the user is already in the work details page. At this time, there are also 3 pendants in the Activity task stack at the top of the stack (respectively, the preset pendants in the first page, the preset pendants in the author information page, and the preset pendants in the work details page). Therefore, in order to ensure that the location information of the preset pendant is consistent with the location information on the work details page when the user enters the first page and the author information page, the location information of the preset pendant on the first page and the author information page needs to be updated as The target location information (947px, 0) of the hidden preset pendant in the work details page, so that the preset pendant on the first page and the author information page will follow the target of the hidden preset pendant in the work details page. The preset widget is displayed at the position identified by the position information (947px, 0).
需要说明的是,此时从作品详情页面跳回作者信息页面时,会发现作者信息页面的预设挂件不见了。其实,是因为在作者信息页面中,用户有一个拖拽的动作,并且预设挂件是从屏幕的左侧移动到屏幕的右侧。这个过程中也是包含一个向右水平移动的TranslationX动画的,并且路程长度为846px。而我们在作品详情页面中隐藏预设挂件的时候,也重新设置了作者信息页面的LayoutParam的水平位置为947px了。由于android中的TranslationX和LayoutParam是并列的,于是两者叠加了,导致水平位置变成了947px+846px=1793px,这个数字已经远远超过了屏幕宽度1080px了,所以预设挂件极大的右移了,导致在屏幕内看不到该预设挂件。为此,本公开实施例提供的挂件显示方法,只以LayoutParams为唯一维度来更新挂件的位置,所以在更新LayoutParams之前先重置一下TranslationX的距离即可,具体的方式是将TranslationX置0。It should be noted that when you jump back to the author information page from the work details page, you will find that the preset pendant on the author information page is gone. In fact, it is because in the author information page, the user has a dragging action, and the preset widget is moved from the left side of the screen to the right side of the screen. This process also includes a TranslationX animation that moves horizontally to the right, and the path length is 846px. When we hide the preset pendant in the work details page, we also reset the horizontal position of the LayoutParam of the author information page to 947px. Since TranslationX and LayoutParam in android are side by side, the two are superimposed, resulting in a horizontal position of 947px+846px=1793px, which has far exceeded the screen width of 1080px, so the preset pendant is greatly moved to the right , so the preset widget cannot be seen on the screen. Therefore, the pendant display method provided by the embodiment of the present disclosure only uses LayoutParams as the only dimension to update the position of the pendant, so the distance of TranslationX can be reset before updating LayoutParams. The specific method is to set TranslationX to 0.
在S136中,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件。In S136, the electronic device displays the preset pendant according to the pendant state at the position corresponding to the target location information on the second page.
由上述可知,由于第二页面中预先创建好了预设挂件,并且该预设挂件的所处的位置信息不是初始位置信息,将第一页面切换为第二页面显示时,为了保证预设挂件在第二页面上显示的位置不变。本公开实施例提供的挂件显示方法,通过将新创建的预设挂件的实际位置信息更新为目标位置信息,从而将第一页面切换为第二页面显示时,电子设备在第二页面中,在目标位置信息对应的位置上按照挂件状态显示预设挂件,从而用户在切换页面中已经操作隐藏了某个挂件后,在切换后的页面显示时,无需重新展示该挂件然后显示挂件被隐藏的整个显示变化过程,提升页面显示效率,获取更好的页面显示效果。As can be seen from the above, since the preset pendant is pre-created in the second page, and the location information of the preset pendant is not the initial location information, when switching the display of the first page to the second page, in order to ensure that the preset pendant is displayed. The position displayed on the second page does not change. In the pendant display method provided by the embodiment of the present disclosure, by updating the actual location information of the newly created preset pendant to the target location information, when switching the display of the first page to the second page, the electronic device is in the second page, and the electronic device is in the second page. The preset pendant is displayed according to the pendant state at the position corresponding to the target location information, so that after the user has operated to hide a pendant in the switching page, when the switched page is displayed, there is no need to re-display the pendant and then display the entire hidden pendant. Display the change process, improve the page display efficiency, and obtain a better page display effect.
在一些实施例中,如图15所示,本公开实施例提供的挂件显示方法还包括S15和S16。In some embodiments, as shown in FIG. 15 , the pendant display method provided by the embodiment of the present disclosure further includes S15 and S16.
在S15中,电子设备存储挂件属性信息。In S15, the electronic device stores the pendant attribute information.
在一些实施例中,当用户杀死(这里是指完全关闭)了应用程序后,为了使得预设挂件的显示状态与杀死该应用程序前的显示状态相同。因此,电子设备上预设存储了挂件属 性信息,从而用户再次打开应用程序时,通过可以根据预先存储的挂件属性信息,按照挂件属性信息显示预设挂件。In some embodiments, after the user kills (here means completely closing) the application, the display state of the preset widget is the same as the display state before killing the application. Therefore, the pendant attribute information is preset and stored on the electronic device, so that when the user opens the application program again, the preset pendant can be displayed according to the pendant attribute information according to the pre-stored pendant attribute information.
在一些实施例中,该挂件属性信息存储于服务器02,用户在打开应用程序时,通过与服务器02进行信令交互,从而根据服务器02存储的挂件属性信息显示预设挂件,从而保证用户再次打开应用程序时预设挂件显示的挂件属性信息与用户关闭应用程序前预设挂件显示的挂件属性信息相同。In some embodiments, the pendant attribute information is stored in the server 02, and when the user opens the application, the user interacts with the server 02 through signaling, so as to display the preset pendant according to the pendant attribute information stored in the server 02, thereby ensuring that the user opens the application again. The widget attribute information displayed by the preset widget when the application is applied is the same as the widget attribute information displayed by the preset widget before the user closes the application.
在S16中,电子设备在退出显示有预设挂件的页面的服务后,再次运行服务的情况下,按照挂件属性信息显示预设挂件。In S16, the electronic device displays the preset pendant according to the pendant attribute information under the condition of running the service again after exiting the service of the page displaying the preset pendant.
由上述可知,本公开实施例提供的挂件显示方法,当电子设备在退出显示有预设挂件的页面的服务后,为了保证再次运行该服务的情况,还是按照退出显示有预设挂件的页面的服务前的预设挂件的挂件属性信息显示该预设挂件。本公开实施例提供的挂件显示方法,通过预先存储挂件属性信息,从而在退出显示有预设挂件的页面的服务后,再次运行服务的情况下,可以按照预先存储的挂件属性信息显示预设挂件,保证了显示的统一性,方便用户的体验。It can be seen from the above that, in the pendant display method provided by the embodiments of the present disclosure, after the electronic device exits the service of the page displaying the preset pendant, in order to ensure that the service is run again, it still follows the method of exiting the page displaying the preset pendant. The widget attribute information of the preset widget before the service displays the preset widget. In the pendant display method provided by the embodiment of the present disclosure, by pre-storing pendant attribute information, the preset pendant can be displayed according to the pre-stored pendant attribute information when the service is run again after exiting the service on the page displaying the preset pendant , which ensures the uniformity of the display and facilitates the user experience.
图16是根据示例性实施例示出的一种电子设备的框图。参照图16,该电子设备10包括获取单元101、处理单元102和显示单元103。Fig. 16 is a block diagram of an electronic device according to an exemplary embodiment. 16 , the electronic device 10 includes an acquisition unit 101 , a processing unit 102 and a display unit 103 .
获取单元,被配置为获取当前的第一页面中预设挂件的挂件属性信息。其中,挂件属性信息至少包括预设挂件在第一页面中的目标位置信息以及挂件状态。The acquiring unit is configured to acquire the pendant attribute information of the preset pendant in the current first page. The pendant attribute information includes at least target location information of the preset pendant on the first page and pendant status.
处理单元,被配置为响应于获取单元获取的页面切换操作,将第一页面切换为第二页面显示。The processing unit is configured to switch the display of the first page to the second page in response to the page switching operation acquired by the acquiring unit.
显示单元,被配置为在第二页面中,根据获取单元获取的挂件属性信息显示预设挂件。The display unit is configured to display the preset pendant on the second page according to the pendant attribute information acquired by the acquisition unit.
在一些实施例中,显示单元还被配置为在第二页面中,在获取单元获取的目标位置信息对应的位置上按照获取单元获取的挂件状态显示预设挂件。或者,显示单元还被配置为在第二页面的获取单元获取的目标位置信息对应的位置上,按照预设的显示规则以获取单元获取的挂件状态为起点继续显示预设挂件。In some embodiments, the display unit is further configured to display the preset widget according to the status of the widget obtained by the obtaining unit at the position corresponding to the target location information obtained by the obtaining unit on the second page. Alternatively, the display unit is further configured to continue to display the preset pendant at the position corresponding to the target location information acquired by the acquisition unit of the second page according to a preset display rule, starting from the pendant state acquired by the acquisition unit.
在一些实施例中,挂件状态包括隐藏状态,在此情况下,显示单元还被配置在第二页面中,在获取单元获取的目标位置信息对应的位置上隐藏显示预设挂件。In some embodiments, the pendant state includes a hidden state. In this case, the display unit is further configured on the second page to hide and display the preset pendant at a position corresponding to the target location information acquired by the acquiring unit.
在一些实施例中,获取单元还被配置为响应于页面切换操作,获取当前的第一页面中预设挂件的实际位置信息和显示状态。处理单元还被配置为确定目标位置信息为实际位置信息,挂件状态包括显示状态。In some embodiments, the obtaining unit is further configured to obtain the actual position information and display state of the preset widget in the current first page in response to the page switching operation. The processing unit is further configured to determine that the target location information is actual location information, and the pendant state includes a display state.
在一些实施例中,处理单元还被配置在第二页面中创建预设挂件,且预设挂件的初始位置信息为获取单元获取的目标位置信息。显示单元还被配置为在第二页面中,在获取单元获取的目标位置信息对应的位置上按照获取单元获取的挂件状态显示预设挂件。In some embodiments, the processing unit is further configured to create a preset widget on the second page, and the initial position information of the preset widget is the target position information obtained by the obtaining unit. The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
在一些实施例中,获取单元还被配置为获取预设挂件在第二页面中的初始位置信息。处理单元还被配置为将获取单元获取的初始位置信息更新为获取单元获取的目标位置信 息。显示单元还被配置为在第二页面中,在获取单元获取的目标位置信息对应的位置上按照获取单元获取的挂件状态显示预设挂件。In some embodiments, the obtaining unit is further configured to obtain initial position information of the preset widget in the second page. The processing unit is further configured to update the initial location information acquired by the acquiring unit to the target location information acquired by the acquiring unit. The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
在一些实施例中,获取单元还被配置为获取预设挂件在第二页面中的实际位置信息。处理单元还被配置为将获取单元获取的实际位置信息更新为初始位置信息后,将初始位置信息更新为获取单元获取的目标位置信息。显示单元还被配置为在第二页面中,在获取单元获取的目标位置信息对应的位置上按照获取单元获取的挂件状态显示预设挂件。In some embodiments, the acquiring unit is further configured to acquire actual location information of the preset widget in the second page. The processing unit is further configured to update the initial location information to the target location information acquired by the acquiring unit after updating the actual location information acquired by the acquiring unit to the initial location information. The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
在一些实施例中,电子设备还包括存储单元,该存储单元被配置为存储获取单元获取的挂件属性信息。显示单元还被配置为在退出显示有预设挂件的页面的服务后,再次运行服务的情况下,按照存储单元存储的挂件属性信息显示预设挂件。In some embodiments, the electronic device further includes a storage unit configured to store the attribute information of the pendant acquired by the acquisition unit. The display unit is further configured to display the preset pendant according to the pendant attribute information stored in the storage unit under the condition of running the service again after exiting the service on the page displaying the preset pendant.
另外,上述实施例提供的电子设备10在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将电子设备10的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。In addition, when the electronic device 10 provided in the above-mentioned embodiments realizes its functions, only the division of the above-mentioned functional modules is used for illustration. The internal structure of 10 is divided into different functional modules to complete all or part of the functions described above.
图17是根据示例性实施例示出的一种电子设备的结构示意图。电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备以及计步器等。如图17所示,电子设备包括但不限于:处理器101、存储器102、显示器103、输入单元104、输出单元105、网络单元106、接口单元107、射频单元108、电源109以及传感器110等。Fig. 17 is a schematic structural diagram of an electronic device according to an exemplary embodiment. Electronic devices include but are not limited to mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, and pedometers. As shown in FIG. 17 , the electronic device includes but is not limited to: a processor 101, a memory 102, a display 103, an input unit 104, an output unit 105, a network unit 106, an interface unit 107, a radio frequency unit 108, a power supply 109, a sensor 110, and the like.
需要说明的是,本领域技术人员可以理解,图17中示出的电子设备的结构并不构成对电子设备的限定,电子设备可以包括比图17所示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that those skilled in the art can understand that the structure of the electronic device shown in FIG. 17 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in FIG. 17 , or combinations thereof certain components, or different component arrangements.
本公开实施例中,接口单元107,用于响应于输入单元104输入的页面切换操作,获取当前的第一页面中预设挂件的挂件属性信息。In this embodiment of the present disclosure, the interface unit 107 is configured to, in response to the page switching operation input by the input unit 104, acquire the widget attribute information of the preset widget in the current first page.
处理器101,用于响应于输入单元104输入的页面切换操作,将第一页面切换为第二页面显示。The processor 101 is configured to switch the display of the first page to the second page in response to the page switching operation input by the input unit 104 .
显示器103,用于在第二页面中,根据接口单元107获取的挂件属性信息显示预设挂件。The display 103 is configured to display a preset widget in the second page according to the attribute information of the widget acquired by the interface unit 107 .
存储器102,用于存储接口单元107获取的挂件属性信息。The memory 102 is used to store the attribute information of the pendant acquired by the interface unit 107 .
需要说明的是,上述电子设备能够实现上述方法实施例中电子设备实现的各个过程,且能达到相同的技术效果,为避免重复,详细描述这里不再赘述。It should be noted that the above electronic device can implement each process implemented by the electronic device in the above method embodiments, and can achieve the same technical effect. To avoid repetition, the detailed description is not repeated here.
处理器101是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器102内的软件程序和/或模块,以及调用存储在存储器102内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器101可包括一个或多个处理单元;可选的,处理器101可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户页面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器101中。The processor 101 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 102, and calling the data stored in the memory 102. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 101 may include one or more processing units; optionally, the processor 101 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages, application programs, etc., and the modem The modulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 101 .
存储器102可用于存储软件程序以及各种数据。存储器102可主要包括存储程序区和 存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 102 may be used to store software programs as well as various data. The memory 102 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 102 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
显示器103用于显示由用户输入的信息或提供给用户的信息。显示器103可包括显示面板,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 103 is used to display information input by the user or information provided to the user. The display 103 may include a display panel, and the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), and the like.
输入单元104可以用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)和麦克风,图形处理器对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示器103上。经图形处理器处理后的图像帧可以存储在存储器102(或其它存储介质)中或者经由射频单元108或网络单元106进行发送。麦克风可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元108发送到移动通信基站的格式输出。The input unit 104 may be used to receive audio or video signals. The input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) and a microphone, and the graphics processor processes image data of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode . The processed image frames can be displayed on the display 103 . The image frames processed by the graphics processor may be stored in the memory 102 (or other storage medium) or transmitted via the radio frequency unit 108 or the network unit 106 . The microphone can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 108 for output in the case of a telephone call mode.
输入单元104可以为用户输入单元,可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元包括触控面板以及其他输入设备。触控面板,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作)。触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器101,接收处理器101发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板。除了触控面板,用户输入单元还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The input unit 104 may be a user input unit, and may be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the electronic device. Specifically, the user input unit includes a touch panel and other input devices. A touch panel, also known as a touch screen, collects user touch operations on or near it (such as a user's operations on or near the touch panel using a finger, stylus, or any suitable object or accessory). The touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 101, the command sent by the processor 101 is received and executed. In addition, the touch panel can be realized by various types of resistive, capacitive, infrared, and surface acoustic waves. Besides the touch panel, the user input unit may also include other input devices. Specifically, other input devices may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
进一步的,触控面板可覆盖在显示面板上,当触控面板检测到在其上或附近的触摸操作后,传送给处理器101以确定触摸事件的类型,随后处理器101根据触摸事件的类型在显示面板上提供相应的视觉输出。触控面板与显示面板1061可以作为两个独立的部件来实现电子设备的输入和输出功能,也可以将触控面板与显示面板集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel can be overlaid on the display panel. When the touch panel detects a touch operation on or near it, it transmits it to the processor 101 to determine the type of the touch event, and then the processor 101 determines the type of the touch event according to the type of the touch event. Provide the corresponding visual output on the display panel. The touch panel and the display panel 1061 can be used as two independent components to realize the input and output functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device, which are not limited here. .
输出单元105可以为音频输出单元,可以将射频单元108或网络单元106接收的或者在存储器102中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元还可以提供与电子设备执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元包括扬声器、蜂鸣器以及受话器等。The output unit 105 may be an audio output unit, which may convert audio data received by the radio frequency unit 108 or the network unit 106 or stored in the memory 102 into audio signals and output as sound. Also, the audio output unit may also provide audio output related to a specific function performed by the electronic device (eg, call signal reception sound, message reception sound, etc.). The audio output unit includes speakers, buzzers, and receivers.
电子设备通过网络单元106为用户提供了无线的宽带互联网访问,如帮助用户收发电 子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the network unit 106, such as helping the user to send and receive emails, browse the web, access streaming media, and the like.
接口单元107为外部装置与电子设备连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元107可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备内的一个或多个元件或者可以用于在电子设备和外部装置之间传输数据。The interface unit 107 is an interface for connecting an external device to an electronic device. For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 107 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device or may be used to interface between the electronic device and the external device. transfer data between.
射频单元108可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器101处理;另外,将上行的数据发送给基站。通常,射频单元108包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元108还可以通过无线通信系统与网络和其他设备通信。The radio frequency unit 108 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving downlink data from the base station, it is processed by the processor 101; in addition, it sends the uplink data to the base station. Typically, the radio frequency unit 108 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 108 can also communicate with the network and other devices through a wireless communication system.
电源109(比如电池)可以用于为各个部件供电,可选的,电源109可以通过电源管理系统与处理器101逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 109 (such as a battery) can be used to supply power to various components. Optionally, the power supply 109 can be logically connected to the processor 101 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
传感器110可以包括光传感器、运动传感器以及其他传感器中的至少一个。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器110还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The sensor 110 may include at least one of a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor can turn off the display panel and/or the backlight when the electronic device is moved to the ear . As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 110 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.
另外,电子设备包括一些未示出的功能模块(例如摄像头),在此不再赘述。In addition, the electronic device includes some unshown functional modules (for example, a camera), and details are not described herein again.
在示例性实施例中,本公开实施例还提供了一种包括指令的存储介质,例如包括指令的存储器102,上述指令可由电子设备的处理器101执行以完成上述方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,该非临时性计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, an embodiment of the present disclosure further provides a storage medium including instructions, for example, a memory 102 including instructions, and the above-mentioned instructions can be executed by the processor 101 of the electronic device to complete the above-mentioned method. Optionally, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices, etc.
在示例性实施例中,本公开实施例还提供了一种包括一条或多条指令的计算机程序产品,该一条或多条指令可以由电子设备的处理器101执行以完成上述方法。In an exemplary embodiment, an embodiment of the present disclosure also provides a computer program product including one or more instructions, which can be executed by the processor 101 of the electronic device to complete the above method.
需要说明的是,上述存储介质中的指令或计算机程序产品中的一条或多条指令被处理器101执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。It should be noted that when the instructions in the above storage medium or one or more instructions in the computer program product are executed by the processor 101, each process of the above method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, here No longer.
作为一个示例,结合图16,电子设备中的获取单元101实现的功能与图17中的接口单元107的功能相同,处理单元102实现的功能与图17中的处理器101的功能相同,显 示单元103实现的功能与图17中的显示器103的功能相同,存储单元104实现的功能与图17中的存储器102的功能相同。As an example, referring to FIG. 16 , the functions implemented by the acquisition unit 101 in the electronic device are the same as those of the interface unit 107 in FIG. 17 , the functions implemented by the processing unit 102 are the same as those of the processor 101 in FIG. 17 , and the display unit The function realized by 103 is the same as that of the display 103 in FIG. 17 , and the function realized by the storage unit 104 is the same as that of the memory 102 in FIG. 17 .
本发明另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行上述方法实施例所示的方法。Another embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on the computer, the computer is made to execute the method shown in the above method embodiments.
在一些实施例中,所公开的方法可以实施为以机器可读格式被编码在计算机可读存储介质上的或者被编码在其它非瞬时性介质或者制品上的计算机程序指令。In some embodiments, the disclosed methods may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of manufacture.
在示例性实施例中,本公开实施例还提供了一种包括指令的存储介质,例如包括指令的存储器102,上述指令可由电子设备10的处理器101执行以完成上述方法。可选地,存储介质可以是非临时性计算机可读存储介质,例如,该非临时性计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, an embodiment of the present disclosure further provides a storage medium including instructions, such as a memory 102 including instructions, and the above-mentioned instructions can be executed by the processor 101 of the electronic device 10 to complete the above-mentioned method. Optionally, the storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices, etc.
在示例性实施例中,本公开实施例还提供了一种包括一条或多条指令的计算机程序产品,该一条或多条指令可以由电子设备10的处理器101执行以完成上述方法。In an exemplary embodiment, an embodiment of the present disclosure also provides a computer program product including one or more instructions, which can be executed by the processor 101 of the electronic device 10 to accomplish the above method.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求的保护范围。All the embodiments of the present disclosure can be implemented independently or in combination with other embodiments, which are all regarded as the protection scope required by the present disclosure.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现 出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention are essentially or contribute to the prior art, or all or part of the technical solutions may be embodied in the form of software products, and the software products are stored in a storage medium Among them, several instructions are included to cause a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk and other mediums that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何在本发明揭露的技术范围内的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. . Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (26)

  1. 一种挂件显示方法,包括:A pendant display method, comprising:
    获取当前的第一页面中预设挂件的挂件属性信息;其中,所述挂件属性信息至少包括所述预设挂件在所述第一页面中的目标位置信息以及挂件状态;Acquire the pendant attribute information of the preset pendant in the current first page; wherein, the pendant attribute information at least includes the target location information of the preset pendant in the first page and the pendant state;
    响应于页面切换操作,将所述第一页面切换为第二页面显示;In response to the page switching operation, switching the first page to display the second page;
    在所述第二页面中,根据所述挂件属性信息显示所述预设挂件。In the second page, the preset pendant is displayed according to the pendant attribute information.
  2. 根据权利要求1所述的挂件显示方法,其中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:The pendant display method according to claim 1, wherein, in the second page, displaying the preset pendant according to the pendant attribute information comprises:
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件;On the second page, display the preset pendant according to the pendant state at the position corresponding to the target location information;
    或者,or,
    在所述第二页面的所述目标位置信息对应的位置上,按照预设的显示规则以所述挂件状态为起点继续显示所述预设挂件。In the position corresponding to the target location information on the second page, the preset pendant is continued to be displayed with the pendant state as a starting point according to a preset display rule.
  3. 根据权利要求2所述的挂件显示方法,其中,所述挂件状态包括隐藏状态;The pendant display method according to claim 2, wherein the pendant state comprises a hidden state;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件,包括:On the second page, displaying the preset pendant according to the pendant state at the position corresponding to the target location information includes:
    在所述第二页面中,在所述目标位置信息对应的位置上隐藏显示所述预设挂件。On the second page, the preset pendant is hidden and displayed at the position corresponding to the target position information.
  4. 根据权利要求1所述的挂件显示方法,其中,所述获取当前的第一页面中预设挂件的挂件属性信息,包括:The pendant display method according to claim 1, wherein the acquiring pendant attribute information of a preset pendant in the current first page comprises:
    响应于页面切换操作,获取当前的第一页面中所述预设挂件的实际位置信息和显示状态;In response to the page switching operation, obtain the actual location information and display state of the preset pendant in the current first page;
    确定目标位置信息为所述实际位置信息,所述挂件状态包括显示状态。It is determined that the target location information is the actual location information, and the pendant state includes a display state.
  5. 根据权利要求1或2所述的挂件显示方法,其中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:The pendant display method according to claim 1 or 2, wherein, in the second page, displaying the preset pendant according to the pendant attribute information includes:
    在所述第二页面中创建所述预设挂件,且所述预设挂件的初始位置信息为所述目标位置信息;creating the preset pendant in the second page, and the initial location information of the preset pendant is the target location information;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant state at the position corresponding to the target location information.
  6. 根据权利要求1或2所述的挂件显示方法,其中,所述在所述第二页面中,根据所述挂件属性信息显示所述预设挂件,包括:The pendant display method according to claim 1 or 2, wherein, in the second page, displaying the preset pendant according to the pendant attribute information includes:
    获取所述预设挂件在所述第二页面中的初始位置信息;obtaining the initial position information of the preset pendant in the second page;
    将所述初始位置信息更新为所述目标位置信息;updating the initial location information to the target location information;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant state at the position corresponding to the target location information.
  7. 根据权利要求1或2所述的挂件显示方法,其中,所述在所述第二页面中,根据所 述挂件属性信息显示所述预设挂件,包括:The pendant display method according to claim 1 or 2, wherein, in the second page, displaying the preset pendant according to the pendant attribute information includes:
    获取所述预设挂件在所述第二页面中的实际位置信息;obtaining the actual location information of the preset pendant in the second page;
    将所述实际位置信息更新为初始位置信息后,将所述初始位置信息更新为所述目标位置信息;After updating the actual location information to initial location information, updating the initial location information to the target location information;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant state at the position corresponding to the target location information.
  8. 根据权利要求1或2任一项所述的挂件显示方法,其中,所述挂件显示方法还包括:The pendant display method according to any one of claims 1 or 2, wherein the pendant display method further comprises:
    存储所述挂件属性信息;storing the attribute information of the pendant;
    在退出显示有所述预设挂件的页面的服务后,再次运行所述服务的情况下,按照所述挂件属性信息显示所述预设挂件。After exiting the service on the page where the preset pendant is displayed, and in the case of running the service again, the preset pendant is displayed according to the attribute information of the pendant.
  9. 一种电子设备,包括:获取单元,处理单元和显示单元;An electronic device, comprising: an acquisition unit, a processing unit and a display unit;
    所述获取单元,被配置为获取当前的第一页面中预设挂件的挂件属性信息;其中,所述挂件属性信息至少包括所述预设挂件在所述第一页面中的目标位置信息以及挂件状态;The acquiring unit is configured to acquire the pendant attribute information of the preset pendant in the current first page; wherein, the pendant attribute information at least includes the target location information of the preset pendant in the first page and the pendant condition;
    所述处理单元,被配置为响应于所述获取单元获取的页面切换操作,将所述第一页面切换为第二页面显示;The processing unit is configured to switch the display of the first page to the second page in response to the page switching operation acquired by the acquiring unit;
    所述显示单元,被配置为在所述第二页面中,根据所述获取单元获取的所述挂件属性信息显示所述预设挂件。The display unit is configured to display the preset pendant in the second page according to the pendant attribute information acquired by the acquisition unit.
  10. 根据权利要求9所述的电子设备,其中,所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件;The electronic device according to claim 9, wherein the display unit is further configured to, on the second page, acquire according to the acquisition unit at a position corresponding to the target location information acquired by the acquisition unit The status of the pendant displays the preset pendant;
    或者,or,
    所述显示单元还被配置为在所述第二页面的所述获取单元获取的所述目标位置信息对应的位置上,按照预设的显示规则以所述获取单元获取的所述挂件状态为起点继续显示所述预设挂件。The display unit is further configured to take the pendant state acquired by the acquisition unit as a starting point according to a preset display rule at a position corresponding to the target location information acquired by the acquisition unit of the second page Continue to display the preset widget.
  11. 根据权利要求10所述的电子设备,其中,所述挂件状态包括隐藏状态;The electronic device of claim 10, wherein the pendant state comprises a hidden state;
    所述显示单元还被配置在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上隐藏显示所述预设挂件。The display unit is further configured on the second page to hide and display the preset pendant at a position corresponding to the target location information acquired by the acquisition unit.
  12. 根据权利要求9所述的电子设备,其中,所述获取单元还被配置为响应于页面切换操作,获取当前的第一页面中所述预设挂件的实际位置信息和显示状态;The electronic device according to claim 9, wherein the obtaining unit is further configured to obtain the actual position information and display state of the preset pendant in the current first page in response to a page switching operation;
    所述处理单元还被配置为确定目标位置信息为所述实际位置信息,所述挂件状态包括显示状态。The processing unit is further configured to determine that the target location information is the actual location information, and the pendant state includes a display state.
  13. 根据权利要求9或10所述的电子设备,其中,所述处理单元还被配置在所述第二页面中创建所述预设挂件,且所述预设挂件的初始位置信息为所述获取单元获取的所述目标位置信息;The electronic device according to claim 9 or 10, wherein the processing unit is further configured to create the preset pendant in the second page, and the initial position information of the preset pendant is the acquisition unit the obtained target location information;
    所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信 息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件。The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  14. 根据权利要求9或10所述的电子设备,其中,所述获取单元还被配置为获取所述预设挂件在所述第二页面中的初始位置信息;The electronic device according to claim 9 or 10, wherein the obtaining unit is further configured to obtain initial position information of the preset pendant in the second page;
    所述处理单元还被配置为将所述获取单元获取的所述初始位置信息更新为所述获取单元获取的所述目标位置信息;The processing unit is further configured to update the initial location information acquired by the acquiring unit to the target location information acquired by the acquiring unit;
    所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件。The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  15. 根据权利要求9或10所述的电子设备,其中,所述获取单元还被配置为获取所述预设挂件在所述第二页面中的实际位置信息;The electronic device according to claim 9 or 10, wherein the acquiring unit is further configured to acquire actual location information of the preset pendant in the second page;
    所述处理单元还被配置为将所述获取单元获取的所述实际位置信息更新为初始位置信息后,将所述初始位置信息更新为所述获取单元获取的所述目标位置信息;The processing unit is further configured to update the initial location information to the target location information acquired by the acquiring unit after updating the actual location information acquired by the acquiring unit to initial location information;
    所述显示单元还被配置为在所述第二页面中,在所述获取单元获取的所述目标位置信息对应的位置上按照所述获取单元获取的所述挂件状态显示所述预设挂件。The display unit is further configured to display the preset pendant according to the pendant state acquired by the acquisition unit at the position corresponding to the target location information acquired by the acquisition unit on the second page.
  16. 根据权利要求9或10所述的电子设备,其中,所述电子设备还包括存储单元;The electronic device according to claim 9 or 10, wherein the electronic device further comprises a storage unit;
    所述存储单元,被配置为存储所述获取单元获取的所述挂件属性信息;the storage unit, configured to store the attribute information of the pendant acquired by the acquisition unit;
    所述显示单元,被配置为在退出显示有所述预设挂件的页面的服务后,再次运行所述服务的情况下,按照所述存储单元存储的所述挂件属性信息显示所述预设挂件。The display unit is configured to display the preset pendant according to the pendant attribute information stored in the storage unit in the case of running the service again after exiting the service on the page where the preset pendant is displayed .
  17. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
    其中,所述处理器被配置为:wherein the processor is configured to:
    获取当前的第一页面中预设挂件的挂件属性信息;其中,所述挂件属性信息至少包括所述预设挂件在所述第一页面中的目标位置信息以及挂件状态;Acquire the pendant attribute information of the preset pendant in the current first page; wherein, the pendant attribute information at least includes the target location information of the preset pendant in the first page and the pendant state;
    响应于页面切换操作,将所述第一页面切换为第二页面显示;In response to the page switching operation, switching the first page to display the second page;
    在所述第二页面中,根据所述挂件属性信息显示所述预设挂件。In the second page, the preset pendant is displayed according to the pendant attribute information.
  18. 根据权利要求17所述的电子设备,其中,所述处理器被配置为:The electronic device of claim 17, wherein the processor is configured to:
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件;On the second page, display the preset pendant according to the pendant state at the position corresponding to the target location information;
    或者,or,
    在所述第二页面的所述目标位置信息对应的位置上,按照预设的显示规则以所述挂件状态为起点继续显示所述预设挂件。In the position corresponding to the target location information on the second page, the preset pendant is continued to be displayed with the pendant state as a starting point according to a preset display rule.
  19. 根据权利要求18所述的电子设备,其中,所述挂件状态包括隐藏状态;The electronic device of claim 18, wherein the pendant state comprises a hidden state;
    其中,所述处理器被配置为:wherein the processor is configured to:
    在所述第二页面中,在所述目标位置信息对应的位置上隐藏显示所述预设挂件。On the second page, the preset pendant is hidden and displayed at the position corresponding to the target position information.
  20. 根据权利要求17所述的电子设备,其中,所述处理器被配置为:The electronic device of claim 17, wherein the processor is configured to:
    响应于页面切换操作,获取当前的第一页面中所述预设挂件的实际位置信息和显示状态;In response to the page switching operation, obtain the actual location information and display state of the preset pendant in the current first page;
    确定目标位置信息为所述实际位置信息,所述挂件状态包括显示状态。It is determined that the target location information is the actual location information, and the pendant state includes a display state.
  21. 根据权利要求17或18所述的电子设备,其中,所述处理器被配置为:The electronic device of claim 17 or 18, wherein the processor is configured to:
    在所述第二页面中创建所述预设挂件,且所述预设挂件的初始位置信息为所述目标位置信息;creating the preset pendant in the second page, and the initial location information of the preset pendant is the target location information;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant state at the position corresponding to the target location information.
  22. 根据权利要求17或18所述的电子设备,其中,所述处理器被配置为:The electronic device of claim 17 or 18, wherein the processor is configured to:
    获取所述预设挂件在所述第二页面中的初始位置信息;obtaining the initial position information of the preset pendant in the second page;
    将所述初始位置信息更新为所述目标位置信息;updating the initial location information to the target location information;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant state at the position corresponding to the target location information.
  23. 根据权利要求17或18所述的电子设备,其中,所述处理器被配置为:The electronic device of claim 17 or 18, wherein the processor is configured to:
    获取所述预设挂件在所述第二页面中的实际位置信息;obtaining the actual location information of the preset pendant in the second page;
    将所述实际位置信息更新为初始位置信息后,将所述初始位置信息更新为所述目标位置信息;After the actual location information is updated to the initial location information, the initial location information is updated to the target location information;
    在所述第二页面中,在所述目标位置信息对应的位置上按照所述挂件状态显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant state at the position corresponding to the target location information.
  24. 根据权利要求17或18所述的电子设备,其中,所述处理器还被配置为:The electronic device of claim 17 or 18, wherein the processor is further configured to:
    存储所述挂件属性信息;storing the attribute information of the pendant;
    在退出显示有所述预设挂件的页面的服务后,再次运行所述服务的情况下,按照所述挂件属性信息显示所述预设挂件。After exiting the service on the page where the preset pendant is displayed, and in the case of running the service again, the preset pendant is displayed according to the attribute information of the pendant.
  25. 一种计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行:A computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute:
    获取当前的第一页面中预设挂件的挂件属性信息;其中,所述挂件属性信息至少包括所述预设挂件在所述第一页面中的目标位置信息以及挂件状态;Acquire the pendant attribute information of the preset pendant in the current first page; wherein, the pendant attribute information at least includes the target location information of the preset pendant in the first page and the pendant state;
    响应于页面切换操作,将所述第一页面切换为第二页面显示;In response to the page switching operation, switching the first page to display the second page;
    在所述第二页面中,根据所述挂件属性信息显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant attribute information.
  26. 一种计算机程序产品,包括,当所述计算机程序产品在计算机上运行时,使得所述计算机执行:A computer program product comprising, when the computer program product is run on a computer, causing the computer to execute:
    获取当前的第一页面中预设挂件的挂件属性信息;其中,所述挂件属性信息至少包括所述预设挂件在所述第一页面中的目标位置信息以及挂件状态;Acquiring the pendant attribute information of the preset pendant in the current first page; wherein, the pendant attribute information at least includes the target location information of the preset pendant in the first page and the pendant state;
    响应于页面切换操作,将所述第一页面切换为第二页面显示;In response to the page switching operation, switching the first page to display the second page;
    在所述第二页面中,根据所述挂件属性信息显示所述预设挂件。On the second page, the preset pendant is displayed according to the pendant attribute information.
PCT/CN2021/105318 2020-09-16 2021-07-08 Widget dislay method and electronic device WO2022057407A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010977163.0A CN112114923A (en) 2020-09-16 2020-09-16 Pendant display method, electronic equipment and storage medium
CN202010977163.0 2020-09-16

Publications (1)

Publication Number Publication Date
WO2022057407A1 true WO2022057407A1 (en) 2022-03-24

Family

ID=73802160

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/105318 WO2022057407A1 (en) 2020-09-16 2021-07-08 Widget dislay method and electronic device

Country Status (2)

Country Link
CN (1) CN112114923A (en)
WO (1) WO2022057407A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022699A (en) * 2022-04-29 2022-09-06 北京达佳互联信息技术有限公司 Business pendant display method and device, electronic equipment and storage medium
CN115291763A (en) * 2022-08-26 2022-11-04 北京达佳互联信息技术有限公司 Component display method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114923A (en) * 2020-09-16 2020-12-22 北京达佳互联信息技术有限公司 Pendant display method, electronic equipment and storage medium
CN115379245B (en) * 2021-05-19 2024-03-15 北京字跳网络技术有限公司 Information display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786902A (en) * 2004-12-09 2006-06-14 腾讯科技(深圳)有限公司 Interface of image user and forming method thereof
CN103530018A (en) * 2013-09-27 2014-01-22 深圳天珑无线科技有限公司 Establishment method of widget interfaces in android operating system and mobile terminal
US20190073101A1 (en) * 2017-09-07 2019-03-07 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for switching pages of applications in a terminal device
CN109783176A (en) * 2019-01-17 2019-05-21 广州酷狗计算机科技有限公司 Switch the method and apparatus of the page
CN112114923A (en) * 2020-09-16 2020-12-22 北京达佳互联信息技术有限公司 Pendant display method, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892864B (en) * 2016-03-31 2018-01-19 武汉斗鱼网络科技有限公司 A kind of widget interaction method and device based on Android system player
CN106502545B (en) * 2016-10-31 2019-07-26 维沃移动通信有限公司 A kind of operating method and mobile terminal for sliding control
CN106681593A (en) * 2016-12-30 2017-05-17 北京优朋普乐科技有限公司 Display control method and device for user interface UI control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786902A (en) * 2004-12-09 2006-06-14 腾讯科技(深圳)有限公司 Interface of image user and forming method thereof
CN103530018A (en) * 2013-09-27 2014-01-22 深圳天珑无线科技有限公司 Establishment method of widget interfaces in android operating system and mobile terminal
US20190073101A1 (en) * 2017-09-07 2019-03-07 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for switching pages of applications in a terminal device
CN109783176A (en) * 2019-01-17 2019-05-21 广州酷狗计算机科技有限公司 Switch the method and apparatus of the page
CN112114923A (en) * 2020-09-16 2020-12-22 北京达佳互联信息技术有限公司 Pendant display method, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022699A (en) * 2022-04-29 2022-09-06 北京达佳互联信息技术有限公司 Business pendant display method and device, electronic equipment and storage medium
CN115291763A (en) * 2022-08-26 2022-11-04 北京达佳互联信息技术有限公司 Component display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112114923A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
WO2019154181A1 (en) Display control method and mobile terminal
WO2019141174A1 (en) Unread message processing method and mobile terminal
WO2019141243A1 (en) Method for starting application program and mobile terminal
WO2022057407A1 (en) Widget dislay method and electronic device
WO2019206036A1 (en) Message management method and terminal
WO2019196864A1 (en) Control method for virtual button and mobile terminal
CN108491129B (en) Application program management method and terminal
WO2019080929A1 (en) Message prompting method and mobile terminal
WO2020181955A1 (en) Interface control method and terminal device
CN108762634B (en) Control method and terminal
WO2019149028A1 (en) Application download method and terminal
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
WO2020057257A1 (en) Application interface switching method and mobile terminal
WO2019114522A1 (en) Screen control method, screen control apparatus, and mobile terminal
WO2019174541A1 (en) Operation method for mobile terminal and mobile terminal
CN110602565A (en) Image processing method and electronic equipment
WO2021068885A1 (en) Control method and electronic device
WO2020078234A1 (en) Display control method and terminal
WO2019169991A1 (en) Display method and mobile terminal
WO2019076371A1 (en) Resource data display method and mobile terminal
WO2020192297A1 (en) Screen interface switching method and terminal device
WO2019154360A1 (en) Interface switching method and mobile terminal
WO2022135409A1 (en) Display processing method, display processing apparatus, and wearable device
US11733855B2 (en) Application identifier display method and terminal device
WO2020024770A1 (en) Method for determining communication object, and mobile terminal

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: 21868236

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 27/06/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21868236

Country of ref document: EP

Kind code of ref document: A1