Application interface display method, terminal device and storage medium

By displaying the application interface according to the second screen resolution in the terminal device and adjusting the field of view control parameters, the display adaptation problem of different terminal devices is solved, and the display consistency and user experience of the application interface are improved.

CN119781644APending Publication Date: 2025-04-08HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410487731.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-29
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The prior art cannot effectively adapt to terminal device display screens of different sizes, shapes and resolutions, resulting in poor display effects of the application interface.

Method used

By implementing an application interface display method in the terminal device, the application interface of the target application is displayed according to the second screen resolution, and the display size of the application interface is adjusted through the field of view control parameters to adapt to the display screens of different terminal devices.

Benefits of technology

It improves the consistency and comfort of the display layout of the application on different terminal devices, improves the abnormal display of the application interface, and ensures the integrity and user experience of the application interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781644A_ABST
    Figure CN119781644A_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an application interface display method, a terminal device, and a storage medium, which relate to the field of terminals. The method is applied to a terminal device, and the method includes: displaying a desktop according to a first screen resolution; in response to a click operation on an application icon on the desktop, displaying an application interface of an application corresponding to the application icon according to a second screen resolution, wherein the second screen resolution is less than or equal to the first screen resolution. The above method can avoid the situation where the page layout of the application interface cannot adapt to the display screen of the terminal device, resulting in a poor display effect corresponding to the application interface generated according to the real screen parameters of the display screen, thereby improving the consistency and comfort of the display layout of the application on different terminal devices and improving the abnormal display of the application interface.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202311276072.4, and the original application date is September 29, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application belongs to the field of terminals, and in particular, relates to an application interface display method, a terminal device and a storage medium. Background Art

[0003] When developing an application, developers need to design the layout of each control in each display interface of the application, generate a layout file for each display interface, and carry the layout file in the application installation package. In this way, after the terminal device installs the application installation package, when running the application, the layout file of the relevant application interface can be obtained, and the corresponding application interface can be displayed according to the layout file.

[0004] The page layout of the application interface needs to be adapted to the display screen of the terminal device in order to fully display the content in the application interface. However, different terminal devices may have display screens of different sizes, shapes, and resolutions. Currently, the page layout of the application interface cannot be well adapted to the display screens of terminal devices of different sizes, shapes, and resolutions, resulting in poor display effects of the application interface. Summary of the invention

[0005] The embodiments of the present application disclose an application interface display method, a terminal device, and a storage medium, which can solve the technical problem that the page layout of the application interface cannot be adapted to the display screens of terminal devices of different sizes, shapes, and resolutions, resulting in poor display effects of the application interface.

[0006] The first aspect of the present application discloses an application interface display method, which is applied to a terminal device, and the method includes: displaying a desktop according to a first screen resolution; responding to a click operation on an application icon on the desktop, if it is determined that the application corresponding to the application icon is a target application, displaying the application interface of the target application according to a second screen resolution, and the second screen resolution is smaller than the first screen resolution. The above method can enable the terminal device to generate a corresponding application interface for display according to the second screen resolution when the application is the target application, thereby avoiding the situation where the page layout of the application interface cannot adapt to the display screen of the terminal device, resulting in a poor display effect corresponding to the application interface generated according to the real screen parameters of the display screen, thereby improving the consistency and comfort of the display layout of the application on different terminal devices, and improving the situation of abnormal display of the application interface.

[0007] In some optional implementations, the method further includes: if it is determined that the application corresponding to the application icon is not the target application, displaying the application interface of the application according to the first screen resolution. The above method can display the application in full screen when the application is not the target application, thereby providing a better visual experience for the user.

[0008] In some optional implementations, the method further includes: after any application is installed on the terminal device, displaying a parameter setting control of the any application; if based on the parameter setting control, the screen parameter of the any application is set to the application display resolution, and the any application is determined to be a target application, the application display resolution is not equal to the first screen resolution. The above method can improve the accuracy of determining the target application through the parameter setting control of the application.

[0009] In some optional implementations, the method further includes: using the application display resolution as the second screen resolution corresponding to any one of the application programs. The above method can make the determined second screen resolution more in line with user needs.

[0010] In some optional implementations, the displaying the application interface of the target application according to the second screen resolution includes: determining a third screen resolution based on the first screen resolution, the second screen resolution and the field of view control parameter; and displaying the application interface of the target application according to the third screen resolution. The above method achieves a compromise between incomplete display and screen margin through the third screen resolution, that is, the application interface displayed based on the third screen resolution can display the information in the screen layout resources more completely and with less missing information than the application interface displayed based on the first screen resolution; at the same time, the application interface displayed based on the third screen resolution has less screen margin than the application interface displayed based on the second screen resolution.

[0011] In some optional implementations, the method further includes: displaying a field of view control push rod corresponding to the field of view control parameter. The above method can facilitate the user to adjust the display size of the application interface of the target application.

[0012] In some optional implementations, after displaying the application interface of the target application, the method further includes: determining the adjusted field of view control parameter in response to the user's movement of the field of view control push rod; determining the fourth screen resolution based on the first screen resolution, the second screen resolution and the adjusted field of view control parameter; and redisplaying the application interface of the target application according to the fourth screen resolution. The above method, based on the user's adjustment of the field of view control parameter, timely controls the application to regenerate a new application interface view according to the adjusted fourth screen resolution, and timely updates the size of the application interface of the currently displayed target application, so as to achieve the effect of timely adjustment of the application interface with the field of view control parameter, so that the application interface of the currently displayed target application better meets the needs of the user and improves the efficiency of application interface adjustment.

[0013] In some optional implementations, displaying the field of view control slider corresponding to the field of view control parameter includes: displaying the field of view control slider in a drop-down menu of the terminal device; or displaying the field of view control slider in response to pressing a volume key of the terminal device. The above method can display the field of view control slider.

[0014] The second aspect of the present application discloses an application interface display method, which is applied to a terminal device, wherein the terminal device includes a display screen, and the method includes: displaying the application interface of a first application according to a first screen resolution, wherein the application interface of the first application includes a start control of a second application; in response to a click operation on the start control, if the second application is determined to be a target application, displaying the application interface of the second application according to a second screen resolution, wherein the second screen resolution is smaller than the first screen resolution. The above method can enable the terminal device to generate a corresponding application interface for display according to the second screen resolution when the second application is the target application, thereby avoiding the situation where the page layout of the application interface cannot adapt to the display screen of the terminal device, resulting in a poor display effect corresponding to the application interface generated according to the actual screen parameters of the display screen, thereby improving the consistency and comfort of the display layout of the second application on different terminal devices, and improving the situation where the application interface is displayed abnormally.

[0015] The third aspect of the present application discloses a terminal device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the terminal device executes the application interface display method described in the first aspect.

[0016] The fourth aspect of the present application discloses a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the application interface display method as described in the first aspect or the second aspect.

[0017] It should be understood that the terminal device described in the third aspect and the computer-readable storage medium described in the fourth aspect both correspond to the methods of the first aspect or the second aspect. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a scene displayed in an application interface.

[0019] Figure 2 A schematic diagram of a scene displayed in an application interface provided in an embodiment of the present application.

