Interface display method and apparatus
By scaling the interface content of third-party applications to adapt to the resolution of small-sized screens, the problem of inability to display third-party applications properly on small-sized screens is solved and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/088064
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2024-04-16
- Publication Date
- 2024-10-24
AI Technical Summary
Electronic devices with small screens cannot display third-party applications normally, resulting in poor user experience. The reason is that the screen resolution is lower than the lower limit of the resolution range for application adaptation, resulting in incomplete display of controls, overlapping, crashing, and touch input conflicts.
By receiving user input, the interface content of the third-party application is scaled to adapt to the resolution of the small screen, and the scaled interface content is displayed on the screen to ensure normal display and touch operation of interface elements.
Improved the display effect and user experience of third-party applications on small-size screens, allowing interface content to be displayed normally and avoiding the problems of incomplete display of controls and conflict with touch input.
Smart Images

Figure CN2024088064_24102024_PF_FP_ABST
Abstract
Description
Interface display method and device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202310426192.1 filed in China on April 19, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of communication technology, and specifically relates to an interface display method and device. Background Art
[0004] With the development of communication technology, electronic device screens have more and more display forms. However, for the sake of aesthetics, some electronic devices have smaller screen sizes, and the screen resolution may be smaller than the lower limit of the resolution range corresponding to third-party applications.
[0005] As a result, many third-party applications cannot be displayed normally on these small screens. For example, the controls in the display interface are not fully displayed, the controls in the display interface are overlapped, the display interface crashes, the control functions cannot be clicked, touch input operations conflict, etc., resulting in a poor user experience when displaying third-party applications on small screens.
[0006] Summary of the Invention
[0007] The purpose of the embodiments of the present application is to provide an interface display method and device, which can enable the display interface of the application on the electronic device screen to have a better display effect when the resolution of the electronic device screen is lower than the lower limit of the resolution range corresponding to the application.
[0008] In a first aspect, an embodiment of the present application provides an interface display method, which is applied to an electronic device comprising at least a first screen, and the interface display method includes: receiving a first input, the first input being used to trigger the electronic device to display a first interface of a first application, the screen resolution of the first screen being less than a lower limit value of a resolution range adapted for the first application; in response to the first input, scaling the interface content of the first interface of the first application to obtain target interface content, and displaying the target interface content on the first screen.
[0009] In a second aspect, an embodiment of the present application provides an interface display device, which is applied to an electronic device comprising at least a first screen, and the interface display device includes: a receiving module, a processing module and a display module; the receiving module is used to receive a first input, and the first input is used to trigger the electronic device to display a first interface of a first application, and the screen resolution of the first screen is less than the lower limit value of the resolution range adapted by the first application; the processing module is used to scale the interface content of the first interface of the first application in response to the first input to obtain the target interface content; the display module is used to display the target interface content on the first screen.
[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0014] In an embodiment of the present application, an electronic device receives a first input, and the first input is used to trigger the electronic device to display a first interface of a first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain target interface content, and the target interface content is displayed on the first screen. In this way, the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen with a better display effect, thereby improving the user's experience of using the electronic device screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] FIG1 is a schematic diagram of a system structure of a method for implementing an interface display provided by an embodiment of the present application;
[0016] FIG2 is a flow chart of an interface display method according to an embodiment of the present application;
[0017] FIG3 is a second flow chart of an interface display method provided in an embodiment of the present application;
[0018] FIG4A is a schematic diagram of a folded mobile phone provided by an embodiment of the present application;
[0019] FIG4B is a schematic diagram of the unfolded effect of a mobile phone provided by an embodiment of the present application;
[0020] FIG5 is a third flow chart of an interface display method provided in an embodiment of the present application;
[0021] FIG6 is a schematic diagram of an example process of an interface display method provided in an embodiment of the present application;
[0022] FIG7 is a schematic structural diagram of an interface display device provided in an embodiment of the present application;
[0023] FIG8 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;
[0024] FIG9 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0026] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0027] With the development of communication technology, electronic device screens have more and more shapes. However, for the sake of aesthetics, some electronic devices are designed with smaller screen sizes, and the screen resolution may be smaller than the lower limit of the resolution range corresponding to third-party applications. Among them, taking electronic devices with foldable screens, such as electronic devices that can fold the screen up and down, as an example, since the external screen in the foldable electronic device is generally set on the back of the internal screen of the electronic device, its display area is only half of the internal screen, and the resolution of the display screen is also relatively low, usually lower than the lower limit of the resolution range corresponding to third-party applications, resulting in the interface of most third-party applications not being compatible with the external screen of the electronic device with a foldable screen. Even if the interface of the third-party application can be displayed on the external screen, the interface cannot be displayed according to the normal display ratio.
[0028] As a result, many third-party applications cannot be displayed normally on these small screens. For example, the controls in the display interface are not fully displayed, the controls in the display interface are overlapped, the display interface crashes, the control functions cannot be clicked, touch input operations conflict, etc., resulting in a poor user experience when displaying third-party applications on small screens.
[0029] In an embodiment of the present application, the electronic device can trigger the electronic device to display the first interface of the first application by receiving a first input from the user, wherein the screen resolution of the first screen is less than the lower limit of the resolution range adapted by the first application; then, in response to the first input, the electronic device scales the interface content of the first interface of the first application to obtain target interface content, and displays the target interface content on the first screen. In this way, the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that the interface content can be normally displayed on the first screen, thereby improving the user's experience of using the electronic device screen.
[0030] As shown in Figure 1, a schematic diagram of a possible system framework provided in an embodiment of the present application is shown. In Figure 1, the system architecture includes three layers: an application (APP) layer 11, a system framework layer 12, and a display synthesis input native bottom layer 13.
[0031] The application layer 11 includes various applications in the system (including system applications and third-party applications) and auxiliary service applications.
[0032] The system framework layer 12 is the framework of the system and includes sub-service modules for various management systems. Electronic devices can process applications based on this system framework. Specifically, the system framework layer 12 includes an intermediate conversion system that converts screen information from various application systems. This intermediate conversion system can convert display parameters such as resolution and screen density.
[0033] The system framework layer 12 also includes a screen management system service module, a component activity management system service module, and a window display management system service module. The intermediate conversion system converts display parameters and distributes them to these service modules for parameter updates. These parameters are then displayed via the view display system within the system framework layer 12.
[0034] In addition, the system framework layer 12 further includes a list management and delivery module and an application configuration processing subsystem module. These two modules are used for delivering application lists and performing configuration processing on corresponding applications.
[0035] The display synthesis input native bottom layer 13 includes customization of the layer interface display synthesis system and the input system to ensure that the interface display and touch operation of third-party applications in the view display system of the electronic device are normal.
[0036] Taking the above system as an example, in the embodiment of the present application, developers can develop a software program that implements the interface display method provided in the embodiment of the present application based on the system architecture shown in Figure 1, so that the interface display method can be run based on the operating system shown in Figure 1. That is, the processor or electronic device can implement the interface display method provided in the embodiment of the present invention by running the software program in the operating system.
[0037] The interface display method and device provided in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0038] The execution subject of the interface display method provided in the embodiment of the present invention can be an electronic device (including mobile electronic devices and non-mobile electronic devices), or a functional module and / or functional entity in the electronic device that can implement the interface display method. The specific execution subject can be determined according to actual use requirements and is not limited by the embodiment of the present invention. The following takes an electronic device including at least a first screen as an example to exemplify an interface display method provided in an embodiment of the present invention, and is hereinafter collectively referred to as an electronic device.
[0039] The present application provides an interface display method. FIG2 shows a flowchart of the interface display method provided by the present application. The method can be applied to an electronic device including a first screen. As shown in FIG2, the interface display method provided by the present application can include the following steps 201 to 202.
[0040] Step 201: The electronic device receives a first input.
[0041] In an embodiment of the present application, the first input is used to trigger the electronic device to display the first interface of the first application.
[0042] In an embodiment of the present application, the above-mentioned first input may include: a click input of the user on the first screen of the electronic device, or a folding input of the user on the electronic device.
[0043] Exemplarily, the click input may be a single click input, a double click input, or any number of click inputs, etc. The click input may also be a long press input or a short press input.
[0044] In some embodiments of the present application, the first application may be any third-party application, including but not limited to video applications, shopping applications, navigation applications, chat applications, etc.
[0045] In some embodiments of the present application, the first application may be an application directly displayed on the first screen, or may be at least one application displayed in an application set.
[0046] Exemplarily, the above application set includes at least one third-party application.
[0047] For example, the user can click on the application displayed directly on the first screen to display the first interface of the first application on the first screen, or the user can enter the application collection entrance and click on the first application to display the first interface of the first application on the first screen.
[0048] Exemplarily, the above-mentioned application collection entrance can be displayed in the form of a folder or a component.
[0049] It should be noted that the first application is an application that has not been displayed on the first screen, for example, a newly installed application is displayed on the first screen for the first time.
[0050] In some embodiments of the present application, the screen resolution of the first screen is less than a lower limit value of a resolution range adapted by the first application.
[0051] Exemplarily, the lower limit of the resolution range adapted by the first application is the minimum resolution at which the first application can be normally displayed on the screen of the electronic device.
[0052] For example, the resolution of the first screen of the electronic device is 200*300, and the resolution range adapted by the first application is (400*600, 900*1080). It is determined that the resolution of the first screen of the electronic device is less than the lower limit of the resolution range adapted by the first application.
[0053] In some embodiments of the present application, the electronic device stores an application configuration of the first application, which includes but is not limited to: the resolution range adapted by the above-mentioned first application, and the initial display parameters of the first screen displaying the interface of the first application.
[0054] Step 202: The electronic device scales the interface content of the first interface of the first application in response to the first input, and displays the target interface content on the first screen of the electronic device.
[0055] In some embodiments of the present application, the interface content of the first interface includes at least one component.
[0056] Exemplarily, the at least one component may be at least one constituent element for constituting the target interface content, and may include a control for input or display, such as text or a picture.
[0057] For example, the search component on the home page interface of the video application, the "recommendation" on the home page interface of the video application, etc.
[0058] Further optionally, in combination with FIG. 2 , as shown in FIG. 3 , in some embodiments of the present application, in the above step 202 “the electronic device scales the interface content of the first interface of the first application in response to the first input”, steps 202a and 202b are included:
[0059] Step 202a: The electronic device scales each component of the at least one component according to the target scaling factor in response to the first input to obtain component parameters of each scaled component.
[0060] Exemplarily, the above-mentioned component parameters may include at least one of the following: the display position of the component in the first interface, the component size of the component, and the RGB value of each pixel in the component pattern corresponding to the component.
[0061] Exemplarily, the target scaling factor is used to adjust the interface content of the first interface.
[0062] Exemplarily, scaling each component of the at least one component is performed by the electronic device through a Matrix matrix.
[0063] For example, Matrix is a matrix whose main function is coordinate mapping and numerical conversion. It has the following 3x3 matrix representation:
[0064] Assuming that the target scaling factor is 0.5, multiply both MSCALE_X and MSCALE_Y by the target scaling factor 0.5 to obtain the final matrix result, and the component parameters of each component after scaling are obtained based on the matrix result value.
[0065] Step 202b: Generate target interface content based on the scaled component parameters of each component.
[0066] For example, taking the first application as a video application, assuming that the main interface of the video application includes a search component and a video thumbnail, the electronic device can proportionally reduce the search component and the video thumbnail according to the target zoom factor K1 to generate a reduced main interface of the video application.
[0067] It should be noted that although the target interface content is scaled to the size of the first screen, the target interface content size and the touch input area are inconsistent with the size of the first screen. Therefore, the electronic device needs to modify the interface touch input input touchRegion and layer buffer scaling matrix accordingly, and provide the modified parameters to the touch sensing driver (SurfaceFlinger, SF) synthesis display side to adjust the touch input area to an area appropriate to the size of the first screen.
[0068] In the interface display method provided in an embodiment of the present application, an electronic device receives a first input, and the first input is used to trigger the electronic device to display a first interface of a first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain target interface content, and the target interface content is displayed on the first screen. In this way, the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen with a better display effect, thereby improving the user's experience of using the electronic device screen.
[0069] In some embodiments of the present application, the electronic device may include only a first screen, the screen resolution of which is less than the lower limit of the resolution range of the first application. Based on this, the first input may be a touch input to the application icon on the first screen.
[0070] In other embodiments of the present application, the electronic device may include a first screen and a foldable second screen, wherein the display orientations of the first screen and the second screen are opposite. It is understood that the electronic device may be considered as a multi-screen terminal having at least two display screens, wherein the at least two display screens include the first screen and the second screen, wherein when the second screen is in an unfolded state, the display orientations of the first screen and the second screen are opposite.
[0071] Exemplarily, the above-mentioned unfolded state refers to the second screen being in a flat state.
[0072] For example, taking the foldable electronic device in a folded state shown in FIG4A as an example, the foldable electronic device includes a first screen 21 and a foldable second screen 22, wherein, when the second screen 22 is in the unfolded state, the first screen 21 is a display screen that is disposed on the second screen 22 with its back facing away and is smaller in size than the second screen 22. Specifically, since the second screen 22 is a foldable screen, when the second screen 22 of the foldable electronic device is folded 360° along the common axis x, after folding, the foldable electronic device is in a fully folded state. At this time, the second screen 22 is folded and hidden inside, and therefore, the second screen 22 can be referred to as the inner screen. At the same time, the first screen 21 and the second screen 22 are disposed with their backs facing each other, and therefore, the first screen 21 can be referred to as the outer screen.
[0073] For example, in combination with Figure 4A, as shown in Figure 4B, Figure 4B is a schematic diagram of a foldable electronic device in an unfolded state, and the second screen 22 of the foldable electronic device is unfolded to 180° along the common axis x, so that the second screen 22 is in an unfolded state. At this time, the first screen 21 is located on the back of the second screen 22, that is, the display directions of the first screen 21 and the second screen 22 are opposite.
[0074] In a possible embodiment, the first input may be a click input on the first application on the first screen.
[0075] Optionally, in some embodiments of the present application, in a scenario where the electronic device includes a first screen and a foldable second screen, the process of step 202 "the electronic device scaling the interface content of the first interface of the first application in response to the first input and displaying the target interface content on the first screen of the electronic device" includes step 202a1:
[0076] Step 202a1: When the second screen of the electronic device is in a folded state, the electronic device scales the interface content of the first interface of the first application in response to the first input, obtains the target interface content, and displays the target interface content on the first screen.
[0077] Exemplarily, the first input is used to select a first application.
[0078] Exemplarily, the first input may include a click input by the user on the first application on the first screen of the electronic device.
[0079] Exemplarily, after receiving the first input of the user to the first application, the electronic device scales the interface content of the first interface of the first application selected by the user, and displays the scaled interface content on the first screen.
[0080] In a possible embodiment, taking the first screen as the external screen and the second screen as the internal screen as an example, the interface display method provided in the embodiment of the present application may include the following steps A1 and A2.
[0081] Step A1: The electronic device displays an application collection entrance on the external screen desktop, and the applications in the application collection entrance can be operated and displayed normally on the external screen.
[0082] For example, the electronic device may display the applications in the application set entry according to the user's input to the application set entry.
[0083] For example, since the application collection entrance is located on the external screen desktop of the electronic device, the user does not need to unfold the electronic device to operate the application he needs to operate, which simplifies the steps for the user to operate the application.
[0084] Step A2: The electronic device receives a user input for any application in the application set entry, and then displays the interface of any application on the external screen desktop of the electronic device.
[0085] It can be understood that, based on the solution of the present application, for any application displayed on the external screen desktop of the electronic device, its functions are exactly the same as those displayed on the internal screen.
[0086] It should be noted that the user can also perform a flip input on the electronic device so that the interface of the application displayed on the outer screen of the electronic device changes the display direction according to the user input.
[0087] For example, the electronic device may support users to slide or press keys on the external screen in the same way as built-in system applications and the internal screen, for example, back to exit and swipe up to enter the background.
[0088] It should be noted that based on the technical solution of this application, the third-party applications and built-in system applications of the electronic device can be used and interacted consistently on the external screen, and support seamless interactive switching between the display interface of the third-party application and the display interface of the built-in system application.
[0089] For example, assuming that the first interface of the first application is displayed on the external screen, after the user slides or clicks on the electronic device, the electronic device can cancel the first interface of the first application displayed on the external screen and display the display interface of the built-in system application on the external screen, thereby achieving interactive consistency and supporting seamless interactive switching between third-party applications and built-in system application interfaces.
[0090] In this way, the user can directly select the application he wants to view on the external screen of the electronic device and zoom the display content of the application so that the interface of the application can be displayed normally on the external screen, improving the user's experience of using the external screen of the electronic device.
[0091] In another possible embodiment, the first input may be a folding input for the second screen.
[0092] Further optionally, in some embodiments of the present application, before the above step 201 “the electronic device receives the first input”, the interface display method provided in the embodiment of the present application further includes step 301:
[0093] Step 301: Display a first interface of a first application on a second screen of an electronic device.
[0094] Exemplarily, the second screen is in an expanded state.
[0095] Exemplarily, the first input may include a folding input to the second screen of the electronic device.
[0096] Exemplarily, the first input is used to fold the second screen of the electronic device so as to display the first interface displayed on the second screen on the first screen.
[0097] Exemplarily, when the second screen of the electronic device displays the first interface of the first application, the electronic device receives the user's folding input for the second screen, and determines the target resolution based on the resolution range of the first application displayed on the second screen and the aspect ratio of the first screen.
[0098] In this way, when the interface content is displayed on the inner screen of the electronic device, the user can directly switch the display interface content to the normal display on the outer screen by folding the screen.
[0099] Optionally, in some embodiments of the present application, before the above step 202 of “scaling the interface content of the first interface of the first application”, the interface display method provided in the embodiment of the present application further includes steps 401 and 402:
[0100] Step 401: The electronic device determines a target resolution within a resolution range adapted for a first application based on the screen aspect ratio of a first screen.
[0101] Exemplarily, the target resolution is used to layout the display content of the first interface at the resolution. It is understandable that the interface content of the first interface at the target resolution can be displayed normally.
[0102] For example, the aspect ratio of the target resolution is the same as the aspect ratio of the first screen. For example, if the aspect ratio of the first screen is 3:2, then the aspect ratio of the target resolution must also be 3:2. In other words, the aspect ratio of the target resolution can be 6:4 or 12:8.
[0103] Exemplarily, the electronic device determines a resolution having the same aspect ratio as the first screen in a resolution range adapted to the first application, and determines the resolution as the target resolution.
[0104] Step 402: The electronic device uses the quotient of the screen resolution of the first screen and the target resolution as the target scaling factor.
[0105] Exemplarily, the quotient obtained by dividing the width and height of the screen resolution of the first screen by the width and height of the target resolution is used as the target scaling factor.
[0106] For example, taking the resolution of the first screen as 200*400 and the target resolution as 400*800, 200÷400=0.5, 400÷800=0.5, then 0.5 is the target scaling factor.
[0107] In some embodiments of the present application, after determining the target resolution, the electronic device layouts the interface content of the first interface of the first application according to the target resolution, and then scales the layout interface content based on the target scaling factor to obtain the scaled interface content, i.e., the above-mentioned target interface content, and finally displays the target interface content on the first screen.
[0108] Optionally, in some embodiments of the present application, in combination with FIG2 , as shown in FIG5 , after the above step 202 “displaying the target interface content on the first screen of the electronic device”, the interface display method provided in the embodiment of the present application further includes steps 501 to 503:
[0109] Step 501: The electronic device adds display parameters of the target interface content displayed on the first screen to the application configuration of the first application.
[0110] Exemplarily, the above display parameters include the resolution of the target interface content display, the pixel density value of the target interface content, and the component parameters of the components in the target interface content.
[0111] In one example, the application configuration of the first application may be aggregated into an application list.
[0112] Exemplarily, the application list includes applications normally displayed on the first screen and application configurations of the applications.
[0113] Exemplarily, the above application list may be stored locally or configured by the network side.
[0114] Step 502: When the first application has been successfully executed according to the display parameters, the electronic device receives a second input.
[0115] Exemplarily, the second input is used to select an application icon corresponding to the first application on the first screen.
[0116] Exemplarily, the second input may include a click input on an application icon corresponding to the first application.
[0117] Exemplarily, the above “when the first application has successfully run according to the display parameters” is used to indicate that the display interface of the first application has been successfully displayed normally on the first screen of the electronic device and has been closed by the user, that is, the first application has stopped running.
[0118] For example, after a first application is normally displayed on the external screen of an electronic device, the electronic device stores the display parameters of the application on the external screen and adds them to the application configuration of the application. At this time, the user closes the first application. The electronic device receives a second input from the user, restarts the first application, and displays it on the external screen.
[0119] Step 503: The electronic device displays the interface of the first application on the first screen in response to the second input based on the display parameters in the application configuration.
[0120] Exemplarily, the electronic device may parse the application list to obtain display parameters in the application configuration of the first application.
[0121] For example, the user clicks and inputs an application icon corresponding to the first application on the first screen, and the electronic device can directly use the application configuration of the first application to display the interface of the first application on the first screen.
[0122] In one possible example, after the user inputs the application icon corresponding to the application, the electronic device parses the application list to determine whether the application is in the application list. If it is in the application list, the electronic device can directly use the application configuration of the application in the application list so that the display content of the application can be displayed normally on the screen of the electronic device.
[0123] In another possible example, after the user inputs the application icon corresponding to the application, the electronic device parses the application list to determine whether the application is in the application list. If it is not in the application list, the electronic device scales the display content of the application and displays the scaled display content on the screen of the electronic device.
[0124] In some embodiments of the present application, the electronic device first determines the screen to be displayed by the application and then calls different configuration parameters based on the displayed screen. For example, if the application is displayed on the second screen, the electronic device can directly configure the original display parameters of the application and display the display content of the application on the second screen; if the application is displayed on the first screen, the electronic device can directly configure the display parameters corresponding to the display on the first screen.
[0125] Specifically, when the application is displayed on the screen, based on the record of the relevant status information of the corresponding screen and the relevant information such as the current screen resolution, the relevant information is distributed to the application end to refresh the display content layout.
[0126] In this way, the electronic device stores the display parameters normally displayed on the screen of the electronic device, and directly configures these display parameters to the application as needed when it is used next time, thereby reducing the steps of displaying interface content of the electronic device.
[0127] The following describes in detail the interface display method provided in an embodiment of the present application using a possible embodiment. Specifically, taking the foldable screen electronic device shown in Figures 4A and 4B above as an example, as shown in Figure 6, the method includes the following steps 101 to 113.
[0128] Step 101. After the foldable screen electronic device is turned on, the locally stored application list is parsed, and system-related data information (locally stored application configuration information) is cached and stored, and other module applications such as the external screen desktop application icon and the external screen executable application interception module are notified;
[0129] Step 102. If the foldable screen electronic device has a newly installed application, for the application that has been installed, proceed to step 104;
[0130] Step 103. If the network sends an updated application list at this time, the cached system-related data information is updated according to the latest configuration result sent by the network list;
[0131] Step 104: The newly installed application begins parsing the application package information such as the application unique identifier (UID) and integrating it with the resolution configuration interval information of the corresponding application;
[0132] Step 105. When the user opens an application on the inner or outer screen of the foldable screen electronic device, step 106 is entered during the process of starting the application process and binding it with the system;
[0133] Step 106. At this point, the system of the foldable screen electronic device needs to determine whether the application is in the application list. If so, it updates the cached system-related data information on a process-by-process basis, that is, updates the configuration information of the application to the configuration information required for use and proceeds to step 107.
[0134] Step 107. The system of the foldable screen electronic device updates the configuration information data such as whether the application should be magnified or scaled according to the inner screen or outer screen of the foldable screen electronic device displayed by the current application, that is, according to the currently used focus screen, or maintains the configuration information data related to the scaling of the current screen, and then proceeds to step 108;
[0135] Step 108. When the system of the foldable screen electronic device detects that the screen where the currently used application interface is located has changed, such as when the second screen of the foldable screen electronic device is folded, the system of the foldable screen electronic device will update the application configuration information accordingly and proceed to step 109;
[0136] Step 109. Combine the resolution information of the corresponding screen configured, and update the relevant resolution scaling information according to the focus screen where the application is started, and proceed to step 110 to update the system and application status;
[0137] Step 110: Update the mAppScale scaling information of the application process. The corresponding electronic device system then updates the status information of the server window interface and process record information to record and prepare for the application to enter step 111.
[0138] Step 111. When the application is to be displayed on the external screen of the foldable electronic device, based on the above-mentioned record of relevant status information and related information such as the current screen resolution, these relevant information are distributed to the application side for layout refresh and display. Specifically, the corresponding application interface config, displayinfo, frame, insets and other screen status information after the corresponding configuration is modified are given to the application side process, so that the application will layout, display and refresh the interface content according to the screen size we expect it to run on. At the same time, the underlying input and other parameters on the system side of the foldable electronic device will also be modified accordingly to enter step 112;
[0139] Step 112. When the application is displayed on the external screen of the foldable electronic device, the layout, display, and refresh are performed according to the screen size that we configured in step 111. However, because the application interface size and touch input area are inconsistent with the external screen size, the system needs to modify the interface touch input touchRegion and layer buffer scaling matrix accordingly and send them to the SF synthesis display side, then proceed to step 113.
[0140] Step 113. After processing and adaptation of the system and application side solutions, the application is finally adapted to run, display and operate normally on the external screen; if you continue to use or exit other applications and continue to use them, enter the previous system adaptation solution process in step 105.
[0141] It is understandable that electronic devices can, based on their own product positioning and needs, add application lists to the application configuration for each application on the market, or receive application lists sent by the network, and can individually adjust and control the resolution and pixel density configuration for each application's interface effect.
[0142] In this way, when displaying an application, the electronic device can directly call the display parameters corresponding to the application in the local application configuration list without repeatedly adjusting and calculating the parameters for displaying the content.
[0143] It should be noted that the interface display method provided in the embodiments of the present application can be executed by an interface display device, an electronic device, or a functional module or entity in the electronic device. In the embodiments of the present application, the interface display device provided in the embodiments of the present application is described by taking the interface display method executed by the interface display device as an example.
[0144] Figure 7 shows a possible structural diagram of an interface display device involved in an embodiment of the present application. As shown in Figure 7, the interface display device 700 may include: a receiving module 701, a processing module 702 and a display module 703;
[0145] Among them, the receiving module 701 is used to receive a first input, and the first input is used to trigger the electronic device to display the first interface of the first application, and the screen resolution of the first screen is less than the lower limit value of the resolution range adapted by the first application; the processing module 702 is used to scale the interface content of the first interface of the first application in response to the first input received by the receiving module 701 to obtain the target interface content; the display module 703 is used to display the target interface content processed by the processing module 702 on the first screen.
[0146] Optionally, in some embodiments of the present application, the interface content of the first interface includes at least one component; the above-mentioned processing module 702 is specifically used to: in response to the first input received by the receiving module 701, scale each component of the at least one component according to the target scaling factor to obtain the component parameters of each component after scaling; and generate the target interface content based on the component parameters of each component after scaling.
[0147] Optionally, in some embodiments of the present application, the electronic device also includes a foldable second screen, and the display orientations of the first screen and the second screen are opposite; the above-mentioned processing module 702 is specifically used to, when the second screen is in a folded state, respond to the first input received by the receiving module 701, and scale the interface content of the first interface of the first application to obtain the target interface content; the above-mentioned display module 703 is specifically used to display the target interface content processed by the processing module 702 on the first screen.
[0148] Optionally, in some embodiments of the present application, the above-mentioned processing module 702 is also used to determine the target resolution in the resolution range based on the screen aspect ratio of the first screen, and the aspect ratio of the target resolution is the same as the screen aspect ratio; the above-mentioned processing module 702 is also used to use the quotient between the screen resolution and the target resolution as the target scaling factor.
[0149] Optionally, in some embodiments of the present application, before the above-mentioned receiving module 701 receives the first input, the above-mentioned display module 703 is also used to display the first interface on the second screen, and the second screen is in an expanded state; wherein the first input is a folding input for the second screen.
[0150] Optionally, in some embodiments of the present application, the above-mentioned processing module 702 is used to add the display parameters of the target interface content displayed on the first screen to the application configuration of the first application; the above-mentioned receiving module 701 is also used to receive the second input when the first application has successfully run according to the display parameters; the above-mentioned display module 703 is also used to display the interface of the first application on the first screen based on the display parameters in the application configuration in response to the second input received by the receiving module 701.
[0151] In the interface display device provided in an embodiment of the present application, the device receives a first input, and the first input is used to trigger an electronic device to display a first interface of a first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain the target interface content, and the target interface content is displayed on the first screen. In this way, the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen with a better display effect, thereby improving the user experience of the electronic device screen.
[0152] The interface display device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0153] The interface display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0154] The interface display device provided in the embodiment of the present application can implement each process implemented in the method embodiments of Figures 1 to 6. To avoid repetition, they will not be described here.
[0155] Optionally, as shown in Figure 8, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores a program or instruction that can be run on the processor 801. When the program or instruction is executed by the processor 801, the various steps of the above-mentioned interface display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0156] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0157] FIG9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0158] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .
[0159] Those skilled in the art will appreciate that the electronic device 100 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 110 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG9 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.
[0160] Among them, the user input unit 107 is used to receive a first input, and the first input is used to trigger the electronic device to display the first interface of the first application. The screen resolution of the first screen of the electronic device 100 is less than the lower limit value of the resolution range adapted by the first application; the processor 110 is used to scale the interface content of the first interface of the first application in response to the first input received by the user input unit 107 to obtain the target interface content; the display unit 106 is used to display the target interface content processed by the processor 110 on the first screen.
[0161] Optionally, in some embodiments of the present application, the interface content of the first interface includes at least one component; the above-mentioned processor 110 is specifically used to: in response to the first input received by the user input unit 107, scale each component of the at least one component according to the target scaling factor to obtain the component parameters of each component after scaling; and generate the target interface content based on the component parameters of each component after scaling.
[0162] Optionally, in some embodiments of the present application, the electronic device 100 also includes a foldable second screen, and the display orientations of the first screen and the second screen are opposite; the above-mentioned processor 110 is specifically used to, when the second screen is in a folded state, respond to the first input received by the user input unit 107, to scale the interface content of the first interface of the first application to obtain the target interface content; the above-mentioned display unit 106 is specifically used to display the target interface content processed by the processor 110 on the first screen.
[0163] Optionally, in some embodiments of the present application, the above-mentioned processor 110 is also used to determine the target resolution in the resolution range based on the screen aspect ratio of the first screen, and the aspect ratio of the target resolution is the same as the screen aspect ratio; the above-mentioned processor 110 is also used to use the quotient between the screen resolution and the target resolution as the target scaling factor.
[0164] Optionally, in some embodiments of the present application, before the user input unit 107 receives the first input, the display unit 106 is also used to display the first interface on the second screen, and the second screen is in an expanded state; wherein the first input is a folding input for the second screen.
[0165] Optionally, in some embodiments of the present application, the processor 110 is used to add display parameters for displaying the target interface content on the first screen to the application configuration of the first application; the user input unit 107 is also used to receive a second input when the first application has successfully run according to the display parameters; the display unit 106 is also used to display the interface of the first application on the first screen based on the display parameters in the application configuration in response to the second input received by the user input unit 107.
[0166] In the electronic device provided in the embodiment of the present application, the electronic device receives a first input, and the first input is used to trigger the electronic device to display the first interface of a first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain the target interface content, and the target interface content is displayed on the first screen. In this way, the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen with a better display effect, thereby improving the user experience of the electronic device screen.
[0167] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0168] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0169] Processor 110 may include one or more processing units. Optionally, processor 110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 110.
[0170] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned interface display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0171] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0172] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned interface display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0173] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0174] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned interface display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0175] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0177] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. An interface display method, applied to an electronic device comprising at least a first screen, the method comprising: Receive a first input, where the first input is used to trigger the electronic device to display a first interface of a first application, and a screen resolution of the first screen is less than a lower limit of a resolution range adapted by the first application; In response to the first input, the interface content of the first interface of the first application is scaled to obtain target interface content, and the target interface content is displayed on the first screen.
2. The method according to claim 1, wherein: The interface content of the first interface includes at least one component; In response to the first input, scaling the interface content of the first interface of the first application to obtain target interface content includes: In response to the first input, scaling each component of the at least one component according to a target scaling factor to obtain a scaled component parameter of each component; The target interface content is generated based on the scaled component parameters of each component.
3. The method according to claim 1, wherein: The electronic device further comprises a foldable second screen, wherein the display directions of the first screen and the second screen are opposite; In response to the first input, scaling the interface content of the first interface of the first application to obtain target interface content, and displaying the target interface content on the first screen includes: When the second screen is in a folded state, in response to the first input, the interface content of the first interface of the first application is scaled to obtain target interface content, and the target interface content is displayed on the first screen.
4. The method according to claim 2 or 3, wherein: Before scaling the interface content of the first interface of the first application, the method further includes: Based on the screen aspect ratio of the first screen, determining a target resolution in the resolution range, wherein the aspect ratio of the target resolution is the same as the screen aspect ratio; The quotient between the screen resolution and the target resolution is used as the target scaling factor.
5. The method according to claim 3, wherein: Before receiving the first input, the method further includes: Displaying the first interface on the second screen, where the second screen is in an expanded state; The first input is a folding input for the second screen.
6. The method according to claim 1, wherein: After the first screen displays the target interface content, the method further includes: Adding display parameters for displaying the target interface content on the first screen to the application configuration of the first application; receiving a second input when the first application successfully runs according to the display parameter; In response to the second input, based on the display parameters in the application configuration, the interface of the first application is displayed on the first screen.
7. An interface display device, applied to an electronic device comprising at least a first screen, the device comprising: Receiving module, processing module and display module; The receiving module is configured to receive a first input, where the first input is used to trigger the electronic device to display a first interface of a first application, and the screen resolution of the first screen is smaller than a lower limit of a resolution range adapted by the first application; The processing module is configured to scale the interface content of the first interface of the first application in response to the first input received by the receiving module to obtain target interface content; The display module is used to display the target interface content processed by the processing module on the first screen.
8. The device according to claim 7, wherein: The interface content of the first interface includes at least one component; The processing module is specifically used for: In response to the first input received by the receiving module, scaling each component of the at least one component according to a target scaling factor to obtain a component parameter of each component after scaling; The target interface content is generated based on the scaled component parameters of each component.
9. The device according to claim 7, wherein: The electronic device further comprises a foldable second screen, wherein the display directions of the first screen and the second screen are opposite; The processing module is specifically configured to, when the second screen is in a folded state, scale the interface content of the first interface of the first application in response to the first input received by the receiving module to obtain target interface content; The display module is specifically used to display the target interface content processed by the processing module on the first screen.
10. The device according to claim 8 or 9, wherein: The processing module is further configured to determine a target resolution in the resolution range based on the screen aspect ratio of the first screen, wherein the aspect ratio of the target resolution is the same as the screen aspect ratio; The processing module is further configured to use the quotient between the screen resolution and the target resolution as the target scaling factor.
11. The device according to claim 9, wherein: Before the receiving module receives the first input, the display module is further used to display the first interface on the second screen, and the second screen is in an expanded state; The first input is a folding input for the second screen.
12. The device according to claim 7, wherein: The processing module is further configured to add display parameters for displaying the target interface content on the first screen to the application configuration of the first application; The receiving module is further configured to receive a second input when the first application has been successfully run according to the display parameter; The display module is further configured to display the interface of the first application on the first screen in response to the second input received by the receiving module and based on the display parameters in the application configuration.
13. An electronic device, comprising at least a first screen, the electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the interface display method as described in any one of claims 1 to 6.
14. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the interface display method according to any one of claims 1 to 6.
15. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the interface display method according to any one of claims 1 to 6. 16 . A computer program product, wherein the program product is executed by at least one processor to implement the steps of the interface display method according to claim 1 .
Citation Information
Patent Citations
Foldable electronic device and operation method for same
CN113498501A
Conversation method and device and electronic equipment
CN114143388A
Interface display method and device
CN116521293A
Method for controlling scaling of display, and circuit and electronic device supporting the same
US20220319372A1
Cited By
Data processing method and data processing device
CN120428945A
