Information display method, device and electronic equipment

By detecting the working mode and determining the display attributes, the adaptive display of the target page is realized, which solves the problem of inappropriate page display mode when the mobile phone is connected to an external monitor, and improves user experience and office efficiency.

CN112256370BActive Publication Date: 2024-10-18BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011128811.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2024-10-18
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

The existing technology cannot effectively adapt to the page display mode when the mobile phone is connected to an external monitor, resulting in poor user experience and the inability to work as efficiently as a computer in desktop mode.

Method used

By detecting the current working mode (desktop mode or mobile phone mode), determine the display attributes of the target page, and display the page based on these attributes to adapt the page to the current working mode, and support independent window and non-independent window display types.

Benefits of technology

It improves the user experience, allows more adaptable pages to be displayed in desktop mode, enhances office efficiency, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112256370B_ABST
    Figure CN112256370B_ABST
Patent Text Reader

Abstract

The disclosed embodiments disclose an information display method, device, and electronic device. A specific implementation of the method includes: detecting a current working mode, wherein the working mode includes a desktop mode and a mobile phone mode; determining display properties of a target page in the detected current working mode; and displaying the target page based on the display properties. The target page generated by the above implementation can be adapted to the desktop mode or the mobile phone mode, which can improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to an information display method, device and electronic device. Background Art

[0002] In recent years, with the development of mobile phone technology, mobile phones can support desktop mode expansion functions. Mobile phones can be connected to external monitors, and on the external monitors, you can use office software to create PPTs, spreadsheets, edit documents, browse web pages, watch videos, etc., just like using a PC, and achieve efficient office effects like using a computer. Summary of the invention

[0003] This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] Embodiments of the present disclosure provide an information display method, device, and electronic device.

[0005] In a first aspect, an embodiment of the present disclosure provides an information display method, comprising: detecting a current working mode, wherein the working modes include a desktop mode and a mobile phone mode; determining display properties of a target page in the detected current working mode; and displaying the target page based on the display properties.

[0006] In a second aspect, an embodiment of the present disclosure provides an information display device, comprising: a detection unit for detecting a current working mode, wherein the working modes include a desktop mode and a mobile phone mode; a determination unit for determining display properties of a target page in the detected current working mode; and a display unit for displaying the target page based on the display properties.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the information display method as described in the first aspect.

[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the information display method as described in the first aspect.

[0009] The information display method, device and electronic device provided by the embodiments of the present disclosure detect the current working mode, which includes desktop mode and mobile phone mode; determine the display attributes of the target page in the detected current working mode; and display the target page based on the display attributes. The above scheme displays the target page according to the detected working mode and the corresponding display attributes in the working mode, so that the display of the target page can be adapted to the current working mode. If the current working mode is desktop mode, the adaptation of the target page and the desktop mode can be achieved. In the related art, when a page is displayed in a display device, only the mobile phone mode is provided to display the target page. Compared with the method of displaying the target page only in the mobile phone mode in the related art, the target page generated according to the scheme provided by this embodiment can adapt to the desktop mode or the mobile phone mode, which can improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0011] Figure 1 is a flow chart of an embodiment of an information display method according to the present disclosure;

[0012] Figure 2 is a flow chart of another embodiment of the information display method according to the present disclosure;

[0013] Figure 3 is a principle flow chart applicable to the embodiment of the present disclosure;

[0014] Figure 4 is a schematic structural diagram of an embodiment of an information display device according to the present disclosure;

[0015] Figure 5 is an exemplary system architecture to which the information display method of an embodiment of the present disclosure may be applied;

[0016] Figure 6 It is a schematic diagram of the basic structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0019] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] Please refer to Figure 1 , which shows the process of an embodiment of the information display method according to the present disclosure. Figure 1 As shown, the information display method comprises the following steps:

[0024] Step 101, detecting the current working mode, where the working modes include desktop mode and mobile phone mode.

[0025] In this embodiment, the execution subject of the information display method may be a terminal device or a server.

[0026] The execution subject can detect the current working mode, which can include desktop mode and mobile phone mode.