[0020] Figure 3 A schematic diagram of another scenario displayed on an application interface provided in an embodiment of the present application.

[0021] Figure 4 A schematic diagram of a scene displayed in another application interface provided in an embodiment of the present application.

[0022] Figure 5 A flowchart of an application interface display method provided in an embodiment of the present application.

[0023] Figure 6 A schematic diagram of a parameter setting control provided in an embodiment of the present application.

[0024] Figure 7 A schematic diagram of an application interface display method provided in an embodiment of the present application.

[0025] Figure 8 A schematic diagram of a window display scene provided in an embodiment of the present application.

[0026] Fig. 9 A flowchart of an application interface display method provided in an embodiment of the present application.

[0027] Fig.10 A schematic diagram of a field of view control push rod provided in an embodiment of the present application.

[0028] Fig.11 A schematic diagram of an application interface display provided in an embodiment of the present application.

[0029] Fig.12 A schematic diagram of a scene for displaying an application interface provided in an embodiment of the present application.

[0030] Fig.13 A schematic diagram of the framework of a terminal device provided in an embodiment of the present application.

[0031] Fig.14A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" is intended to present related concepts in a concrete way.

[0033] In the description of the embodiments of the present application, unless otherwise specified, " / " means or. For example, A / B can mean A or B. "And / or" in the present application is only a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two.

[0034] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0035] Different terminal devices include various forms. For example, there are significant differences in the forms of mobile phones, tablets, and folding machines. Due to the differences in the forms of terminal devices, there are also significant differences between their corresponding screen parameters such as screen size, resolution, aspect ratio, etc. In order to reduce the difficulty of developing applications, application developers usually set the layout files of the application interface according to the screen parameters that are widely used on the market, and do not set the corresponding application interface layout files for all screen parameters. Therefore, the layout file of the same application interface may display different application interfaces on different terminal devices. For example, the layout file of an application interface can fully display the application interface on its compatible terminal device, but the layout file of the application interface may display an abnormality in the application interface on the terminal device to which it is not compatible, such as incomplete page display, small scene field of view, and abnormal display.

[0036] Figure 1 A schematic diagram of a scene displayed in an application interface. Figure 1 As shown in (a), the game application interface is displayed normally on the terminal device on the left, but is displayed abnormally on the terminal device on the right (for example, it cannot be fully displayed). Compared with the application interface displayed on the terminal device on the left, the application interface displayed on the terminal device on the right has a small scene field of view and less scene content is displayed. For example, Figure 1 As shown in (a), the resolution of the terminal device's screen parameters is 2400×1920. After the application obtains the screen layout resources corresponding to the generated application interface, it will use the screen width in the screen parameters as the benchmark, that is, based on 1920 as the benchmark, and proportionally stretch the length and width of the screen layout resources to 4267×1920. However, since the screen length of the terminal device is only 2400, after stretching the screen layout resources, the left and right parts of the screen in the screen layout resources cannot be fully displayed, and there is a partial loss. Figure 1 As shown in (b), the application interface of the learning application is displayed normally on the terminal device on the left, but abnormally on the terminal device on the right. Compared with the application interface displayed on the terminal device on the left, the application interface displayed on the terminal device on the right has an incomplete page display problem, only part of the page is displayed, and the specific content in the middle table cannot be seen clearly.

[0037] In order to avoid the situation that the page layout of the application interface cannot be adapted to the display screen of the terminal device of different size, shape and resolution, resulting in poor display effect of the application interface, the embodiment of the present application provides an application interface display method, when receiving the screen parameter acquisition request sent by the target application, the window manager of the terminal device sends a second screen resolution to the target application, so that the target application can generate a corresponding application interface according to the second screen resolution, and control the application interface to be displayed on the terminal device. In one embodiment, the second screen resolution may not be the real screen resolution of the terminal device screen. The embodiment of the present application can enable the terminal device to generate the corresponding application interface according to the second screen resolution for display, avoiding the situation that the application interface generated according to the real screen parameters of the display screen has a poor display effect when the page layout of the application interface cannot be adapted to the display screen of the terminal device, thereby improving the consistency and comfort of the display layout of the application on different terminal devices and improving the abnormal display of the application interface.

[0038] The application interface display method provided in the embodiment of the present application is applied to a terminal device. For example, the terminal device may be a handheld device, such as a mobile phone, a tablet, a PDA, a laptop, a notebook computer, a super mobile personal computer, a netbook, a personal digital assistant (PDA), a wearable device, or other terminal device that can install and run application programs, and the embodiment of the present application is not limited thereto.

[0039] In order to better illustrate the application interface display method provided by this application, some of the terms involved are first explained.

[0040] Pixel (PX) is the basic unit of image display. Each pixel can have its own color value and can be displayed using three primary colors. For example, it can be divided into the RGB color gamut consisting of red (Red, R), green (Green, G), and blue (Blue, B), or the CMYK color gamut consisting of cyan (C), magenta (M), yellow (Y), and black (K). An image is a collection of pixels. Generally speaking, the more pixels per unit area, the higher the resolution, and the closer the displayed image will be to the real object. On the terminal device, the number of pixels can be divided into horizontal pixels and vertical pixels. The horizontal pixel number indicates the number of pixels in the horizontal direction, and the vertical pixel number indicates the number of pixels in the vertical direction.

[0041] The screen size refers to the physical size of the terminal device screen. It can be expressed by the length of the diagonal of the screen. The unit can be inches, and 1 inch = 2.54 cm. For example, common mobile phone screen sizes are 3.5 inches, 4.2 inches, 5.0 inches, 5.2 inches, 5.5 inches, 6.0 inches, etc. Common computer monitor screen sizes are 15.6 inches, 20.0 inches, 27.0 inches, etc.

[0042] Screen resolution refers to the physical resolution of the display screen of the terminal device. It can be used to indicate the number of horizontal physical pixels on the screen × the number of vertical physical pixels, expressed in pixels (px). Screen resolution is a hardware feature and the basic unit of the display screen. It cannot be changed. Screen resolution is usually expressed in width and height. For example, 1920×1080 means the width is 1920px and the height is 1080px. The higher the screen resolution, the richer the image information that the terminal device screen can display, and the more detailed the picture details. Common screen resolutions of terminal devices include 720P (1280×720), 1080P (1920×1080), 2K (2560×1440), etc.

[0043] Screen pixel density (pi×els per inch, PPI) can be used to indicate the number of physical pixels per inch of the terminal device's display. PPI describes the number of pixels on the display itself, which is an inherent hardware physical property of the display and cannot be changed. The higher the PPI, the higher the density at which the display can display images, which improves the clarity and fineness of the screen, thereby improving the degree of realism.

[0044] In one embodiment of the present application, the screen pixel density may be calculated based on the screen resolution and the screen size.

[0045] The calculation formula for screen pixel density is as follows:

[0046]

[0047] Where W and H are the width and height of the display resolution; D is the diagonal size of the display in inches.

