WO2024217415A1 - 界面显示方法及装置 - Google Patents

界面显示方法及装置 Download PDF

Info

Publication number
WO2024217415A1
WO2024217415A1 PCT/CN2024/088064 CN2024088064W WO2024217415A1 WO 2024217415 A1 WO2024217415 A1 WO 2024217415A1 CN 2024088064 W CN2024088064 W CN 2024088064W WO 2024217415 A1 WO2024217415 A1 WO 2024217415A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
interface
application
display
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2024/088064
Other languages
English (en)
French (fr)
Inventor
甘程奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2024217415A1 publication Critical patent/WO2024217415A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • H04M1/0216Foldable in one direction, i.e. using a one degree of freedom hinge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present application belongs to the field of communication technology, and specifically relates to an interface display method and device.
  • the purpose of the embodiments of the present application is to provide an interface display method and device, which can make the display interface of the application on the screen of the electronic device have a better display effect when the resolution of the electronic device screen is less than the lower limit of the resolution range corresponding to the application.
  • an embodiment of the present application provides an interface display method, which is applied to an electronic device that includes at least a first screen, and the interface display method includes: receiving a first input, the first input is used to trigger the electronic device to display a first interface of a first application, the screen resolution of the first screen is less than a lower limit value of a resolution range adapted for the first application; in response to the first input, scaling the interface content of the first interface of the first application to obtain target interface content, and displaying the target interface content on the first screen.
  • an embodiment of the present application provides an interface display device, which is applied to an electronic device that includes at least a first screen, and the interface display device includes: a receiving module, a processing module and a display module; the receiving module is used to receive a first input, and the first input is used to trigger the electronic device to display a first interface of a first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted for the first application; the processing module is used to scale the interface content of the first interface of the first application in response to the first input to obtain the target interface content; the display module is used to display the target interface content on the first screen.
  • an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
  • an electronic device receives a first input, and the first input is used to trigger the electronic device to display a first interface of a first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain the target interface content, and the target interface content is displayed on the first screen.
  • the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen, with a better display effect, thereby improving the user's experience of using the electronic device screen.
  • FIG1 is a schematic diagram of a system structure of a method for implementing an interface display provided by an embodiment of the present application
  • FIG2 is a flow chart of a method for displaying an interface according to an embodiment of the present application.
  • FIG3 is a second flow chart of an interface display method provided in an embodiment of the present application.
  • FIG4A is a schematic diagram of a folded mobile phone provided in an embodiment of the present application.
  • FIG4B is a schematic diagram of the unfolded effect of a mobile phone provided by an embodiment of the present application.
  • FIG5 is a third flow chart of an interface display method provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of an example of an interface display method process provided in an embodiment of the present application.
  • FIG7 is a schematic diagram of the structure of an interface display device provided in an embodiment of the present application.
  • FIG8 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 9 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
  • the screens of electronic devices come in more and more shapes. However, for the sake of aesthetics, some electronic devices are designed with smaller screen sizes, and the screen resolution may be smaller than the lower limit of the resolution range corresponding to third-party applications.
  • electronic devices with foldable screens such as electronic devices with foldable screens
  • the outer screen in the foldable electronic device is generally set on the back of the inner screen of the electronic device, its display area is only half of the inner screen, and the resolution of the display screen is also relatively low, usually lower than the lower limit of the resolution range corresponding to third-party applications, resulting in the interface of most third-party applications not being compatible with the outer screen of the electronic device with a foldable screen. Even if the interface of the third-party application can be displayed on the external screen, it cannot be displayed according to the normal display ratio.
  • the electronic device can trigger the electronic device to display the first interface of the first application by receiving the first input of the user, wherein the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; then, in response to the first input, the electronic device scales the interface content of the first interface of the first application to obtain the target interface content, and displays the target interface content on the first screen.
  • the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that the interface content can be normally displayed on the first screen, thereby improving the user's experience of using the electronic device screen.
  • the system architecture includes three layers: an application (Application, APP) layer 11, a system framework layer 12 and a display synthesis input native bottom layer 13.
  • the application layer 11 includes various applications in the system (including system applications and third-party applications) and auxiliary service applications.
  • the system framework layer 12 is the framework of the system, including the sub-service modules of each management system.
  • the electronic device can process the application accordingly based on the framework of the system.
  • the system framework layer 12 includes an intermediate conversion system for converting the screen information of each application system, and the intermediate conversion system can convert the display parameters of resolution and screen density.
  • the system framework layer 12 also includes a screen management system service module, a component activity management system service module, and a window display management system service module. The parameters of these service modules are updated and displayed through the view display system in the system framework layer 12.
  • system framework layer 12 further includes a list management and delivery module and an application configuration processing subsystem module. These two modules are used for delivering application lists and performing configuration processing on corresponding applications.
  • the display synthesis input native bottom layer 13 includes customization of the layer interface display synthesis system and the input system to ensure that the interface display and touch operation of third-party applications in the view display system of the electronic device are normal.
  • the developer can develop a software program that implements the interface display method provided in the embodiment of the present application based on the system architecture shown in FIG. 1, so that the interface display method can be run based on the operating system shown in FIG. 1. That is, the processor or electronic device can implement the interface display method provided in the embodiment of the present invention by running the software program in the operating system.
  • the execution subject of the interface display method provided in the embodiment of the present invention can be an electronic device (including mobile electronic devices and non-mobile electronic devices), or a functional module and/or functional entity in the electronic device that can implement the interface display method.
  • the specific implementation can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the following takes an electronic device including at least a first screen as an example to exemplarily illustrate an interface display method provided in an embodiment of the present invention, which is collectively referred to as an electronic device below.
  • FIG2 shows a flow chart of an interface display method provided by the embodiment of the present application, which can be applied to an electronic device including a first screen.
  • the interface display method provided by the embodiment of the present application may include the following steps 201 to 202.
  • Step 201 An electronic device receives a first input.
  • the first input is used to trigger the electronic device to display a first interface of a first application.
  • the above-mentioned first input may include: a click input of a user on a first screen of the electronic device, or a folding input of a user on the electronic device.
  • the click input may be a single click input, a double click input, or any number of click inputs, etc.
  • the click input may also be a long press input or a short press input.
  • the first application may be any third-party application, including but not limited to video applications, shopping applications, navigation applications, chat applications, etc.
  • the first application may be an application directly displayed on the first screen, or may be at least one application displayed in an application set.
  • the above application set includes at least one third-party application.
  • the user can click on the application displayed directly on the first screen to display the first interface of the first application on the first screen, or the user can enter the application collection entrance and click on the first application to display the first interface of the first application on the first screen.
  • the above-mentioned application collection entrance can be displayed in the form of a folder or a component.
  • the first application is an application that has not been displayed on the first screen, for example, a newly installed application is displayed on the first screen for the first time.
  • the screen resolution of the first screen is smaller than a lower limit of a resolution range adapted by the first application.
  • the lower limit value of the resolution interval adapted by the first application is the minimum resolution at which the first application can be normally displayed on the screen of the electronic device.
  • the resolution of the first screen of the electronic device is 200*300, and the resolution range adapted by the first application is (400*600, 900*1080). It is determined that the resolution of the first screen of the electronic device is less than the lower limit of the resolution range adapted by the first application.
  • the electronic device stores an application configuration of the first application, which includes but is not limited to: the resolution range adapted by the above-mentioned first application, and the initial display parameters of the first screen displaying the interface of the first application.
  • Step 202 The electronic device scales the interface content of the first interface of the first application in response to the first input, and displays the target interface content on the first screen of the electronic device.
  • the interface content of the first interface includes at least one component.
  • the at least one component may be at least one constituent element for constituting the target interface content, and may include a control for input or display, such as text or a picture.
  • the search component on the home page interface of a video application For example, the search component on the home page interface of a video application, the "recommendation" on the home page interface of a video application, etc.
  • step 202 “the electronic device scales the interface content of the first interface of the first application in response to the first input”, steps 202a and 202b are included:
  • Step 202a In response to the first input, the electronic device scales each component of the at least one component according to the target scaling factor to obtain component parameters of each scaled component.
  • the above-mentioned component parameters may include at least one of the following: the display position of the component in the first interface, the component size of the component, and the RGB value of each pixel in the component pattern corresponding to the component.
  • the target scaling factor is used to adjust the interface content of the first interface.
  • scaling each component in the at least one component is performed by the electronic device through the Matrix Matrix to scale.
  • Matrix is a matrix whose main functions are coordinate mapping and numerical conversion. It has the following 3x3 matrix representation:
  • Step 202b Generate target interface content based on the component parameters of each component after scaling.
  • the electronic device can scale down the search component and the video thumbnail in equal proportions according to the target zoom factor K1 to generate a scaled-down main interface of the video application.
  • the electronic device needs to change the interface touch input input touchRegion and layer buffer scaling matrix accordingly, and give the changed parameters to the touch sensing driver (SurfaceFlinger, SF) synthesis display side, so that the touch input area is also changed to an area suitable for the size of the first screen.
  • the electronic device receives a first input, and the first input is used to trigger the electronic device to display the first interface of the first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain the target interface content, and the target interface content is displayed on the first screen.
  • the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen, with a better display effect, thereby improving the user's experience of using the electronic device screen.
  • the electronic device may include only a first screen, and the screen resolution of the first screen is less than the lower limit of the resolution range of the first application. Based on this, the first input may be a touch input to the application icon in the first screen.
  • the electronic device may include a first screen and a foldable second screen, and the display orientations of the first screen and the second screen are opposite. It is understandable that the electronic device can be considered as a multi-screen terminal with at least two display screens, and the at least two display screens include a first screen and a second screen, wherein when the second screen is in an unfolded state, the display orientations of the first screen and the second screen are opposite.
  • the above-mentioned unfolded state means that the second screen is in a flat state.
  • the foldable electronic device includes a first screen 21 and a foldable second screen 22, wherein when the second screen 22 is in an unfolded state, the first screen 21 is a display screen that is disposed on the second screen 22 with its back facing and is smaller in size than the second screen 22.
  • the second screen 22 is a foldable screen, when the second screen 22 of the foldable electronic device is folded 360° along the common axis x, after folding, the foldable electronic device is in a fully folded state, at which time the second screen 22 is folded and hidden inside, so the second screen 22 can be called an inner screen.
  • the first screen 21 and the second screen 22 are disposed with their backs facing each other, so the first screen 21 can be called an outer screen.
  • Figure 4B is a schematic diagram of a foldable electronic device in an unfolded state, and the second screen 22 of the foldable electronic device is unfolded to 180° along the common axis x, so that the second screen 22 is in an unfolded state.
  • the first screen 21 is located on the back of the second screen 22, that is, the display directions of the first screen 21 and the second screen 22 are opposite.
  • the first input may be a click input to the first application on the first screen.
  • the process of the above step 202 “the electronic device scales the interface content of the first interface of the first application in response to the first input, and displays the target interface content on the first screen of the electronic device” includes step 202a1:
  • Step 202a1 When the second screen of the electronic device is in a folded state, the electronic device scales the interface content of the first interface of the first application in response to a first input to obtain target interface content, and displays the target interface content on the first screen.
  • the first input is used to select a first application.
  • the first input may include a click input by a user on a first application on a first screen of the electronic device.
  • the electronic device scales the interface content of the first interface of the first application selected by the user, and displays the scaled interface content on the first screen.
  • the interface display method provided in the embodiment of the present application may include the following steps A1 and A2.
  • Step A1 The electronic device displays an application collection entrance on the external screen desktop, and the applications in the application collection entrance can be operated and displayed normally on the external screen.
  • the electronic device may display applications in the application set entry according to a user input to the application set entry.
  • the application collection entrance is located on the external screen desktop of the electronic device, the user does not need to unfold the electronic device to operate the application he needs to operate, which simplifies the steps for the user to operate the application.
  • Step A2 The electronic device receives a user input for any application in the application set portal, and then displays the interface of any application on the external screen desktop of the electronic device.
  • the user can also perform a flip input on the electronic device so that the interface of the application displayed on the outer screen of the electronic device changes the display direction according to the user input.
  • the electronic device may support the user to slide or press keys on the external screen just like the built-in system applications and the internal screen, for example, back to exit and swipe up to enter the background.
  • the third-party applications and built-in system applications of the electronic device can have consistent usage interactions on the external screen, and support seamless interactive switching between the display interface of the third-party application and the display interface of the built-in system application.
  • the electronic device can cancel the first interface of the first application displayed on the external screen, and display the display interface of the built-in system application on the external screen, thereby achieving interactive consistency and supporting seamless interactive switching between third-party applications and built-in system application interfaces.
  • the user can directly select the application he wants to view on the external screen of the electronic device and zoom the display content of the application so that the interface of the application can be displayed normally on the external screen, thereby improving the user's experience of using the external screen of the electronic device.
  • the first input may be a folding input for the second screen.
  • the interface display method provided in the embodiment of the present application further includes step 301:
  • Step 301 Display a first interface of a first application on a second screen of an electronic device.
  • the second screen is in an expanded state.
  • the first input may include a folding input to a second screen of the electronic device.
  • the first input is used to fold the second screen of the electronic device so as to display the first interface displayed on the second screen on the first screen.
  • the electronic device when the second screen of the electronic device displays the first interface of the first application, the electronic device receives a user input for folding the second screen, and determines the target resolution based on the resolution range of the first application displayed on the second screen and the aspect ratio of the first screen.
  • the user can directly switch the display interface content to the outer screen for normal display by folding the screen.
  • the interface display method provided in the embodiment of the present application further includes step 401 and step 402:
  • Step 401 The electronic device determines a target resolution in a resolution range adapted for a first application based on the screen aspect ratio of a first screen.
  • the above target resolution is used to layout the display content of the first interface at the resolution. It is understandable that the interface content of the first interface at the target resolution can be displayed normally.
  • the aspect ratio of the target resolution is the same as the screen aspect ratio of the first screen.
  • the aspect ratio of the first screen is 3:2
  • the aspect ratio of the target resolution must also be 3:2, that is, the aspect ratio of the target resolution can be 6:4 or 12:8.
  • the electronic device determines a resolution having the same aspect ratio as the first screen in a resolution interval adapted by the first application, and determines the resolution as the target resolution.
  • Step 402 The electronic device uses the quotient of the screen resolution of the first screen and the target resolution as the target scaling factor.
  • the quotient obtained by dividing the width and height of the screen resolution of the first screen by the width and height of the target resolution is used as the target scaling factor.
  • 0.5 is the target scaling factor.
  • the electronic device after determining the target resolution, layouts the interface content of the first interface of the first application according to the target resolution, then scales the layout interface content based on the target scaling factor to obtain the scaled interface content, i.e., the above-mentioned target interface content, and finally displays the target interface content on the first screen.
  • the interface display method provided in the embodiment of the present application further includes steps 501 to 503:
  • Step 501 The electronic device adds display parameters of the first screen displaying the target interface content to the application configuration of the first application.
  • the above display parameters include the resolution of the target interface content display, the pixel density value of the target interface content, and the component parameters of the components in the target interface content.
  • the application configuration of the first application may be summarized into an application list.
  • the above application list includes applications normally displayed on the first screen and application configurations of the applications.
  • the above application list may be stored locally or configured by the network side.
  • Step 502 When the first application has successfully run according to the display parameters, the electronic device receives the second input. enter.
  • the second input is used to select an application icon corresponding to the first application in the first screen.
  • the second input may include a click input on an application icon corresponding to the first application.
  • the above “when the first application has successfully run according to the display parameters” is used to indicate that the display interface of the first application has been successfully displayed normally on the first screen of the electronic device and has been closed by the user, that is, the first application has stopped running.
  • the electronic device stores the display parameters of the application on the external screen and adds them to the application configuration of the application. At this time, the user closes the first application.
  • the electronic device receives the second input from the user, starts the first application again, and displays it on the external screen.
  • Step 503 The electronic device displays the interface of the first application on the first screen in response to the second input based on the display parameters in the application configuration.
  • the electronic device may parse the above application list to obtain the display parameters in the application configuration of the first application.
  • the user clicks and inputs an application icon corresponding to the first application on the first screen, and the electronic device can directly use the application configuration of the first application to display the interface of the first application on the first screen.
  • the electronic device parses the application list to determine whether the application is in the application list. If it is in the application list, the electronic device can directly use the application configuration of the application in the application list so that the display content of the application can be displayed normally on the screen of the electronic device.
  • the electronic device parses the application list to determine whether the application is in the application list. If it is not in the application list, the electronic device scales the display content of the application and displays the scaled display content on the screen of the electronic device.
  • the electronic device will first determine the screen to be displayed by the application, and call different configuration parameters according to the displayed screen. For example, if the application is displayed on the second screen, the electronic device can directly configure the original display parameters of the application and display the display content of the application on the second screen; if the application is displayed on the first screen, the electronic device directly configures the display parameters corresponding to the display on the first screen.
  • the relevant information is distributed to the application end to refresh the display content layout.
  • the electronic device stores the display parameters normally displayed on the screen of the electronic device, and directly configures these display parameters to the application as needed when it is used next time, thereby reducing the steps of displaying interface content of the electronic device.
  • Step 101 After the foldable screen electronic device is turned on, the locally stored application list is parsed first, and the system-related data information (locally stored application configuration information) is cached and stored, and other module applications such as the external screen desktop application icon and the external screen executable application interception module are notified;
  • system-related data information locally stored application configuration information
  • Step 102 If the foldable screen electronic device has a newly installed application, for the application that has been installed, proceed to step 104;
  • Step 103 If the network sends an updated application list at this time, the buffered update of the configured system-related data information is performed according to the latest configuration result sent by the network list;
  • Step 104 The newly installed application starts parsing the application package information such as the application unique identifier (uid), and integrates it with the resolution configuration interval information of the corresponding application;
  • Step 105 When the user opens and uses an application on the inner screen or the outer screen of the foldable screen electronic device, step 106 is entered during the process of starting the application process and binding it with the system;
  • Step 106 the system of the foldable screen electronic device needs to determine whether the application is in the application list. If so, the system-related data information cached above is updated in units of processes, that is, the configuration information of the application is updated to the configuration information to be used and enter step 107;
  • Step 107 The system of the foldable screen electronic device updates the configuration information data such as the application should be enlarged or zoomed according to the inner screen or outer screen of the foldable screen electronic device displayed by the current application, that is, according to the currently used focus screen, or maintains the configuration information data related to the zoom of the current screen, and then enters step 108;
  • Step 108 When the system of the foldable screen electronic device detects that the screen where the currently used application interface is located has changed, such as when the second screen of the foldable screen electronic device being used is folded, the system of the foldable screen electronic device will update the application configuration information accordingly and enter step 109;
  • Step 109 Combine the resolution information of the corresponding screen configured, and update the relevant resolution scaling information according to the focus screen where the application is started, and proceed to step 110 to update the system and application status;
  • Step 110 Update the mAppScale scaling information of the application process, and the system of the corresponding electronic device updates the status information of the server window interface and process record information, so as to record and prepare the subsequent information of the application for entering step 111;
  • Step 111 When the application is to be displayed on the external screen of the foldable screen electronic device, based on the above records of relevant status information and related information such as the current screen resolution, these relevant information are distributed to the application side for layout refresh and display. Specifically, the corresponding application interface config, displayinfo, frame, insets and other screen status information after the corresponding configuration modification are given to the application side process, so that the application will be displayed according to the screen size we expect it to run on.
  • the layout display and refresh of the interface content are performed according to the size of the foldable screen electronic device, and at the same time, the system side of the foldable screen electronic device will also modify the underlying input and other parameters accordingly to enter step 112;
  • Step 112. When the application is to be displayed on the external screen of the foldable screen electronic device, the layout display and refresh are performed according to the screen size that we configure to run it in step 111. However, since the application interface size and touch input area are inconsistent with the external screen size, the system needs to change the interface touch input input touchRegion and layer buffer scaling matrix to the sf synthesis display side, and then enter step 113;
  • Step 113 After being processed and adapted by the system and application side solutions, the application is finally adapted to run, display and operate normally on the external screen; if you continue to use it to enter or exit other applications, enter the system adaptation solution process of the previous step 105.
  • electronic devices can, based on their own product positioning and needs, add to the application list of application configuration for each application on the market, or receive an application list sent by the network, and can individually adjust and control the resolution and pixel density configuration for each application's interface effect.
  • the electronic device can directly call the display parameters corresponding to the application in the local application configuration list, without repeatedly adjusting and calculating the parameters for displaying the content.
  • the interface display method provided in the embodiment of the present application can be executed by an interface display device, or an electronic device, or a functional module or entity in an electronic device.
  • an interface display device executing the interface display method is taken as an example to illustrate the interface display device provided in the embodiment of the present application.
  • Fig. 7 shows a possible structural diagram of an interface display device involved in an embodiment of the present application.
  • the interface display device 700 may include: a receiving module 701, a processing module 702 and a display module 703;
  • the receiving module 701 is used to receive a first input, the first input is used to trigger the electronic device to display the first interface of the first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; the processing module 702 is used to scale the interface content of the first interface of the first application in response to the first input received by the receiving module 701 to obtain the target interface content; the display module 703 is used to display the target interface content processed by the processing module 702 on the first screen.
  • the interface content of the first interface includes at least one component; the above-mentioned processing module 702 is specifically used to: in response to the first input received by the receiving module 701, scale each component of the at least one component according to the target scaling factor to obtain the component parameters of each component after scaling; based on the component parameters of each component after scaling, generate the target interface content.
  • the electronic device further includes a foldable second screen, and the display orientations of the first screen and the second screen are opposite;
  • the processing module 702 is specifically configured to, when the second screen is in a folded state, in response to the first input received by the receiving module 701, scale the interface content of the first interface of the first application to obtain the target interface content;
  • the display module 703 is specifically configured to display the processing information on the first screen. Module 702 processes the target interface content.
  • the above-mentioned processing module 702 is also used to determine the target resolution in the resolution range based on the screen aspect ratio of the first screen, and the aspect ratio of the target resolution is the same as the screen aspect ratio; the above-mentioned processing module 702 is also used to use the quotient between the screen resolution and the target resolution as the target scaling factor.
  • the display module 703 before the receiving module 701 receives the first input, the display module 703 is also used to display the first interface on the second screen, and the second screen is in an expanded state; wherein the first input is a folding input for the second screen.
  • the processing module 702 is used to add display parameters of the target interface content displayed on the first screen to the application configuration of the first application; the receiving module 701 is also used to receive a second input when the first application has successfully run according to the display parameters; the display module 703 is also used to display the interface of the first application on the first screen based on the display parameters in the application configuration in response to the second input received by the receiving module 701.
  • the device receives a first input, and the first input is used to trigger the electronic device to display the first interface of the first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain the target interface content, and the target interface content is displayed on the first screen.
  • the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen, with a better display effect, thereby improving the user's experience of using the electronic device screen.
  • the interface display device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • NAS Network Attached Storage
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the interface display device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the interface display device provided in the embodiment of the present application can implement various To avoid repetition, the process will not be described here.
  • an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores a program or instruction that can be executed on the processor 801.
  • the program or instruction is executed by the processor 801
  • the various steps of the above-mentioned interface display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
  • FIG. 9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
  • components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
  • the electronic device 100 can also include a power source (such as a battery) for supplying power to each component, and the power source can be logically connected to the processor 110 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • a power source such as a battery
  • the electronic device structure shown in FIG9 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the user input unit 107 is used to receive a first input, the first input is used to trigger the electronic device to display the first interface of the first application, and the screen resolution of the first screen of the electronic device 100 is less than the lower limit of the resolution range adapted for the first application; the processor 110 is used to scale the interface content of the first interface of the first application in response to the first input received by the user input unit 107 to obtain the target interface content; the display unit 106 is used to display the target interface content processed by the processor 110 on the first screen.
  • the interface content of the first interface includes at least one component; the above-mentioned processor 110 is specifically used to: in response to the first input received by the user input unit 107, scale each component of the at least one component according to the target scaling factor to obtain component parameters of each component after scaling; and generate target interface content based on the component parameters of each component after scaling.
  • the electronic device 100 also includes a foldable second screen, and the display orientations of the first screen and the second screen are opposite; the above-mentioned processor 110 is specifically used to, when the second screen is in a folded state, respond to the first input received by the user input unit 107, and scale the interface content of the first interface of the first application to obtain the target interface content; the above-mentioned display unit 106 is specifically used to display the target interface content processed by the processor 110 on the first screen.
  • the processor 110 is further configured to determine a target resolution in a resolution range based on the screen aspect ratio of the first screen, wherein the aspect ratio of the target resolution is the same as the screen aspect ratio;
  • the processor 110 is further configured to use the quotient between the screen resolution and the target resolution as the target scaling factor.
  • the display unit 106 before the user input unit 107 receives the first input, the display unit 106 is also used to display the first interface on the second screen, and the second screen is in an expanded state; wherein the first input is a folding input for the second screen.
  • the processor 110 is used to add display parameters of the target interface content displayed on the first screen to the application configuration of the first application; the user input unit 107 is also used to receive a second input when the first application has successfully run according to the display parameters; the display unit 106 is also used to display the interface of the first application on the first screen based on the display parameters in the application configuration in response to the second input received by the user input unit 107.
  • the electronic device receives a first input, and the first input is used to trigger the electronic device to display the first interface of the first application, and the screen resolution of the first screen is less than the lower limit of the resolution interval adapted by the first application; in response to the first input, the interface content of the first interface of the first application is scaled to obtain the target interface content, and the target interface content is displayed on the first screen.
  • the user triggers the electronic device to scale the interface content of the first interface of the first application through the first input, so that when the resolution of the electronic device screen is less than the lower limit of the resolution interval corresponding to the application, the interface content can be normally displayed on the first screen, with a better display effect, thereby improving the user's experience of using the electronic device screen.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
  • the user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072.
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (Random Access Memory,
  • the memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the various processes of the above-mentioned interface display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
  • An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned interface display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • An embodiment of the present application provides a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned interface display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种界面显示方法及装置,属于通信技术领域。应用于至少包含第一屏幕的电子设备,该界面显示方法包括:接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。

Description

界面显示方法及装置
相关申请的交叉引用
本申请主张在2023年4月19日在中国提交的申请号为202310426192.1的中国专利的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种界面显示方法及装置。
背景技术
随着通信技术的发展,电子设备屏幕的显示形态越来越多,但是,有些电子设备为了美观,屏幕的尺寸较小,屏幕分辨率可能比第三方应用对应的分辨率区间的下限值还要小。
如此,很多第三方应用在这些小尺寸的屏幕上,无法正常显示,例如,显示界面中的控件显示不全、显示界面中的控件显示重叠、显示界面闪退、控件功能无法点击、触摸输入操作冲突等,导致用户使用小尺寸屏幕显示第三方应用的体验较差。
发明内容
本申请实施例的目的是提供一种界面显示方法及装置,能够在电子设备屏幕的分辨率小于应用对应的分辨率区间的下限的情况下,使得应用在电子设备屏幕上的显示界面具有较好的显示效果。
第一方面,本申请实施例提供了一种界面显示方法,应用于至少包含第一屏幕的电子设备,该界面显示方法包括:接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。
第二方面,本申请实施例提供了一种界面显示装置,应用于至少包含第一屏幕的电子设备,该界面显示装置包括:接收模块、处理模块和显示模块;该接收模块,用于接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;该处理模块,用于响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容;该显示模块,用于在第一屏幕显示目标界面内容。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,电子设备接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。如此,用户通过第一输入触发电子设备对第一应用的第一界面的界面内容进行缩放,从而能够在电子设备屏幕的分辨率小于应用对应的分辨率区间的下限的情况下,使得该界面内容可以正常显示在第一屏幕上,具有较好的显示效果,进而提高用户对电子设备屏幕的使用体验。
附图说明
图1是本申请实施例提供的一种实现界面显示方法的系统结构示意图;
图2是本申请实施例提供的一种界面显示方法的流程示意图之一;
图3是本申请实施例提供的一种界面显示方法的流程示意图之二;
图4A是本申请实施例提供的一种手机的折叠后的效果示意图;
图4B是本申请实施例提供的一种手机的展开后的效果示意图;
图5是本申请实施例提供的一种界面显示方法的流程示意图之三;
图6是本申请实施例提供的一种界面显示方法流程实例的示意图;
图7是本申请实施例提供的一种界面显示装置的结构示意图;
图8是本申请实施例提供的一种电子设备的硬件结构示意图之一;
图9是本申请实施例提供的一种电子设备的硬件结构示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下 可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
随着通信技术的发展,电子设备屏幕的形态越来越多,但是,有些电子设备为了美观,屏幕尺寸设计的较小,屏幕的分辨率可能比第三方应用对应的分辨率区间的下限值还要小。其中,以可折叠屏幕的电子设备中,可以上下折叠屏幕的电子设备为例,由于上下折叠的电子设备中的外屏一般设置在电子设备内屏的背向,其显示面积仅有内屏的一半,且显示屏幕的分辨率也比较低,通常低于第三方应用对应分辨率区间的下限值,从而导致大多数第三方应用的界面不适配该可折叠屏的电子设备的外屏。即使可以将第三方应用的界面显示在该外屏上,也是无法按照正常的显示比例显示该界面的。
如此,很多第三方应用在这些小尺寸的屏幕上,无法正常显示,例如,显示界面中的控件显示不全、显示界面中的控件显示重叠、显示界面闪退、控件功能无法点击、触摸输入操作冲突等,导致用户使用小尺寸屏幕显示第三方应用的体验较差。
而在本申请实施例中,电子设备可以通过接收用户的第一输入,触发电子设备显示第一应用的第一界面,其中,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;接着,电子设备响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。如此,用户通过第一输入触发电子设备对第一应用的第一界面的界面内容进行缩放,使得该界面内容可以正常显示在第一屏幕上,进而提高用户对电子设备屏幕的使用体验。
如图1所示,为本申请实施例提供的一种可能的系统框架的架构示意图。在图1中,该系统的架构包括三层:应用(Application,APP)层11、系统框架层12和显示合成输入native底层13。
其中,应用层11包括该系统中的各个应用程序(包括系统应用程序和第三方应用程序)以及辅助服务应用。
系统框架层12是该系统的框架,包括各个管理系统的子服务模块。电子设备可以基于该系统的框架对应用进行相应处理。具体地,该系统框架层12包括将各个应用系统屏幕信息进行转换的中间转换系统,该中间转换系统可以对分辨率以及屏幕密度的显示参数进行转换。
上述系统框架层12还包括屏幕管理系统服务模块、组件活动(activity)管理系统服务模块以及窗口显示管理系统服务模块。中间转换系统将显示参数进行转换后分发 给这些服务模块进行参数的更新。并通过该系统框架层12中的视图(view)显示系统进行显示。
此外,上述系统框架层12还包括名单管理下发模块和应用配置处理子系统模块,这两个模块用于应用名单的下发和给对应应用进行配置处理。
显示合成输入native底层13包括层级(layer)界面显示合成系统和输入(input)系统的定制,保证第三方应用在电子设备的view显示系统中界面显示和触摸操作使用均正常。
以上述的系统为例,本申请实施例中,开发人员可以基于上述如图1所示的系统架构,开发实现本申请实施例提供的界面显示方法的软件程序,从而使得该界面显示方法可以基于如图1所示的操作系统运行。即处理器或者电子设备可以通过在操作系统中运行该软件程序实现本发明实施例提供的界面显示方法。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的界面显示方法及装置进行详细地说明。
本发明实施例提供的界面显示方法的执行主体可以为电子设备(包括移动电子设备和非移动电子设备),也可以为该电子设备中能够实现该一种界面显示方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以至少包含第一屏幕的电子设备为例,对本发明实施例提供的一种界面显示方法进行示例性的说明,以下统称电子设备。
本申请实施例提供一种界面显示方法,图2示出了本申请实施例提供的一种界面显示方法的流程图,该方法可以应用于包含第一屏幕的电子设备。如图2所示,本申请实施例提供的界面显示方法可以包括下述的步骤201至步骤202。
步骤201、电子设备接收第一输入。
在本申请实施例中,上述第一输入用于触发电子设备显示第一应用的第一界面。
在本申请实施例中,上述第一输入可以包括:用户对电子设备的第一屏幕的点击输入,或者,用户对电子设备的折叠输入。
示例性地,上述点击输入可以为单击输入、双击输入或任意次数的点击输入等,上述的点击输入还可以为长按输入或短按输入。
在本申请一些实施例中,上述第一应用可以为任意第三方应用。包括但不限于,视频应用、购物应用、导航应用、聊天应用等。
在本申请一些实施例中,上述第一应用可以是直接显示在第一屏幕上的应用,也可以是显示在应用集合中的至少一个应用。
示例性地,上述应用集合中包括至少一个第三方应用。
示例性地,用户可以点击直接显示在第一屏幕上的应用,将第一应用的第一界面显示在第一屏幕上,或者,用户也可以进入应用集合入口后,点击第一应用,将第一应用的第一界面显示在第一屏幕上。
示例性地,上述应用集合入口可以以文件夹形式显示或者组件形式显示。
需要说明的是,上述第一应用为还未在第一屏幕显示过的应用,例如,新安装的应用第一次在第一屏幕上显示。
在本申请一些实施例中,上述第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值。
示例性地,上述第一应用适配的分辨率区间的区间下限值为第一应用可以在电子设备屏幕上正常显示的最小分辨率。
举例说明,电子设备的第一屏幕的分辨率为200*300,而第一应用适配的分辨率区间在(400*600,900*1080),判断电子设备的第一屏幕的分辨率小于第一应用适配的分辨率区间下限。
在本申请一些实施例中,电子设备中存储有第一应用的应用配置,该应用配置包括但不限于:上述第一应用适配的分辨率区间,以及该第一屏幕显示该第一应用的界面的初始显示参数。
步骤202、电子设备响应于第一输入,对第一应用的第一界面的界面内容进行缩放,并在电子设备的第一屏幕显示目标界面内容。
在本申请一些实施例中,上述第一界面的界面内容包含至少一个组件。
示例性地,上述至少一个组件可以是用于组成上述目标界面内容的至少一个组成元素,可以包括用于输入或显示的控件,例如,文字或者图片。
举例说明,视频应用中首页界面上的搜索组件、视频应用中首页界面上的“推荐”等。
进一步可选地,结合图2,如图3所示,在本申请一些实施例中,在上述步骤202“电子设备响应于第一输入,对第一应用的第一界面的界面内容进行缩放”,包括步骤202a和步骤202b:
步骤202a、电子设备响应于第一输入,按照目标缩放系数,分别对至少一个组件中的每个组件进行缩放,得到缩放后的每个组件的组件参数。
示例性地,上述组件参数可以包括以下至少之一:该组件在第一界面中的显示位置、该组件的组件尺寸、该组件对应的组件图案中的每个像素点的RGB值。
示例性地,上述目标缩放系数用于调整上述第一界面的界面内容。
示例性地,分别对至少一个组件中的每个组件进行缩放,是电子设备通过Matrix 矩阵进行缩放。
示例性地,Matrix是一个矩阵,主要功能是坐标映射,数值转换,其有以下3x3的矩阵表示:
假设,目标缩放系数为0.5,则将MSCALE_X和MSCALE_Y同时乘上目标缩放系数0.5,得到最终的矩阵结果,根据该矩阵结果值为缩放后的每个组件的组件参数。
步骤202b、基于缩放后的每个组件的组件参数,生成目标界面内容。
举例说明,以第一应用为视频应用为例,假设该视频应用的主界面中包含搜索组件和视频缩略图,电子设备可以按照目标缩放系数K1,将搜索组件和视频缩略图,等比例缩小,生成缩小后的视频应用的主界面。
需要说明的是,虽然目标界面内容对应缩放到第一屏幕的尺寸,但是,由于目标界面内容大小和触摸输入区域与第一屏幕的大小也不一致。因此,电子设备需要对应更改界面触摸输入input touchRegion、layer buffer缩放矩阵,并将更改后的参数给到触摸感应驱动(SurfaceFlinger,SF)合成显示侧,以使得触摸输入区域也相应更改到与第一屏幕尺寸合适的区域。
在本申请实施例提供的界面显示方法中,电子设备接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。如此,用户通过第一输入触发电子设备对第一应用的第一界面的界面内容进行缩放,从而能够在电子设备屏幕的分辨率小于应用对应的分辨率区间的下限的情况下,使得该界面内容可以正常显示在第一屏幕上,具有较好的显示效果,进而提高用户对电子设备屏幕的使用体验。
在本申请的一些实施例中,电子设备可以仅包含第一屏幕,该第一屏幕的屏幕分辨率小于第一应用的分辨率区间下限值。基于此,上述第一输入可以为对第一屏幕中应用图标的触控输入。
在本申请的另一些实施例中,电子设备可以包括第一屏幕以及可折叠的第二屏幕,第一屏幕和第二屏幕的显示朝向方向相反。可以理解的是,该电子设备可以认为是具备至少两个显示屏幕的多屏幕终端,且该至少两个显示屏幕包括第一屏幕和第二屏幕,其中,第二屏幕处于展开状态时,第一屏幕和第二屏幕的显示朝向方向相反。
示例性地,上述展开状态是指第二屏幕处于平面状态。
举例说明,以图4A所示的处于折叠状态的可折叠电子设备为例,该可折叠电子设备包括第一屏幕21和可折叠的第二屏幕22,其中,在第二屏幕22处于展开状态时,第一屏幕21为背向设置在第二屏幕22上的,且尺寸小于第二屏幕22的显示屏幕。具体的,由于第二屏幕22为可折叠屏幕,因此,当可折叠电子设备的第二屏幕22沿着公共轴x折叠了360°,折叠后,可折叠电子设备处于完全折叠状态,此时,第二屏幕22被折叠隐藏于内部,因此,可以称第二屏幕22为内屏。同时,第一屏幕21和第二屏幕22彼此背向设置,因此可以称第一屏幕21为外屏。
示例地,结合图4A,如图4B所示,图4B为可折叠电子设备处于展开状态的示意图,可折叠电子设备的第二屏幕22沿着公共轴x展开为180°,使得第二屏幕22处于展开状态,此时,第一屏幕21位于第二屏幕22的背面,即第一屏幕21和第二屏幕22的显示朝向方向相反。
一种可能的实施例中,上述第一输入可以是对第一屏幕上第一应用的点击输入。
可选地,在本申请一些实施例中,在电子设备包含第一屏幕和可折叠的第二屏幕的场景下,上述步骤202“电子设备响应于第一输入,对第一应用的第一界面的界面内容进行缩放,并在电子设备的第一屏幕显示目标界面内容”的过程中,包括步骤202a1:
步骤202a1、在电子设备的第二屏幕处于折叠状态的情况下,电子设备响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。
示例性地,上述第一输入用于选择第一应用。
示例性地,上述第一输入可以包括用户对电子设备的第一屏幕中第一应用的点击输入。
示例性地,电子设备接收到用户对第一应用的第一输入后,将用户选择的第一应用的第一界面的界面内容进行缩放,并将缩放后的界面内容显示在第一屏幕上。
一种可能的实施例中,以第一屏幕为外屏,第二屏幕为内屏为例,在本申请实施例提供的界面显示方法可以包括下述的步骤A1和步骤A2。
步骤A1、电子设备在外屏桌面上显示应用集合入口,该应用集合入口中的应用可以正常的在外屏上进行操作显示。
示例性地,电子设备可以根据用户对应用集合入口的输入,显示应用集合入口中的应用。
示例性地,由于应用集合入口位于电子设备外屏桌面,如此,使得用户无需展开电子设备,同样可以对用户需求操作的应用进行操作,简化了用户操作应用程序的步骤。
步骤A2、电子设备接收用户对应用集合入口中的应用的任一应用的输入,然后,将任一应用的界面显示在电子设备外屏桌面上。
可以理解的是,基于本申请的方案,对于在电子设备外屏桌面上显示的任一应用,其所具备的功能与内屏显示完全一致。
需要说明的,用户还可以对电子设备进行翻转输入,以使得电子设备外屏中显示的应用程序的界面随着用户的输入而改变显示方向。
示例性地,电子设备可以支持用户可以在外屏上跟内置系统应用和内屏一样,滑动或按键,例如,back退出和上滑进入后台。
需要说明的是,基于本申请的技术方案,电子设备的第三方应用和内置系统应用可以在外屏上的使用交互一致,并且支持第三方应用的显示界面和内置系统应用的显示界面间无缝交互切换使用。
示例性地,假设外屏上显示的是第一应用的第一界面,在用户对电子设备进行滑动或点击输入之后,电子设备可以取消外屏上显示的第一应用的第一界面,并在外屏上显示内置系统应用的显示界面,从而实现交互上一致且支持无缝的第三方应用和内置系统应用界面间交互切换使用。
如此,用户可以在电子设备的外屏上直接选择想要查看的应用,将该应用的显示内容进行缩放,从而使得该应用的界面可以在外屏上正常显示,提高了用户使用电子设备外屏的体验感。
另一种可能的实施例中,上述第一输入可以为对第二屏幕的折叠输入。
进一步可选地,在本申请一些实施例中,在上述步骤201“电子设备接收第一输入”之前,本申请实施例提供的界面显示方法还包括步骤301:
步骤301、在电子设备的第二屏幕显示第一应用的第一界面。
示例性地,上述第二屏幕处于展开状态。
示例性地,上述第一输入可以包括对电子设备的第二屏幕的折叠输入。
示例性地,上述第一输入用于将电子设备的第二屏幕进行折叠,以将第二屏幕上显示的第一界面显示到第一屏幕上。
示例性地,在电子设备的第二屏幕显示第一应用的第一界面情况下,电子设备接收到用户对第二屏幕的折叠输入,基于第二屏幕显示的第一应用的分辨率区间和第一屏幕的宽高比,确定出目标分辨率。
如此,用户可以在电子设备内屏显示界面内容的情况下,直接通过对屏幕的折叠输入,将显示界面内容切换至外屏正常显示。
可选地,在本申请一些实施例中,上述步骤202“对第一应用的第一界面的界面内 容进行缩放”之前,本申请实施例提供的界面显示方法还包括步骤401和步骤402:
步骤401、电子设备基于第一屏幕的屏幕宽高比,在第一应用适配的分辨率区间中确定目标分辨率。
示例性地,上述目标分辨率用于布局在该分辨率下的第一界面的显示内容。可以理解的是,在目标分辨率下的第一界面的界面内容是可以正常显示的。
示例性地,上述目标分辨率的宽高比与第一屏幕的屏幕宽高比相同。例如,第一屏幕的宽高比为3:2,则目标分辨率的宽高比也要为3:2,也就是说,目标分辨率的宽高比可以是6:4,也可以是12:8。
示例性地,电子设备在第一应用适配的分辨率区间中确定与第一屏幕宽高比相同的分辨率,将该分辨率确定为目标分辨率。
步骤402、电子设备将第一屏幕的屏幕分辨率与目标分辨率间的商,作为目标缩放系数。
示例性地,将第一屏幕的屏幕分辨率的宽高对应除以目标分辨率的宽高得到的商,作为目标缩放系数。
举例说明,以第一屏幕的分辨率为200*400,目标分辨率为400*800为例,200÷400=0.5、400÷800=0.5,则0.5为目标缩放系数。
在本申请一些实施例中,在确定目标分辨率后,电子设备按照目标分辨率布局第一应用的第一界面的界面内容,接着,将布局好的界面内容基于目标缩放系数进行缩放,以得到缩放后的界面内容,即上述的目标界面内容,最终将目标界面内容显示在第一屏幕上。
可选地,在本申请一些实施例中,结合图2,如图5所示,在上述步骤202“在电子设备的第一屏幕显示目标界面内容”之后,本申请实施例提供的界面显示方法还包括步骤501至步骤503:
步骤501、电子设备将第一屏幕显示目标界面内容的显示参数添加至第一应用的应用配置中。
示例性地,上述显示参数包括目标界面内容显示的分辨率、目标界面内容的像素密度值、目标界面内容中组件的组件参数。
一种示例中,上述第一应用的应用配置可以汇总至应用名单中。
示例性地,上述应用名单包括在第一屏幕上正常显示的应用,及该应用的应用配置。
示例性地,上述应用名单可以是本地存储的,也可以是网络侧下发配置的。
步骤502、电子设备在第一应用根据显示参数成功运行过的情况下,接收第二输 入。
示例性地,上述第二输入用于选择第一屏幕中第一应用对应的应用图标。
示例性地,上述第二输入可以包括对第一应用对应的应用图标的点击输入。
示例性地,上述“在第一应用根据显示参数成功运行过的情况下”用于表示该第一应用的显示界面已经成功在电子设备第一屏幕上正常显示,且已经被用户关闭,即该第一应用已经停止运行的情况。
举例说明,第一应用在电子设备的外屏上正常显示后,电子设备将该应用在外屏的显示参数进行存储,添加到该应用的应用配置中,此时用户关闭了第一应用。电子设备接收用户的第二输入,再次启动第一应用,并在外屏上显示。
步骤503、电子设备响应于第二输入,基于应用配置中的显示参数,在第一屏幕显示第一应用的界面。
示例性地,电子设备可以解析上述应用名单,以获取第一应用的应用配置中的显示参数。
示例性地,用户对第一屏幕上第一应用对应的应用图标进行点击输入,电子设备可以直接使用第一应用的应用配置,在第一屏幕上显示第一应用的界面。
在一种可能的示例中,在用户对应用对应的应用图标进行输入后,电子设备解析应用名单,判断该应用是否在应用名单中,若在应用名单中,则电子设备可以直接使用应用名单中该应用的应用配置,使得该应用的显示内容可以正常显示在电子设备的屏幕上。
在另一种可能的示例中,在用户对应用对应的应用图标进行输入后,电子设备解析应用名单,判断该应用是否在应用名单中,若不在应用名单中,则电子设备对该应用的显示内容进行缩放,并将缩放后的显示内容显示在电子设备的屏幕。
在本申请一些实施例中,电子设备会先判断应用所要显示的屏幕,根据所显示的屏幕,调用不同的配置参数。例如,应用若显示在第二屏幕上,则电子设备可以直接配置该应用的原始显示参数,在第二屏幕上显示该应用的显示内容;应用若显示在第一屏幕上,则电子设备直接配置在第一屏幕对应显示的显示参数。
具体地,当应用在屏幕上显示时,基于上面对应屏幕的相关状态信息的记录和当前所在屏幕分辨率等相关信息,将相关信息分发给到应用端,进行显示内容布局刷新显示。
如此,电子设备将正常显示在电子设备屏幕上的显示参数进行存储,并在下次使用的时候直接将这些显示参数按需配置给该应用,从而减少电子设备显示界面内容的步骤。
以下以一种可能的实施例详细描述本申请实施例提供的界面显示方法,具体地,以上述图4A和图4B所示的可折叠屏电子设备为例,如图6所示,包括以下步骤101至步骤113。
步骤101.可折叠屏电子设备开机后,先解析本地存储的应用名单,结合应用信息情况,系统相关数据信息(本地存储的应用配置信息)进行缓冲存储,通知其他模块应用如外屏桌面应用图标,外屏可运行应用拦截模块等;
步骤102.如果可折叠屏电子设备有新安装应用,对于在安装完成后的应用,进入104步骤;
步骤103.如果此时有网络下发更新应用名单,则按照网络名单最新的下发配置结果,进行配置的系统相关数据信息的缓冲更新;
步骤104.新安装的应用开始解析应用唯一标识(uid)等包应用信息,并和对应应用的分辨率配置区间信息整合;
步骤105.当用户在可折叠屏电子设备的内屏或者外屏打开使用应用时,在启动应用进程与系统进行绑定的过程中进入106步骤;
步骤106.此时,可折叠屏电子设备的系统需要判断该应用是否在应用名单内,如果在,则跟上面缓存的系统相关数据信息进行以进程为单位的更新,即将该应用的配置信息更新成需要使用的配置信息进入107步骤;
步骤107.可折叠屏电子设备的系统根据当前应用显示的可折叠屏电子设备的内屏或者外屏,即根据当前所在使用的焦点屏,更新该应用应该放大,或者,缩放等配置信息数据,或者,保持目前所在屏相关缩放的配置信息数据,接着进入108步骤;
步骤108.可折叠屏电子设备的系统检测到当前使用的应用界面所在的屏幕发生变化时,如将正在使用的可折叠屏电子设备的第二屏幕折叠时,可折叠屏电子设备的系统会对应更新应用配置信息,进入109步骤;
步骤109.结合配置的对应屏的分辨率信息,同时根据应用启动所在焦点屏情况更新相关分辨率缩放信息,进入110步骤进行系统和应用状态的更新;
步骤110.更新应用端进程的mAppScale缩放信息,对应电子设备的系统则进行更新服务(server)端窗口界面和进程记录信息的状态信息更新,为进入111步骤该应用后面的信息做记录和准备;
步骤111.当应用要再可折叠屏电子设备的外屏显示时,基于上面的相关状态信息的记录和当前所在屏幕分辨率等相关信息,将这些相关信息对应分发给应用端进行布局刷新显示。具体地,将对应配置修改后的对应应用界面config、displayinfo、frame、insets等屏幕状态等信息给到应用端进程,这样应用就会按照我们期望其运行的屏幕尺 寸大小进行界面内容的布局显示和刷新,同时对可折叠屏电子设备的系统侧,也将对应修改底层输入等参数进入步骤112;
步骤112.当应用要再可折叠屏电子设备的外屏显示时,此时在111步骤按照我们对应配置期望其运行的屏幕尺寸大小进行布局显示和刷新,但是,由于应用界面大小和触摸输入区域与外屏幕大小不一致,系统此时需要对应更改界面触摸输入input touchRegion、layer buffer缩放矩阵给到sf合成显示侧,进入到步骤113;
步骤113.经过系统和应用侧方案的处理适配,最终让应用在外屏正常的在外屏适配运行显示和操作;如果继续使用进入或者退出其他应用继续使用,则进入之前105步骤的系统适配方案流程。
可以理解的是,电子设备可以根据自身产品定位和需要,可以单独针对市面各应用进行应用配置的应用名单添加,或者接收网络下发的应用名单,针对每一个应用的界面效果情况可以单独的进行分辨率和像素密度的配置调整管控。
如此,电子设备可以在显示应用时,直接调用本地应用配置名单中应用对应的显示参数,不需要重复调整计算显示内容的参数。
需要说明的是,本申请实施例提供的界面显示方法,执行主体可以为界面显示装置,或者电子设备,还可以为电子设备中的功能模块或实体。本申请实施例中以界面显示装置执行界面显示方法为例,说明本申请实施例提供的界面显示装置。
图7示出了本申请实施例中涉及的界面显示装置的一种可能的结构示意图。如图7所示,该界面显示装置700可以包括:接收模块701、处理模块702和显示模块703;
其中,该接收模块701,用于接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;该处理模块702,用于响应于接收模块701接收的第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容;该显示模块703,用于在第一屏幕显示处理模块702处理的目标界面内容。
可选地,在本申请一些实施例中,第一界面的界面内容包含至少一个组件;上述处理模块702,具体用于:响应于接收模块701接收的第一输入,按照目标缩放系数,分别对至少一个组件中的每个组件进行缩放,得到缩放后的每个组件的组件参数;基于缩放后的每个组件的组件参数,生成目标界面内容。
可选地,在本申请一些实施例中,电子设备还包括可折叠的第二屏幕,第一屏幕和第二屏幕的显示朝向方向相反;上述处理模块702,具体用于在第二屏幕处于折叠状态的情况下,响应于接收模块701接收的第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容;上述显示模块703,具体用于在第一屏幕显示处理 模块702处理的目标界面内容。
可选地,在本申请一些实施例中,上述处理模块702,还用于基于第一屏幕的屏幕宽高比,在分辨率区间中确定目标分辨率,目标分辨率的宽高比与屏幕宽高比相同;上述处理模块702,还用于将屏幕分辨率与目标分辨率间的商,作为目标缩放系数。
可选地,在本申请一些实施例中,在上述接收模块701接收第一输入之前,上述显示模块703,还用于在第二屏幕显示第一界面,第二屏幕处于展开状态;其中,第一输入为对第二屏幕的折叠输入。
可选地,在本申请一些实施例中,上述处理模块702,用于将第一屏幕显示目标界面内容的显示参数添加至第一应用的应用配置中;上述接收模块701,还用于在第一应用根据显示参数成功运行过的情况下,接收第二输入;上述显示模块703,还用于响应于接收模块701接收的第二输入,基于应用配置中的显示参数,在第一屏幕显示第一应用的界面。
在本申请实施例提供的界面显示装置中,该装置接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。如此,用户通过第一输入触发电子设备对第一应用的第一界面的界面内容进行缩放,从而能够在电子设备屏幕的分辨率小于应用对应的分辨率区间的下限的情况下,使得该界面内容可以正常显示在第一屏幕上,具有较好的显示效果,进而提高用户对电子设备屏幕的使用体验。
本申请实施例中的界面显示装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的界面显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的界面显示装置能够实现图1至图6的方法实施例实现的各个 过程,为避免重复,这里不再赘述。
可选地,如图8所示,本申请实施例还提供一种电子设备800,包括处理器801和存储器802,存储器802上存储有可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述界面显示方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图9为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,该用户输入单元107,用于接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,该电子设备100的第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;该处理器110,用于响应于用户输入单元107接收到的第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容;该显示单元106,用于在第一屏幕显示处理器110处理的目标界面内容。
可选地,在本申请一些实施例中,第一界面的界面内容包含至少一个组件;上述处理器110,具体用于:响应于用户输入单元107接收到的第一输入,按照目标缩放系数,分别对至少一个组件中的每个组件进行缩放,得到缩放后的每个组件的组件参数;基于缩放后的每个组件的组件参数,生成目标界面内容。
可选地,在本申请一些实施例中,该电子设备100还包括可折叠的第二屏幕,第一屏幕和第二屏幕的显示朝向方向相反;上述处理器110,具体用于在第二屏幕处于折叠状态的情况下,响应于用户输入单元107接收到的第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容;上述显示单元106,具体用于在第一屏幕显示处理器110处理的目标界面内容。
可选地,在本申请一些实施例中,上述处理器110,还用于基于第一屏幕的屏幕宽高比,在分辨率区间中确定目标分辨率,目标分辨率的宽高比与屏幕宽高比相同;上 述处理器110,还用于将屏幕分辨率与目标分辨率间的商,作为目标缩放系数。
可选地,在本申请一些实施例中,在上述用户输入单元107接收第一输入之前,上述显示单元106,还用于在第二屏幕显示第一界面,第二屏幕处于展开状态;其中,第一输入为对第二屏幕的折叠输入。
可选地,在本申请一些实施例中,上述处理器110,用于将第一屏幕显示目标界面内容的显示参数添加至第一应用的应用配置中;上述用户输入单元107,还用于在第一应用根据显示参数成功运行过的情况下,接收第二输入;上述显示单元106,还用于响应于用户输入单元107接收到的第二输入,基于应用配置中的显示参数,在第一屏幕显示第一应用的界面。
在本申请实施例提供的电子设备中,该电子设备接收第一输入,第一输入用于触发电子设备显示第一应用的第一界面,第一屏幕的屏幕分辨率小于第一应用适配的分辨率区间的区间下限值;响应于第一输入,对第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在第一屏幕显示目标界面内容。如此,用户通过第一输入触发电子设备对第一应用的第一界面的界面内容进行缩放,从而能够在电子设备屏幕的分辨率小于应用对应的分辨率区间的下限的情况下,使得该界面内容可以正常显示在第一屏幕上,具有较好的显示效果,进而提高用户对电子设备屏幕的使用体验。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory, RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。
处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述界面显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述界面显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述界面显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添 加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (16)

  1. 一种界面显示方法,应用于至少包含第一屏幕的电子设备,所述方法包括:
    接收第一输入,所述第一输入用于触发所述电子设备显示第一应用的第一界面,所述第一屏幕的屏幕分辨率小于所述第一应用适配的分辨率区间的区间下限值;
    响应于所述第一输入,对所述第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在所述第一屏幕显示所述目标界面内容。
  2. 根据权利要求1所述的方法,其中,所述第一界面的界面内容包含至少一个组件;
    所述响应于所述第一输入,对所述第一应用的第一界面的界面内容进行缩放,得到目标界面内容,包括:
    响应于所述第一输入,按照目标缩放系数,分别对所述至少一个组件中的每个组件进行缩放,得到缩放后的所述每个组件的组件参数;
    基于所述缩放后的所述每个组件的组件参数,生成所述目标界面内容。
  3. 根据权利要求1所述的方法,其中,所述电子设备还包括可折叠的第二屏幕,所述第一屏幕和所述第二屏幕的显示朝向方向相反;
    所述响应于所述第一输入,对所述第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在所述第一屏幕显示所述目标界面内容,包括:
    在所述第二屏幕处于折叠状态的情况下,响应于所述第一输入,对所述第一应用的第一界面的界面内容进行缩放,得到目标界面内容,并在所述第一屏幕显示所述目标界面内容。
  4. 根据权利要求2或3所述的方法,其中,所述对所述第一应用的第一界面的界面内容进行缩放之前,所述方法还包括:
    基于所述第一屏幕的屏幕宽高比,在所述分辨率区间中确定目标分辨率,所述目标分辨率的宽高比与所述屏幕宽高比相同;
    将所述屏幕分辨率与所述目标分辨率间的商,作为所述目标缩放系数。
  5. 根据权利要求3所述的方法,其中,所述接收第一输入之前,所述方法还包括:
    在所述第二屏幕显示所述第一界面,所述第二屏幕处于展开状态;
    其中,所述第一输入为对所述第二屏幕的折叠输入。
  6. 根据权利要求1所述的方法,其中,所述在所述第一屏幕显示所述目标界面内容之后,所述方法还包括:
    将所述第一屏幕显示所述目标界面内容的显示参数添加至所述第一应用的应用配置中;
    在所述第一应用根据所述显示参数成功运行的情况下,接收第二输入;
    响应于所述第二输入,基于所述应用配置中的所述显示参数,在所述第一屏幕显示所述第一应用的界面。
  7. 一种界面显示装置,应用于至少包含第一屏幕的电子设备,所述装置包括:接收模块、处理模块和显示模块;
    所述接收模块,用于接收第一输入,所述第一输入用于触发所述电子设备显示第一应用的第一界面,所述第一屏幕的屏幕分辨率小于所述第一应用适配的分辨率区间的区间下限值;
    所述处理模块,用于响应于所述接收模块接收到的所述第一输入,对所述第一应用的第一界面的界面内容进行缩放,得到目标界面内容;
    所述显示模块,用于在所述第一屏幕显示所述处理模块处理的所述目标界面内容。
  8. 根据权利要求7所述的装置,其中,所述第一界面的界面内容包含至少一个组件;
    所述处理模块,具体用于:
    响应于所述接收模块接收到的所述第一输入,按照目标缩放系数,分别对所述至少一个组件中的每个组件进行缩放,得到缩放后的所述每个组件的组件参数;
    基于所述缩放后的所述每个组件的组件参数,生成所述目标界面内容。
  9. 根据权利要求7所述的装置,其中,所述电子设备还包括可折叠的第二屏幕,所述第一屏幕和所述第二屏幕的显示朝向方向相反;
    所述处理模块,具体用于在所述第二屏幕处于折叠状态的情况下,响应于所述接收模块接收到的所述第一输入,对所述第一应用的第一界面的界面内容进行缩放,得到目标界面内容;
    所述显示模块,具体用于在所述第一屏幕显示所述处理模块处理的所述目标界面内容。
  10. 根据权利要求8或9所述的装置,其中,
    所述处理模块,还用于基于所述第一屏幕的屏幕宽高比,在所述分辨率区间中确定目标分辨率,所述目标分辨率的宽高比与所述屏幕宽高比相同;
    所述处理模块,还用于将所述屏幕分辨率与所述目标分辨率间的商,作为所述目标缩放系数。
  11. 根据权利要求9所述的装置,其中,所述接收模块接收所述第一输入之前,所述显示模块,还用于在所述第二屏幕显示所述第一界面,所述第二屏幕处于展开状态;
    其中,所述第一输入为对所述第二屏幕的折叠输入。
  12. 根据权利要求7所述的装置,其中,
    所述处理模块,还用于将所述第一屏幕显示所述目标界面内容的显示参数添加至所述第一应用的应用配置中;
    所述接收模块,还用于在所述第一应用根据所述显示参数成功运行过的情况下,接收第二输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第二输入,基于所述应用配置中的所述显示参数,在所述第一屏幕显示所述第一应用的界面。
  13. 一种电子设备,所述电子设备为至少包含第一屏幕的电子设备,所述电子设备包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的界面显示方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的界面显示方法的步骤。
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的界面显示方法的步骤。
  16. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的界面显示方法的步骤。
PCT/CN2024/088064 2023-04-19 2024-04-16 界面显示方法及装置 Ceased WO2024217415A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310426192.1A CN116521293A (zh) 2023-04-19 2023-04-19 界面显示方法及装置
CN202310426192.1 2023-04-19

Publications (1)

Publication Number Publication Date
WO2024217415A1 true WO2024217415A1 (zh) 2024-10-24

Family

ID=87403993

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/088064 Ceased WO2024217415A1 (zh) 2023-04-19 2024-04-16 界面显示方法及装置

Country Status (2)

Country Link
CN (1) CN116521293A (zh)
WO (1) WO2024217415A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120428945A (zh) * 2025-07-08 2025-08-05 龙迅半导体(合肥)股份有限公司 一种数据处理方法和数据处理装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521293A (zh) * 2023-04-19 2023-08-01 维沃移动通信有限公司 界面显示方法及装置
CN117348827B (zh) * 2023-09-19 2024-10-18 荣耀终端有限公司 显示模式切换时的显示方法及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113498501A (zh) * 2019-04-24 2021-10-12 三星电子株式会社 可折叠电子装置及其操作方法
CN114143388A (zh) * 2021-11-17 2022-03-04 维沃移动通信有限公司 通话方法、装置和电子设备
US20220319372A1 (en) * 2021-04-05 2022-10-06 Samsung Electronics Co., Ltd. Method for controlling scaling of display, and circuit and electronic device supporting the same
CN116521293A (zh) * 2023-04-19 2023-08-01 维沃移动通信有限公司 界面显示方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113498501A (zh) * 2019-04-24 2021-10-12 三星电子株式会社 可折叠电子装置及其操作方法
US20220319372A1 (en) * 2021-04-05 2022-10-06 Samsung Electronics Co., Ltd. Method for controlling scaling of display, and circuit and electronic device supporting the same
CN114143388A (zh) * 2021-11-17 2022-03-04 维沃移动通信有限公司 通话方法、装置和电子设备
CN116521293A (zh) * 2023-04-19 2023-08-01 维沃移动通信有限公司 界面显示方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120428945A (zh) * 2025-07-08 2025-08-05 龙迅半导体(合肥)股份有限公司 一种数据处理方法和数据处理装置

Also Published As

Publication number Publication date
CN116521293A (zh) 2023-08-01

Similar Documents

Publication Publication Date Title
US20240403380A1 (en) Page Layout Adjustment Method, Electronic Device, and Non-Transitory Readable Storage Medium
WO2024217415A1 (zh) 界面显示方法及装置
US20240256305A1 (en) Display method and apparatus, electronic device, and readable storage medium
US20080178098A1 (en) Method of displaying browser and terminal implementing the same
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
CN112835485A (zh) 应用界面处理方法、装置、电子设备及可读存储介质
WO2023155858A1 (zh) 文档编辑方法及其装置
US20250251954A1 (en) Application Interface Display Method, Electronic Device, and Non-Transitory Readable Storage Medium
CN109769089B (zh) 一种图像处理方法及终端设备
CN114741042A (zh) 内容显示方法及装置
WO2024140582A1 (zh) 显示方法、装置、电子设备及计算机可读存储介质
WO2024164931A1 (zh) 界面显示方法和装置
WO2023125217A1 (zh) 图像处理电路、方法和电子设备
CN114416269A (zh) 界面显示方法和显示设备
CN113407290B (zh) 应用通知显示方法、装置和电子设备
WO2022242515A1 (zh) 界面显示方法及装置
WO2024109635A1 (zh) 界面显示方法及其装置
US20250251849A1 (en) Icon Management Method, Electronic Device and Non-Transitory Readable Storage Medium
WO2023155874A1 (zh) 应用图标管理方法、装置和电子设备
CN115390968A (zh) 应用界面的显示方法、显示装置及电子设备
CN114895815A (zh) 数据处理方法和电子设备
CN114860135A (zh) 截图方法和装置
WO2025152876A1 (zh) 界面显示方法、装置、电子设备及可读存储介质
WO2024175064A1 (zh) 操作执行方法、装置
WO2024169916A1 (zh) 显示处理方法、装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24792000

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE