WO2024027504A1 - Application display method and electronic device - Google Patents

Application display method and electronic device Download PDF

Info

Publication number
WO2024027504A1
WO2024027504A1 PCT/CN2023/108113 CN2023108113W WO2024027504A1 WO 2024027504 A1 WO2024027504 A1 WO 2024027504A1 CN 2023108113 W CN2023108113 W CN 2023108113W WO 2024027504 A1 WO2024027504 A1 WO 2024027504A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
size
display area
electronic device
area
Prior art date
Application number
PCT/CN2023/108113
Other languages
French (fr)
Chinese (zh)
Inventor
钱坤
陆建海
卢冬
蔺振超
叶曙民
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024027504A1 publication Critical patent/WO2024027504A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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
    • G06F3/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Definitions

  • the present application relates to the field of terminal technology, and in particular, to an application display method and electronic device.
  • the display screen sizes and shapes of electronic devices also tend to be diversified.
  • the display screen of electronic equipment can be folded inside and outside, horizontally and vertically, etc.
  • many applications have optimized the application display interface.
  • different application interface layouts are used for display screens of different sizes; for example, with the help of analysis provided by electronic equipment systems, screen capability to display applications in a split-screen interface.
  • there are still many applications that cannot adapt to various screen aspect ratios, resulting in abnormal application display.
  • the tablet displays the application interface switching from vertical screen display to horizontal screen display, the application interface may not be able to adapt to the horizontal screen, resulting in The images or text in the application interface are too large, which affects the user experience.
  • This application provides an application display method and an electronic device to flexibly display an application interface on the screen of the electronic device while improving the screen utilization of the electronic device.
  • this application provides an application display method, which can be applied to electronic devices.
  • the method includes: in response to a first operation triggered by a user, the electronic device displays an application display area and a functional area on the screen; the functional area is used to display controls for functions associated with the application display area; the electronic device displays in the application display area area displays the application interface of the target application.
  • the first operation may be a click operation triggered by the user on the icon of the target application, or the first operation may be the user inputting a voice command to start the target application, etc.
  • the first operation may be used to start the target application, and this application does not limit the specific implementation of the first operation.
  • the electronic device can divide the screen into multiple display areas, display the application interface of the target application in the application display area, and display controls of functions associated with the application display area in the functional area, thereby ensuring normal display of the target application.
  • it provides users with a convenient way to trigger application functions, improves screen utilization and improves user experience.
  • the method further includes: in response to a second operation triggered by the user, adjusting the application according to the second operation.
  • the size of the display area rearrange the application interface of the target application according to the adjusted size of the application display area.
  • the second operation may be a drag operation triggered by the user on the drag line.
  • the electronic device can adjust the size of the application display area according to the operation triggered by the user, thereby flexibly displaying the application interface of the target application in the application display area according to the size desired by the user, thereby improving screen utilization.
  • relayout of the application interface of the target application based on the adjusted size of the application display area includes: based on the adjusted width of the application display area and the layout size of the application interface of the target application.
  • the width determines the height of the layout size; re-layout the application interface of the target application according to the width of the layout size and the height of the layout size; expand the re-layout application interface of the target application in equal proportions to Fill the adjusted application display area.
  • determining the height of the layout size based on the adjusted width of the application display area and the width of the layout size of the application interface of the target application includes: based on the adjusted width of the application display area The adjustment ratio is determined based on the width of the layout size of the application interface of the target application; the height of the layout size is determined based on the adjustment ratio and the height of the screen.
  • the target application does not need to scale the elements in the application interface. It only needs to re-layout the application interface of the target application according to the width and height of the layout size, and adjust the elements in the application interface vertically according to the height of the layout size. quantity, and then scale the application interface proportionally to the filled drawing size to avoid display abnormalities caused by scaling elements and improve user experience.
  • the application interface of the target application includes multimedia content
  • the method further includes: in response to a third operation triggered by the user, determining that the initial size of the application display area is smaller than a first preset size, adjust the size of the application display area from the initial size to a first preset size, and display the multimedia content in the application display area of the first preset size; in response to the user The user triggers a fourth operation, or detects that the multimedia content has been displayed, and restores the size of the application display area to the initial size.
  • the third operation can be used to trigger the display of multimedia content.
  • the third operation can be a click operation triggered on the image; when the multimedia content is a video, the third operation can be a click operation triggered on the video. Click action triggered on the playback control.
  • the fourth operation can be used to exit the display of multimedia content.
  • the fourth operation can be a click operation triggered on the image;
  • the third operation can be a click operation on the video. Closes the triggered click action on the control.
  • the electronic device can flexibly adjust the size of the application display area according to the display content of the target application, thereby improving the screen display effect and thereby improving the user experience.
  • the functional area includes a first control or a second control; the method further includes: in response to a fifth operation triggered by the user that acts on the first control, hiding the functional area or display the content in the functional area in response to the sixth operation triggered by the user that acts on the second control.
  • the first control can be a hidden control
  • the second control can be a displayed control.
  • the fifth operation may be a click operation
  • the sixth operation may be a click operation.
  • the electronic device can hide or display the content in the ribbon in response to the user's operation, thereby flexibly utilizing the screen.
  • the method further includes: detecting a gesture triggered by the user in the functional area, and passing the gesture to the target application, so that the target application executes a response corresponding to the gesture. action.
  • the functional area can also be used as a gesture panel in the application display area to receive user-triggered gestures and pass user-triggered gestures to the target application to facilitate user operations and improve user experience.
  • the method further includes: displaying at least one shortcut function control in the functional area;
  • the at least one shortcut function includes at least one of the following: a function common to multiple applications installed in the electronic device; a shortcut function corresponding to the target application; a shortcut corresponding to the content contained in the application interface of the target application. Function.
  • the functional area can display functions common to multiple applications, shortcut functions corresponding to the target application, and functions corresponding to the content in the application interface, further improving the interactive capabilities of the functional area and improving the user experience.
  • the functional area includes a third control; the method further includes: in response to a seventh operation triggered by the user that acts on the third control, perform a screenshot action, and obtain the screenshot The image is saved to the first application.
  • the third control can be a screenshot function control
  • the seventh operation can be a click operation
  • the first application can be a picture warehouse application.
  • the electronic device can provide users with a convenient screenshot triggering method in the functional area, and save the screenshot image in the first application, so that the user can view it at any time and improve the user experience.
  • the functional area includes an icon of the first application
  • the method further includes: in response to an eighth operation triggered by the user that acts on the icon of the first application, displaying a floating window , and display the image saved in the first application in the floating window, or display the image in the functional area in response to the eighth operation triggered by the user that acts on the icon of the first application.
  • the first application may be a picture warehouse application
  • the eighth operation may be a click operation.
  • the image captured by the electronic device can be saved in the first application.
  • the electronic device can display the image in a floating window or display the image in a function, making it easier for the user to view the image captured by the screenshot. , improve user experience.
  • the method before displaying the image saved in the first application in the functional area, the method further includes: determining that the size of the functional area is smaller than a second preset size, and setting the The size of the ribbon is adjusted to the second preset size.
  • the size of the area occupied by the functional area can be increased, thereby displaying the image in the larger functional area and improving the display effect.
  • the method further includes: in response to a ninth operation triggered by the user that acts on the target image, deleting images other than the target image saved in the first application; and/ Or, in response to the tenth operation triggered by the user, stop displaying the target application and delete the image saved in the first application.
  • the ninth operation is used to save the target image, and the ninth operation may be a click operation, a long press operation, etc.
  • the tenth operation is used to exit the target application.
  • the tenth operation may be an upward swipe operation triggered on the application interface of the target application.
  • the tenth operation may be a click operation acting on the close control of the target application.
  • the electronic device can temporarily save the images in the first application.
  • the electronic device can delete the remaining images in the first application to reduce the resources occupied.
  • displaying the application display area on the screen includes: finding the target size of the application display area corresponding to the target application, setting the size of the application display area to the target size, and displaying the target size.
  • the application display area; wherein, the target scale The size is the size of the application display area saved when the electronic device last exited the target application, or the target size is the common size of the application display area corresponding to the target application obtained by the electronic device from the server.
  • the target size corresponding to the target application can be obtained in the electronic device, so that when the target application is launched, the target application can be displayed in a size with better display effect or a size that the user is more accustomed to, thereby improving the user experience.
  • the functional area is located on the left side of the application display area; or the functional area is located on the right side of the application display area; or the functional area occupies the entire screen except the application display area. All areas other than; or the functional area is a floating window on the screen.
  • displaying the functional area includes: using a half-side method to display the functional area on the left or right side of the screen; or using a full-screen overlay method to display the corresponding image in the application display area.
  • the layer corresponding to the functional area is displayed under the layer.
  • the electronic device can display the application display area and functional area in a variety of ways to flexibly realize the display of the target application.
  • the present application provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact to implement the method shown in the first aspect and its respective embodiments.
  • the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.
  • the present application provides an electronic device, including at least one processor and at least one memory.
  • Computer program instructions are stored in the at least one memory.
  • the at least one processor executes the above-mentioned first step. Aspects and methods shown in various embodiments thereof.
  • the present application also provides a computer program, which when the computer program is run on a computer, causes the computer to execute the method shown in any of the above aspects and its respective embodiments.
  • the present application also provides a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program When executed by a computer, it causes the computer to execute any of the above aspects and the above. Methods shown in each embodiment.
  • the present application also provides a chip, which is used to read the computer program stored in the memory and execute the method shown in any of the above aspects and its implementation modes.
  • the present application also provides a chip system.
  • the chip system includes a processor and is used to support a computer device to implement any of the above aspects and the methods shown in each embodiment.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • Figure 1 is a schematic diagram of an application display
  • Figure 2 is a schematic diagram of an electronic device displaying an application interface in the center of the screen
  • Figure 3 is a schematic diagram of an electronic device displaying multiple windows
  • Figure 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 5 is a software structure block diagram of an electronic device provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of an application display provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of adjusting the size of the application display area and functional area provided by the embodiment of the present application.
  • Figure 8 is a flow chart of an electronic device adjusting the size of an application display area provided by an embodiment of the present application.
  • Figure 9 is a schematic screen diagram provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of layout dimensions and drawing dimensions provided in the application embodiment
  • Figure 11 is a schematic diagram of the layout size and drawing size after adjusting the width according to an embodiment of the present application.
  • Figure 12 is a schematic diagram of an interface provided by an embodiment of the present application.
  • Figure 13 is a schematic diagram of a half-side display functional area provided by an embodiment of the present application.
  • Figure 14 is a schematic diagram of a full-screen stacked bottom display functional area provided by an embodiment of the present application.
  • Figure 15 is a schematic diagram of a one-key display/one-key hiding function provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of a functional area receiving user gesture control provided by an embodiment of the present application.
  • Figure 17 is a schematic diagram of a functional area display control button provided by an embodiment of the present application.
  • Figure 18 is a schematic diagram of a control for displaying shortcut functions in a functional area provided by an embodiment of the present application.
  • Figure 19 is a schematic diagram of a display of an application customized shortcut function provided by an embodiment of the present application.
  • Figure 20 is a schematic diagram of a functional area displaying shortcut functions provided by an embodiment of the present application.
  • Figure 21 is a schematic diagram of a functional area display screenshot function and a picture warehouse provided by an embodiment of the present application.
  • Figure 22 is a schematic display diagram of a picture warehouse provided by an embodiment of the present application.
  • Figure 23 is a schematic display diagram of another image warehouse provided by an embodiment of the present application.
  • Figure 24 is a schematic diagram of an application snapshot provided by an embodiment of the present application.
  • Figure 25 is a schematic diagram of a folding screen electronic device displaying an application display area according to an embodiment of the present application.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character “/” generally indicates that the related objects are in an “or” relationship. "At least one (item) of the following” or similar expressions thereof refers to any combination of these items, including any combination of single item (items) or plural items (items).
  • At least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple.
  • the display screen sizes and shapes of electronic devices also tend to be diversified.
  • the display screen of electronic equipment can be folded inside and outside, horizontally and vertically, etc.
  • many applications have optimized the application display interface.
  • different application interface layouts are used for display screens of different sizes; for example, with the help of analysis provided by electronic equipment systems, screen capability to display applications in a split-screen interface.
  • there are still many applications that cannot adapt to various screen aspect ratios, resulting in abnormal application display.
  • the tablet displays the application interface switching from vertical screen display to horizontal screen display, the application interface may not be able to adapt to the horizontal screen, resulting in The images or text in the application interface are too large, which affects the user experience.
  • Figure 1 is a schematic diagram of an application display.
  • the electronic device switches from a vertical screen display application interface to a horizontal screen display application interface, the images and text in the application interface will be enlarged, and the amount of information displayed on the screen will decrease, affecting the user experience.
  • Figure 2 is a schematic diagram of an electronic device displaying an application interface in the center of the screen.
  • the electronic device displays the application interface in the center of the screen, and the area on the screen not occupied by the application interface is filled with a black background.
  • the size of the application interface displayed on the screen is fixed, the screen utilization is low, and the user experience is poor.
  • FIG. 3 is a schematic diagram of an electronic device displaying multiple windows. Refer to Figure 3.
  • the electronic device can display window A, window B and window C at the same time.
  • Window A is used to display the interface of application A
  • window B is used to display the interface of application B.
  • Window C is used to display the interface of application C.
  • the user can resize any window, and the app adjusts its layout based on the window size.
  • display abnormalities still occur, and this solution is only suitable for electronic devices that display multiple applications at the same time. It cannot solve the problem of application interface problems when an electronic device displays a single application. Incompatibility issues with screen size.
  • this application provides an application display method to flexibly display an application interface on the screen of an electronic device while improving the screen utilization of the electronic device.
  • the electronic device displays the application display area and the functional area on the screen; the electronic device responds to the drag operation triggered by the user, determines the size of the application display area, and displays the target in the application display area
  • the application interface of the application The functional area is used to display functions associated with the application display area.
  • the electronic device in the embodiment of the present application may be a tablet computer, a mobile phone, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, or an ultra-mobile personal computer.
  • UMPC netbook
  • PDA personal digital assistant
  • the embodiments of this application do not place any restrictions on the specific types of electronic devices.
  • FIG. 4 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, Charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, Button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • image signal processor, ISP image signal processor
  • controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
  • the charging management module 140 is used to receive charging input from the 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 supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display a display interface of an application, such as displaying a display page of an application installed on the electronic device 100 .
  • Display 194 includes display panel.
  • the display panel can use 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 (active-matrix organic light).
  • LED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 .
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, software code of at least one application program, etc.
  • the storage data area may store data generated during use of the electronic device 100 (such as captured images, recorded videos, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save pictures, videos, etc. files on an external memory card.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • Touch sensor 180C also known as "touch panel”.
  • the touch sensor 180C can be disposed on the display screen 194.
  • the touch sensor 180C and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180C is used to detect a touch operation on or near the touch sensor 180C.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180C may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • FIG. 4 do not constitute a specific limitation on the electronic device 100.
  • the electronic device may also include more or less components than shown in the figure, or some components may be combined or separated. , or a different component arrangement.
  • the combination/connection relationship between the components in Figure 4 can also be adjusted and modified.
  • Figure 5 is a software structure block diagram of an electronic device provided by an embodiment of the present application.
  • the software structure of electronic equipment can be a layered architecture.
  • the software can be divided into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the operating system is divided into four layers, from top to bottom: application layer, application framework layer (framework, FWK), runtime (runtime) and system library, and kernel layer.
  • the application layer may include a series of application packages. As shown in Figure 5, the application layer can include cameras, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include gallery, calendar, calls, maps, navigation, WLAN, Bluetooth, music, video, short messages, etc.
  • the application The program layer may include a target installation package of the target application that the electronic device requests to download from the server, and the function files and layout files in the target installation package are adapted to the electronic device.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • the application framework layer can include some predefined functions. As shown in Figure 5, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, and notification manager.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the window manager is also used to calculate the size of the application display area adjusted by the user, and improve the zoom capability of the window.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • Telephone managers are used to provide communication functions of electronic devices. For example, call status management (including connected, hung up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • the runtime includes core libraries and virtual machines.
  • the runtime is responsible for the scheduling and management of the operating system.
  • the core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the operating system.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (media libraries), three-dimensional graphics processing libraries (for example: OpenGL ES), two-dimensional graphics engines (for example: SGL), image processing libraries, etc.
  • surface manager surface manager
  • media libraries media libraries
  • three-dimensional graphics processing libraries for example: OpenGL ES
  • two-dimensional graphics engines for example: SGL
  • image processing libraries etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • 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.
  • the hardware layer can include various types of sensors, such as acceleration sensors, gyroscope sensors, touch sensors, etc.
  • FIG. 4 and FIG. 5 is only an example of the electronic device provided by the embodiment of the present application, and cannot limit the electronic device provided by the embodiment of the present application.
  • the electronic device can There may be more or fewer devices or modules than in the structure shown in Figure 4 or Figure 5.
  • Embodiments of the present application provide an application display method to solve the problem of abnormal display when the screen size does not match the application layout.
  • the electronic device in response to a first operation triggered by the user, can divide the screen into multiple areas for display, where the multiple areas at least include an application display area and a functional area, and the first operation is used to launch the target application.
  • FIG. 6 is a schematic diagram of an application display provided by an embodiment of the present application.
  • the screen of the electronic device includes an application display area and a functional area.
  • the application display area can be used to display the application interface of the target application, and the functional area can be used to display functions associated with the application display area.
  • the blank area on the left side of the screen shown in Figure 6 can display the home page of the electronic device, or the electronic device can extract the color of the application interface of the target application and render the blank area on the left side of the screen in that color to enhance the look and feel.
  • the target application can be an application whose application layout cannot adapt to the screen size of the electronic device.
  • a drag line is also included between the application display area and the functional area.
  • the user can trigger a drag operation on the drag line.
  • the electronic device can adjust the application display area and/or in response to the drag operation triggered by the user. Ribbon dimensions, such as adjusting the width of the app display and/or ribbon.
  • FIG. 7 is a schematic diagram of adjusting the size of an application display area and a functional area according to an embodiment of the present application.
  • the user triggers a drag operation on the drag line.
  • the width of the electronic device adjustment functional area increases, and the width of the application display area increases.
  • the width is reduced, and the adjusted screen display effect is shown in (b) in Figure 7;
  • the user triggers a drag operation to the right on the drag line the width of the electronic device adjustment functional area is reduced, and the application display area
  • the width is increased, and the adjusted screen display effect is shown in (c) in Figure 7.
  • the application display area is in the center of the screen, as shown in (b) or (c) in Figure 7.
  • the application display area after adjusting the width can still be in the center of the screen.
  • the application display area can also be located on the left side or the right side of the screen. That is to say, the embodiment of the present application does not limit the positions of the application display area and the functional area on the screen.
  • FIG. 8 is a flow chart for adjusting the size of an application display area of an electronic device according to an embodiment of the present application. Referring to Figure 8, in the manner of adjusting the size of the application display area shown in Figure 7, the electronic device performs the following steps:
  • the second operation may be a drag operation triggered by the user on the drag line between the application display area and the functional area shown in FIG. 7 .
  • S802 The electronic device calculates the position of the application display area.
  • the electronic device when calculating the position of the application display area, can calculate the boundary position of the application display area, or the electronic device can calculate the positions of multiple vertices in the application display area, or the electronic device can calculate the center point of the application display area. Position, and determine the position of the application display area based on the width and height of the application display area. That is to say, in the embodiments of the present application, the way in which the electronic device calculates the position of the application display area is not limited.
  • FIG. 9 is a schematic screen diagram provided by an embodiment of the present application.
  • the position of the drag line after raising the hand is shown in Figure 9, where x represents the distance between the drag line and the left border of the screen, and W represents the edge of the screen. Width, H represents the height of the screen.
  • the value of x changes.
  • the electronic device can determine the value of x to determine the boundary position of the application display area.
  • the electronic device can calculate the vertex position of the application display area after adjusting the width.
  • the upper left vertex of the screen is the origin
  • the upper boundary of the screen is the X-axis
  • the right is the positive direction of the X-axis
  • the left boundary of the screen is the Y-axis
  • the lower is the positive direction of the Y-axis. Then the electronic device can determine that the coordinates of the upper left vertex of the application display area after adjusting the width are (2x-W, 0), and the coordinates of the lower right vertex of the application display area are (x, H).
  • S803 The electronic device rearranges the application interface of the target application according to the calculated position of the application display area.
  • the electronic device can adjust the application display area on the screen according to the calculated position of the application display area, and the electronic device can send the adjusted size of the application display area to the target application to trigger the target application.
  • the application can rearrange the application interface of the target application according to the adjusted size of the application display area.
  • the functional area can be regarded as an area for displaying functional applications. After the user triggers a drag operation, the interface of the functional applications displayed in the functional area can also be rearranged.
  • the specific implementation can be seen in Figure 8. Methods will not be repeated again.
  • the target application when the target application is re-layout according to the adjusted size of the application display area, when the width of the application display area changes, the target application can change the elements (such as images, controls, etc.) in the application interface. Perform scaling; when the height of the application display area changes, the target application can add or subtract elements in the application interface. For example, referring to (b) in Figure 7, when the width of the application display area is reduced, the target application can shrink the elements in the application interface; referring to (c) in Figure 7, when the width of the application display area is increased, the target application can Apps can enlarge elements in the app interface.
  • Embodiments of the present application also provide a way to adjust the layout of the target application to ensure that the adjusted layout The display effect of the application interface in the application display area.
  • layout size refers to the width and height perceived by the target application, which is the size used by the target application for layout
  • drawing size refers to the actual drawing size on the screen. Size, that is, the actual size of the application display area.
  • FIG. 10 is a schematic diagram of layout dimensions and drawing dimensions provided by the embodiment of the application. Referring to Figure 10, in the initial state, the layout size is the same as the drawing size. The width of the layout size is fixed_w and the height is h. Similarly, the width of the drawing size is fixed_w and the height is h.
  • FIG. 11 is a schematic diagram of the layout size and drawing size after adjusting the width according to an embodiment of the present application.
  • the electronic device determines the layout size, it lays out the application interface of the target application based on the layout size, and then enlarges the application interface proportionally until it can completely fill the application display area.
  • the target application does not need to scale the elements in the application interface. It only needs to vertically adjust the number of elements in the application interface according to the height of the layout size, and then scale the application interface to fill the drawing size in equal proportions to avoid scaling elements. display abnormalities to improve user experience.
  • the electronic device can also adjust the size of the application display area according to the content in the application interface of the target application.
  • the electronic device may increase the size of the application display area to the first preset size in response to the user-triggered operation of displaying the multimedia content, and then increase the size of the application display area to the first preset size.
  • Multimedia content is displayed in the large application display area.
  • the electronic device may also respond to a user-triggered operation of exiting the display of multimedia content, or detect that the multimedia content has been displayed, and the electronic device restores the size of the application display area to the initial size; where the initial size is when the application display area has not increased to The size before the default size.
  • FIG. 12 is a schematic diagram of an interface provided by an embodiment of the present application.
  • the electronic device displays the target application in the application display area.
  • the application interface of the target application includes a video player.
  • the electronic device can increase the size of the application display area to improve the video playback effect.
  • the electronic device can restore the size of the application display area to the size when the video is not played.
  • the electronic device can flexibly adjust the size of the application display area according to the display content of the target application, thereby improving the screen display effect and thereby improving the user experience.
  • the functional area can be regarded as an area for displaying functional applications, and the functional applications can also be called tool applications.
  • Functional applications can provide controls for functions associated with the application display area. Displaying functional applications in areas outside the application display area on the screen can improve screen utilization, enrich interaction methods, and enhance user experience.
  • the functional area can be located on the right side of the screen.
  • the functional area can also be located on the left side of the screen, or the functional area can occupy all the areas on the screen except the application display area, or the functional area can be a floating window.
  • the electronic device may display the functional area in a half-side manner or a full-screen stacked manner.
  • FIG. 13 is a schematic diagram of a half-side display of a functional area provided by an embodiment of the present application.
  • the functional area when using the half-side method to display the functional area, the functional area can occupy the right or left side of the screen. This method occupies a small screen space, has less impact on the target application, and can display common functions in the functional area. Concentrated on the user's commonly used hand side, it is convenient for users to operate.
  • the method of displaying the functional area on half side when the user triggers a drag operation on the drag line, the functional application needs to be re-layout according to the drag operation triggered by the user.
  • FIG. 14 is a schematic diagram of a full-screen stacked bottom display functional area provided by an embodiment of the present application.
  • the layer corresponding to the main screen Above the layer corresponding to the functional area is the layer corresponding to the application display area.
  • Masks can be added to the areas in the functional area that overlap with the application display area. To prevent electronic devices from errors when responding to user-triggered operations in the application display area.
  • function controls can be displayed in the area of the ribbon that does not overlap with the application display area. It can be seen that in the full-screen overlapping mode, the functional area can carry more content and enrich the display content.
  • the ribbon may include a hidden control, and the hidden control may be used to trigger the electronic device to hide the content displayed in the ribbon, leaving only the application display area.
  • the ribbon may include a display control, and the display control may be used to trigger the electronic device to display the content of the ribbon.
  • FIG. 15 is a schematic diagram of a one-key display/one-key hiding function provided by an embodiment of the present application.
  • the functional area can also provide gesture interaction functions.
  • the ribbon can be used as a control panel for the application display area.
  • the ribbon can be used as a gesture panel to receive gestures such as sliding and zooming triggered by the user in the ribbon, and pass the gestures to the target application.
  • the icon application responds accordingly based on the gestures triggered by the user in the ribbon.
  • FIG. 16 is a schematic diagram of a functional area receiving user gesture control according to an embodiment of the present application. Referring to Figure 16, the user triggers an upward sliding gesture in the functional area, and the target application adjusts the application interface to move upward.
  • the functional area can display a control button. After the user clicks the control button, the electronic device transmits the event of the user clicking the control button to the target application, and the target application makes a response corresponding to the event.
  • FIG. 17 is a schematic diagram of a functional area display control button provided by an embodiment of the present application. Referring to Figure 17, the functional area can display control buttons for page turning. The user clicks the control button in the functional area, and the target application performs the page turning action and displays the content of the next page.
  • the functional area may display controls for shortcut functions.
  • Shortcut functions can be functions common to multiple applications.
  • Figure 18 is a schematic diagram of a control for displaying shortcut functions in a functional area provided by an embodiment of the present application. Referring to (a) in Figure 18, the functional area can include controls for shortcut functions such as scanning, refreshing the interface, and upgrading applications.
  • the operating system of the electronic device calls the scan function of the target application; the user clicks the scan function shown in (a) in Figure 18
  • the refresh interface function control is displayed in the functional area, the operating system of the electronic device calls the refresh function of the target application to update the application interface; the user clicks on the upgrade application function in the functional area shown in (a) in Figure 18
  • the operating system of the electronic device calls the target application upgrade application function to implement application version upgrade.
  • the electronic device can display the scan function of the target application in the left blank area of the screen. corresponding interface.
  • the electronic device can display the interface corresponding to the result scanned by the scan function on the left area of the screen.
  • the electronic device can scan the result obtained by the scan function.
  • the add page of "User 21" is displayed in the left area of the screen.
  • the electronic device displays the interface corresponding to the scan function or the interface corresponding to the scan result obtained by the scan function in the left area of the screen, if it is determined that the size of the area on the left side of the screen is less than the set threshold, then the left area of the screen Display abnormalities may occur when displaying interface content on the side.
  • the electronic device can adjust the size of the application display area and functional area according to the preset ratio, so that the layout of each area on the screen is more reasonable and the screen display effect is more coordinated.
  • shortcut functions may also include some shortcut functions corresponding to the target application.
  • the shortcut functions displayed in the ribbon support application customization may also include some shortcut functions corresponding to the target application.
  • the shortcut functions displayed in the ribbon support application customization may also include some shortcut functions corresponding to the target application.
  • the shortcut functions displayed in the ribbon support application customization may also include some shortcut functions corresponding to the target application.
  • the shortcut functions displayed in the ribbon support application customization may also include some shortcut functions corresponding to the target application.
  • FIG. 19 is a schematic diagram of a display of an application customized shortcut function provided by an embodiment of the present application.
  • the shortcut functions in the functional area may include: opening recently browsed mini programs, collecting money, making payments, etc. Take the user clicking the payment function control in the functional area shown in (a) in Figure 19 as an example.
  • the electronic device can display the icons of Application 1 and Application 2 in the left area of the screen. , both App 1 and App 2 can provide payment collection functions.
  • the electronic device displays the payment interface of Application 1 in the left area of the screen.
  • the electronic device can Adjust the size of the application display area and functional area according to the preset ratio, making the layout of each area on the screen more reasonable and the screen display effect more coordinated. In this way, the ribbon can display controls for shortcut functions corresponding to the target application, further improving the interactive capabilities of the ribbon and improving user experience.
  • the shortcut functions displayed in the ribbon can also be adjusted according to the content contained in the application interface in the application display area.
  • the ribbon can include controls for shortcut functions such as pause and exit.
  • the ribbon can include controls for shortcut functions such as voice transcription, select all and copy.
  • the electronic device can provide templates and configuration files for the shortcut functions in the functional area.
  • the application developer can provide the configuration file according to the template provided by the electronic device.
  • the electronic device starts the application, it reads the configuration file corresponding to the application and displays the controls of the shortcut function corresponding to the application in the ribbon according to the configuration file.
  • the template of the configuration file provided by the electronic device may include at least one of the following: serial number, shortcut function icon, text description, and triggered event.
  • Figure 20 is a schematic diagram of a functional area displaying shortcut functions provided by an embodiment of the present application. Referring to Figure 20, when the electronic device starts the target application and displays the application interface of the target application in the application display area, the electronic device reads the configuration file of the target application and displays multiple shortcuts corresponding to the target application in the functional area according to the serial numbers in the configuration file. Functional controls. After the user clicks the control of the shortcut function in the ribbon, the electronic device transmits the event corresponding to the shortcut function clicked by the user to the target application, and the target application executes the response action corresponding to the event.
  • Embodiments of the present application also provide a picture warehouse function.
  • the picture warehouse function can provide users with a convenient way to trigger screenshots, and save the images obtained by screenshots in a temporary picture warehouse (also called a picture warehouse), which is convenient for users to use at any time. Check.
  • Figure 21 is a schematic diagram of a functional area display screenshot function and a picture warehouse provided by an embodiment of the present application.
  • the user click function With the screenshot function in the energy area, the electronic device can perform the screenshot action and store the image obtained by the screenshot into the image warehouse.
  • the electronic device can capture a single image in the current screen, for example, the electronic device captures the image with the largest area in the focus window of the application interface; or the electronic device can capture the content displayed on the entire screen, such as the electronic device Call the screenshot function of the operating system to intercept an image containing the entire screen display content; or the electronic device can intercept a long image, for example, the electronic device calls the screenshot function of the operating system to obtain a long image; or the electronic device can intercept the application interface in the application display area
  • the corresponding image for example, the electronic device calls back the generated image interface of the target application to obtain the corresponding image of the current application interface.
  • the image obtained by taking a screenshot of the electronic device can be saved in the image warehouse. After the user clicks the image warehouse in the functional area, the electronic device can display the image in the image warehouse.
  • the electronic device can display a floating window, open a picture bin in the floating window, and display the image in the picture bin.
  • Figure 22 is a schematic display diagram of a picture warehouse provided by an embodiment of the present application. Referring to Figure 22, the electronic device can display a floating window on the screen. To prevent the floating window from blocking the application display area, the electronic device can display a floating window in the application display area. A floating window is displayed in the occupied area, such as a floating window displayed in the left blank area or ribbon. Figure 22 shows an example of displaying a floating window in the blank area on the left. Images in the image warehouse can be displayed in the floating window. After the user clicks on one of the images, the electronic device can display the enlarged image in the floating window.
  • the electronic device can move the position of the application display area, increase the size of the functional area to the second preset size, open the image bin in the increased size functional area, and display the image.
  • Images in the warehouse For example, FIG. 23 is a schematic diagram of the display of another image bin provided by an embodiment of the present application. After the user clicks on the picture bin in the functional area shown in Figure 21, referring to Figure 23, the electronic device moves the application display area to the left side of the screen and increases the size of the functional area. The electronic device displays the images in the image bin in the enlarged functional area. After the user clicks one of the images, the electronic device can display the enlarged image in the functional area.
  • the electronic device can delete the images in the image bin after a set period of time, or the electronic device can delete the images in the image bin when exiting the target application, thereby saving the storage space of the electronic device.
  • the user can also select a target image in the image warehouse that needs to be saved, and the electronic device can delete other images in the image warehouse except the target image.
  • the electronic device provides a convenient way to take screenshots and view images in the functional area, which can be applied to shopping application scenarios, such as taking screenshots of multiple product pages.
  • the user can click on the image bin to view the images obtained by the screenshots, making it convenient for users to view multiple screenshots. Compare prices of products, saving users steps and improving user experience.
  • FIG. 24 is a schematic diagram of an application snapshot provided by an embodiment of the present application. Referring to Figure 24, the electronic device can intercept the application interface in the application display area as an application snapshot, and display the shortcut functions in the functional area on the right side of the application snapshot.
  • the user when the electronic device displays the application display area and functional area as shown in Figure 6, the user can trigger a drag operation on the drag line to adjust the width of the application display area, thereby obtaining the application display area. Shows the best results for the target application.
  • the electronic device can save the size of the application display area as the target size of the application display area corresponding to the target application when exiting the target application, and set the application display area to the target size when the user opens the target application next time, thereby eliminating the need for the user to adjust it again. Apply the size of the display area to improve user experience.
  • the screens of electronic devices can have multiple shapes and sizes.
  • the screen of a foldable mobile phone has different sizes in the unfolded state and the folded state.
  • the electronic device can save the size of the application display area under different screen forms, and when the screen form is switched, adjust the application display area according to the size of the application display area saved by the electronic device.
  • FIG. 25 is a schematic diagram of an application display area displayed on a folding screen electronic device provided by an embodiment of the present application. Referring to Figure 25, when the screen of the folding screen electronic device is expanded, the electronic device displays an application display area, and the target application is displayed in the application display area.
  • the electronic device When the user folds the electronic device, the electronic device saves the size of the application display area corresponding to the target application, and displays the target application in full screen in the screen folding state.
  • the electronic device sets the size of the application display area to the size of the application display area corresponding to the target application saved by the electronic device, and displays the target application in the application display area.
  • the shape or size of the screens between different electronic devices may be the same or different, and the same application is used on screens of different sizes to obtain the best display effect of the application display area.
  • the sizes are also different. Therefore, The embodiment of the present application also provides a method for sharing the application display area size between devices.
  • the electronic device displays the target application in the application display area.
  • the electronic device can save the target application and the size parameters of the application display area locally, as shown in Table 1 for embodiments of the present application.
  • Table 1 An example of data stored locally on an electronic device.
  • the size of the application display area in the data shown in Table 1 takes the left and right positions of the application display area on the screen as an example.
  • 25%-75% means that when the screen width is W, the application display area occupies 1/4W- 3/4W area.
  • the electronic device can also send the target application identifier, the screen parameters of the electronic device, and the size parameters of the application display area to the cloud server.
  • Table 2 is an example of data sent by an electronic device to the cloud server according to the embodiment of the present application.
  • the cloud server can save the data sent by the electronic device, and perform statistical analysis on the data saved in the cloud server based on statistical algorithms to determine the optimal size parameters of the application display area corresponding to the target application under each screen size.
  • Table 3 is an example of data sent by an electronic device to a cloud server according to an embodiment of the present application.
  • the electronic device When the electronic device starts the target application for the first time, it may send a request message to the cloud server.
  • the request message may include the application package name of the target application and the screen size of the electronic device.
  • the cloud server can return the target size to the electronic device, and the target size can be a common size of the application display area corresponding to the target application.
  • the electronic device sets the size of the application display area to the target size and displays the target application in the application display area. Through this design, multiple electronic devices can share the size parameters of the application display area, so that based on big data analysis, the electronic device can show the user the most recognized display effect when starting the application for the first time, improving the user experience.
  • this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to implement the methods described in the embodiments of this application.
  • the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.
  • this application also provides an electronic device.
  • the electronic device includes at least one processor and at least one memory. Computer program instructions are stored in the at least one memory. When the electronic device is running, the at least one processing The processor executes each method described in the embodiments of this application.
  • this application also provides a computer program, which when the computer program is run on a computer, causes the computer to execute the methods described in the embodiments of this application.
  • the present application also provides a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a computer, the computer is caused to execute the embodiments of the present application. Each method is described.
  • this application also provides a chip, which is used to read the computer program stored in the memory and implement the methods described in the embodiments of this application.
  • this application provides a chip system.
  • the chip system includes a processor and is used to support a computer device to implement the methods described in the embodiments of this application.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

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)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application provides an application display method and an electronic device. In the method, the electronic device displays an application display area and a functional area in a screen in response to an operation of starting a target application triggered by a user. The functional area is used for displaying a control for a function associated with the application display area. The electronic device displays an application interface of the target application in the application display area. According to the method, the electronic device can divide the screen into a plurality of areas, the application interface of the target application is displayed in the application display area, and the control for the function associated with the application display area is displayed in the functional area, thereby providing a convenient triggering mode of an application function for a user while ensuring normal display of the target application, increasing the screen utilization rate, and improving user experience.

Description

一种应用显示方法及电子设备An application display method and electronic device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年07月30日提交中华人民共和国知识产权局、申请号为202210911664.8、发明名称为“一种应用显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Intellectual Property Office of the People's Republic of China on July 30, 2022, with application number 202210911664.8 and the invention title "An application display method and electronic device", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种应用显示方法及电子设备。The present application relates to the field of terminal technology, and in particular, to an application display method and electronic device.
背景技术Background technique
随着终端产品的样式增多,电子设备的显示屏幕大小以及形态也趋于多样化。如电子设备的显示屏幕可以内外折叠、横竖折叠等。对于各种形状及大小的显示屏幕,许多应用已对应用显示界面进行了优化,例如通过响应式布局方式,对不同大小的显示屏幕采用不同的应用界面布局;又例如借助电子设备系统提供的分屏能力,在分屏界面中显示应用。但仍有很多应用不能适应各种屏幕长宽比,从而导致应用显示出现异常,如在平板电脑显示应用界面时,从竖屏显示切换为横屏显示,应用界面可能无法适应横屏,而导致应用界面中的图像过大或文字过大,影响用户体验。As the styles of terminal products increase, the display screen sizes and shapes of electronic devices also tend to be diversified. For example, the display screen of electronic equipment can be folded inside and outside, horizontally and vertically, etc. For display screens of various shapes and sizes, many applications have optimized the application display interface. For example, through responsive layout, different application interface layouts are used for display screens of different sizes; for example, with the help of analysis provided by electronic equipment systems, screen capability to display applications in a split-screen interface. However, there are still many applications that cannot adapt to various screen aspect ratios, resulting in abnormal application display. For example, when the tablet displays the application interface, switching from vertical screen display to horizontal screen display, the application interface may not be able to adapt to the horizontal screen, resulting in The images or text in the application interface are too large, which affects the user experience.
发明内容Contents of the invention
本申请提供一种应用显示方法及电子设备,用以在电子设备的屏幕上灵活显示应用界面,同时提高电子设备的屏幕利用率。This application provides an application display method and an electronic device to flexibly display an application interface on the screen of the electronic device while improving the screen utilization of the electronic device.
第一方面,本申请提供一种应用显示方法,该方法可以应用于电子设备。该方法包括:响应于用户触发的第一操作,电子设备在屏幕中显示应用显示区和功能区;所述功能区用于显示与应用显示区关联的功能的控件;电子设备在所述应用显示区显示所述目标应用的应用界面。In a first aspect, this application provides an application display method, which can be applied to electronic devices. The method includes: in response to a first operation triggered by a user, the electronic device displays an application display area and a functional area on the screen; the functional area is used to display controls for functions associated with the application display area; the electronic device displays in the application display area area displays the application interface of the target application.
其中,第一操作可以为用户在目标应用的图标上触发的点击操作,或第一操作可以为用户输入启动目标应用的语音指令等。第一操作可以用于启动目标应用,本申请对第一操作的具体实现方式不做限定。The first operation may be a click operation triggered by the user on the icon of the target application, or the first operation may be the user inputting a voice command to start the target application, etc. The first operation may be used to start the target application, and this application does not limit the specific implementation of the first operation.
在以上方法中,电子设备可以将屏幕分为多个区域显示,在应用显示区显示目标应用的应用界面,在功能区显示与应用显示区关联的功能的控件,从而在保证目标应用正常显示的基础上,为用户提供应用功能的便捷触发方式,提升屏幕利用率,同时提升用户体验。In the above method, the electronic device can divide the screen into multiple display areas, display the application interface of the target application in the application display area, and display controls of functions associated with the application display area in the functional area, thereby ensuring normal display of the target application. Basically, it provides users with a convenient way to trigger application functions, improves screen utilization and improves user experience.
在一个可能的设计中,在所述应用显示区显示所述目标应用的应用界面之后,所述方法还包括:响应于所述用户触发的第二操作,根据所述第二操作调整所述应用显示区的尺寸;根据调整后的应用显示区的尺寸重新布局所述目标应用的应用界面。In a possible design, after the application display area displays the application interface of the target application, the method further includes: in response to a second operation triggered by the user, adjusting the application according to the second operation. The size of the display area; rearrange the application interface of the target application according to the adjusted size of the application display area.
可选的,第二操作可以为用户在拖拽线上触发的拖拽操作。Optionally, the second operation may be a drag operation triggered by the user on the drag line.
通过该设计,电子设备可以根据用户触发的操作调整应用显示区的大小,从而按照用户想要的尺寸在应用显示区内灵活显示目标应用的应用界面,提升屏幕利用率。Through this design, the electronic device can adjust the size of the application display area according to the operation triggered by the user, thereby flexibly displaying the application interface of the target application in the application display area according to the size desired by the user, thereby improving screen utilization.
在一个可能的设计中,所述根据调整后的应用显示区的尺寸重新布局所述目标应用的应用界面,包括:根据调整后的应用显示区的宽度和所述目标应用的应用界面的布局尺寸的宽度确定所述布局尺寸的高度;根据所述布局尺寸的宽度和所述布局尺寸的高度重新布局所述目标应用的应用界面;将重新布局后的所述目标应用的应用界面等比例扩大至填充所述调整后的应用显示区。In one possible design, relayout of the application interface of the target application based on the adjusted size of the application display area includes: based on the adjusted width of the application display area and the layout size of the application interface of the target application. The width determines the height of the layout size; re-layout the application interface of the target application according to the width of the layout size and the height of the layout size; expand the re-layout application interface of the target application in equal proportions to Fill the adjusted application display area.
在一个可能的设计中,所述根据调整后的应用显示区的宽度和所述目标应用的应用界面的布局尺寸的宽度确定所述布局尺寸的高度,包括:根据调整后的应用显示区的宽度和所述目标应用的应用界面的布局尺寸的宽度确定调整比例;根据所述调整比例和所述屏幕的高度确定所述布局尺寸的高度。In one possible design, determining the height of the layout size based on the adjusted width of the application display area and the width of the layout size of the application interface of the target application includes: based on the adjusted width of the application display area The adjustment ratio is determined based on the width of the layout size of the application interface of the target application; the height of the layout size is determined based on the adjustment ratio and the height of the screen.
通过以上设计,目标应用不需要对应用界面中的元素进行缩放,只需要根据布局尺寸的宽度和布局尺寸的高度重新布局目标应用的应用界面时,根据布局尺寸的高度纵向调整应用界面中的元素数量,然后再将应用界面等比例缩放至填充绘制尺寸,避免缩放元素导致的显示异常,提升用户体验。Through the above design, the target application does not need to scale the elements in the application interface. It only needs to re-layout the application interface of the target application according to the width and height of the layout size, and adjust the elements in the application interface vertically according to the height of the layout size. quantity, and then scale the application interface proportionally to the filled drawing size to avoid display abnormalities caused by scaling elements and improve user experience.
在一个可能的设计中,所述目标应用的应用界面中包括多媒体内容,所述方法还包括:响应于所述用户触发的第三操作,确定所述应用显示区的初始尺寸小于第一预设尺寸,将所述应用显示区的尺寸从初始尺寸调整为第一预设尺寸,并在第一预设尺寸的应用显示区内显示所述多媒体内容;响应于所述用 户触发的第四操作,或检测到所述多媒体内容显示完毕,将所述应用显示区的尺寸恢复至所述初始尺寸。In one possible design, the application interface of the target application includes multimedia content, and the method further includes: in response to a third operation triggered by the user, determining that the initial size of the application display area is smaller than a first preset size, adjust the size of the application display area from the initial size to a first preset size, and display the multimedia content in the application display area of the first preset size; in response to the user The user triggers a fourth operation, or detects that the multimedia content has been displayed, and restores the size of the application display area to the initial size.
可选的,第三操作可以用于触发显示多媒体内容,如多媒体内容为图像时,第三操作可以为在图像上触发的点击操作;当多媒体内容为视频时,第三操作可以为在视频的播放控件上触发的点击操作。Optionally, the third operation can be used to trigger the display of multimedia content. For example, when the multimedia content is an image, the third operation can be a click operation triggered on the image; when the multimedia content is a video, the third operation can be a click operation triggered on the video. Click action triggered on the playback control.
可选的,第四操作可以用于退出显示多媒体内容,如多媒体内容为图像时,第四操作可以为在图像上触发的点击操作;当多媒体内容为视频时,第三操作可以为在视频的关闭控件上触发的点击操作。Optionally, the fourth operation can be used to exit the display of multimedia content. For example, when the multimedia content is an image, the fourth operation can be a click operation triggered on the image; when the multimedia content is a video, the third operation can be a click operation on the video. Closes the triggered click action on the control.
通过该设计,电子设备可以根据目标应用的显示内容灵活调整应用显示区的尺寸,提升屏幕显示效果,进而提升用户体验。Through this design, the electronic device can flexibly adjust the size of the application display area according to the display content of the target application, thereby improving the screen display effect and thereby improving the user experience.
在一个可能的设计中,所述功能区包括第一控件或第二控件;所述方法还包括:响应于所述用户触发的作用于所述第一控件的第五操作,隐藏所述功能区中的内容;或者响应于所述用户触发的作用于所述第二控件的第六操作,显示所述功能区中的内容。In a possible design, the functional area includes a first control or a second control; the method further includes: in response to a fifth operation triggered by the user that acts on the first control, hiding the functional area or display the content in the functional area in response to the sixth operation triggered by the user that acts on the second control.
可选的,第一控件可以为隐藏控件,第二控件可以为显示控件。第五操作可以为点击操作,第六操作可以为点击操作。Optionally, the first control can be a hidden control, and the second control can be a displayed control. The fifth operation may be a click operation, and the sixth operation may be a click operation.
通过该设计,电子设备可以响应于用户的操作隐藏或显示功能区中的内容,从而灵活利用屏幕。Through this design, the electronic device can hide or display the content in the ribbon in response to the user's operation, thereby flexibly utilizing the screen.
在一个可能的设计中,所述方法还包括:检测所述用户在所述功能区触发的手势,将所述手势传递至所述目标应用,以使所述目标应用执行所述手势对应的响应动作。In a possible design, the method further includes: detecting a gesture triggered by the user in the functional area, and passing the gesture to the target application, so that the target application executes a response corresponding to the gesture. action.
通过该设计,功能区还可以作为应用显示区的手势面板,以接收用户触发的手势,并将用户触发的手势传递至目标应用,便于用户操作,提升用户体验。Through this design, the functional area can also be used as a gesture panel in the application display area to receive user-triggered gestures and pass user-triggered gestures to the target application to facilitate user operations and improve user experience.
在一个可能的设计中,所述方法还包括:在所述功能区显示至少一个快捷功能的控件;In a possible design, the method further includes: displaying at least one shortcut function control in the functional area;
其中,所述至少一个快捷功能包括以下至少一项:所述电子设备中安装的多个应用共有的功能;所述目标应用对应的快捷功能;所述目标应用的应用界面包含的内容对应的快捷功能。Wherein, the at least one shortcut function includes at least one of the following: a function common to multiple applications installed in the electronic device; a shortcut function corresponding to the target application; a shortcut corresponding to the content contained in the application interface of the target application. Function.
通过该设计,功能区可以显示多个应用共有的功能、目标应用对应的快捷功能、应用界面中的内容对应的功能,进一步提升功能区的交互能力,提升用户体验。Through this design, the functional area can display functions common to multiple applications, shortcut functions corresponding to the target application, and functions corresponding to the content in the application interface, further improving the interactive capabilities of the functional area and improving the user experience.
在一个可能的设计中,所述功能区包括第三控件;所述方法还包括:响应于所述用户触发的作用于所述第三控件的第七操作,执行截图动作,并将截图得到的图像保存至第一应用中。In a possible design, the functional area includes a third control; the method further includes: in response to a seventh operation triggered by the user that acts on the third control, perform a screenshot action, and obtain the screenshot The image is saved to the first application.
可选的,第三控件可以为截图功能的控件,第七操作可以为点击操作,第一应用可以为图仓应用。Optionally, the third control can be a screenshot function control, the seventh operation can be a click operation, and the first application can be a picture warehouse application.
通过该设计,电子设备可以在功能区为用户提供一种便捷的截图触发方式,并将截图得到的图像保存在第一应用中,便于用户随时查看,提升用户体验。Through this design, the electronic device can provide users with a convenient screenshot triggering method in the functional area, and save the screenshot image in the first application, so that the user can view it at any time and improve the user experience.
在一个可能的设计中,所述功能区包括所述第一应用的图标,所述方法还包括:响应于所述用户触发的作用于所述第一应用的图标的第八操作,显示悬浮窗口,并在所述悬浮窗口中显示所述第一应用中保存的图像,或者响应于所述用户触发的作用于所述第一应用的图标的第八操作,在所述功能区中显示所述第一应用中保存的图像。In a possible design, the functional area includes an icon of the first application, and the method further includes: in response to an eighth operation triggered by the user that acts on the icon of the first application, displaying a floating window , and display the image saved in the first application in the floating window, or display the image in the functional area in response to the eighth operation triggered by the user that acts on the icon of the first application. The image saved in the first application.
可选地,第一应用可以为图仓应用,第八操作可以为点击操作。Optionally, the first application may be a picture warehouse application, and the eighth operation may be a click operation.
通过该设计,电子设备截图得到的图像可以保存在第一应用中,用户点击第一应用查看图像时,电子设备可以在悬浮窗口中显示图像或在功能中显示图像,便于用户查看截图得到的图像,提升用户体验。Through this design, the image captured by the electronic device can be saved in the first application. When the user clicks on the first application to view the image, the electronic device can display the image in a floating window or display the image in a function, making it easier for the user to view the image captured by the screenshot. , improve user experience.
在一个可能的设计中,所述在所述功能区中显示所述第一应用中保存的图像之前,所述方法还包括:确定所述功能区的尺寸小于第二预设尺寸,将所述功能区的尺寸调整为第二预设尺寸。In a possible design, before displaying the image saved in the first application in the functional area, the method further includes: determining that the size of the functional area is smaller than a second preset size, and setting the The size of the ribbon is adjusted to the second preset size.
通过该设计,当电子设备在功能区显示第一应用中的图像时,可以增大功能区所占的区域大小,从而在更大的功能区中显示图像,提升显示效果。Through this design, when the electronic device displays the image in the first application in the functional area, the size of the area occupied by the functional area can be increased, thereby displaying the image in the larger functional area and improving the display effect.
在一个可能的设计中,所述方法还包括:响应于所述用户触发的作用于目标图像的第九操作,删除所述第一应用中保存的除所述目标图像之外的图像;和/或,响应于所述用户触发的第十操作,停止显示所述目标应用,并删除所述第一应用中保存的图像。In a possible design, the method further includes: in response to a ninth operation triggered by the user that acts on the target image, deleting images other than the target image saved in the first application; and/ Or, in response to the tenth operation triggered by the user, stop displaying the target application and delete the image saved in the first application.
可选地,第九操作用于保存目标图像,第九操作可以为点击操作、长按操作等。第十操作用于退出目标应用,如第十操作可以为在目标应用的应用界面上触发的上划操作,又例如第十操作可以为作用在目标应用的关闭控件上的点击操作。Optionally, the ninth operation is used to save the target image, and the ninth operation may be a click operation, a long press operation, etc. The tenth operation is used to exit the target application. For example, the tenth operation may be an upward swipe operation triggered on the application interface of the target application. For example, the tenth operation may be a click operation acting on the close control of the target application.
通过该设计,电子设备可以暂时保存第一应用中的图像,在用户选择保留的图像或退出目标应用时,电子设备可以删除第一应用中剩余的图像,减少占用的资源。Through this design, the electronic device can temporarily save the images in the first application. When the user selects the retained images or exits the target application, the electronic device can delete the remaining images in the first application to reduce the resources occupied.
在一个可能的设计中,所述在屏幕上显示应用显示区,包括:查找所述目标应用对应的应用显示区的目标尺寸,将所述应用显示区的尺寸设置为所述目标尺寸,显示所述应用显示区;其中,所述目标尺 寸为所述电子设备上一次退出所述目标应用时保存的应用显示区的尺寸,或所述目标尺寸为所述电子设备从服务器上获取的所述目标应用对应的应用显示区的常用尺寸。In one possible design, displaying the application display area on the screen includes: finding the target size of the application display area corresponding to the target application, setting the size of the application display area to the target size, and displaying the target size. The application display area; wherein, the target scale The size is the size of the application display area saved when the electronic device last exited the target application, or the target size is the common size of the application display area corresponding to the target application obtained by the electronic device from the server.
通过该设计,电子设备中可以获取目标应用对应的目标尺寸,从而在启动目标应用时,使用显示效果较好或用户较为习惯的尺寸显示目标应用,提升用户体验。Through this design, the target size corresponding to the target application can be obtained in the electronic device, so that when the target application is launched, the target application can be displayed in a size with better display effect or a size that the user is more accustomed to, thereby improving the user experience.
在一个可能的设计中,所述功能区位于所述应用显示区的左侧;或者所述功能区位于所述应用显示区的右侧;或者所述功能区占用所述屏幕中除应用显示区以外的全部区域;或者所述功能区为所述屏幕上的悬浮窗口。In a possible design, the functional area is located on the left side of the application display area; or the functional area is located on the right side of the application display area; or the functional area occupies the entire screen except the application display area. All areas other than; or the functional area is a floating window on the screen.
在一个可能的设计中,显示所述功能区,包括:采用半侧方式在所述屏幕的左侧或右侧显示所述功能区;或者采用全屏叠底方式在所述应用显示区对应的图层下显示所述功能区对应的图层。In one possible design, displaying the functional area includes: using a half-side method to display the functional area on the left or right side of the screen; or using a full-screen overlay method to display the corresponding image in the application display area. The layer corresponding to the functional area is displayed under the layer.
通过以上设计,电子设备可以采用多种方式显示应用显示区和功能区,灵活实现目标应用的显示。Through the above design, the electronic device can display the application display area and functional area in a variety of ways to flexibly realize the display of the target application.
第二方面,本申请提供一种电子设备,所述电子设备包括多个功能模块;所述多个功能模块相互作用,实现上述第一方面及其各实施方式所示的方法。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。In a second aspect, the present application provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact to implement the method shown in the first aspect and its respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.
第三方面,本申请提供一种电子设备,包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述电子设备运行时,所述至少一个处理器执行上述第一方面及其各实施方式所示的方法。In a third aspect, the present application provides an electronic device, including at least one processor and at least one memory. Computer program instructions are stored in the at least one memory. When the electronic device is running, the at least one processor executes the above-mentioned first step. Aspects and methods shown in various embodiments thereof.
第四方面,本申请还提供一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一方面及其各实施方式所示的方法。In a fourth aspect, the present application also provides a computer program, which when the computer program is run on a computer, causes the computer to execute the method shown in any of the above aspects and its respective embodiments.
第五方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面及其各实施方式所示的方法。In a fifth aspect, the present application also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, it causes the computer to execute any of the above aspects and the above. Methods shown in each embodiment.
第六方面,本申请还提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面及其各实施方式所示的方法。In a sixth aspect, the present application also provides a chip, which is used to read the computer program stored in the memory and execute the method shown in any of the above aspects and its implementation modes.
第七方面,本申请还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面及其各实施方式所示的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a seventh aspect, the present application also provides a chip system. The chip system includes a processor and is used to support a computer device to implement any of the above aspects and the methods shown in each embodiment. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The chip system can be composed of chips or include chips and other discrete devices.
附图说明Description of drawings
图1为一种应用显示的示意图;Figure 1 is a schematic diagram of an application display;
图2为一种电子设备在屏幕上居中显示应用界面的示意图;Figure 2 is a schematic diagram of an electronic device displaying an application interface in the center of the screen;
图3为电子设备显示多个窗口的示意图;Figure 3 is a schematic diagram of an electronic device displaying multiple windows;
图4为本申请实施例提供的一种电子设备的结构示意图;Figure 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的软件结构框图;Figure 5 is a software structure block diagram of an electronic device provided by an embodiment of the present application;
图6为本申请实施例提供的一种应用显示的示意图;Figure 6 is a schematic diagram of an application display provided by an embodiment of the present application;
图7为本申请实施例提供的一种调节应用显示区和功能区大小的示意图;Figure 7 is a schematic diagram of adjusting the size of the application display area and functional area provided by the embodiment of the present application;
图8为本申请实施例提供的一种电子设备调整应用显示区大小的流程图;Figure 8 is a flow chart of an electronic device adjusting the size of an application display area provided by an embodiment of the present application;
图9为本申请实施例提供的一种屏幕示意图;Figure 9 is a schematic screen diagram provided by an embodiment of the present application;
图10为申请实施例提供的一种布局尺寸与绘制尺寸的示意图;Figure 10 is a schematic diagram of layout dimensions and drawing dimensions provided in the application embodiment;
图11为本申请实施例提供的一种调整宽度后的布局尺寸与绘制尺寸的示意图;Figure 11 is a schematic diagram of the layout size and drawing size after adjusting the width according to an embodiment of the present application;
图12为本申请实施例提供的一种界面示意图;Figure 12 is a schematic diagram of an interface provided by an embodiment of the present application;
图13为本申请实施例提供的一种半侧方式显示功能区的示意图;Figure 13 is a schematic diagram of a half-side display functional area provided by an embodiment of the present application;
图14为本申请实施例提供的一种全屏叠底方式显示功能区的示意图;Figure 14 is a schematic diagram of a full-screen stacked bottom display functional area provided by an embodiment of the present application;
图15为本申请实施例提供的一种一键显示/一键隐藏功能的示意图;Figure 15 is a schematic diagram of a one-key display/one-key hiding function provided by an embodiment of the present application;
图16为本申请实施例提供的一种功能区接收用户手势控制的示意图;Figure 16 is a schematic diagram of a functional area receiving user gesture control provided by an embodiment of the present application;
图17为本申请实施例提供的一种功能区显示控制按钮的示意图;Figure 17 is a schematic diagram of a functional area display control button provided by an embodiment of the present application;
图18为本申请实施例提供的一种功能区显示快捷功能的控件示意图;Figure 18 is a schematic diagram of a control for displaying shortcut functions in a functional area provided by an embodiment of the present application;
图19为本申请实施例提供的一种应用定制化快捷功能的显示示意图;Figure 19 is a schematic diagram of a display of an application customized shortcut function provided by an embodiment of the present application;
图20为本申请实施例提供的一种功能区显示快捷功能的示意图;Figure 20 is a schematic diagram of a functional area displaying shortcut functions provided by an embodiment of the present application;
图21为本申请实施例提供的一种功能区显示截图功能以及图仓的示意图; Figure 21 is a schematic diagram of a functional area display screenshot function and a picture warehouse provided by an embodiment of the present application;
图22为本申请实施例提供的一种图仓的显示示意图;Figure 22 is a schematic display diagram of a picture warehouse provided by an embodiment of the present application;
图23为本申请实施例提供的又一种图仓的显示示意图;Figure 23 is a schematic display diagram of another image warehouse provided by an embodiment of the present application;
图24为本申请实施例提供的一种应用快照的示意图;Figure 24 is a schematic diagram of an application snapshot provided by an embodiment of the present application;
图25为本申请实施例提供的一种折叠屏电子设备显示应用显示区的示意图。Figure 25 is a schematic diagram of a folding screen electronic device displaying an application display area according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。其中,在本申请实施例的描述中,以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings. In the description of the embodiments of the present application, in the following, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of indicated technical features. . Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features.
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。It should be understood that in the embodiments of this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions thereof refers to any combination of these items, including any combination of single item (items) or plural items (items). For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple.
随着终端产品的样式增多,电子设备的显示屏幕大小以及形态也趋于多样化。如电子设备的显示屏幕可以内外折叠、横竖折叠等。对于各种形状及大小的显示屏幕,许多应用已对应用显示界面进行了优化,例如通过响应式布局方式,对不同大小的显示屏幕采用不同的应用界面布局;又例如借助电子设备系统提供的分屏能力,在分屏界面中显示应用。但仍有很多应用不能适应各种屏幕长宽比,从而导致应用显示出现异常,如在平板电脑显示应用界面时,从竖屏显示切换为横屏显示,应用界面可能无法适应横屏,而导致应用界面中的图像过大或文字过大,影响用户体验。As the styles of terminal products increase, the display screen sizes and shapes of electronic devices also tend to be diversified. For example, the display screen of electronic equipment can be folded inside and outside, horizontally and vertically, etc. For display screens of various shapes and sizes, many applications have optimized the application display interface. For example, through responsive layout, different application interface layouts are used for display screens of different sizes; for example, with the help of analysis provided by electronic equipment systems, screen capability to display applications in a split-screen interface. However, there are still many applications that cannot adapt to various screen aspect ratios, resulting in abnormal application display. For example, when the tablet displays the application interface, switching from vertical screen display to horizontal screen display, the application interface may not be able to adapt to the horizontal screen, resulting in The images or text in the application interface are too large, which affects the user experience.
例如,图1为一种应用显示的示意图。参考图1,电子设备从竖屏显示应用界面切换为横屏显示应用界面时,应用界面中的图像以及文字都会放大,屏幕中显示的信息量下降,影响用户体验。For example, Figure 1 is a schematic diagram of an application display. Referring to Figure 1, when the electronic device switches from a vertical screen display application interface to a horizontal screen display application interface, the images and text in the application interface will be enlarged, and the amount of information displayed on the screen will decrease, affecting the user experience.
一种应用显示方案中,当应用界面的宽高比与电子设备屏幕的宽高比不兼容时,电子设备可以在屏幕上居中显示应用界面。例如,图2为一种电子设备在屏幕上居中显示应用界面的示意图,参考图2,电子设备的屏幕居中显示应用界面,屏幕上未被应用界面占用的区域用黑色背景填充。但是该方式中,屏幕显示的应用界面的尺寸是固定的,屏幕利用率低,用户体验较差。In an application display solution, when the aspect ratio of the application interface is incompatible with the aspect ratio of the electronic device screen, the electronic device can center the application interface on the screen. For example, Figure 2 is a schematic diagram of an electronic device displaying an application interface in the center of the screen. Referring to Figure 2, the electronic device displays the application interface in the center of the screen, and the area on the screen not occupied by the application interface is filled with a black background. However, in this method, the size of the application interface displayed on the screen is fixed, the screen utilization is low, and the user experience is poor.
另一种应用显示方案中,电子设备的屏幕中可以显示多个应用的窗口,用户可以对每个窗口的大小进行调整,应用可以根据窗口的大小调整布局。如图3为电子设备显示多个窗口的示意图,参考图3,电子设备可以同时显示窗口A、窗口B以及窗口C,窗口A用于显示应用A的界面,窗口B用于显示应用B的界面,窗口C用于显示应用C的界面。用户可以调整任一窗口的大小,应用根据窗口大小调整布局。但由于多数应用并不支持在任意尺寸的窗口中显示,仍然后出现显示异常的情况,且该方案仅适用于电子设备同时显示多个应用的情况,无法解决电子设备显示单个应用时,应用界面与屏幕尺寸不兼容的问题。In another application display solution, multiple application windows can be displayed on the screen of the electronic device. The user can adjust the size of each window, and the application can adjust the layout according to the size of the window. Figure 3 is a schematic diagram of an electronic device displaying multiple windows. Refer to Figure 3. The electronic device can display window A, window B and window C at the same time. Window A is used to display the interface of application A, and window B is used to display the interface of application B. , Window C is used to display the interface of application C. The user can resize any window, and the app adjusts its layout based on the window size. However, since most applications do not support display in windows of any size, display abnormalities still occur, and this solution is only suitable for electronic devices that display multiple applications at the same time. It cannot solve the problem of application interface problems when an electronic device displays a single application. Incompatibility issues with screen size.
基于以上问题,本申请提供一种应用显示方法,用以在电子设备的屏幕上灵活显示应用界面,同时提高电子设备的屏幕利用率。在本申请实施例提供的应用显示方法中,电子设备在屏幕上显示应用显示区和功能区;电子设备响应于用户触发的拖拽操作,确定应用显示区的尺寸,在应用显示区中显示目标应用的应用界面。其中,功能区用于显示与所述应用显示区关联的功能。通过该方案,电子设备可以根据用户触发的拖拽操作调整应用显示区的大小,从而在应用显示区内灵活显示目标应用的应用界面,并且在屏幕上显示功能区,提升屏幕利用率。Based on the above problems, this application provides an application display method to flexibly display an application interface on the screen of an electronic device while improving the screen utilization of the electronic device. In the application display method provided by the embodiment of the present application, the electronic device displays the application display area and the functional area on the screen; the electronic device responds to the drag operation triggered by the user, determines the size of the application display area, and displays the target in the application display area The application interface of the application. The functional area is used to display functions associated with the application display area. Through this solution, the electronic device can adjust the size of the application display area according to the drag operation triggered by the user, thereby flexibly displaying the application interface of the target application in the application display area, and displaying the functional area on the screen to improve screen utilization.
以下介绍电子设备、和用于使用这样的电子设备的实施例。本申请实施例的电子设备可以为平板电脑、手机、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴设备等,本申请实施例对电子设备的具体类型不作任何限制。Electronic devices, and embodiments for using such electronic devices are described below. The electronic device in the embodiment of the present application may be a tablet computer, a mobile phone, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, or an ultra-mobile personal computer. UMPC), netbook, personal digital assistant (personal digital assistant, PDA), wearable devices, etc. The embodiments of this application do not place any restrictions on the specific types of electronic devices.
图4为本申请实施例提供的一种电子设备100的结构示意图。如图4所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130, 充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。FIG. 4 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. As shown in Figure 4, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, Charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, Button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait. Among them, different processing units can be independent devices or integrated in one or more processors. The controller may be the nerve center and command center of the electronic device 100 . The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions. The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the 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 supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor. Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
显示屏194用于显示应用的显示界面,例如显示电子设备100上安装的应用的显示页面等。显示屏 194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display a display interface of an application, such as displaying a display page of an application installed on the electronic device 100 . Display 194 includes display panel. The display panel can use 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 (active-matrix organic light). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序的软件代码等。存储数据区可存储电子设备100使用过程中所产生的数据(例如拍摄的图像、录制的视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 . The internal memory 121 may include a program storage area and a data storage area. The stored program area can store an operating system, software code of at least one application program, etc. The storage data area may store data generated during use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, save pictures, videos, etc. files on an external memory card.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
其中,传感器模块180可以包括压力传感器180A,加速度传感器180B,触摸传感器180C等。Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 .
触摸传感器180C,也称“触控面板”。触摸传感器180C可以设置于显示屏194,由触摸传感器180C与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180C用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180C也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180C, also known as "touch panel". The touch sensor 180C can be disposed on the display screen 194. The touch sensor 180C and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180C is used to detect a touch operation on or near the touch sensor 180C. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180C may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现与电子设备100的接触和分离。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 . The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized. The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
可以理解的是,图4所示的部件并不构成对电子设备100的具体限定,电子设备还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。此外,图4中的部件之间的组合/连接关系也是可以调整修改的。It can be understood that the components shown in FIG. 4 do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or less components than shown in the figure, or some components may be combined or separated. , or a different component arrangement. In addition, the combination/connection relationship between the components in Figure 4 can also be adjusted and modified.
图5为本申请实施例提供的一种电子设备的软件结构框图。如图5所示,电子设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为四层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),运行时(runtime)和系统库,以及内核层。Figure 5 is a software structure block diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 5, the software structure of electronic equipment can be a layered architecture. For example, the software can be divided into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom: application layer, application framework layer (framework, FWK), runtime (runtime) and system library, and kernel layer.
应用程序层可以包括一系列应用程序包(application package)。如图5所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、三方应用程序等。其中,三方应用程序可以包括图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等。在本申请实施例中,应用 程序层可以包括电子设备从服务器请求下载的目标应用的目标安装包,该目标安装包中的功能文件和布局文件适配于电子设备。The application layer may include a series of application packages. As shown in Figure 5, the application layer can include cameras, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include gallery, calendar, calls, maps, navigation, WLAN, Bluetooth, music, video, short messages, etc. In the embodiment of this application, the application The program layer may include a target installation package of the target application that the electronic device requests to download from the server, and the function files and layout files in the target installation package are adapted to the electronic device.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数。如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器。The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer can include some predefined functions. As shown in Figure 5, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, and notification manager.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。在本申请实施例中,窗口管理器还用于计算用户调整后的应用显示区的大小,并提高窗口的缩放能力。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. In this embodiment of the present application, the window manager is also used to calculate the size of the application display area adjusted by the user, and improve the zoom capability of the window.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。Telephone managers are used to provide communication functions of electronic devices. For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
运行时包括核心库和虚拟机。运行时负责操作系统的调度和管理。The runtime includes core libraries and virtual machines. The runtime is responsible for the scheduling and management of the operating system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是操作系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the operating system. The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)、图像处理库等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (media libraries), three-dimensional graphics processing libraries (for example: OpenGL ES), two-dimensional graphics engines (for example: SGL), image processing libraries, etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。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.
硬件层可以包括各类传感器,例如加速度传感器、陀螺仪传感器、触摸传感器等。The hardware layer can include various types of sensors, such as acceleration sensors, gyroscope sensors, touch sensors, etc.
需要说明的是,图4和图5所示的结构仅作为本申请实施例提供的电子设备的一种示例,并不能对本申请实施例提供的电子设备进行任何限定,具体实施中,电子设备可以具有比图4或图5所示的结构中更多或更少的器件或模块。It should be noted that the structure shown in FIG. 4 and FIG. 5 is only an example of the electronic device provided by the embodiment of the present application, and cannot limit the electronic device provided by the embodiment of the present application. In specific implementation, the electronic device can There may be more or fewer devices or modules than in the structure shown in Figure 4 or Figure 5.
下面对本申请实施例提供的方法进行介绍。The methods provided by the embodiments of this application are introduced below.
本申请实施例提供一种应用显示方法,用以解决屏幕尺寸与应用布局不适配时的显示异常问题。在该方法中,响应于用户触发的第一操作,电子设备可以将屏幕分为多个区域显示,其中,多个区域至少包括应用显示区和功能区,第一操作用于启动目标应用。例如,图6为本申请实施例提供的一种应用显示的示意图。参考图6,电子设备的屏幕上包括应用显示区和功能区,其中,应用显示区可以用于显示目标应用的应用界面,功能区可以用于显示与应用显示区关联的功能。图6所示的屏幕中左侧的空白区域可以显示电子设备的主页面,或者电子设备可以提取目标应用的应用界面的颜色,并将屏幕左侧的空白区域渲染为该颜色,以提升观感。Embodiments of the present application provide an application display method to solve the problem of abnormal display when the screen size does not match the application layout. In this method, in response to a first operation triggered by the user, the electronic device can divide the screen into multiple areas for display, where the multiple areas at least include an application display area and a functional area, and the first operation is used to launch the target application. For example, FIG. 6 is a schematic diagram of an application display provided by an embodiment of the present application. Referring to Figure 6, the screen of the electronic device includes an application display area and a functional area. The application display area can be used to display the application interface of the target application, and the functional area can be used to display functions associated with the application display area. The blank area on the left side of the screen shown in Figure 6 can display the home page of the electronic device, or the electronic device can extract the color of the application interface of the target application and render the blank area on the left side of the screen in that color to enhance the look and feel.
需要说明的是,目标应用可以为应用布局与电子设备的屏幕尺寸无法适配的应用。It should be noted that the target application can be an application whose application layout cannot adapt to the screen size of the electronic device.
另外,参考图6,应用显示区和功能区之间还包括拖拽线,用户可以在拖拽线上触发拖拽操作,电子设备响应于用户触发的拖拽操作可以调整应用显示区和/或功能区的尺寸,如调整应用显示区和/或功能区的宽度。 In addition, referring to Figure 6, a drag line is also included between the application display area and the functional area. The user can trigger a drag operation on the drag line. The electronic device can adjust the application display area and/or in response to the drag operation triggered by the user. Ribbon dimensions, such as adjusting the width of the app display and/or ribbon.
例如,图7为本申请实施例提供的一种调节应用显示区和功能区尺寸的示意图。参考图7中的(a),用户在拖拽线上触发拖拽操作,当用户在拖拽线上触发向左拖拽的操作时,电子设备调整功能区的宽度增大、应用显示区的宽度减小,调整后的屏幕显示效果如图7中的(b)所示;当用户在拖拽线上触发向右拖拽的操作时,电子设备调整功能区的宽度减小、应用显示区的宽度增大,调整后的屏幕显示效果如图7中的(c)所示。For example, FIG. 7 is a schematic diagram of adjusting the size of an application display area and a functional area according to an embodiment of the present application. Referring to (a) in Figure 7, the user triggers a drag operation on the drag line. When the user triggers a left drag operation on the drag line, the width of the electronic device adjustment functional area increases, and the width of the application display area increases. The width is reduced, and the adjusted screen display effect is shown in (b) in Figure 7; when the user triggers a drag operation to the right on the drag line, the width of the electronic device adjustment functional area is reduced, and the application display area The width is increased, and the adjusted screen display effect is shown in (c) in Figure 7.
需要说明的是,在图7所示的屏幕中,应用显示区处于屏幕居中的位置,如图7中的(b)或图7中的(c),调整宽度后的应用显示区仍然可以处于屏幕居中的位置,当然,应用显示区还可以处于屏幕左侧或屏幕右侧,也就是说,本申请实施例对应用显示区以及功能区在屏幕中的位置并不进行限定,具体实施时可根据应用场景进行调整。It should be noted that in the screen shown in Figure 7, the application display area is in the center of the screen, as shown in (b) or (c) in Figure 7. The application display area after adjusting the width can still be in the center of the screen. The position in the center of the screen. Of course, the application display area can also be located on the left side or the right side of the screen. That is to say, the embodiment of the present application does not limit the positions of the application display area and the functional area on the screen. During specific implementation, Adjust according to application scenarios.
图8为本申请实施例提供的一种电子设备调整应用显示区尺寸的流程图。参考图8,在图7所示的调整应用显示区域尺寸的方式中,电子设备执行以下步骤:FIG. 8 is a flow chart for adjusting the size of an application display area of an electronic device according to an embodiment of the present application. Referring to Figure 8, in the manner of adjusting the size of the application display area shown in Figure 7, the electronic device performs the following steps:
S801:电子设备检测到第二操作。S801: The electronic device detects the second operation.
例如,第二操作可以为用户在图7所示的应用显示区与功能区之间的拖拽线上触发的拖拽操作。For example, the second operation may be a drag operation triggered by the user on the drag line between the application display area and the functional area shown in FIG. 7 .
S802:电子设备计算应用显示区的位置。S802: The electronic device calculates the position of the application display area.
可选地,电子设备在计算应用显示区的位置时,可以计算应用显示区的边界位置,或电子设备可以计算应用显示区中多个顶点的位置,或者电子设备可以计算应用显示区的中心点位置,并根据应用显示区的宽和高确定应用显示区的位置。也就是说,本申请实施例中对电子设备计算应用显示区的位置的方式并不进行限定。Alternatively, when calculating the position of the application display area, the electronic device can calculate the boundary position of the application display area, or the electronic device can calculate the positions of multiple vertices in the application display area, or the electronic device can calculate the center point of the application display area. Position, and determine the position of the application display area based on the width and height of the application display area. That is to say, in the embodiments of the present application, the way in which the electronic device calculates the position of the application display area is not limited.
例如,图9为本申请实施例提供的一种屏幕示意图。参考图9,假设用户在拖拽线上触发拖拽操作,抬手后拖拽线的位置如图9所示,其中,x表示拖拽线与屏幕左边界之间的距离,W表示屏幕的宽,H表示屏幕的高。在用户触发拖拽操作的过程中,x的值发生变化,用户触发拖拽操作后,电子设备可以确定x的值以确定应用显示区的边界位置。For example, FIG. 9 is a schematic screen diagram provided by an embodiment of the present application. Referring to Figure 9, assuming that the user triggers a drag operation on the drag line, the position of the drag line after raising the hand is shown in Figure 9, where x represents the distance between the drag line and the left border of the screen, and W represents the edge of the screen. Width, H represents the height of the screen. During the process of the user triggering the drag operation, the value of x changes. After the user triggers the drag operation, the electronic device can determine the value of x to determine the boundary position of the application display area.
又例如,电子设备可以计算调整宽度后应用显示区的顶点位置,如,以屏幕左上顶点为原点,屏幕上边界为X轴,且右为X轴正方向,屏幕左边界为Y轴,且下为Y轴正方向。则电子设备可以确定调整宽度后的应用显示区的左上顶点坐标为(2x-W,0),应用显示区的右下顶点坐标为(x,H)。For another example, the electronic device can calculate the vertex position of the application display area after adjusting the width. For example, the upper left vertex of the screen is the origin, the upper boundary of the screen is the X-axis, and the right is the positive direction of the X-axis, the left boundary of the screen is the Y-axis, and the lower is the positive direction of the Y-axis. Then the electronic device can determine that the coordinates of the upper left vertex of the application display area after adjusting the width are (2x-W, 0), and the coordinates of the lower right vertex of the application display area are (x, H).
S803:电子设备根据计算得到的应用显示区的位置对目标应用的应用界面进行重新布局。S803: The electronic device rearranges the application interface of the target application according to the calculated position of the application display area.
一种可选的实施方式中,电子设备可以根据计算得到的应用显示区的位置对屏幕中的应用显示区进行调整,电子设备可以将调整后的应用显示区的尺寸发送给目标应用,触发目标应用可以根据调整后的应用显示区的尺寸对目标应用的应用界面进行重新布局。In an optional implementation, the electronic device can adjust the application display area on the screen according to the calculated position of the application display area, and the electronic device can send the adjusted size of the application display area to the target application to trigger the target application. The application can rearrange the application interface of the target application according to the adjusted size of the application display area.
需要说明的是,功能区可以看作为用于显示功能应用的区域,则用户触发拖拽操作后,功能区中显示的功能应用的界面也可以进行重新布局,具体实施可以参见图8所示的方法,重复之处不再赘述。It should be noted that the functional area can be regarded as an area for displaying functional applications. After the user triggers a drag operation, the interface of the functional applications displayed in the functional area can also be rearranged. The specific implementation can be seen in Figure 8. Methods will not be repeated again.
在本申请一些实施方式中,目标应用在根据调整后的应用显示区的尺寸重新布局时,当应用显示区的宽度发生变化时,目标应用可以对应用界面中的元素(如图像、控件等)进行缩放;当应用显示区的高度发生变化时,目标应用可以增加或减少应用界面中的元素。例如,参考图7中的(b),当应用显示区的宽度减小时,目标应用可以缩小应用界面中的元素;参考图7中的(c),当应用显示区的宽度增大时,目标应用可以放大应用界面中的元素。In some embodiments of the present application, when the target application is re-layout according to the adjusted size of the application display area, when the width of the application display area changes, the target application can change the elements (such as images, controls, etc.) in the application interface. Perform scaling; when the height of the application display area changes, the target application can add or subtract elements in the application interface. For example, referring to (b) in Figure 7, when the width of the application display area is reduced, the target application can shrink the elements in the application interface; referring to (c) in Figure 7, when the width of the application display area is increased, the target application can Apps can enlarge elements in the app interface.
考虑到有些应用中的元素并不支持缩放后仅部分元素支持缩放,则应用重新布局后的显示效果可能不好,本申请实施例还提供一种调整目标应用布局的方式,以保证调整后的应用显示区中应用界面的显示效果。Considering that elements in some applications do not support scaling and only some elements support scaling, the display effect after the application is re-layout may not be good. Embodiments of the present application also provide a way to adjust the layout of the target application to ensure that the adjusted layout The display effect of the application interface in the application display area.
在该方式中,首先定义两个尺寸:布局尺寸与绘制尺寸,其中,布局尺寸指目标应用感知到的宽和高,是目标应用用于进行布局的尺寸;绘制尺寸指实际绘制在屏幕上的尺寸,也即应用显示区的实际尺寸。图10为申请实施例提供的一种布局尺寸与绘制尺寸的示意图。参考图10在初始状态下,布局尺寸与绘制尺寸的大小相同,布局尺寸的宽为fixed_w,高为h;同样的,绘制尺寸的宽为fixed_w,高为h。In this method, two sizes are first defined: layout size and drawing size. The layout size refers to the width and height perceived by the target application, which is the size used by the target application for layout; the drawing size refers to the actual drawing size on the screen. Size, that is, the actual size of the application display area. FIG. 10 is a schematic diagram of layout dimensions and drawing dimensions provided by the embodiment of the application. Referring to Figure 10, in the initial state, the layout size is the same as the drawing size. The width of the layout size is fixed_w and the height is h. Similarly, the width of the drawing size is fixed_w and the height is h.
当用户在拖拽线上触发拖拽操作,触发电子设备调整应用显示区的宽度时,布局尺寸的宽度可选地不变,仍为fixed_w,但布局尺寸的高度随应用显示区的宽度的增大而减小。图11为本申请实施例提供的一种调整宽度后的布局尺寸与绘制尺寸的示意图。参考图11,电子设备调整应用显示区的宽度后,绘制尺寸的宽为2x-W,高为H;布局尺寸的宽为fixed_w,则缩放比例α满足以下公式:
α=(2x-W)/fixed_w
When the user triggers a drag operation on the drag line and triggers the electronic device to adjust the width of the application display area, the width of the layout size optionally remains fixed_w, but the height of the layout size increases with the width of the application display area. large and reduced. FIG. 11 is a schematic diagram of the layout size and drawing size after adjusting the width according to an embodiment of the present application. Referring to Figure 11, after the electronic device adjusts the width of the application display area, the width of the drawing size is 2x-W and the height is H; the width of the layout size is fixed_w, then the scaling ratio α satisfies the following formula:
α=(2x-W)/fixed_w
布局尺寸的高h满足以下公式:
h=H/α
The height h of the layout size satisfies the following formula:
h=H/α
参考图11,当应用显示区的宽度增大,缩放比例α>1,则电子设备计算布局尺寸的高h减小,此时布局尺寸见图11中阴影部分。可见,布局尺寸的宽未发生变化,但高减小。电子设备确定出布局尺寸后,以布局尺寸进行目标应用的应用界面布局,然后再将应用界面等比例放大至可以完全填充应用显示区。Referring to Figure 11, when the width of the application display area increases and the scaling ratio α>1, the height h of the layout size calculated by the electronic device decreases. At this time, the layout size is shown in the shaded area in Figure 11. It can be seen that the width of the layout size has not changed, but the height has decreased. After the electronic device determines the layout size, it lays out the application interface of the target application based on the layout size, and then enlarges the application interface proportionally until it can completely fill the application display area.
通过该方式,目标应用不需要对应用界面中的元素进行缩放,只需要根据布局尺寸的高度纵向调整应用界面中的元素数量,然后再将应用界面等比例缩放至填充绘制尺寸,避免缩放元素导致的显示异常,提升用户体验。In this way, the target application does not need to scale the elements in the application interface. It only needs to vertically adjust the number of elements in the application interface according to the height of the layout size, and then scale the application interface to fill the drawing size in equal proportions to avoid scaling elements. display abnormalities to improve user experience.
在本申请一些实施例中,电子设备还可以根据目标应用的应用界面中的内容对应用显示区的尺寸进行调整。可选的,当目标应用的应用界面中包含多媒体内容时,电子设备可以响应于用户触发的显示所述多媒体内容的操作,将应用显示区的尺寸增大至第一预设尺寸,并在增大后的应用显示区内显示多媒体内容。电子设备还可以响应于用户触发的退出显示多媒体内容的操作,或者检测到多媒体内容显示完毕,电子设备将应用显示区的尺寸恢复至初始尺寸;其中,该初始尺寸为应用显示区未增大至预设尺寸之前的尺寸。多媒体内容可以包括视频、图像、动图等。例如,图12为本申请实施例提供的一种界面示意图。参考图12,电子设备在应用显示区中显示目标应用,目标应用的应用界面中包括视频播放器,当用户触发播放视频时,电子设备可以增大应用显示区的尺寸,以提升视频播放的效果。当用户触发停止播放视频或视频播放结束时,电子设备可以恢复应用显示区的尺寸至未播放视频时的尺寸。通过该方式,电子设备可以根据目标应用的显示内容灵活调整应用显示区的尺寸,提升屏幕显示效果,进而提升用户体验。In some embodiments of the present application, the electronic device can also adjust the size of the application display area according to the content in the application interface of the target application. Optionally, when the application interface of the target application contains multimedia content, the electronic device may increase the size of the application display area to the first preset size in response to the user-triggered operation of displaying the multimedia content, and then increase the size of the application display area to the first preset size. Multimedia content is displayed in the large application display area. The electronic device may also respond to a user-triggered operation of exiting the display of multimedia content, or detect that the multimedia content has been displayed, and the electronic device restores the size of the application display area to the initial size; where the initial size is when the application display area has not increased to The size before the default size. Multimedia content can include videos, images, animations, etc. For example, FIG. 12 is a schematic diagram of an interface provided by an embodiment of the present application. Referring to Figure 12, the electronic device displays the target application in the application display area. The application interface of the target application includes a video player. When the user triggers video playback, the electronic device can increase the size of the application display area to improve the video playback effect. . When the user triggers to stop playing the video or the video playback ends, the electronic device can restore the size of the application display area to the size when the video is not played. Through this method, the electronic device can flexibly adjust the size of the application display area according to the display content of the target application, thereby improving the screen display effect and thereby improving the user experience.
下面对本申请实施例中的功能区显示的内容以及功能进行进一步介绍:The content and functions displayed in the functional area in the embodiment of this application are further introduced below:
本申请实施例中功能区可以看作为用于显示功能应用的区域,功能应用又可以称为工具应用。功能应用可以提供与所述应用显示区关联的功能的控件,在屏幕中应用显示区之外的区域显示功能应用可以提高屏幕利用率,同时丰富交互方式,提升用户体验。In the embodiment of the present application, the functional area can be regarded as an area for displaying functional applications, and the functional applications can also be called tool applications. Functional applications can provide controls for functions associated with the application display area. Displaying functional applications in areas outside the application display area on the screen can improve screen utilization, enrich interaction methods, and enhance user experience.
参考图6,功能区可以位于屏幕的右侧,当然,功能区也可以位于屏幕的左侧,或者功能区可以占用屏幕中除应用显示区以外的全部区域,又或者功能区可以为一个悬浮的窗口。Referring to Figure 6, the functional area can be located on the right side of the screen. Of course, the functional area can also be located on the left side of the screen, or the functional area can occupy all the areas on the screen except the application display area, or the functional area can be a floating window.
可选地,电子设备可以采用半侧方式或全屏叠底方式显示功能区。其中,图13为本申请实施例提供的一种半侧方式显示功能区的示意图。参考图13,在采用半侧方式显示功能区时,功能区可以占用屏幕的右侧或左侧,该方式占用屏幕位置小,对目标应用的影响较小,且可以将功能区显示的常用功能集中在用户的常用手侧,便于用户操作。在半侧显示功能区的方式中,当用户在拖拽线上触发拖拽操作时,功能应用需要根据用户触发的拖拽操作重新布局,具体实施可以参见图8所示的电子设备调整应用显示区大小的方式,重复之处不再赘述。Optionally, the electronic device may display the functional area in a half-side manner or a full-screen stacked manner. Among them, FIG. 13 is a schematic diagram of a half-side display of a functional area provided by an embodiment of the present application. Referring to Figure 13, when using the half-side method to display the functional area, the functional area can occupy the right or left side of the screen. This method occupies a small screen space, has less impact on the target application, and can display common functions in the functional area. Concentrated on the user's commonly used hand side, it is convenient for users to operate. In the method of displaying the functional area on half side, when the user triggers a drag operation on the drag line, the functional application needs to be re-layout according to the drag operation triggered by the user. For specific implementation, please refer to the electronic device adjustment application display shown in Figure 8. The method of area size will not be repeated here.
图14为本申请实施例提供的一种全屏叠底方式显示功能区的示意图。参考图14,主屏幕对应的图层上方为功能区对应的图层,功能区对应的图层上方为应用显示区对应的图层,功能区中与应用显示区重叠的区域可以增加蒙版,以防止电子设备在响应用户在应用显示区触发的操作时出现错误。功能区采用全屏叠底方式显示时,功能控件可以显示在功能区中与应用显示区不重叠的区域。可见全屏叠底方式下,功能区可以承载更多内容,丰富显示内容。FIG. 14 is a schematic diagram of a full-screen stacked bottom display functional area provided by an embodiment of the present application. Refer to Figure 14. Above the layer corresponding to the main screen is the layer corresponding to the functional area. Above the layer corresponding to the functional area is the layer corresponding to the application display area. Masks can be added to the areas in the functional area that overlap with the application display area. To prevent electronic devices from errors when responding to user-triggered operations in the application display area. When the ribbon is displayed in full-screen overlay mode, function controls can be displayed in the area of the ribbon that does not overlap with the application display area. It can be seen that in the full-screen overlapping mode, the functional area can carry more content and enrich the display content.
下面对本申请实施例中功能区中可以显示的与应用显示区关联的功能分别进行介绍:The functions associated with the application display area that can be displayed in the functional area in the embodiment of the present application are introduced respectively:
1、功能区一键显示/一键隐藏功能1. One-click display/one-click hide function of the functional area
当屏幕上显示应用显示区和功能区时,功能区可以包括隐藏控件,该隐藏控件可以用于触发电子设备隐藏功能区显示的内容,仅保留应用显示区。当电子设备隐藏功能区显示的内容时,功能区可以包括显示控件,该显示控件可以用于触发电子设备显示功能区的内容。When the application display area and the ribbon are displayed on the screen, the ribbon may include a hidden control, and the hidden control may be used to trigger the electronic device to hide the content displayed in the ribbon, leaving only the application display area. When the electronic device hides the content displayed in the ribbon, the ribbon may include a display control, and the display control may be used to trigger the electronic device to display the content of the ribbon.
例如,图15为本申请实施例提供的一种一键显示/一键隐藏功能的示意图。参考图15,用户点击图15中的(a)所示的隐藏控件,电子设备隐藏功能区中的内容;用户点击图15中的(b)所示的显示控件,电子设备显示功能区中的内容。For example, FIG. 15 is a schematic diagram of a one-key display/one-key hiding function provided by an embodiment of the present application. Referring to Figure 15, the user clicks the hidden control shown in (a) in Figure 15, and the electronic device hides the content in the functional area; the user clicks the display control shown in (b) in Figure 15, and the electronic device displays the content in the functional area. content.
2、手势交互功能2. Gesture interaction function
在本申请实施例中,功能区还可以提供手势交互功能。功能区可以作为应用显示区的控制面板,如将功能区作为手势面板,接收用户在功能区触发的滑动、缩放等手势,并将该手势传递至目标应用,目 标应用根据用户在功能区触发的手势做出相应的响应。举例来说,图16为本申请实施例提供的一种功能区接收用户手势控制的示意图。参考图16,用户在功能区触发向上滑动的手势,目标应用调整应用界面向上移动。In this embodiment of the present application, the functional area can also provide gesture interaction functions. The ribbon can be used as a control panel for the application display area. For example, the ribbon can be used as a gesture panel to receive gestures such as sliding and zooming triggered by the user in the ribbon, and pass the gestures to the target application. The icon application responds accordingly based on the gestures triggered by the user in the ribbon. For example, FIG. 16 is a schematic diagram of a functional area receiving user gesture control according to an embodiment of the present application. Referring to Figure 16, the user triggers an upward sliding gesture in the functional area, and the target application adjusts the application interface to move upward.
或者功能区可以显示控制按钮,用户点击控制按钮后,电子设备将用户点击控制按钮的事件传递给目标应用,目标应用做出该事件对应的响应。举例来说,图17为本申请实施例提供的一种功能区显示控制按钮的示意图。参考图17,功能区可以显示用于翻页的控制按钮,用户点击功能区中的控制按钮,目标应用执行翻页动作,显示下一页内容。Or the functional area can display a control button. After the user clicks the control button, the electronic device transmits the event of the user clicking the control button to the target application, and the target application makes a response corresponding to the event. For example, FIG. 17 is a schematic diagram of a functional area display control button provided by an embodiment of the present application. Referring to Figure 17, the functional area can display control buttons for page turning. The user clicks the control button in the functional area, and the target application performs the page turning action and displays the content of the next page.
3、应用快捷功能3. Apply shortcut functions
在本申请实施例中,功能区可以显示快捷功能的控件。快捷功能可以为多个应用共有的功能。例如。图18为本申请实施例提供的一种功能区显示快捷功能的控件的示意图。参考图18中的(a),功能区可以包括扫一扫、刷新界面、升级应用等快捷功能的控件。用户点击图18中的(a)所示的功能区中的扫一扫功能的控件时,电子设备的操作系统调用目标应用的扫一扫功能;用户点击图18中的(a)所示的功能区中的刷新界面功能的控件时,电子设备的操作系统调用目标应用的刷新功能,实现对应用界面的更新;用户点击图18中的(a)所示的功能区中的升级应用功能的控件时,电子设备的操作系统调用目标应用升级应用功能,实现应用版本升级。In this embodiment of the present application, the functional area may display controls for shortcut functions. Shortcut functions can be functions common to multiple applications. For example. Figure 18 is a schematic diagram of a control for displaying shortcut functions in a functional area provided by an embodiment of the present application. Referring to (a) in Figure 18, the functional area can include controls for shortcut functions such as scanning, refreshing the interface, and upgrading applications. When the user clicks the scan function control in the functional area shown in (a) in Figure 18, the operating system of the electronic device calls the scan function of the target application; the user clicks the scan function shown in (a) in Figure 18 When the refresh interface function control is displayed in the functional area, the operating system of the electronic device calls the refresh function of the target application to update the application interface; the user clicks on the upgrade application function in the functional area shown in (a) in Figure 18 When controlling, the operating system of the electronic device calls the target application upgrade application function to implement application version upgrade.
以用户点击图18中的(a)所示的扫一扫功能的控件为例,参考图18中的(b),电子设备可以在屏幕中的左侧空白区域显示目标应用的扫一扫功能对应的界面。参考图18中的(c),电子设备可以将扫一扫功能扫描得到的结果对应的界面显示在屏幕左侧区域,如图18中的(c),电子设备可以将扫一扫功能扫描得到的“用户21”的添加页面显示在屏幕左侧区域。可选地,电子设备在屏幕左侧区域显示扫一扫功能对应的界面或扫一扫功能扫描得到的结果对应的界面时,若确定屏幕左侧区域的尺寸小于设定阈值,此时屏幕左侧显示界面内容时可能出现显示异常,则电子设备可以根据预设比例调整应用显示区和功能区的尺寸,使得屏幕中各个区域布局更加合理,屏幕显示效果更加协调。Take the user clicking the scan function control shown in (a) in Figure 18 as an example. Referring to (b) in Figure 18, the electronic device can display the scan function of the target application in the left blank area of the screen. corresponding interface. Referring to (c) in Figure 18, the electronic device can display the interface corresponding to the result scanned by the scan function on the left area of the screen. As shown in (c) in Figure 18, the electronic device can scan the result obtained by the scan function. The add page of "User 21" is displayed in the left area of the screen. Optionally, when the electronic device displays the interface corresponding to the scan function or the interface corresponding to the scan result obtained by the scan function in the left area of the screen, if it is determined that the size of the area on the left side of the screen is less than the set threshold, then the left area of the screen Display abnormalities may occur when displaying interface content on the side. The electronic device can adjust the size of the application display area and functional area according to the preset ratio, so that the layout of each area on the screen is more reasonable and the screen display effect is more coordinated.
可选的,快捷功能还可以包括目标应用对应的一些快捷功能,也就是说,功能区显示的快捷功能支持应用定制化。例如,图19为本申请实施例提供的一种应用定制化快捷功能的显示示意图。参考图19中的(a),当应用显示区显示的目标应用为即时通信应用程序时,功能区中的快捷功能可以包括:打开最近浏览的小程序、收款、付款等。以用户点击图19中的(a)所示的功能区中的收款功能的控件为例,参考图19中的(b),电子设备可以在屏幕左侧区域显示应用1和应用2的图标,应用1和应用2均可提供收款功能。参考图19中的(c),如用户点击应用1的图标,则电子设备在屏幕左侧区域显示应用1的收款界面。可选地,电子设备在屏幕左侧显示应用1的收款界面时,若确定屏幕左侧区域的尺寸小于设定阈值,此时屏幕左侧显示界面内容时可能出现显示异常,则电子设备可以根据预设比例调整应用显示区和功能区的尺寸,使得屏幕中各个区域布局更加合理,屏幕显示效果更加协调。通过该方式,功能区可以显示目标应用对应的快捷功能的控件,进一步提升功能区的交互能力,提升用户体验。Optionally, shortcut functions may also include some shortcut functions corresponding to the target application. In other words, the shortcut functions displayed in the ribbon support application customization. For example, FIG. 19 is a schematic diagram of a display of an application customized shortcut function provided by an embodiment of the present application. Referring to (a) in Figure 19, when the target application displayed in the application display area is an instant messaging application, the shortcut functions in the functional area may include: opening recently browsed mini programs, collecting money, making payments, etc. Take the user clicking the payment function control in the functional area shown in (a) in Figure 19 as an example. Referring to (b) in Figure 19, the electronic device can display the icons of Application 1 and Application 2 in the left area of the screen. , both App 1 and App 2 can provide payment collection functions. Referring to (c) in Figure 19, if the user clicks the icon of Application 1, the electronic device displays the payment interface of Application 1 in the left area of the screen. Optionally, when the electronic device displays the payment interface of Application 1 on the left side of the screen, if it is determined that the size of the area on the left side of the screen is less than the set threshold, and a display abnormality may occur when the interface content is displayed on the left side of the screen, the electronic device can Adjust the size of the application display area and functional area according to the preset ratio, making the layout of each area on the screen more reasonable and the screen display effect more coordinated. In this way, the ribbon can display controls for shortcut functions corresponding to the target application, further improving the interactive capabilities of the ribbon and improving user experience.
可选地,功能区中显示的快捷功能还可以根据应用显示区中应用界面包含的内容进行调整。例如,当应用界面中播放视频时,功能区可以包括暂停、退出等快捷功能的控件。当应用界面中显示语音时,功能区可以包括语音转写、全选复制等快捷功能的控件。Optionally, the shortcut functions displayed in the ribbon can also be adjusted according to the content contained in the application interface in the application display area. For example, when playing a video in the application interface, the ribbon can include controls for shortcut functions such as pause and exit. When voice is displayed in the application interface, the ribbon can include controls for shortcut functions such as voice transcription, select all and copy.
需要说明的是,为了保证功能区显示效果,防止不同应用定制化的快捷功能的用户界面(user interface,UI)效果不一致,电子设备可以提供功能区中快捷功能的模板和配置文件。应用开发者可以按照电子设备提供的模板提供配置文件,电子设备在启动应用时读取应用对应的配置文件,并根据该配置文件在功能区显示应用对应的快捷功能的控件。It should be noted that in order to ensure the display effect of the functional area and prevent the user interface (UI) effects of customized shortcut functions in different applications from being inconsistent, the electronic device can provide templates and configuration files for the shortcut functions in the functional area. The application developer can provide the configuration file according to the template provided by the electronic device. When the electronic device starts the application, it reads the configuration file corresponding to the application and displays the controls of the shortcut function corresponding to the application in the ribbon according to the configuration file.
例如,电子设备提供的配置文件的模板中可以包括以下至少一项:序号、快捷功能图标、文字说明、触发的事件。图20为本申请实施例提供的一种功能区显示快捷功能的示意图。参考图20,电子设备启动目标应用,并在应用显示区显示目标应用的应用界面时,电子设备读取目标应用的配置文件,按照配置文件中的序号在功能区显示目标应用对应的多个快捷功能的控件。用户点击功能区的快捷功能的控件后,电子设备将用户点击的快捷功能对应的事件传递给目标应用,目标应用执行该事件对应的响应动作。For example, the template of the configuration file provided by the electronic device may include at least one of the following: serial number, shortcut function icon, text description, and triggered event. Figure 20 is a schematic diagram of a functional area displaying shortcut functions provided by an embodiment of the present application. Referring to Figure 20, when the electronic device starts the target application and displays the application interface of the target application in the application display area, the electronic device reads the configuration file of the target application and displays multiple shortcuts corresponding to the target application in the functional area according to the serial numbers in the configuration file. Functional controls. After the user clicks the control of the shortcut function in the ribbon, the electronic device transmits the event corresponding to the shortcut function clicked by the user to the target application, and the target application executes the response action corresponding to the event.
4、图片仓库功能4. Picture warehouse function
本申请实施例还提供一种图片仓库功能,图片仓库功能可以为用户提供一种便捷的截图触发方式,并将截图得到的图像保存在临时的图片仓库(又称图仓)中,便于用户随时查看。Embodiments of the present application also provide a picture warehouse function. The picture warehouse function can provide users with a convenient way to trigger screenshots, and save the images obtained by screenshots in a temporary picture warehouse (also called a picture warehouse), which is convenient for users to use at any time. Check.
图21为本申请实施例提供的一种功能区显示截图功能以及图仓的示意图。参考图21,用户点击功 能区中的截图功能,电子设备可以执行截图动作,并将截图得到的图像存储到图仓中。可选地,本申请实施例中电子设备可以截取当前屏幕中的单图,例如电子设备截取应用界面的焦点窗口中面积最大的图像;或者电子设备可以截取整个屏幕中显示的内容,如电子设备调用操作系统的截图功能截取包含整个屏幕显示内容的图像;或者电子设备可以截取长图,如电子设备调用操作系统的截长图功能,得到长图;或者电子设备可以截取应用显示区中应用界面对应的图像,如电子设备回调目标应用的生成图像接口,获取当前应用界面对应图像。Figure 21 is a schematic diagram of a functional area display screenshot function and a picture warehouse provided by an embodiment of the present application. Referring to Figure 21, the user click function With the screenshot function in the energy area, the electronic device can perform the screenshot action and store the image obtained by the screenshot into the image warehouse. Optionally, in the embodiment of the present application, the electronic device can capture a single image in the current screen, for example, the electronic device captures the image with the largest area in the focus window of the application interface; or the electronic device can capture the content displayed on the entire screen, such as the electronic device Call the screenshot function of the operating system to intercept an image containing the entire screen display content; or the electronic device can intercept a long image, for example, the electronic device calls the screenshot function of the operating system to obtain a long image; or the electronic device can intercept the application interface in the application display area The corresponding image, for example, the electronic device calls back the generated image interface of the target application to obtain the corresponding image of the current application interface.
可以理解的是,本申请实施例对电子设备截图的方式以及截取的图像并不进行限定,具体实施中可以根据应用场景进行设置。It can be understood that the embodiments of the present application do not limit the method of taking screenshots of electronic devices and the captured images. In specific implementation, settings can be made according to application scenarios.
电子设备进行截图得到的图像可以保存至图仓中,用户点击功能区中的图仓后,电子设备可以显示图仓中的图像。The image obtained by taking a screenshot of the electronic device can be saved in the image warehouse. After the user clicks the image warehouse in the functional area, the electronic device can display the image in the image warehouse.
一种可选的实施方式中,电子设备可以显示悬浮窗口,并在悬浮窗口中打开图仓,并显示图仓中的图像。例如,图22为本申请实施例提供的一种图仓的显示示意图,参考图22,电子设备可以在屏幕上显示悬浮窗口,为避免悬浮窗口遮挡应用显示区,电子设备可以在应用显示区未占用的区域显示悬浮窗口,如在左侧的空白区域或功能区显示悬浮窗口。图22中以在左侧的空白区域显示悬浮窗口为例,悬浮窗口中可以显示图仓中的图像,用户点击其中一张图像后,电子设备可以在悬浮窗口中显示放大的图像。In an optional implementation, the electronic device can display a floating window, open a picture bin in the floating window, and display the image in the picture bin. For example, Figure 22 is a schematic display diagram of a picture warehouse provided by an embodiment of the present application. Referring to Figure 22, the electronic device can display a floating window on the screen. To prevent the floating window from blocking the application display area, the electronic device can display a floating window in the application display area. A floating window is displayed in the occupied area, such as a floating window displayed in the left blank area or ribbon. Figure 22 shows an example of displaying a floating window in the blank area on the left. Images in the image warehouse can be displayed in the floating window. After the user clicks on one of the images, the electronic device can display the enlarged image in the floating window.
另一种可选的实施方式中,电子设备可以移动应用显示区的位置,并增大功能区的尺寸至第二预设尺寸,在增大尺寸后的功能区中打开图仓,并显示图仓中的图像。例如,图23为本申请实施例提供的又一种图仓的显示示意图。用户在图21所示的功能区中点击图仓后,参考图23,电子设备将应用显示区移动至屏幕左侧,并增大功能区的尺寸。电子设备在增大尺寸后的功能区显示图仓中的图像,用户点击其中一张图像后,电子设备可以在功能区显示放大的图像。In another optional implementation, the electronic device can move the position of the application display area, increase the size of the functional area to the second preset size, open the image bin in the increased size functional area, and display the image. Images in the warehouse. For example, FIG. 23 is a schematic diagram of the display of another image bin provided by an embodiment of the present application. After the user clicks on the picture bin in the functional area shown in Figure 21, referring to Figure 23, the electronic device moves the application display area to the left side of the screen and increases the size of the functional area. The electronic device displays the images in the image bin in the enlarged functional area. After the user clicks one of the images, the electronic device can display the enlarged image in the functional area.
在本申请实施例中,电子设备可以在设定时长后删除图仓中的图像,或者电子设备在退出目标应用时删除图仓中的图像,从而节省电子设备的存储空间。可选地,用户还可以选择图仓中需要继续保存的目标图像,电子设备可以将图仓中目标图像之外的其它图像进行删除。In the embodiment of the present application, the electronic device can delete the images in the image bin after a set period of time, or the electronic device can delete the images in the image bin when exiting the target application, thereby saving the storage space of the electronic device. Optionally, the user can also select a target image in the image warehouse that needs to be saved, and the electronic device can delete other images in the image warehouse except the target image.
通过以上设计,电子设备在功能区提供一种便捷截图以及查看图像的方式,可以应用于购物应用场景,如截图多个商品页面,用户可以点击图仓查看截图得到的图像,方便用户对多个商品进行比价,节省用户操作步骤,提升用户体验。Through the above design, the electronic device provides a convenient way to take screenshots and view images in the functional area, which can be applied to shopping application scenarios, such as taking screenshots of multiple product pages. The user can click on the image bin to view the images obtained by the screenshots, making it convenient for users to view multiple screenshots. Compare prices of products, saving users steps and improving user experience.
基于本申请实施例提供的应用显示方法,电子设备在生成应用快照时,如电子设备在最近使用应用界面中显示应用快照,电子设备可以截取当前屏幕显示的所有内容作为应用快照,或者电子设备可以仅截取应用显示区中的应用界面作为应用快照,并且在应用快照附近显示功能区中的内容。例如,图24为本申请实施例提供的一种应用快照的示意图。参考图24,电子设备可以截取应用显示区中的应用界面作为应用快照,并在该应用快照的右侧显示功能区中的快捷功能。Based on the application display method provided by the embodiment of the present application, when the electronic device generates an application snapshot, such as the electronic device displays the application snapshot in the recently used application interface, the electronic device can intercept all the content displayed on the current screen as an application snapshot, or the electronic device can Only the application interface in the application display area is captured as an application snapshot, and the content in the ribbon is displayed near the application snapshot. For example, FIG. 24 is a schematic diagram of an application snapshot provided by an embodiment of the present application. Referring to Figure 24, the electronic device can intercept the application interface in the application display area as an application snapshot, and display the shortcut functions in the functional area on the right side of the application snapshot.
在本申请一些实施例中,电子设备显示如图6所示的应用显示区和功能区时,用户可以在拖拽线上触发拖拽操作以调整应用显示区的宽度,从而得到在应用显示区中显示目标应用的最佳效果。电子设备可以在退出目标应用时保存应用显示区的尺寸作为目标应用对应的应用显示区的目标尺寸,并在用户下一次打开目标应用时,将应用显示区设置为目标尺寸,从而无需用户再次调整应用显示区的尺寸,提升用户体验。In some embodiments of the present application, when the electronic device displays the application display area and functional area as shown in Figure 6, the user can trigger a drag operation on the drag line to adjust the width of the application display area, thereby obtaining the application display area. Shows the best results for the target application. The electronic device can save the size of the application display area as the target size of the application display area corresponding to the target application when exiting the target application, and set the application display area to the target size when the user opens the target application next time, thereby eliminating the need for the user to adjust it again. Apply the size of the display area to improve user experience.
在一些场景中,电子设备的屏幕可以有多种形态和尺寸,如可折叠手机的屏幕在展开状态和折叠状态下的尺寸不同。电子设备可以保存不同屏幕形态下应用显示区的尺寸,并在屏幕形态切换时,根据电子设备保存的应用显示区的尺寸调整应用显示区。例如,图25为本申请实施例提供的一种折叠屏电子设备显示应用显示区的示意图。参考图25,在折叠屏电子设备的屏幕展开状态下,电子设备显示应用显示区,应用显示区中显示目标应用。用户折叠电子设备时,电子设备保存目标应用对应的应用显示区的尺寸,并在屏幕折叠状态下,全屏显示目标应用。当用户再次展开电子设备时,电子设备将应用显示区的尺寸设置为电子设备保存的目标应用对应的应用显示区尺寸,并在应用显示区中显示目标应用。In some scenarios, the screens of electronic devices can have multiple shapes and sizes. For example, the screen of a foldable mobile phone has different sizes in the unfolded state and the folded state. The electronic device can save the size of the application display area under different screen forms, and when the screen form is switched, adjust the application display area according to the size of the application display area saved by the electronic device. For example, FIG. 25 is a schematic diagram of an application display area displayed on a folding screen electronic device provided by an embodiment of the present application. Referring to Figure 25, when the screen of the folding screen electronic device is expanded, the electronic device displays an application display area, and the target application is displayed in the application display area. When the user folds the electronic device, the electronic device saves the size of the application display area corresponding to the target application, and displays the target application in full screen in the screen folding state. When the user expands the electronic device again, the electronic device sets the size of the application display area to the size of the application display area corresponding to the target application saved by the electronic device, and displays the target application in the application display area.
基于相同的设计构思,由于电子设备的类型多样,不同电子设备之间屏幕的形状或尺寸可能相同,也可能不同,且同一应用在不同尺寸的屏幕上,获取最佳显示效果的应用显示区的尺寸也不同。因此, 本申请实施例还提供一种设备间共享应用显示区尺寸的方式。Based on the same design concept, due to the various types of electronic devices, the shape or size of the screens between different electronic devices may be the same or different, and the same application is used on screens of different sizes to obtain the best display effect of the application display area. The sizes are also different. therefore, The embodiment of the present application also provides a method for sharing the application display area size between devices.
在该方式中,电子设备在应用显示区显示目标应用,用户调整应用显示区的尺寸后,电子设备可以将目标应用以及应用显示区的尺寸参数保存至本地,如表1为本申请实施例提供的一种电子设备在本地保存的数据示例。In this method, the electronic device displays the target application in the application display area. After the user adjusts the size of the application display area, the electronic device can save the target application and the size parameters of the application display area locally, as shown in Table 1 for embodiments of the present application. An example of data stored locally on an electronic device.
表1电子设备本地保存的数据
Table 1 Data stored locally on electronic devices
其中,表1所示的数据中应用显示区的尺寸以应用显示区在屏幕上的左右位置为例,如25%-75%是指,屏幕宽度为W时,应用显示区占用1/4W-3/4W的区域。Among them, the size of the application display area in the data shown in Table 1 takes the left and right positions of the application display area on the screen as an example. For example, 25%-75% means that when the screen width is W, the application display area occupies 1/4W- 3/4W area.
电子设备还可以将目标应用标识、电子设备的屏幕参数以及应用显示区的尺寸参数等发送给云端服务器,如表2为本申请实施例提供的一种电子设备向云端服务器发送的数据示例。The electronic device can also send the target application identifier, the screen parameters of the electronic device, and the size parameters of the application display area to the cloud server. Table 2 is an example of data sent by an electronic device to the cloud server according to the embodiment of the present application.
表2电子设备向云端服务器发送的数据
Table 2 Data sent by electronic devices to cloud servers
云端服务器可以保存电子设备发送的数据,并基于统计算法对云端服务器中保存的数据进行统计分析,确定每种屏幕尺寸下目标应用对应的应用显示区的最优尺寸参数。如表3为本申请实施例提供的一种电子设备向云端服务器发送的数据示例。The cloud server can save the data sent by the electronic device, and perform statistical analysis on the data saved in the cloud server based on statistical algorithms to determine the optimal size parameters of the application display area corresponding to the target application under each screen size. Table 3 is an example of data sent by an electronic device to a cloud server according to an embodiment of the present application.
表3电子设备向云端服务器发送的数据
Table 3 Data sent by electronic devices to cloud servers
电子设备在初次启动目标应用时,可以向云端服务器发送请求消息,请求消息中可以包括目标应用的应用包名以及电子设备的屏幕尺寸。云端服务器可以向电子设备返回目标尺寸,该目标尺寸可以为目标应用对应的应用显示区的常用尺寸。电子设备将应用显示区的尺寸设置为目标尺寸,并在应用显示区显示目标应用。通过该设计,多个电子设备之间可以共享应用显示区的尺寸参数,从而基于大数据分析,使电子设备在初次启动应用时,可以向用户展示最被大众认可的显示效果,提升用户体验。When the electronic device starts the target application for the first time, it may send a request message to the cloud server. The request message may include the application package name of the target application and the screen size of the electronic device. The cloud server can return the target size to the electronic device, and the target size can be a common size of the application display area corresponding to the target application. The electronic device sets the size of the application display area to the target size and displays the target application in the application display area. Through this design, multiple electronic devices can share the size parameters of the application display area, so that based on big data analysis, the electronic device can show the user the most recognized display effect when starting the application for the first time, improving the user experience.
基于以上实施例,本申请还提供一种电子设备,所述电子设备包括多个功能模块;所述多个功能模块相互作用,实现本申请实施例所描述的各方法。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to implement the methods described in the embodiments of this application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.
基于以上实施例,本申请还提供一种电子设备,该电子设备包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述电子设备运行时,所述至少一个处理器执行本申请实施例所描述的各方法。Based on the above embodiments, this application also provides an electronic device. The electronic device includes at least one processor and at least one memory. Computer program instructions are stored in the at least one memory. When the electronic device is running, the at least one processing The processor executes each method described in the embodiments of this application.
基于以上实施例,本申请还提供一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行本申请实施例所描述的各方法。Based on the above embodiments, this application also provides a computer program, which when the computer program is run on a computer, causes the computer to execute the methods described in the embodiments of this application.
基于以上实施例,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行本申请实施例所描述的各方法。 Based on the above embodiments, the present application also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, the computer is caused to execute the embodiments of the present application. Each method is described.
基于以上实施例,本申请还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现本申请实施例所描述的各方法。Based on the above embodiments, this application also provides a chip, which is used to read the computer program stored in the memory and implement the methods described in the embodiments of this application.
基于以上实施例,本申请提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现本申请实施例所描述的各方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, this application provides a chip system. The chip system includes a processor and is used to support a computer device to implement the methods described in the embodiments of this application. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The chip system may be composed of chips, or may include chips and other discrete devices.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the protection scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (19)

  1. 一种应用显示方法,其特征在于,应用于电子设备,所述方法包括:An application display method, characterized in that it is applied to electronic equipment, and the method includes:
    响应于用户触发的第一操作,在屏幕中显示应用显示区和功能区;所述功能区用于显示与所述应用显示区关联的控件;In response to the first operation triggered by the user, display an application display area and a functional area on the screen; the functional area is used to display controls associated with the application display area;
    在所述应用显示区显示所述目标应用的应用界面。The application interface of the target application is displayed in the application display area.
  2. 如权利要求1所述的方法,其特征在于,在所述应用显示区显示所述目标应用的应用界面之后,所述方法还包括:The method of claim 1, wherein after the application display area displays the application interface of the target application, the method further includes:
    响应于所述用户触发的第二操作,根据所述第二操作调整所述应用显示区的尺寸;In response to the second operation triggered by the user, adjust the size of the application display area according to the second operation;
    根据调整后的应用显示区的尺寸重新布局所述目标应用的应用界面。Relayout the application interface of the target application according to the adjusted size of the application display area.
  3. 如权利要求2所述的方法,其特征在于,所述根据调整后的应用显示区的尺寸重新布局所述目标应用的应用界面,包括:The method of claim 2, wherein re-laying out the application interface of the target application according to the adjusted size of the application display area includes:
    根据调整后的应用显示区的宽度和所述目标应用的应用界面的布局尺寸的宽度确定所述布局尺寸的高度;Determine the height of the layout size according to the width of the adjusted application display area and the width of the layout size of the application interface of the target application;
    根据所述布局尺寸的宽度和所述布局尺寸的高度重新布局所述目标应用的应用界面;Relayout the application interface of the target application according to the width of the layout size and the height of the layout size;
    将重新布局后的所述目标应用的应用界面等比例扩大至填充所述调整后的应用显示区。The re-layout application interface of the target application is enlarged in equal proportions to fill the adjusted application display area.
  4. 如权利要求3所述的方法,其特征在于,所述根据调整后的应用显示区的宽度和所述目标应用的应用界面的布局尺寸的宽度确定所述布局尺寸的高度,包括:The method of claim 3, wherein determining the height of the layout size based on the adjusted width of the application display area and the width of the layout size of the application interface of the target application includes:
    根据调整后的应用显示区的宽度和所述目标应用的应用界面的布局尺寸的宽度确定调整比例;Determine the adjustment ratio according to the width of the adjusted application display area and the width of the layout size of the application interface of the target application;
    根据所述调整比例和所述屏幕的高度确定所述布局尺寸的高度。The height of the layout size is determined based on the adjustment ratio and the height of the screen.
  5. 如权利要求1-4中任一项所述的方法,其特征在于,所述目标应用的应用界面中包括多媒体内容,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that the application interface of the target application includes multimedia content, and the method further includes:
    响应于所述用户触发的第三操作,确定所述应用显示区的初始尺寸小于第一预设尺寸,将所述应用显示区的尺寸从初始尺寸调整为第一预设尺寸,并在第一预设尺寸的应用显示区内显示所述多媒体内容;In response to the third operation triggered by the user, it is determined that the initial size of the application display area is smaller than the first preset size, the size of the application display area is adjusted from the initial size to the first preset size, and in the first Display the multimedia content in an application display area of a preset size;
    响应于所述用户触发的第四操作,或检测到所述多媒体内容显示完毕,将所述应用显示区的尺寸恢复至所述初始尺寸。In response to the fourth operation triggered by the user, or detecting that the multimedia content has been displayed, the size of the application display area is restored to the initial size.
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述功能区包括第一控件或第二控件;所述方法还包括:The method according to any one of claims 1 to 5, characterized in that the functional area includes a first control or a second control; the method further includes:
    响应于所述用户触发的作用于所述第一控件的第五操作,隐藏所述功能区中的内容;或者In response to a fifth operation triggered by the user that acts on the first control, hiding the content in the functional area; or
    响应于所述用户触发的作用于所述第二控件的第六操作,显示所述功能区中的内容。In response to a sixth operation triggered by the user that acts on the second control, content in the functional area is displayed.
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that the method further includes:
    检测所述用户在所述功能区触发的手势,将所述手势传递至所述目标应用,以使所述目标应用执行所述手势对应的响应动作。Detect the gesture triggered by the user in the functional area, and transfer the gesture to the target application, so that the target application performs a response action corresponding to the gesture.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, characterized in that the method further includes:
    在所述功能区显示至少一个快捷功能的控件;Display at least one shortcut function control in the functional area;
    其中,所述至少一个快捷功能包括以下至少一项:Wherein, the at least one shortcut function includes at least one of the following:
    所述电子设备中安装的多个应用共有的功能;Functions shared by multiple applications installed in the electronic device;
    所述目标应用对应的快捷功能;或The shortcut function corresponding to the target application; or
    所述目标应用的应用界面包含的内容对应的快捷功能。The shortcut function corresponding to the content contained in the application interface of the target application.
  9. 如权利要求1-8任一项所述的方法,其特征在于,所述功能区包括第三控件;所述方法还包括:The method according to any one of claims 1 to 8, wherein the functional area includes a third control; the method further includes:
    响应于所述用户触发的作用于所述第三控件的第七操作,执行截图动作,并将截图得到的图像保存至第一应用中。In response to the seventh operation on the third control triggered by the user, a screenshot action is performed, and the image obtained by the screenshot is saved to the first application.
  10. 如权利要求9所述的方法,其特征在于,所述功能区包括所述第一应用的图标,所述方法还包括:The method of claim 9, wherein the functional area includes an icon of the first application, and the method further includes:
    响应于所述用户触发的作用于所述第一应用的图标的第八操作,显示悬浮窗口,并在所述悬浮窗口中显示所述第一应用中保存的图像,或者In response to an eighth operation triggered by the user that acts on the icon of the first application, a floating window is displayed, and an image saved in the first application is displayed in the floating window, or
    响应于所述用户触发的作用于所述第一应用的图标的第八操作,在所述功能区中显示所述第一应用中保存的图像。 In response to an eighth operation triggered by the user that acts on the icon of the first application, the image saved in the first application is displayed in the functional area.
  11. 如权利要求10所述的方法,其特征在于,所述在所述功能区中显示所述第一应用中保存的图像之前,所述方法还包括:The method of claim 10, wherein before displaying the image saved in the first application in the functional area, the method further includes:
    确定所述功能区的尺寸小于第二预设尺寸,将所述功能区的尺寸调整为第二预设尺寸。It is determined that the size of the functional area is smaller than the second preset size, and the size of the functional area is adjusted to the second preset size.
  12. 如权利要求10或11所述的方法,其特征在于,所述方法还包括:The method according to claim 10 or 11, characterized in that the method further includes:
    响应于所述用户触发的作用于目标图像的第九操作,删除所述第一应用中保存的除所述目标图像之外的图像;和/或,In response to the ninth operation triggered by the user that acts on the target image, delete images other than the target image saved in the first application; and/or,
    响应于所述用户触发的第十操作,停止显示所述目标应用,并删除所述第一应用中保存的图像。In response to the tenth operation triggered by the user, display of the target application is stopped, and the image saved in the first application is deleted.
  13. 如权利要求1-12任一项所述的方法,其特征在于,所述在屏幕上显示应用显示区,包括:The method according to any one of claims 1 to 12, characterized in that displaying the application display area on the screen includes:
    查找所述目标应用对应的应用显示区的目标尺寸,将所述应用显示区的尺寸设置为所述目标尺寸,显示所述应用显示区;Find the target size of the application display area corresponding to the target application, set the size of the application display area to the target size, and display the application display area;
    其中,所述目标尺寸为所述电子设备上一次退出所述目标应用时保存的应用显示区的尺寸,或所述目标尺寸为所述电子设备从服务器上获取的所述目标应用对应的应用显示区的尺寸。Wherein, the target size is the size of the application display area saved when the electronic device last exited the target application, or the target size is the application display corresponding to the target application obtained by the electronic device from the server. area size.
  14. 如权利要求1-13任一项所述的方法,其特征在于,The method according to any one of claims 1-13, characterized in that,
    所述功能区位于所述应用显示区的左侧;或者The functional area is located on the left side of the application display area; or
    所述功能区位于所述应用显示区的右侧;或者The functional area is located on the right side of the application display area; or
    所述功能区占用所述屏幕中除应用显示区以外的全部区域;或者The functional area occupies all areas of the screen except the application display area; or
    所述功能区为所述屏幕上的悬浮窗口。The functional area is a floating window on the screen.
  15. 如权利要求1-13任一项所述的方法,其特征在于,显示所述功能区,包括:The method according to any one of claims 1-13, characterized in that displaying the functional area includes:
    采用半侧方式在所述屏幕的左侧或右侧显示所述功能区;或者Display the functional area on the left or right side of the screen in a half-side manner; or
    采用全屏叠底方式在所述应用显示区对应的图层下显示所述功能区对应的图层。The layer corresponding to the functional area is displayed under the layer corresponding to the application display area in a full-screen overlapping manner.
  16. 一种电子设备,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于读取所述至少一个存储器所存储的计算机程序,以执行如权利要求1-15中任一所述的方法。An electronic device, characterized in that it includes at least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read a computer program stored in the at least one memory to execute as follows: The method of any one of claims 1-15.
  17. 一种电子设备,其特征在于,包括多个功能模块;所述多个功能模块相互作用,实现如权利要求1-15中任一所述的方法。An electronic device, characterized by comprising a plurality of functional modules; the plurality of functional modules interact to implement the method as described in any one of claims 1-15.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1-15中任一所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores instructions, which when run on a computer, cause the computer to execute the method as described in any one of claims 1-15.
  19. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行如权利要求1-15中任一所述的方法。 A computer program product containing instructions, characterized in that, when the computer program product is run on a computer, it causes the computer to execute the method according to any one of claims 1-15.