[0048] Display pixel density (dots per inch, DPI) refers to the number of pixels that can be sampled, displayed, and output per inch. DPI describes the pixel density of the terminal device when it is displayed. It is a software attribute that can be configured. Before the terminal device leaves the factory, the terminal manufacturer can pre-configure the DPI so that the terminal device displays based on the default configured DPI. In one embodiment of the present application, when the terminal device is a tablet, the DPI can be configured to 1.3 or 1.4 times its PPI by default before the device leaves the factory; when the terminal device is a mobile phone, the DPI can be configured to 1.2 times its PPI by default before the device leaves the factory. In one embodiment of the present application, the same DPI can be set for multiple terminal devices with different PPIs but the same or similar device types, thereby reducing the display differences of the same application on different terminal devices. For example, mobile phone A with a PPI of 321 and mobile phone B with a PPI of 306 can both be set to 320DPI. DPI is related to image size and image resolution. The DPI currently set for the terminal device can be determined based on the number of pixels and physical size of the image. The ratio of the number of pixels of an image to its physical size can be determined as DPI. When the image size is the same, the higher the image resolution, the greater the DPI; when the image resolution is the same, the smaller the image size, the greater the DPI. The higher the DPI value, the clearer the image. In one embodiment of the present application, when the screen size and screen resolution of the terminal device remain unchanged, the DPI increases, and the elements in the application interface displayed by the terminal device will occupy more pixels, achieving the effect of enlarging the application interface; when the DPI decreases, the elements in the application interface displayed by the terminal device will occupy fewer pixels, achieving the effect of shrinking the application interface.

[0049] Different screen density levels can be used to represent different ranges of display pixel density, such as ldpi, mdpi, hdpi, xdpi, xxdpi, xxxdpi, and nodpi. Among them, ldpi is suitable for resources of low-density screens; mdpi is suitable for resources of medium-density screens, which is the baseline density of some operating systems; hdpi is suitable for resources of high-density screens; xdpi is suitable for resources of ultra-high-density screens; xxdpi is suitable for resources of ultra-ultra-high-density screens; xxxdpi is suitable for resources of ultra-ultra-ultra-high-density screens; and nodpi is suitable for resources of all density screens. These are density-independent resources. Regardless of the density of the current screen, the system will not scale resources marked with this qualifier. Table 1 shows the correspondence between some screen density levels and display pixel density ranges.

[0050] Table 1

[0051]

[0052]

[0053] When the terminal device displays the application interface of the application, it will automatically select the most appropriate resource file for display based on the display pixel density of the terminal device and the resource files provided by the developer. The developer of the application can create different subfolders (such as the drawable folder) under the Resources folder of the application, and use different qualifiers to mark different screen density levels, such as drawable-mdpi, drawable-hdpi, drawable-xhdpi, etc. Then place the resource files of the corresponding resolution in each subfolder. When the application generates the application interface, it first obtains the display pixel density of the terminal device and determines the screen density level corresponding to the display pixel density. For example, according to Table 1, the screen density level corresponding to the display pixel density is retrieved. After determining the screen density level corresponding to the display pixel density, the application obtains the corresponding resource file from the drawable folder corresponding to the screen density level. For example, the screen resolution of a terminal device display is 1080×1920, and the screen pixel density is 400dpi. Assuming that the size of a picture in the application resource file is 270×480 pixels, according to Table 1, it can be determined that the screen density level corresponding to 400dpi is xxhdpi, and the system will automatically prioritize the search for the corresponding picture in the drawable-xxhdpi folder. If the corresponding picture is retrieved, it is loaded. At this time, the picture displayed on the display device is the size of the picture itself, that is, 270×480 pixels. In one embodiment of the present application, if the developer does not provide the picture corresponding to the screen density level of the terminal device, the terminal device will retrieve the corresponding picture from other screen density levels. For example, in the above example, if the corresponding picture is not retrieved in the drawable-xxhdpi folder, the terminal device will retrieve it from the folder drawable-xxxhdpi with a higher screen density level. If the corresponding picture cannot be retrieved from the folder with the highest screen density level, the drawable-nodpi folder will be searched. If the corresponding image is not found in the drawable-nodpi folder, start searching for low-resolution folders in sequence, and search from high to low until ldpi, until the corresponding image is found, that is, start searching from the drawable-xhdpi folder.

[0054] In one embodiment of the present application, if the screen density level of the resource file obtained by the terminal device is different from the screen density level of the terminal device, the terminal device scales the resource file according to a certain ratio. For example, when the screen density level of the terminal device is hdpi and the screen density level of the obtained picture is mdpi, the terminal device will enlarge the resource file. For another example, when the screen density level of the terminal device is hdpi and the screen density level of the obtained picture is xhdpi, the terminal device will reduce the resource file. In some embodiments, based on mdpi, the scaling factor can be expressed as: mdpi: hdpi: xhdpi: xxhdpi: xxxhdpi = 1:1.5:2:3:4.

[0055] Density independent pixels (dp), also known as density-independent pixels, can be automatically scaled according to the pixel density of the current screen to keep the physical size of the view unchanged on different screens. Pixel density refers to the number of pixels per square inch of the screen, expressed in dpi (dots per inch). Density independent pixels refer to the length occupied by 1 pixel when the display pixel density of the display is 160dpi. Density independent pixels need to be converted to pixels for display. The conversion formula between dp and px is: px = dp*(dpi / 160). When the display pixel density of the display is 320dpi, 1dp = 2px, and so on. Lines of the same pixel length occupy different proportions on two terminal devices with the same display pixel density but different screen resolutions. For example, the display pixel density of two terminal devices is 160dpi. A 320px line is drawn along the direction parallel to the width of the display screen. This line is displayed as 2 / 3 of the screen width on the terminal device with a screen resolution of 480×800, and as 1 screen width on the terminal device with a screen resolution of 320×480, that is, from the left side of the screen width to the right side of the screen width.

[0056] The term "user interface (UI)" in the embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of the application interface is the graphical user interface (GUI), which refers to an application interface related to computer operations displayed in a graphical manner. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of a terminal device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0057] The following will further describe in detail the application interface display method provided by the embodiment of the present application in conjunction with the accompanying drawings.

[0058] Figure 2 A schematic diagram of a scene displayed in an application interface provided in an embodiment of the present application. Figure 2 As shown in (a), the desktop is displayed on the terminal device according to the first screen resolution, and the first screen resolution is the actual screen resolution of the terminal device screen. The desktop displays at least one application icon. If the user clicks on the application icon of an application on the desktop, the application can be triggered to start. During the startup process, the application sends a screen parameter acquisition request to the window manager to obtain the screen parameters of the terminal device. After the application obtains the screen parameters of the terminal device, it constructs its corresponding application interface based on the obtained screen parameters and screen layout resources, where the size of the application interface is consistent with the size of the screen parameters. Figure 2 As shown in (a), the user clicks on the icon of the game application. In response to the user clicking on the icon, the game application sends a screen parameter acquisition request to the window manager to obtain the screen parameters of the terminal device. The terminal device receives the screen parameter acquisition request sent by the game application and determines whether the game application is a preset target application. The window manager determines that the game application is the target application, obtains the second screen resolution corresponding to the game application, and sends the second screen resolution as the target screen parameter to the game application. The second screen resolution is not the actual screen resolution of the terminal device screen. After receiving the second screen resolution, the game application constructs its corresponding application interface based on the acquired second screen resolution and screen layout resources, where the size of the application interface is consistent with the size of the second screen resolution. As shown Figure 2 As shown in (a), when the terminal device displays the desktop, the desktop is displayed in full screen on the terminal device, such as Figure 2 As shown in (b), when the application interface of the game application is displayed, the application interface is only displayed on a part of the screen of the terminal device, and is not displayed in full screen. Figure 2 For some specific implementation methods displayed in the application interface, please refer to the following.

