EP-4742011-A2 - DISPLAY METHOD AND APPARATUS BASED ON DOCK BAR, AND ELECTRONIC DEVICE
Abstract
The disclosure relates to field of terminal display technologies, and provides a display method and apparatus based on a dock bar, and an electronic device. The method includes: displaying a dock bar in a display screen of an electronic device; determining a target scenario based on content displayed in a target area of the display screen and/or a running state of an application of a target type in the electronic device; determining, based on the target scenario, a target component in a plurality of preset components, and displaying the target component in the dock bar; in response to a switching operation performed by a user on the target component, re-determining the target scenario, and updating, based on the re-determined target scenario, the target component displayed in the dock bar. This enables to display different components in the dock bar according to the target scenario, improving display flexibility and user experience.
Inventors
- LIN, TAO
- DING, CHEN
- DONG, Yiwei
- HU, Wenxiao
Assignees
- XG TECH PTE. LTD.
Dates
- Publication Date
- 20260513
- Application Date
- 20260331
Claims (15)
- A display method based on a dock bar (40), the method comprising: displaying (100) a dock bar (40) in a display screen (201, 1810) of an electronic device (1900); determining (200) a target scenario based on content displayed in a target area of the display screen (201, 1810) and/or a running state of an application of a target type in the electronic device (1900); determining (300, 340), based on the target scenario, a target component in a plurality of preset components, and displaying (370) the target component in the dock bar (40), wherein the preset components are configured for operating the application of the target type by a user; and in response to a switching operation performed by the user on the target component, re-determining (400) the target scenario, and updating, based on the re-determined target scenario, the target component displayed in the dock bar (40).
- The display method based on a dock bar (40) according to claim 1, wherein the determining (200) a target scenario based on content displayed in a target area of the display screen (201, 1810) and/or a running state of an application of a target type in the electronic device (1900) comprises: determining (210) the target scenario as a first scenario based on that a display interface of the application of the target type is not displayed in the target area and/or the application of the target type is in a non-enabled state; and the determining (300, 340), based on the target scenario, a target component in a plurality of preset components comprises: determining (310) a first component (41) in the plurality of preset components as the target component based on the first scenario, wherein the first component (41) is configured for displaying a first icon (411) corresponding to an initial application, and the initial application is of the target type.
- The display method based on a dock bar (40) according to claim 2, wherein the determining (200) a target scenario based on content displayed in a target area of the display screen (201, 1810) and/or a running state of an application of a target type in the electronic device (1900) comprises: determining (220) the target scenario as a second scenario based on that the display interface of the application of the target type is displayed in the target area and/or the application of the target type is in an enabled state; and the determining (300, 340), based on the target scenario, a target component in a plurality of preset components comprises: determining (320) a second component (42) in the plurality of preset components as the target component based on the second scenario, wherein the second component (42) is configured for displaying a second icon (421) corresponding to at least one candidate application (13), and the at least one candidate application (13) is of the target type.
- The display method based on a dock bar (40) according to claim 3, wherein the target type is an audio type, and the determining (200) a target scenario based on content displayed in a target area of the display screen (201, 1810) and/or a running state of an application of a target type in the electronic device (1900) comprises: determining (230) the target scenario as a third scenario based on that at least one application of the audio type is in the enabled state, and that an audio playlist (45) of the at least one application of the audio type is displayed in the target area; and the determining (300, 340), based on the target scenario, a target component in a plurality of preset components comprises: determining (330) a third component (43) in the plurality of preset components as the target component based on the third scenario, wherein the third component (43) is configured for displaying a third icon (431) corresponding to at least one audio to be played in the audio playlist (45).
- The display method based on a dock bar (40) according to claim 3 or 4, wherein the in response to a switching operation performed by the user on the target component, re-determining (400) the target scenario comprises: in response to an operation performed by the user on the first icon (411), determining (410) the second scenario as the new target scenario; or in response to an operation performed by the user on any one of the second icon (421), determining (420) a third scenario as the new target scenario.
- The display method based on a dock bar (40) according to claim 4 or 5, wherein the method further comprises: in response to a sliding operation performed by the user on the second component (42), re-determining (500) the at least one candidate application (13) in the application of the target type, and re-displaying the second component (42) in the dock bar (40); or in response to a sliding operation performed by the user on a third component (43), re-determining (600) at least one audio to be played in an audio playlist (45), and re-displaying the third component (43) in the dock bar (40).
- The display method based on a dock bar (40) according to claim 1, wherein the displaying (370) the target component in the dock bar (40) comprises: determining (350) a target display style in a preset style library based on a mapping relationship between the target scenario and a dock bar display style; and displaying (360) the target component based on the target display style.
- The display method based on a dock bar (40) according to claim 2, wherein the method further comprises: in response to an editing operation performed by the user on the target component currently displayed in the dock bar (40), determining (700) an initial component in the plurality of preset components; and the determining (300, 340), based on the target scenario, a target component in a plurality of preset components comprises: determining (370), based on the first scenario, the initial component in the plurality of preset components as the target component.
- A display apparatus (1800) based on a dock bar (40), comprising: a display screen (201, 1810) and a processor (101, 1820), wherein the display screen (201, 1810) is configured for displaying a dock bar (40), and displaying a target component in the dock bar (40); and the processor (101, 1820) is configured for determining a target scenario based on content displayed in a target area of the display screen (201, 1810) and/or a running state of an application of a target type in an electronic device (1900); determining, based on the target scenario, the target component in a plurality of preset components, wherein the preset components are configured for operating the application of the target type by a user, the preset components are configured for operating the application of the target type by a user; and in response to a switching operation performed by the user on the target component, re-determining a target scenario, and returning to the determining, based on the target scenario, the target component in a plurality of preset components.
- The display apparatus (1800) according to claim 9, wherein the processor (101, 1820) is configured for running instructions stored in memory to perform: determining the target scenario as a first scenario based on that a display interface of the application of the target type is not displayed in the target area and/or the application of the target type is in a non-enabled state; and determining a first component (41) in the plurality of preset components as the target component based on the first scenario, wherein the first component (41) is configured for displaying a first icon (411) corresponding to an initial application, and the initial application is of the target type.
- The display apparatus (1800) according to claim 10, wherein the processor (101, 1820) is configured for running instructions stored in memory to perform: determining the target scenario as a second scenario based on that the display interface of the application of the target type is displayed in the target area and/or the application of the target type is in an enabled state; and determining a second component (42) in the plurality of preset components as the target component based on the second scenario, wherein the second component (42) is configured for displaying a second icon (421) corresponding to at least one candidate application (13), and the at least one candidate application (13) is of the target type.
- The display apparatus (1800) according to claim 11, wherein the processor (101, 1820) is configured for running instructions stored in memory to perform: determining the target scenario as a third scenario based on that at least one application of the audio type is in the enabled state, and that an audio playlist (45) of the at least one application of the audio type is displayed in the target area; and determining a third component (43) in the plurality of preset components as the target component based on the third scenario, wherein the third component (43) is configured for displaying a third icon (431) corresponding to at least one audio to be played in the audio playlist (45).
- The display apparatus (1800) according to claim 9, wherein the processor (101, 1820) is configured for running instructions stored in memory to perform: determining a target display style in a preset style library based on a mapping relationship between the target scenario and a dock bar display style; and the display screen (201, 1810) is configured for displaying the target component based on the target display style.
- The display apparatus (1800) according to claim 10, wherein the processor (101, 1820) is configured for running instructions stored in memory to perform: in response to an editing operation performed by the user on the target component currently displayed in the dock bar (40), determining an initial component in the plurality of preset components; and determining, based on the first scenario, the initial component in the plurality of preset components as the target component.
- An electronic device (1900), comprising: one or more processors (101, 1910), and a memory (102, 1920), wherein the memory (102, 1920) stores computer instructions; and the computer instructions, when run by the processor (101, 1910), cause the processor (101, 1910) to perform the method according to any one of claims 1 to 8.
Description
FIELD OF THE INVENTION Embodiments of the present disclosure relate to the field of terminal display technologies, and in particular, to a display method and apparatus based on a dock bar, and an electronic device. BACKGROUND OF THE INVENTION In a terminal with a display function, for example, an in-vehicle terminal, a desktop is usually provided with a dock bar. The dock bar is usually disposed at the bottom or side of the desktop. When a user slides the screen, the dock bar usually remains stationary, and therefore, application icons of a number of frequently used applications may be placed in the dock bar, facilitating user access to frequently used applications through the dock bar. SUMMARY OF THE INVENTION Current dock bar display methods usually allow to display only fixed application icons or controls in the dock bar, such that the interface lack flexibility, affecting user experience. To solve the above technical problem, embodiments of the present disclosure provide a display method and apparatus based on a dock bar, and an electronic device, capable of improving the flexibility of interface display. A first aspect of the present disclosure provides a display method based on a dock bar. The method includes: displaying a dock bar in a display screen of an electronic device; determining a target scenario based on content displayed in a target area of the display screen and/or a running state of an application of a target type in the electronic device; determining, based on the target scenario, a target component in a plurality of preset components, and displaying the target component in the dock bar, wherein the preset components are configured for operating the application of the target type by a user; and in response to a switching operation performed by the user on the target component, re-determining the target scenario, and updating, based on the re-determined target scenario, the target component displayed in the dock bar. A second aspect of the present disclosure provides an apparatus. The apparatus includes: a display screen and a processor, wherein the display screen is configured for displaying a dock bar, and displaying a target component in the dock bar; and the processor is configured for determining a target scenario based on content displayed in a target area of the display screen and/or a running state of an application of a target type in an electronic device; determining, based on the target scenario, the target component in a plurality of preset components, wherein the preset components are configured for operating the application of the target type by a user, the preset components are configured for operating the application of the target type by a user; and in response to a switching operation performed by the user on the target component, re-determining a target scenario, and returning to the determining, based on the target scenario, the target component in a plurality of preset components. In a third aspect of the present disclosure, embodiments of the present disclosure provide a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is configured for implementing the display method based on a dock bar provided by the first aspect. A fourth aspect of the present disclosure provides an electronic device, wherein the electronic device includes a processor and a memory for storing processor-executable instructions, wherein the processor is configured for reading the executable instructions from the memory and executing the executable instructions, to implement the display method based on a dock bar provided by the first aspect. Based on the display method based on a dock bar provided in the present disclosure, it is enabled to display, in the dock bar, a target component corresponding to the target scenario, and also re-determine and display the target component in response to a switching operation performed by the user. Compared with the traditional methods which display only fixed application icons or controls, the present disclosure enables to improve the flexibility of interface presentation, thereby enhancing user experience. BRIEF DESCRIPTION OF THE DRAWINGS By describing the embodiments of the present disclosure in more detail in combination with the accompanying drawings, the above and other objectives, features, and advantages of the present disclosure will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, constitute a part of the specification, are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute a limitation to the present disclosure. In the accompanying drawings, identical reference numerals usually represent identical components or steps. FIG. 1 is a block diagram of a display system based on a dock bar according to an exemplary embodiment of the present