PCT/CN2023/108113 2022-07-30 2023-07-19 Application display method and electronic device WO2024027504A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210911664.8 2022-07-30
CN202210911664.8A CN117519858A (en) 2022-07-30 2022-07-30 Application display method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024027504A1 true WO2024027504A1 (en) 2024-02-08

Family

ID=89750046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108113 WO2024027504A1 (en) 2022-07-30 2023-07-19 Application display method and electronic device

Country Status (2)

Country Link
CN (1) CN117519858A (en)
WO (1) WO2024027504A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661917A (en) * 2019-08-07 2020-01-07 华为技术有限公司 Display method and electronic equipment
CN112583957A (en) * 2019-09-30 2021-03-30 华为技术有限公司 Display method of electronic device, electronic device and computer-readable storage medium
WO2022022575A1 (en) * 2020-07-31 2022-02-03 华为技术有限公司 Display control method and apparatus, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661917A (en) * 2019-08-07 2020-01-07 华为技术有限公司 Display method and electronic equipment
CN112583957A (en) * 2019-09-30 2021-03-30 华为技术有限公司 Display method of electronic device, electronic device and computer-readable storage medium
WO2022022575A1 (en) * 2020-07-31 2022-02-03 华为技术有限公司 Display control method and apparatus, and storage medium