[0059] Figure 3 A schematic diagram of another application interface display scene provided in an embodiment of the present application. Figure 3 As shown in (a), the desktop is displayed on the terminal device according to the first screen resolution, and the first screen resolution is the actual screen resolution of the terminal device screen. Figure 3As shown in (a), the user clicks on the icon of the video application. In response to the user clicking on the application icon, the video application sends a screen parameter acquisition request to the window manager to obtain the screen parameters of the terminal device. The terminal device receives the screen parameter acquisition request sent by the video application and determines whether the video application is a preset target application. If the window manager determines that the video application is not the target application, the first screen resolution is sent to the video application as the target screen parameter. After receiving the first screen resolution, the video application constructs its corresponding application interface based on the acquired first screen resolution and screen layout resources, where the size of the application interface is consistent with the size of the first screen resolution. Figure 3 As shown in (b), after the video constructs its corresponding application interface, the application interface corresponding to the video application can be displayed on the terminal device according to the first screen resolution. Figure 3 As shown in (a), when the terminal device displays the application interface of the desktop and video application, the application interface of the desktop and video application are displayed in full screen on the terminal device. Figure 3 For some specific implementation methods displayed in the application interface, please refer to the following.

[0060] Figure 4 A schematic diagram of another application interface display scene provided in an embodiment of the present application. Figure 4 As shown in (a), the application interface of the video application is displayed on the terminal device at a first screen resolution, and the first screen resolution is the actual screen resolution of the terminal device screen. The application interface of the video application includes a start control of the game application. Figure 4 As shown in (a), the user clicks on the start control of the game application to trigger the start of the game application. During the startup process, the game application will send a screen parameter acquisition request to the window manager to obtain the screen parameters of the terminal device. The terminal device receives the screen parameter acquisition request sent by the game application and determines whether the game application is the preset target application. The window manager determines that the game application is the target application, obtains the second screen resolution corresponding to the game application, and sends the second screen resolution as the target screen parameter to the game application. The second screen resolution is not the actual screen resolution of the terminal device screen. After receiving the second screen resolution, the game application constructs its corresponding application interface based on the acquired second screen resolution and screen layout resources, where the size of the application interface is consistent with the size of the second screen resolution. As shown Figure 4 As shown in (a), when the terminal device displays the video application, the video application can be displayed in full screen on the terminal device, such as Figure 4 As shown in (b), when the game application is displayed, the game application is only displayed on a portion of the screen of the terminal device, and is not displayed in full screen. Figure 4 For some specific implementation methods displayed in the application interface, please refer to the following. Figure 5A flowchart of an application interface display method provided in an embodiment of the present application. The method is applied to a terminal device, and the terminal device includes an application and a window manager. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0061] 301. The application sends a screen parameter acquisition request to the window manager.

[0062] In one embodiment, the application program may be any application installed on the terminal device, such as a game application, such as King of Glory. When a user opens an application, the application sends a screen parameter acquisition request to the window manager. The screen parameter acquisition request is used to obtain the screen parameters of the terminal device. The screen parameters may include but are not limited to: screen resolution, display pixel density, etc.

[0063] When using a terminal device, a user can open an application installed on the terminal device in a variety of ways, such as clicking an application icon on the desktop, clicking a notification message of the application in the message notification bar, clicking a start control in another application, etc.

[0064] In one embodiment of the present application, the terminal device displays the desktop at a first screen resolution, and the first screen resolution is the actual screen resolution of the terminal device screen. The desktop includes at least one application icon corresponding to an application. After a user clicks an application icon, the input management module in the terminal device can recognize the user's click operation and report the click operation to the desktop; the desktop can determine the clicked application icon based on the user's click operation, and then determine the application corresponding to the clicked application icon, and notify the activity management service (ActivityManagerService, AMS) to start the clicked application. AMS can start the Activity of the clicked application. In one embodiment of the present application, after the Activity of the application is started, the Activity of the application sends a screen parameter acquisition request to the window manager.

[0065] In another embodiment of the present application, the terminal device displays the application interface of the first application at a first screen resolution, and the first application can be any application installed in the terminal device, such as a video application. The application interface of the first application includes a startup control for the second application, and the second application can be any application installed in the terminal device, such as a game application. The startup control is used to start the second application. When the user clicks the startup control of the second application, the first application sends a request to the AMS to start the second application, triggering a startup event of the second application, so that the AMS starts the Activity of the second application. After the AMS starts the Activity of the second application, the Activity of the second application sends a screen parameter acquisition request to the window manager.

[0066] In one embodiment of the present application, after the AMS starts an application, the AMS may send a window start notification to the window manager, and the window start notification carries the application identifier of the application. After receiving the notification, the window manager may create a window corresponding to the started application according to the carried application identifier.

[0067] 302. The window manager determines whether the application is a target application.

[0068] The target application is an application that needs to be displayed using preset screen parameters, that is, an application that is displayed using the actual screen resolution of a non-terminal device screen.

[0069] In one embodiment of the present application, the target application can be pre-set or modified and updated. For example, before the terminal device leaves the factory, the terminal manufacturer can determine the application that is prone to size incompatibility with the terminal device as the target application. In one embodiment of the present application, the terminal device can determine the target application based on the push information sent by the cloud server. The push information includes application information of the application that is incompatible with the size of the terminal device. The application information is used to determine the application, such as the application package name. The cloud server can be a server corresponding to the terminal manufacturer. When the terminal manufacturer finds a new application that is incompatible with the size of the terminal device, it will generate a push information and send the generated push information to the terminal server.

[0070] In one embodiment of the present application, the target application can also be determined based on the user's settings. In one embodiment of the present application, after the user installs an application, the operating system can generate a parameter setting control for the application in the screen parameter setting in the settings of the terminal device. When the user clicks on the parameter setting control of an application, the screen parameter setting corresponding to the application can be displayed. The target application can be determined based on the operation of the parameter setting control of the application. Reference Figure 6 As shown in FIG. 1 , a schematic diagram of a parameter setting control provided in an embodiment of the present application is shown. Figure 6 As shown, the screen parameter setting includes the option of the first screen resolution. For example, if a user sets the screen parameters of an application to the first screen resolution based on the application parameter setting control, the application is determined not to be a target application; if a user sets the screen parameters of an application to other resolutions other than the first screen resolution based on the application parameter setting control, which can be referred to as the application display resolution, the application is determined to be a target application. For example, Figure 6 As shown, when the user sets the screen parameters of the application to recommended resolution 1 (recommended resolution 2), the application is determined as a target application; when the user sets the screen parameters of the application to a customized resolution and the resolution is different from the first screen resolution, the application is determined as a target application. In one embodiment of the present application, after the user installs an application, the screen parameters of the application can be set to the first screen resolution by default. In one embodiment of the present application, after the user clicks on the customized option, an input box can be displayed, and the user can enter a customized resolution in the input box. In one embodiment of the present application, the user can enter a customized resolution and DPI parameters in the input box.

[0071] In one embodiment of the present application, after a user installs an application, the terminal device can determine the screen resource resolution of the application based on the resource files of the application; and based on the screen resource resolution, display the recommended resolution corresponding to the application on the parameter setting control of the application. The screen resource resolution corresponds to the recommended resolution one-to-one, and the screen resource resolution is equal to the corresponding recommended resolution. Screen resource resolution refers to the resolution of resource files (such as pictures, icons, backgrounds, etc.) provided by the developer to the application. The developer can provide the application with multiple resource files with different screen resource resolutions to adapt to different screen density levels of the terminal device. When a download package of an application downloaded by a terminal device may include one or more resource files with different screen resource resolutions corresponding to the application. When a download package of an application downloaded by a terminal device includes two resource files with different screen resource resolutions corresponding to the application, such as Figure 6 As shown, two recommended resolution options corresponding to the two screen resource resolutions can be displayed on the parameter setting control of the application.

[0072] If it is determined that the application program is not a target application, step 303 is executed, and the window manager determines the target screen parameters according to the first screen resolution.

[0073] The target screen parameter is the screen parameter returned to the application by the window manager in response to the screen parameter acquisition request of the application. In one embodiment of the present application, the target screen parameter may include screen resolution and display pixel density. The target screen parameter may be determined based on the first screen resolution and the DPI of the default configuration of the terminal device. For example, the DPI of the default configuration of the terminal device is 320dpi, the first screen resolution is 2400×1920, 2400×1920 is determined as the screen resolution in the target screen parameter, and 320dpi is determined as the target screen parameter. In another embodiment of the present application, the target screen parameter may include only the screen resolution. The target screen parameter may be determined based on the first screen resolution. For example, the first screen resolution is 2400×1920, and 2400×1920 is determined as the screen resolution in the target screen parameter.

[0074] If the application is determined to be the target application, step 304 is executed, where the window manager determines a second screen resolution corresponding to the application, and determines target screen parameters according to the second screen resolution.

[0075] For example, the first screen resolution is 2400×1920, and the second screen resolution corresponding to the application is 2400×1080. The target screen parameters are determined according to 2400×1080, such as determining 2400×1080 as the resolution in the target screen parameters.

[0076] Each target application includes its corresponding second screen resolution. Figure 7 A schematic diagram of an application interface display method provided in an embodiment of the present application. Figure 7 As shown, each target application has its corresponding second screen resolution. The second screen resolution is not the actual screen resolution of the terminal device screen, and the second screen resolution is smaller than the first screen resolution. Different target applications may correspond to the same or different second screen resolutions. In one embodiment of the present application, before the terminal device leaves the factory, the terminal manufacturer may configure the second screen resolution corresponding to the target application when determining the target application. In one implementation of the present application, when a new target application is detected, the terminal manufacturer may push the application information of the new target application and the second screen resolution corresponding to the target application to the terminal device based on the cloud server.

[0077] The second screen resolution of a target application can be determined according to the screen resource resolution of the target application. For some specific descriptions of the screen resource resolution, please refer to the above. When a target application has only one screen resource resolution and the screen resource resolution is smaller than the first screen resolution, the screen resource resolution can be determined as the second screen resolution of the target application. For example, if the target application is a game and the first screen resolution is 2400×1920, when the screen resource resolution of the game is only 2400×1080, 2400×1080 is determined as the second screen resolution corresponding to the game. When a target application has multiple screen resource resolutions smaller than the first screen resolution, the screen resource resolution with the smallest difference from the first screen resolution can be determined first, and the determined screen resource resolution can be used as the second screen resolution of the target application. For example, if the target application is a video and the first screen resolution is 2400×1920, when the screen resource resolution of the video is 1900×720 and 2400×1080, 2400×1080 can be determined as the second screen resolution corresponding to the video.

[0078] In one embodiment of the present application, the second screen resolution corresponding to the target application can be determined based on the user's selection. When the user sets the screen parameter of an application to the application display resolution, the application display resolution can be determined as the second screen resolution of the application. Figure 6 As shown, when the user selects recommended resolution 1, recommended resolution 1 is determined as the second screen resolution of the application; when the user selects recommended resolution 2, recommended resolution 2 is determined as the second screen resolution of the application; when the user selects custom, the user-customized resolution is determined as the second screen resolution of the application.

[0079] In one embodiment of the present application, if it is determined that the second application is the target application, the second screen resolution corresponding to the second application is determined as the target screen parameter.

[0080] In one embodiment of the present application, the target screen parameters may include screen resolution and display pixel density. In one implementation, the target screen parameters may be determined based on the second screen resolution and the DPI of the default configuration of the terminal device. For example, the default configuration DPI of the terminal device is 320dpi, and the second screen resolution of an application is 2400×1080. 2400×1080 is determined as the screen resolution in the target screen parameters, and the default configuration of 320dpi is determined as the target screen parameters. In another implementation, when a user customizes the DPI corresponding to an application, such as based on the user input, Figure 6When the parameter setting control shown customizes the input DPI, the target screen parameters can be determined based on the second screen resolution of the application and the user-defined DPI. For example, the default DPI of the terminal device is 320dpi, the second screen resolution is 2400×1080, and the DPI customized by the application is 280dpi. 2400×1080 is determined as the screen resolution in the target screen parameters, and the customized 280dpi is determined as the display pixel density in the target screen parameters.

[0081] In another embodiment of the present application, the target screen parameter may include only the screen resolution. The target screen parameter may be determined based on the second screen resolution. For example, if the second screen resolution is 2400×1920, 2400×1920 is determined as the screen resolution in the target screen parameter.

[0082] 305. The window manager sends the target screen parameters to the application.

[0083] 306 , the application constructs an application interface view according to the target screen parameters and the screen layout resources.

[0084] In one embodiment of the present application, the application can use getResource() to obtain the Resources object, which is a global object in the application process and is used to access the resources of the application, such as screen layout resources. In another embodiment, getAsset() can be used to obtain AssetManger to read the file under the specified file path and obtain the screen layout resources.

[0085] The application obtains the layout file corresponding to the target screen parameter from the screen layout resource, and constructs the application interface view according to the obtained layout file. The resolution size of the constructed application interface view is the same as the resolution size in the target screen parameter. In one embodiment of the present application, the application interface view can be the top-level view corresponding to the application.

[0086] 307. The application sends the application interface view to the window manager.

[0087] 308. The window manager displays the application interface of the application program according to the application interface view.

[0088] In one embodiment of the present application, after receiving the application interface view, the window manager draws the application interface view in the window corresponding to the application to obtain the application interface of the application.