[0027] The execution subject of the information display method may have a display screen. The mobile phone mode may be a working mode when the display screen of the execution subject itself is used as a display device.

[0028] The execution subject of the information display method may be connected to an external display device. The desktop mode may be a working mode when the external display device is used as the display device.

[0029] Taking a mobile terminal as an example, when the mobile terminal is electrically connected to an external display screen (a display screen with a larger display interface), if the external display screen is used as a display device, the mobile application can work in desktop mode. If the mobile terminal display screen is used as a display device, the mobile application can work in mobile phone mode.

[0030] In some application scenarios, the execution subject may have its own display device. In these application scenarios, when the execution subject (such as a mobile terminal) uses its own display device as the display device, the default working mode is the mobile phone mode.

[0031] In some other application scenarios, the execution subject may correspond to an external display device that is connected to the communication via wired or wireless communication. In these application scenarios, when the execution subject (such as a mobile terminal) uses an external display device as a display device, the user can manually set the working mode. If the horizontal length of the external display device is greater than the vertical length, the default working mode is the desktop mode. That is, the execution subject can also automatically determine the working mode according to the shape of the external display device.

[0032] In some other application scenarios, the execution subject may correspond to its own display device and an external display device that is communicatively connected via wired or wireless communication. The user may determine that the own display device is the current display device, or the user may determine that the external display device is the current display device. In these application scenarios, if the own display device is used as the display device, the default working mode is the mobile phone mode. If the external display device is used as the display device, the user can manually set the working mode. If the horizontal length of the external display device is greater than the vertical length, the default working mode is the desktop mode. That is, the execution subject may also automatically determine the working mode according to the shape of the external display device.

[0033] The execution subject may detect whether the current working mode is desktop mode or mobile phone mode by various methods, for example, determining whether the current working mode is desktop mode or mobile phone mode according to information indicating the working mode in the detected system information.

[0034] Step 102: Determine the display attribute of the target page in the detected current working mode.

[0035] The display properties of the target page can be set in advance. Furthermore, the display properties of the target page in different working modes can be set in advance. Specifically, if the working mode is mobile phone mode, the display property can be independent window display; if the working mode is desktop mode, the display property can be set to independent window display and non-independent window display. Among them, the non-independent window display can also include multiple different display types.

[0036] The independent window display here means that the window corresponding to the independent window display page in the application is at the same level as the main window of the application, and the window corresponding to the above independent window display is independent of the window at the same level as the above main window. When the target page is displayed as an independent window, the display position and size of the display window of the target page may not be restricted by the display position and size of the main window of the application where the target page is located. The display area of ​​the window corresponding to the page displayed in the independent window of the application may include a screen area that does not overlap with the display area of ​​the main window of the application.

[0037] Non-independent window display: The window corresponding to the page displayed in the non-independent window of the application is displayed in the parent window of the page. The parent window here can be the main window of the application.

[0038] The above-mentioned non-independent window display type may include but is not limited to one of the following: column display, drawer display, and floating window display.

[0039] The above-mentioned column display means that the information included in the page is displayed in different display columns according to the type of information. Taking the instant messaging application as an example, in the desktop mode, the contact window of the instant messaging application and the interactive information display window with the contact can be displayed in columns.

[0040] Drawer display refers to the implementation of the side-sliding menu (drawer effect). The side-sliding interface can pop up when the user swipes left or right. When the side-sliding interface pops up, the background of the main content area will automatically dim. When the content area is clicked, the drawer layout will disappear. Swiping at the edge of the screen will pull out the drawer layout.

[0041] FloatWindow display: refers to the page display window being displayed on top of its parent window display window.

[0042] Step 103: Display the target page based on the display attributes.

[0043] After the display attributes of the target page in the detected current working mode are determined in step 102, the target page may be displayed based on the display attributes.

[0044] For example, when the display attribute is independent window display, the target page may be displayed based on the display attribute of the independent window display.

[0045] When the display attribute is non-independent window display, the target page may be displayed based on the display attribute of the non-independent window display.