Also Published As

Publication number Publication date
CN117519858A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
US20230325067A1 (en) Cross-device object drag method and device
US20230099824A1 (en) Interface layout method, apparatus, and system
WO2021023021A1 (en) Display method and electronic device
US20210048939A1 (en) Icon display method, device, and terminal
WO2021036628A1 (en) Touch-control method for device with folding screen, and folding-screen device
WO2021057868A1 (en) Interface switching method and electronic device
CN111966252A (en) Application window display method and electronic equipment
WO2021115194A1 (en) Application icon display method and electronic device
US20230362294A1 (en) Window Display Method and Device
KR20210068097A (en) Method for controlling display of system navigation bar, graphical user interface and electronic device
WO2022057512A1 (en) Split-screen method and apparatus, and electronic device
JP2023506936A (en) MULTI-SCREEN COOPERATION METHOD AND SYSTEM AND ELECTRONIC DEVICE
US20220374118A1 (en) Display Method and Electronic Device
US20230353862A1 (en) Image capture method, graphic user interface, and electronic device
CN114666427B (en) Image display method, electronic equipment and storage medium
EP4365722A1 (en) Method for displaying dock bar in launcher and electronic device
WO2024027504A1 (en) Application display method and electronic device
CN116204254A (en) Annotating page generation method, electronic equipment and storage medium
WO2023051354A1 (en) Split-screen display method and electronic device
WO2023217142A1 (en) Window size adjustment method, and related apparatus and communication system
WO2024012354A1 (en) Display method and electronic device
WO2024007966A1 (en) Multi-window display method and device
WO2024036998A1 (en) Display method, storage medium, and electronic device
CN114968423B (en) Long page screen capturing method and electronic equipment
WO2024008017A1 (en) Content sharing method, and graphical interface and related apparatus

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: 23849212

Country of ref document: EP

Kind code of ref document: A1