[0089] In one embodiment of the present application, the window manager can display the application interface of the application in the center on the display screen of the terminal device. In some embodiments of the present application, the alignment position of the window is specified by using the gravity attribute in the window parameters (WindowManager.LayoutParams) of the window corresponding to the application, so that the window is displayed in the center. In another embodiment of the present application, x and y can be set in the window parameters to define the screen coordinates of the upper left corner of the window. For example, the default values ​​corresponding to x and y in the window parameters are both 0. When the application is determined to be the target application, the values ​​of x and y in the window parameters corresponding to the window are modified. For example, x can be set to 0 and y can be set to 480, so that the screen coordinates of the upper left corner of the window are set from (0, 0) to (0, 480), so that the application interface of the application is displayed in the center. Figure 8 A schematic diagram of a window display scene provided in an embodiment of the present application. Figure 8 As shown, when the default values ​​corresponding to x and y in the window parameters are both 0, the window starts to display from the upper left corner of the terminal device's display screen; when x is set to 0 and y is set to 480 in the window parameters, the window starts to display from (0, 480) of the terminal device's display screen, so that the application interface of the application is displayed in the center.

[0090] Since the second screen resolution is smaller than the first screen resolution, when the application is displayed at the second screen resolution, the application interface of the application will not be displayed in full screen on the display screen of the terminal device. Figure 8 As shown, when the application interface of the application is displayed at the second screen resolution, the application interface is not displayed in full screen, and there is a screen margin outside the application interface, that is, the screen margin of the application interface is the upper and lower screen margins (upper plus lower). Figure 8 A screen margin is illustrated. In fact, the screen margin can also include: one of the upper screen margin, the lower screen margin, the left screen margin, and the right screen margin. It can also include a combination of any two or more of the above-mentioned screen margins, such as the upper left screen margin (upper plus left side), the upper right screen margin (upper plus right side), the left and right screen margins (left plus right side), and the upper and lower left screen margins (upper, left plus lower side). In some embodiments of the present application, x and y can be modified in the window parameters to change the screen margin outside the application interface. For example, Figure 8The screen coordinates of the upper left corner of the window shown are (0, 480). If the screen coordinates of the upper left corner of the window are replaced from (0, 480) to (0, 0), the screen margin of the application interface will change from the upper and lower screen margins to the lower screen margins. In one embodiment of the present application, the screen margin may not display any content, that is, the screen area corresponding to the screen margin is in an unlit state; or, the screen margin may display a fixed picture, such as a preset solid color image; or, the screen margin may display the desktop, such as displaying some icons on the desktop, which may be application icons recently used by the user. When the user clicks the application icon displayed on the screen margin, the icon corresponding to the application can be started and the application interface corresponding to the application can be displayed. In the above implementation mode, when an application obtains a screen parameter acquisition request from the window manager, it is determined whether the application is a target application. When the application is a target application, the second screen resolution of the application is determined, and the second screen resolution is determined as the resolution in the target screen parameters. The second screen resolution is sent to the application so that the application displays its corresponding application interface according to the second screen resolution, so that the application interface of the application is adapted to the display screen of the terminal device, so that the application interface corresponding to the application can be displayed more completely, and the display effect of the application interface is better.

[0091] By displaying the application interface of the application program at the second screen resolution, all information in the screen layout resource can be fully displayed. However, since the second screen resolution is smaller than the first screen resolution, when the application interface is displayed at the second screen resolution, there may be more screen margins on the screen of the terminal device. In order to reduce the screen margins on the screen of the terminal device, an embodiment of the present application provides an application interface display method. Fig. 9 A flowchart of an application interface display method provided in an embodiment of the present application. The method is applied to a terminal device, and the terminal device includes an application and a window manager. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0092] 401. The application sends a screen parameter acquisition request to the window manager.

[0093] 402 , the window manager determines whether the application is a target application.

[0094] If it is determined that the application program is not a target application, step 403 is executed, and the window manager determines the target screen parameters according to the first screen resolution.

[0095] If the application is determined to be the target application, step 404 is executed, and the window manager determines the second screen resolution corresponding to the application.

[0096] For some specific implementations of steps 401-404, please refer to the above Figure 5 Related description of steps 301-304 in .

[0097] 405, obtaining a field of view control parameter.

[0098] The field of view control parameter is used to adjust the display size of the target application's application interface displayed on the terminal device. For example, if the field of view control parameter is large, the target application's application interface displayed on the terminal device is also large; if the field of view control parameter is small, the target application's application interface displayed on the terminal device is also small. As the field of view control parameter increases, the target application's application interface displayed on the terminal device also increases.

[0099] In one embodiment of the present application, the field of view control parameter can be set to any value in the interval [0, 1], such as 0.1, 0.5, 0.7, etc. In one implementation of the present application, the value of the field of view control parameter can be set to 0 by default. The user can set the value of the field of view control parameter as required. For example, the user can change the value of the field of view control parameter by moving the field of view control push rod. Fig.10 Schematic diagram of a field of view control push rod provided in an embodiment of the present application. Fig.10 As shown in (a) above, the moving field of view control lever can be displayed in a drop-down menu on the terminal device. Fig.10 As shown in (a), if the control push rod is moved to the left, a larger field of view control parameter value can be obtained; if the control push rod is moved to the right, a smaller field of view control parameter value can be obtained. Fig.10 As shown in (b), when the user presses the volume down button of the terminal device, the media volume adjustment slider, the field of view control slider and the alarm volume adjustment slider can be displayed at the same time. Fig.10 As shown in (b), by moving the control push rod upward, a larger field of view control parameter value can be obtained; by moving the control push rod downward, a smaller field of view control parameter value can be obtained. Fig.10 The operation diagrams of the two field of view control push rods are presented only for exemplary purposes, and are not limited thereto in actual applications.

[0100] 406 , determining a third screen resolution according to the second screen resolution and the field of view control parameter; and determining a target screen parameter according to the third screen resolution.

[0101] Combination Fig.11 To explain, Fig.11 This is a schematic diagram of an application interface display provided in an embodiment of the present application. Fig.11 As shown, based on the first screen resolution, the second screen resolution and the field of view control parameter, the third screen resolution is determined; and based on the determined third screen resolution, the application interface of the target application is displayed.

[0102] In one embodiment of the present application, a third screen resolution can be obtained by using a preset parameter calculation formula based on the first screen resolution, the second screen resolution and the field of view control parameter. For example, the parameter calculation formula is:

[0103] The third screen resolution = the first screen resolution × A + the second screen resolution × (1-A);

[0104] Where A is the field of view control parameter value.

[0105] For example, assuming that the first screen resolution is 2400×1920, the second screen resolution is 2400×1080, and the field of view control parameter value is 0.5, calculation is performed according to the parameter calculation formula.

[0106] Length: 2400×0.5+2400×(1-0.5)=2400;

[0107] Width: 1920×0.5+1080×(1-0.5)=1500;

[0108] Therefore, the calculated third screen resolution is 2400×1500.

[0109] The third screen resolution is less than or equal to the first screen resolution, and the third screen resolution is greater than or equal to the second screen resolution.