[0046] The information display method provided in the present embodiment detects the current working mode, which includes a desktop mode and a mobile phone mode; determines the display properties of the target page in the detected current working mode; and displays the target page based on the display properties. The above scheme displays the target page according to the detected working mode and the corresponding display properties in the working mode, so that the display of the target page can be adapted to the current working mode. If the current working mode is the desktop mode, the adaptation of the target page to the desktop mode can be achieved. In the related art, when a page is displayed in a display device, only the mobile phone mode is provided to display the target page. Compared with the method of displaying the target page only in the mobile phone mode in the related art, the target page generated according to the scheme provided in the present embodiment can adapt to the desktop mode or the mobile phone mode, which can improve the user experience.

[0047] In some embodiments, the current working mode detected in step 101 is the desktop mode.

[0048] In these embodiments, the above step 102 may further include: determining whether the display attribute of the target page in the desktop mode is independent window display. And the above step 103 may further include: in response to determining that the display attribute of the above target page in the desktop mode is independent window display, displaying the target page based on the display attribute of independent window display.

[0049] The display attributes of the target page in desktop mode may be pre-set. The display attributes in desktop mode may include independent window display and non-independent window display. In practice, the independent window display and the non-independent window display may correspond to a first display attribute identifier and a second display attribute identifier, respectively. The display attribute identifier may include numbers and / or characters. When the display attributes of the target page in desktop mode are pre-set, the first display attribute identifier or the second display attribute identifier may be set only under the display attributes of the target page. Whether the display attribute of the target page is an independent window display may be determined based on the first display attribute identifier or the second display attribute identifier corresponding to the display attribute in the target page information.

[0050] In some other embodiments, the current working mode detected in step 101 is the mobile phone mode.

[0051] In these embodiments, step 102 may include determining that the display attribute of the target page in the mobile phone mode is independent window display. And the above step 103 may include: displaying the above target page based on the display attribute of the independent window display.

[0052] The default display attribute in the mobile phone mode is independent window display. That is, if the working mode is the mobile phone mode, it can be determined that the display attribute of the target page in the mobile phone mode is independent window display.

[0053] In the above two optional implementations, the above display attribute display target page based on independent window display may include the following steps:

[0054] First, a target page is generated according to a target page generation method corresponding to display attributes displayed in an independent window.

[0055] Secondly, the target page is added to a preset page stack; the preset page stack is used to store multiple pages of a preset application;

[0056] Finally, in response to receiving the display instruction of the target page, the target page is obtained from the page stack and displayed.

[0057] That is, when the display attribute in desktop mode is independent window display and independent window display in mobile mode, the target page can be generated by using the target page generation method corresponding to the display attribute of independent window display. Then the target page is added to the preset page stack for management. When a display instruction of the target page is received, the target page can be obtained from the page stack to display the target page.

[0058] It can be seen that when the display attribute in the desktop mode is independent window display, the target page can be generated using the same page generation method as in the mobile phone mode. That is, when the display attribute in the desktop mode is independent window display, the page generation method and page management logic can be shared with the mobile phone mode.

[0059] The following is an example of an Android operating system. The above method for generating a target page according to the display attribute of an independent window display may further include:

[0060] First, an activity container carrying a fragment that implements an interface display function is run, and the target page includes at least one activity container.

[0061] In the mobile phone mode of the Android operating system, activities can usually realize the visual interface of user operations. Usually, activities are used as the basic unit. Through the activity stack mechanism provided by the Android system, you can manage the addition, removal, forward and backward of pages.

[0062] In mobile mode, pages are organized in the form of activities, while in desktop mode, flexible combinations of pages are required (such as double columns, drawers, and floating windows). If activity is still used as the basic unit, the flexible combination of pages required by desktop mode cannot be achieved. In order to make the Android operating system compatible with desktop mode and mobile mode, fragment can be used as the basic unit and activity logic can be delegated to fragment. Fragment can be used as the most basic component for logic reuse, and activity can be used as the container of fragment.

[0063] That is, in these optional implementations, the interface display function can be implemented by the fragment component. Activity is used as a container to carry fragments. Fragment, with its inherent portability, can combine multiple fragments in different ways to achieve different interface display effects.