[0110] Fig.12 A schematic diagram of a scene displaying an application interface provided in an embodiment of the present application. Fig.12 As shown, it is assumed that the screen resource resolution of the screen layout resource in the resource file of a target application is 2400×1080, the first screen resolution is 2400×1920, and the second screen resolution is 2400×1080. Fig.12 As shown in the figure, when the field of view control parameter value is 1, the third screen resolution is the same as the first screen resolution, that is, the screen layout resource is displayed according to the first screen resolution. The terminal device uses the short side width of the first screen resolution as the reference, that is, 1920 as the reference, and stretches the screen layout resource in a proportional manner. The resulting resolution is 4267×1920, and the ideal display situation corresponding to 4267×1920 is marked as display scene 1. Fig.12 As shown in the figure, since the long side of the terminal device display is only 2400, in this case, the screen has no margins, but there are many missing parts in the displayed application interface. For example, many areas on the left and right parts of the screen layout resource cannot be displayed. Fig.12As shown in the figure, when the field of view control parameter value is 0, the third screen resolution is the same as the second screen resolution, both are 2400×1080, which is smaller than the first screen resolution. The screen layout resource is displayed according to the second screen resolution. The terminal device does not need to stretch the screen layout resource. The ideal display situation corresponding to 2400×1080 is marked as display scene 2. Fig.12 As shown in FIG. 1 , in this display case, the screen layout resources can be fully displayed, and there is no missing in the display application interface, but there are more margins on the screen. Fig.12 As shown in the figure, when the field of view control parameter value is 0.5, the third screen resolution is 2400×1500, and the terminal device uses the short side width of the third screen resolution as the reference, that is, 1500 as the reference, to stretch the screen layout resources in a proportional manner, and the resulting resolution is 3333×1500. The display situation corresponding to 3333×1500 is marked as ideal display scene 3. Fig.12 As shown, since the long side of the screen of the terminal device is only 2400, in this display situation, there is a small margin on the screen, and there are minor omissions in the displayed application interface. For example, a small area on the left and right parts of the screen layout resource cannot be displayed.

[0111] 407. The window manager sends target screen parameters to the application.

[0112] 408 , the application constructs an application interface view according to the target screen parameters and screen layout resources.

[0113] 409. The application sends the application interface view to the window manager.

[0114] 410. The window manager displays the application interface of the application program according to the application interface view.

[0115] For some specific implementations of steps 407-410, please refer to the above description of Figure 5 305-308 in the description.

[0116] The application interface display method provided in the above embodiment determines the third screen resolution based on the first screen resolution, the second screen resolution and the field of view control parameter, and displays the application interface of the application program based on the determined third screen resolution; a compromise between incomplete display and screen margin is achieved through the third screen resolution, that is, the application interface displayed based on the third screen resolution can more completely display the information in the screen layout resources and has fewer omissions than the application interface displayed based on the first screen resolution; at the same time, the application interface displayed based on the third screen resolution has less screen margin than the application interface displayed based on the second screen resolution.

[0117] After displaying an application interface of a target application, in order to facilitate the user to adjust the display size of the application interface of the target application, in one embodiment of the present application, after executing step 410, that is, after displaying the application interface of the application, the method further includes: when the adjustment of the field of view control parameter is detected, the window manager determines the fourth screen resolution based on the adjusted field of view control parameter value and the second screen resolution; and sends the determined fourth screen resolution to the application, so that the application rebuilds the application interface view according to the fourth screen resolution and the screen layout resources. The window manager receives the application interface view sent by the application and displays the application interface of the application. In one embodiment of the present application, when the window manager sends the fourth screen resolution to the application, it will simultaneously send an interface update instruction to the terminal device, so that the application rebuilds the application interface view according to the fourth screen resolution.

[0118] In one embodiment of the present application, a preset calculation formula can be used to obtain a fourth screen resolution based on the first screen resolution, the second screen resolution and the adjusted field of view control parameter. For example, the parameter calculation formula is: fourth screen resolution = first screen resolution × B + second screen resolution × (1-B); wherein B is the adjusted field of view control parameter value. In one embodiment of the present application, after executing step 410, that is, after displaying the application interface of the application, the method further includes: displaying a field of view control push bar on the screen margin next to the application interface of the application. For some specific implementations of the above embodiments, please refer to Fig. 9 The relevant description will not be repeated here.

[0119] In the above embodiment, after the terminal device displays the application interface of a target application, the field of view control parameters are monitored, and based on the user's adjustment of the field of view control parameters, the application program is promptly controlled to regenerate a new application interface view according to the adjusted fourth screen resolution, and the application interface size of the currently displayed target application is promptly updated, so as to achieve the effect of timely adjustment of the application interface with the field of view control parameters, so that the application interface of the currently displayed target application is more in line with the user's needs, thereby improving the efficiency of application interface adjustment.

[0120] Fig.13 A schematic diagram of a terminal device provided in an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software system is divided into four layers, namely, the application layer, the framework layer, the system library, and the kernel layer from top to bottom.

[0121] The application layer may include a series of application programs, such as desktop, clipboard, map, music, short message, gallery, window manager, navigation, audio and the like.

[0122] The framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a view system, etc.

[0123] The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. In some embodiments of the present application, the window manager can be used to determine whether there is a desktop card on the display interface of the terminal device. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The phone manager is used to provide communication functions for the terminal device. The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application to display notification information in the status bar.

[0124] The application layer and framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0125] The system library may include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), an image processing library, etc.

[0126] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver. It is understandable that Fig.13 The layers in the software structure shown and the components contained in each layer do not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer layers than shown in the figure, and each layer may include more or fewer components, which is not limited in the present application.

[0127] Fig.14 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Fig.14The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor (PS) 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor (ALS) 180L, a bone conduction sensor 180M, etc. It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0128] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc.

[0129] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system. In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I1C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0130] The I1C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.

[0131] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.

[0132] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I1C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0133] The USB interface 130 is an interface that complies with USB standard specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the terminal device 100, and may also be used to transmit data between the terminal device 100 and a peripheral device.

[0134] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0135] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.

[0136] The wireless communication function of the terminal device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide solutions for wireless communication including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 can include at least one filter, switch, power amplifier, low noise amplifier, etc. The mobile communication module 150 can receive electromagnetic waves from antenna 1, and filter, amplify and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The wireless communication module 160 can provide solutions for wireless communication including wireless local area network (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR) and the like applied to the terminal device 100.

[0137] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor that serves abnormality reminders and connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0138] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.

[0139] In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. The terminal device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor. The camera 193 is used to capture a still image or a video. The object generates an optical image through a lens and projects it onto a photosensitive element.

[0140] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0141] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.

[0142] The terminal device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals.

[0143] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.

[0144] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0145] The pressure sensor 180A is used to sense pressure signals and convert pressure signals into electrical signals. The pressure sensor 180A is used to sense pressure signals and convert pressure signals into electrical signals.

[0146] The gyro sensor 180B can be used to determine the motion posture of the terminal device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.

[0147] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 180E can also be used to identify the device posture of the terminal, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc.

[0148] The distance sensor 180F is used to measure the distance.

[0149] The proximity light sensor 180G may include, for example, a light source and a photodetector. The light source may include an infrared light diode. The infrared light diode may emit infrared light pulses outward. The photodetector may detect infrared reflected light from an object. The proximity light sensor 180G outputs the light intensity of the detected infrared reflected light to the processor 110. The processor 110 may implement a corresponding function according to the light intensity output by the proximity light sensor 180G. For example, the proximity light sensor 180G may be used to measure whether an object is close to a terminal device.

[0150] The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The bone conduction sensor 180M can obtain vibration signals.