[0064] Fragment can be a modular component of activity. Fragment needs to be embedded in the activity container. The life cycle of fragment can be affected by the life cycle of activity container. Fragment can define its own view layout. As a modular component of activity, fragment can be reused. Modular fragments make it possible to adapt to different screen sizes by changing the combination of fragments.

[0065] An activity container can carry at least one fragment. A target page can include at least one activity container. The displayed content in the target page can be implemented by the fragments carried by at least one activity.

[0066] Second, the activity container is used to transmit the display information of the target page to the fragment, so that the fragment performs an operation of generating the target page.

[0067] After running the activity container, the activity container can transmit the display information of the target page to the fragment it hosts. The fragment performs the operation of generating the target page.

[0068] In these optional implementations, when the display attribute in desktop mode is independent window display and independent window display in mobile mode, at least one activity container carrying a fragment corresponding to the display attribute of the independent window display can be used to implement the target page. In the process of implementing the target page, the display attribute in desktop mode is independent window display and independent window display in mobile mode can share the same fragment.

[0069] It should be noted that, in desktop mode, an application (Application, APP) has only one activity container, namely the main activity container. Fragments that implement various display functions in the target page can be set at the corresponding positions of the main activity container. Therefore, when the main activity container of the application is running, the execution subject of the information display method can pass the display information of the target page from the main activity container to the fragments located at different positions of the main activity container, so that different fragments can jointly generate the target page.

[0070] Please continue to refer to Figure 2 , which shows the process of another embodiment of the information display method according to the present disclosure. Figure 2 As shown, the information display method includes:

[0071] Step 201, detecting the current working mode, the working modes are desktop mode and mobile phone mode.

[0072] Step 202: The current working mode is the desktop mode, and it is determined whether the display attribute of the target page in the desktop mode is independent window display.

[0073] The specific implementation of the above steps 201 and 202 can refer to Figure 1 The relevant descriptions of step 101 and step 102 in the illustrated embodiment are not repeated here.

[0074] Step 203 : in response to determining that the display attribute of the target page in the desktop mode is non-independent window display, determining the display type of the non-independent display.

[0075] In this embodiment, if it is determined that the display attribute of the target page is a non-independent window display, the display type of the non-independent display may be determined.

[0076] In desktop mode, the display type corresponding to the non-independent display attribute may include but is not limited to one of the following: column display, drawer display, and floating window display.

[0077] Each of the above display types may correspond to a unique display type parameter. As an implementation method, in desktop mode, when the display attribute of the target page is a non-independent display attribute, the display type parameter may be set after the non-independent display attribute identifier of the target page. The execution subject of the above information display method may determine that the display attribute of the target page is a non-independent display according to the non-independent display attribute identifier, and determine the display type of the target page according to the display type parameter.

[0078] The display type parameter may include numbers, letters, and / or symbols.

[0079] Step 204: determine the display style of each page element in the target page according to the above display type, and generate the target page for display according to the display style of the page element.

[0080] After determining the display type corresponding to the target page, the execution subject of the information display method can determine the display style of each page element of the target page. The display style of the page element includes but is not limited to: display position, display size, color, font, etc.

[0081] The above page elements include multiple display contents that constitute the target page. The page elements may include but are not limited to: a tag list, a dialog window, a picture, a text, etc.

[0082] The execution subject may determine the display style of each page element according to the display type of column display, drawer display or floating window display, thereby generating a target page for display.

[0083] In practice, the above step 204 may include the following steps:

[0084] First, the page element information corresponding to the target page is sent to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements.

[0085] In desktop mode, for each display type, a management component can be set. If the display type is column display, the target management component is a column display management component. If the display type is drawer display, the target management component is a drawer display management component. If the display type is floating window display, the target management component is a floating window display management component.

[0086] The management component corresponding to each of the above display types is used to implement management functions such as adding, deleting, and positioning the fragment component corresponding to the display type.

[0087] In desktop mode, an application can correspond to a main activity container, and fragments for displaying different page elements can be set at different positions of the main activity. The execution subject of the information display method can send the page element information to the target management component corresponding to the above display type in the main activity container. The target management component corresponding to the display type can send the relevant parameters in the page element information to the fragment corresponding to the page element, thereby creating a fragment instance corresponding to the page element.