[0151] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button. It may also be a touch button. The motor 191 may generate a vibration prompt. The indicator 192 may be an indicator light, which may be used to indicate the charging status, the change of the power, or may be used to indicate messages, missed calls, notifications, etc.

[0152] The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0153] This embodiment also provides a computer storage medium, which stores computer instructions. When the computer instructions are Fig.14 When the terminal device 100 is operated, Fig.14 The terminal device 100 shown executes the above-mentioned related method steps to implement the application interface display method in the above-mentioned embodiment.

[0154] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the application interface display method in the above-mentioned embodiment.

[0155] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the application interface display method in the above-mentioned method embodiments.

[0156] Among them, the terminal device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the application interface display method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the application interface display method provided above, and will not be repeated here.

[0157] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0158] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0159] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0160] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0161] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. An application interface display method, applied to a terminal device, characterized in that: The method comprises: Display the desktop according to the first screen resolution; In response to a click operation on an application icon on the desktop, displaying an application interface of an application corresponding to the application icon according to a second screen resolution, wherein the second screen resolution is less than or equal to the first screen resolution; Display vision control push rod; In response to the user's movement of the field of view control push rod, the application interface of the application is adjusted based on the first screen resolution and the second screen resolution.

2. The application interface display method according to claim 1, characterized in that: The display field of view control push rod comprises: In a drop-down menu of the terminal device, display the field of view control push rod; or, In response to a pressing operation on a volume key of the terminal device, the field of view control push rod is displayed.

3. The application interface display method according to claim 1, characterized in that: The displaying of the application interface of the application corresponding to the application icon according to the second screen resolution includes: If the application corresponding to the application icon is not the target application, the second screen resolution is equal to the first screen resolution; If the application program corresponding to the application icon is the target application, the second screen resolution is smaller than the first screen resolution.

4. The application interface display method according to claim 1, characterized in that: The method further comprises: When any application is installed on the terminal device, a parameter setting control of the application is displayed; In response to a user setting operation on the parameter setting control, the screen parameter of any one of the applications is set to an application display resolution, and the any one of the applications is determined to be a target application, and the application display resolution is not equal to the first screen resolution.

5. The application interface display method according to claim 4, characterized in that: The method further comprises: The application display resolution is used as the second screen resolution corresponding to any one of the application programs.

6. The application interface display method according to claim 1, characterized in that: In response to the user moving the field of view control push rod, adjusting the application interface of the application based on the first screen resolution and the second screen resolution includes: In response to the user's movement of the field of view control push rod, determining a field of view control parameter, wherein the field of view control parameter is used to adjust the display size of the application interface of the target application; Determine a target screen resolution based on the first screen resolution, the second screen resolution and the field of view control parameter, wherein the target screen resolution is greater than or equal to the second screen resolution and the target screen resolution is less than or equal to the first screen resolution; The application interface of the application program is redisplayed according to the target screen resolution.

7. The application interface display method according to claim 6, characterized in that: In response to the user moving the field of view control push rod, determining the field of view control parameter includes: In response to the user moving the field of view control push rod in a first direction, increasing the field of view control parameter; or In response to the user moving the field of view control push rod in a second direction, reducing the field of view control parameter, wherein the first direction is opposite to the second direction.

8. The application interface display method according to claim 6, characterized in that: The determining the target screen resolution based on the first screen resolution, the second screen resolution and the field of view control parameter comprises: If the field of view control parameter is 0, the target screen resolution is the same as the second screen resolution; If the field of view control parameter is 1, the target screen resolution is the same as the first screen resolution, wherein the field of view control parameter is any value in the interval [0, 1].

9. An application interface display method, applied to a terminal device, characterized in that: The method comprises: Display the desktop according to the first screen resolution; In response to a click operation on an application icon on the desktop, an application interface of an application corresponding to the application icon is displayed according to a second screen resolution, where the second screen resolution is less than or equal to the first screen resolution.

10. The application interface display method according to claim 1, characterized in that: The displaying of the application interface of the application corresponding to the application icon according to the second screen resolution includes: If the application corresponding to the application icon is not the target application, the second screen resolution is equal to the first screen resolution; If the application program corresponding to the application icon is the target application, the second screen resolution is smaller than the first screen resolution.

11. The application interface display method according to claim 9, characterized in that: The method further comprises: When any application is installed on the terminal device, a parameter setting control of the application is displayed; In response to a user setting operation on the parameter setting control, the screen parameter of any one of the applications is set to an application display resolution, and the any one of the applications is determined to be a target application, and the application display resolution is not equal to the first screen resolution.

12. The application interface display method according to claim 11, characterized in that: The method further comprises: The application display resolution is used as the second screen resolution corresponding to any one of the application programs.

13. The application interface display method according to claim 12, characterized in that: The displaying of the application interface of the target application according to the second screen resolution includes: determining a third screen resolution based on the first screen resolution, the second screen resolution, and a field of view control parameter; The application interface of the target application is displayed according to the third screen resolution.

14. The application interface display method according to claim 13, characterized in that: The method further comprises: Display the field of view control fader corresponding to the field of view control parameter.

15. The application interface display method according to claim 14, characterized in that: After displaying the application interface of the target application, the method further includes: In response to the user's movement of the field of view control push rod, determining an adjusted field of view control parameter; determining a fourth screen resolution based on the first screen resolution, the second screen resolution, and the adjusted field of view control parameter; The application interface of the target application is redisplayed according to the fourth screen resolution.

16. The application interface display method according to claim 15, characterized in that: In response to the user's movement of the field of view control push rod, determining the adjusted field of view control parameter includes: In response to the user moving the field of view control push rod in a first direction, increasing the field of view control parameter; or In response to the user moving the field of view control push rod in a second direction, reducing the field of view control parameter, wherein the first direction is opposite to the second direction.

17. The application interface display method according to claim 15, characterized in that: The determining the fourth screen resolution based on the first screen resolution, the second screen resolution, and the adjusted field of view control parameter comprises: If the field of view control parameter is 0, the target screen resolution is the same as the second screen resolution; If the field of view control parameter is 1, the target screen resolution is the same as the first screen resolution, wherein the field of view control parameter is any value in the interval [0, 1].

18. The application interface display method according to claim 14, characterized in that: The field of view control push rod that displays the field of view control parameter corresponding to the field of view control parameter includes: In a drop-down menu of the terminal device, display the field of view control push rod; or, In response to a pressing operation on a volume key of the terminal device, the field of view control push rod is displayed.

19. An application interface display method, applied to a terminal device, wherein the terminal device includes a display screen, characterized in that: The method comprises: Displaying an application interface of a first application according to a first screen resolution, wherein the application interface of the first application includes a start control of a second application; In response to a click operation on the start control, an application interface of the second application is displayed according to a second screen resolution, where the second screen resolution is less than or equal to the first screen resolution.

20. A terminal device, characterized in that: The terminal device includes a processor and a memory. The memory is used to store instructions; The processor is used to call the instructions in the memory so that the terminal device executes the application interface display method as described in any one of claims 1 to 19.

21. A computer-readable storage medium, characterized in that: It includes computer instructions, which, when executed on a terminal device, enable the terminal device to execute the application interface display method as described in any one of claims 1 to 19.