[0088] Secondly, the display style of each page element in the target page is determined by using the fragment instance, and the target page for display is generated according to the display style of the page element.

[0089] When a fragment instance is run in the main activity container, it can determine the display style of the page elements and generate the display interface of the page elements according to the display style of the page elements. Multiple fragment instances can jointly generate a target page for display.

[0090] In some application scenarios, the non-independent display type is column display, and the target management component is a column display management component; and the display information corresponding to the target page is sent to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements, including: sending page element information corresponding to the target page to the column display management component in the main activity container, so that the column display management component determines the target column fragment container corresponding to each page element according to the page element information, and creates a fragment instance corresponding to the page element information in the target column fragment container.

[0091] In some application scenarios, the non-independent display type is a drawer display; and the display information corresponding to the target page is sent to the target management component corresponding to the display type in the main activity container, so that the target management component creates a fragment instance corresponding to each page element, including: determining the size of the drawer interface according to the determined window width; sending the size information of the drawer interface to the drawer display management component corresponding to the drawer display in the main activity container, so that the drawer display management component creates a fragment instance corresponding to the drawer.

[0092] In some application scenarios, the non-independent display type is a floating window display; and the display information corresponding to the target page is sent to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements, including: determining the position and size of the floating window according to the determined window width; sending the position and size information of the floating window to the floating window display management component corresponding to the floating window display in the main activity container, so that the floating window display management component creates fragment instances corresponding to the floating windows.

[0093] For each display type, set the management component corresponding to the display type to manage the fragment corresponding to the display type, so as to quickly create a fragment instance. In addition, you can also set the fragment management component to uniformly manage the life cycle of each created fragment instance.

[0094] and Figure 1 Compared with the illustrated embodiment, this embodiment highlights that in desktop mode, when the display attribute is non-independent display, the display style of each page element is determined according to the display type of the target page, and the target page is generated according to the display style, so that the generated target page can realize multiple display styles in desktop mode, which can improve the user experience.

[0095] In addition, in the various display styles of the desktop mode, the fragment is used as the display style implementation unit, and the desktop mode adaptation can be completed by setting the fragment startup parameters. For applications developed in the original Android system, after adding the desktop mode, only a fragment module is added to the project code, which can reduce the entire desktop mode development cost.

[0096] Please refer to Figure 3 , which shows a principle flow chart applicable to the embodiment of the present disclosure.

[0097] Taking the application running on a mobile terminal as an example, the mobile terminal may have a display device (display screen). In addition, the mobile terminal may be connected to an external display device. A preset application may be installed in the mobile terminal.

[0098] When running a preset application in a mobile terminal, the preset application will detect the current working mode. If the mobile terminal is not connected to an external display device, the current working mode defaults to the mobile phone mode. If the mobile terminal is connected to an external display device, the preset application can determine from the parameter information of the system's display device whether the display device currently in use is an external display device or the mobile terminal's own display screen. If the display device currently in use is an external display device, the current working mode is the desktop mode. If the display device currently in use is the mobile terminal's own display screen, the current working mode is the mobile phone mode. After the preset application determines the current working mode, the above working mode information can be temporarily stored.

[0099] For each page of the preset application, the page for display may be generated by an activity container carrying at least one fragment.

[0100] The default application needs to generate a page for display first, and then display the page according to the user's instructions.

[0101] Each page can be used as a target page.

[0102] When the target page for display is generated, a fragment corresponding to the target page may be started. When the fragment is started, whether the current working mode is the mobile mode or the desktop mode may be determined from the temporarily stored working mode information.

[0103] If it is not in desktop mode (that is, working in mobile phone mode), determine that the display attribute of the target page is independent window display. The target page can be generated according to the target page generation method corresponding to the display attribute of the independent window display. Here, the initialization data of the preset application (including the display information of the target page) is passed to at least one activity container corresponding to the target page to run the above container. The above activity container carries the fragment that implements the interface display function. The activity container transmits the display information of the target page to the fragment so that the fragment performs the operation of generating the target page.

[0104] If it is desktop mode, it can be determined whether the display attribute in desktop mode is independent window display. If it is determined that the display attribute of the target page is independent window display. The target page can be generated according to the target page generation method corresponding to the display attribute of the independent window display. Here, the initialization data of the preset application (including the display information of the target page) is passed to at least one activity container corresponding to the target page to run the above container. The above activity container carries the fragment that implements the interface display function. The activity container transmits the display information of the target page to the fragment, so that the fragment performs the operation of generating the target page.

[0105] If the current working mode is the desktop mode, and the display attribute of the target page is determined to be non-independent window display, the display type parameter of the target page in the desktop mode can be further obtained to determine the display type. The display type includes but is not limited to: column display, drawer display, and floating window display.

[0106] If it is determined that the display type of the non-independent window display of the target page is a column display, the page element information corresponding to the target page is sent to the column display management component in the main activity container, so that the column display management component determines the target column containers corresponding to each page element according to the page element information, and creates a fragment instance corresponding to the page element information in the target column container. The column display management component can send the information of the created fragment instance to the fragment management component for management. The fragment management component can complete the binding, deletion, replacement, etc. of the fragment.

[0107] If it is determined that the display type of the non-independent window display of the target page is a drawer display, the size of the drawer interface is determined according to the determined window width of the target page; the size information of the drawer interface is sent to the drawer display management component corresponding to the drawer display in the main activity container, so that the drawer display management component creates fragment instances corresponding to the drawer interfaces. The drawer display management component can send information of the created fragment instance to the fragment management component for management.

[0108] If it is determined that the display type of the non-independent window display of the target page is a floating window display, the position and size of the floating window are determined according to the determined window width of the target page; the page element information corresponding to the target page and the above position and size information are sent to the floating window display management component in the main activity container, so that the floating window display management component determines the target floating window container corresponding to each page element according to the page element information and the above position and size information, and creates a fragment instance corresponding to the page element information in the target floating window container.

[0109] The target floating window container here may include at least one.

[0110] The floating window display management component can send information of the created fragment instance to the fragment management component for management.

[0111] The fragment management component can cache the fragment instances used to generate interface displays.

[0112] In desktop mode, if the display of the target page is non-independent display, a fragment instance for realizing interface display can be created according to the management component corresponding to the display type corresponding to the target page, and the target page for display corresponding to the above display type can be generated by using the fragment instance. The generated target page can be cached. When the user chooses to display the above target page, the target page can be displayed.

[0113] In addition, each management component manages the task stack and is responsible for the forward and backward logic of the Fragment.

[0114] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an information display device, and the device embodiment is Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0115] like Figure 4 As shown, the information display device of this embodiment includes: a detection unit 401, a determination unit 402 and a display unit 403. Among them, the detection unit 401 is used to detect the current working mode, and the working mode includes a desktop mode and a mobile phone mode; the determination unit 402 is used to determine the display properties of the target page in the detected current working mode; the display unit 403 is used to display the target page based on the display properties.

[0116] In this embodiment, the specific processing of the detection unit 401, the determination unit 402 and the display unit 403 of the information display device and the technical effects thereof can be referred to in Figure 1 The relevant descriptions of step 101, step 102 and step 103 in the corresponding embodiment are not repeated here.

[0117] In some optional implementations, the current working mode is the desktop mode, and the determination unit 302 is further used to: determine whether the display attribute of the target page in the desktop mode is an independent window display; and the display unit 403 is further used to: in response to determining that the display attribute of the target page in the desktop mode is an independent window display, display the target page based on the display attribute of the independent window display.

[0118] In some optional implementations, the current working mode is the mobile phone mode, and the determination unit 302 is further used to: determine that the display attribute of the target page in the mobile phone mode is an independent window display; and the display unit 403 is further used to: display the target page based on the display attribute of the independent window display.

[0119] In some optional implementations, the display unit 403 is further used to: generate the target page according to a target page generation method corresponding to the display properties of the independent window display; add the target page to a preset page stack; the preset page stack is used to store multiple pages of a preset application; in response to receiving a display instruction for the target page, obtain the target page from the page stack and display the target page.

[0120] In some optional implementations, the display unit 403 is further used to: run an activity container that carries a fragment that implements an interface display function, the target page includes at least one activity container; and use the activity container to transmit display information of the target page to the fragment, so that the fragment performs an operation of generating the target page.

[0121] In some optional implementations, the working mode is a desktop working mode, and the display unit 303 is further used to: in response to determining that the display attribute of the target page in the desktop mode is a non-independent window display, determine the display type of the non-independent display; according to the display type, determine the display style of each page element in the target page, and according to the display style of the page element, generate the target page for display.

[0122] In some optional implementations, the display type includes one of the following: column display, drawer display, and floating window display.

[0123] In some optional implementations, the display unit 403 is further used to: obtain display type parameters corresponding to the non-independent display window, and determine the display type according to the display type parameters; and send page element information corresponding to the target page to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements; use the fragment instance to determine the display style of each page element in the target page, and generate a target page for display according to the display style of the page elements.

[0124] In some optional implementations, the non-independent display type is column display, and the target management component is a column display management component; and the display unit 303 is further used to: send the page element information corresponding to the target page to the column display management component in the main activity container, so that the column display management component determines the target column container corresponding to each page element according to the page element information, and creates a fragment instance corresponding to the page element information in the target column container.

[0125] In some optional implementations, the non-independent display type is a drawer display; and the display unit 403 is further used to: determine the size of the drawer interface based on the determined window width; send the page element information corresponding to the target page and the size information of the drawer interface to the drawer display management component corresponding to the drawer display in the main activity container, so that the drawer display management component creates fragment instances corresponding to each drawer interface.

[0126] In some optional implementations, the non-independent display type is a floating window display; and the display unit 403 is further used to: determine the position and size of the floating window based on the determined window width; send the page element information corresponding to the target page and the position and size information to the floating window display management component in the main activity container, so that the floating window display management component determines the target floating window container corresponding to each page element based on the page element information, position and size information, and creates a fragment instance corresponding to the page element information in the target floating window container.

[0127] Please refer to Figure 5 , Figure 5 An exemplary system architecture is shown in which the information display method according to an embodiment of the present disclosure can be applied.

[0128] like Figure 5As shown, the system architecture may include a terminal device 501, the terminal device 501 is connected to a first display device 502 and a second display device 503, a network 504, and a server 505. The first display device 502 may be a display of the terminal device itself. The network 504 is used to provide a medium for a communication link between the terminal device 501 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0129] The terminal device 501 can interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal device 501, such as web browser applications, search applications, multimedia information browsing applications, and multimedia conference applications. The client application in the terminal device 501 can receive user instructions and perform corresponding functions according to the user's instructions, such as switching between working modes corresponding to different display devices according to the user's instructions.

[0130] The terminal device 501 can be hardware or software. When the terminal device 501 is hardware, it can be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones and tablet computers. When the terminal device 501 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0131] The server 505 may be a server that provides various services, such as receiving an information acquisition request sent by the terminal device 501 , and sending return feedback information to the terminal device 501 according to the information acquisition request.

[0132] It should be noted that the information display method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the information display device can be set in the terminal device 501. In addition, the above information display method can also be executed by a server, and accordingly, the information display device can be set in the server 505.

[0133] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0134] Reference below Figure 6 , which shows an electronic device (eg, Figure 5The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0135] like Figure 6 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0136] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0138] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0139] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0140] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0141] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: detects the current working mode, which includes desktop mode and mobile phone mode; determines the display properties of the target page in the detected current working mode; and displays the target page based on the display properties.

[0142] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0144] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, a detection unit may also be described as a "unit for detecting the current working mode".

[0145] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0146] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0148] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0149] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An information display method, characterized in that: include: Detecting the current working mode, where the working mode includes desktop mode and mobile phone mode; Determine the display properties of the target page in the detected current working mode; The display attribute is independent window display or non-independent window display; the target page is a page of the application; displaying the target page based on the display attribute; The current working mode is the mobile phone mode, and the display properties of the target page in the detected current working mode are determined, including: Determining that the display attribute of the target page in the mobile phone mode is independent window display; and The displaying the target page based on the display attribute includes: displaying the target page based on the display attribute displayed in the independent window.

2. The method according to claim 1, characterized in that The current working mode is the desktop mode, and the determining of the display properties of the target page in the detected current working mode includes: Determining whether the display attribute of the target page in the desktop mode is independent window display; and The displaying the target page based on the display attribute includes: In response to determining that the display attribute of the target page in the desktop mode is independent window display, the target page is displayed based on the display attribute of the independent window display.

3. The method according to claim 1 or 2, characterized in that: The displaying of the target page based on the display attribute of the independent window display includes: Generate the target page according to the target page generation method corresponding to the display attribute of the independent window display; Adding the target page to a preset page stack; the preset page stack is used to store multiple pages of a preset application; In response to receiving the display instruction of the target page, the target page is acquired from the page stack and displayed.

4. The method according to claim 3, characterized in that The method for generating a target page corresponding to the display attribute of the independent window display generates the target page, including: Running an activity container that carries a fragment that implements an interface display function, wherein the target page includes at least one activity container; The display information of the target page is transmitted to the fragment by using the activity container, so that the fragment performs an operation of generating the target page.

5. The method according to claim 2, characterized in that: The working mode is a desktop working mode, and The displaying the target page based on the display attribute includes: In response to determining that the display attribute of the target page in the desktop mode is non-independent window display, determining a display type of non-independent display; According to the display type, the display style of each page element in the target page is determined, and according to the display style of the page element, the target page for display is generated.

6. The method according to claim 5, characterized in that The display type includes one of the following: Column display, drawer display, and floating window display.

7. The method according to claim 6, characterized in that The determining the display type of the non-independent display includes: Acquire a display type parameter corresponding to the non-independent display window, and determine the display type according to the display type parameter; and Determining the display style of each page element in the target page according to the display type, and generating the target page for display according to the display style of the page element, includes: Sending the page element information corresponding to the target page to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements; The display style of each page element in the target page is determined by using the fragment instance, and the target page for display is generated according to the display style of the page element.

8. The method according to claim 7, characterized in that The non-independent display type is column display, and the target management component is a column display management component; and The sending the display information corresponding to the target page to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements, includes: The page element information corresponding to the target page is sent to the column display management component in the main activity container, so that the column display management component determines the target column container corresponding to each page element according to the page element information, and creates a fragment instance corresponding to the page element information in the target column container.

9. The method according to claim 7, characterized in that: The non-independent display type is a drawer display; and The sending the display information corresponding to the target page to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements, includes: Determine the size of the drawer interface according to the determined window width; The page element information corresponding to the target page and the size information of the drawer interface are sent to the drawer display management component corresponding to the drawer display in the main activity container, so that the drawer display management component creates fragment instances corresponding to the drawer interfaces.

10. The method according to claim 7, characterized in that The non-independent display type is a floating window display; and The sending the display information corresponding to the target page to the target management component corresponding to the display type in the main activity container, so that the target management component creates fragment instances corresponding to the page elements, includes: Determine the position and size of the floating window according to the determined window width; The page element information, position and size information corresponding to the target page are sent to the floating window display management component in the main activity container, so that the floating window display management component determines the target floating window container corresponding to each page element according to the page element information, position and size information, and creates a fragment instance corresponding to the page element information in the target floating window container.

11. An information display device, characterized in that: include: A detection unit, used to detect a current working mode, wherein the working mode includes a desktop mode and a mobile phone mode; A determination unit, used to determine the display attribute of the target page in the detected current working mode; The display attribute is independent window display or non-independent window display; the target page is a page of the application; A display unit, configured to display the target page based on the display attribute; The current working mode is the mobile phone mode, and the determining unit is specifically used to determine that the display attribute of the target page in the mobile phone mode is independent window display; and The display unit is specifically configured to display the target page based on the display properties displayed in the independent window.

12. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Television and method and device for displaying storage device on television

    CN103702224A

  • Self-adaptive desktop management system and method of external connection display of smart phone

    CN105812565A

  • Multi-screen display control method and system

    CN107291456A