WO2022222688A1 - 一种窗口控制方法及其设备 - Google Patents

一种窗口控制方法及其设备 Download PDF

Info

Publication number
WO2022222688A1
WO2022222688A1 PCT/CN2022/083023 CN2022083023W WO2022222688A1 WO 2022222688 A1 WO2022222688 A1 WO 2022222688A1 CN 2022083023 W CN2022083023 W CN 2022083023W WO 2022222688 A1 WO2022222688 A1 WO 2022222688A1
Authority
WO
WIPO (PCT)
Prior art keywords
free window
user
application
window
terminal device
Prior art date
Application number
PCT/CN2022/083023
Other languages
English (en)
French (fr)
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 WO2022222688A1 publication Critical patent/WO2022222688A1/zh

Links

Images

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/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/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
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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
    • G06F3/0485Scrolling or panning
    • 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

Definitions

  • the present application relates to the field of terminals, and in particular, to a window control method and device thereof.
  • a terminal device represented by a mobile phone may adopt a freeform mode.
  • the mobile phone can display the application interface of the application selected by the user (for example, a video application) in the free window.
  • the mobile phone can enlarge and shrink the free window in equal proportions according to the operation of the user.
  • the free window is usually small, and the user may not see clearly or take time to find the content of interest in the zoomed free window (especially the reduced free window).
  • the content that the user pays attention to may be the video being played, and the user needs to reduce the size of the free window during use, which results in The display area occupied is smaller, and the user experience is poor.
  • a window control method and device thereof are proposed, which at least solve the above-mentioned technical problem that the content that the user pays attention to occupies a small area.
  • an embodiment of the present application provides a window control method, the method includes: displaying a first application interface of a selected first application in a free window; receiving a user's first operation; responding to the The first operation is to perform a cropping operation on the free window; a second application interface is displayed in the cropped free window, wherein the second application interface includes part of the content of the first application interface.
  • the user can perform cropping on the free window according to the user's operation and display only part of the content in the cropped free window, which not only satisfies the user's need for the display area.
  • the needs of the user can also highlight the content that the user needs.
  • the first operation includes a triggering operation by the user on a first control on the first application interface, where the first control is used to instruct the free window to perform focused display.
  • the window control method of the embodiment of the present application can directly use controls to realize focused display, which reduces user operations and improves user experience.
  • the first operation includes the user using a user part or an input device to slide upward along the free window at a speed exceeding a preset speed and/or leaving the free window after exceeding a preset sliding distance operate.
  • the window control method of the embodiment of the present application can utilize the above specific user operation to directly cut the free window to the size of only displaying part of the content, thereby reducing user operation and improving user experience.
  • performing a cropping operation on the free window includes: cropping the length of the free window while keeping the width of the free window unchanged to the length required to display the partial content in the first application interface.
  • the window control method of the embodiment of the present application can display the partial content in as large an area as possible, while saving the display area of the free window on the screen.
  • the first operation includes sliding upward a first distance from the lower border of the free window in a vertical direction.
  • the window control method of the embodiment of the present application can adjust the size of the free window more flexibly to meet user requirements.
  • performing a cropping operation on the free window includes: cropping the free window with the free window while keeping the width of the free window unchanged. The cutting length corresponding to the first distance.
  • the window control method of the embodiment of the present application can use the sliding distance to determine the cropping length, and then crop the application interface, so that application interfaces with different layouts can be cropped and the cropped window can display the content of interest to the user.
  • the method further includes: receiving a second operation of the user;
  • the free window performs zoom operations.
  • the window display method of the embodiment of the present application can also perform a scaling operation on the clipped free window, which can satisfy more demands of the user for the free window and improve the user experience.
  • the method further includes: determining partial content corresponding to the service provided by the first application.
  • the window display method of the embodiment of the present application can determine the type of the partial content according to the service provided by the application program, so that the content of interest to the user can be displayed more accurately, and the user experience can be improved.
  • the partial content is displayed at the top of the clipped free window.
  • the method may display the partial area at the top of the cropped free window.
  • the first application includes a video application
  • the first application interface includes video and other content other than the video
  • the partial content includes a video played on the first application interface
  • the window control method can display video content in the trimmed window, so as to meet user requirements.
  • embodiments of the present application provide a non-volatile computer-readable storage medium on which computer program instructions are stored, characterized in that, when the computer program instructions are executed by a processor, the above-mentioned first aspect is implemented Or one or more of the various possible implementation manners of the first aspect.
  • embodiments of the present application provide a terminal device, including: a processor, a memory, and a touch screen, the memory and the touch screen are coupled to the processor, the memory is used for storing computer program codes, and the The calculator-level code includes computer instructions, and when the processor executes the computer instructions, the terminal device executes the first aspect or one or more of the possible implementations of the first aspect. .
  • embodiments of the present application provide a computer program product that, when the computer program product runs on a computer, enables the computer to execute the first aspect or any of the various possible implementations of the first aspect. one or more of the methods.
  • FIG. 1 shows a schematic structural diagram of a terminal device according to an embodiment of the present application
  • FIG. 2 shows a block diagram of a software structure of a terminal device according to an embodiment of the present application
  • FIG. 3 shows a schematic interface diagram of a terminal device provided by the present application
  • Fig. 4 shows the interface schematic diagram of the terminal device provided by the present application
  • FIG. 5 shows a schematic interface diagram of a terminal device provided by the present application
  • FIG. 6 shows a schematic interface diagram of a terminal device provided by the present application
  • FIG. 7 shows a schematic interface diagram of a terminal device provided by the present application.
  • FIG. 8 shows a schematic interface diagram of a terminal device provided by the present application.
  • FIG. 9 shows a schematic interface diagram of a terminal device provided by the present application.
  • FIG. 10 shows a schematic interface diagram of a terminal device provided by the present application.
  • FIG. 11 shows a schematic interface diagram of a terminal device provided by the present application.
  • FIG. 12 shows a diagram of determining a cutting length according to an embodiment of the present application.
  • FIG. 13 shows a diagram of determining a content location according to an embodiment of the present application
  • FIG. 14 shows a flowchart of steps of a window control method according to an embodiment of the present application.
  • FIG. 15 shows a flowchart of steps of a window control method according to an embodiment of the present application.
  • FIG. 16 shows a flowchart of steps of a window control method according to an embodiment of the present application
  • FIG. 17 shows a flowchart of steps of a window control method according to an embodiment of the present application.
  • “/” may indicate that the objects associated before and after are an “or” relationship, for example, A/B may indicate A or B; “and/or” may be used to describe that there are three types of associated objects A relationship, for example, A and/or B, can mean that A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
  • words such as “first” and “second” may be used to distinguish technical features with the same or similar functions. The words “first”, “second” and the like do not limit the quantity and execution order, and the words “first”, “second” and the like do not limit the difference.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations, and any embodiment or design solution described as “exemplary” or “for example” should not be construed are preferred or advantageous over other embodiments or designs.
  • the use of words such as “exemplary” or “such as” is intended to present the relevant concepts in a specific manner to facilitate understanding.
  • the user starts the free window mode in the mobile phone and selects the application displayed in the free window, but the size of the free window is usually smaller than the screen of the mobile phone.
  • the user may not be able to see the application interface in the free window.
  • the application interface of a video application is displayed in a free window
  • the video application is playing a video
  • the user may not be able to see the video played in the free window.
  • the text description below the playing video is probably not of interest, but the text part may take up a large display area.
  • the video displayed in the free window is smaller for the user.
  • the present application provides a window control method, in which a user can use a free window to display an application interface of an application, according to the user's operation, perform cropping on the free window and display only part of the content in the cropped free window, which not only satisfies the requirement
  • the user's needs for the display area can in turn highlight the content that the user needs.
  • the window control method provided by the present application can produce a focused display effect, which means that only content of interest to the user is displayed or displayed in a maximum proportion, and areas that are not of interest to the user are displayed less or not.
  • the execution body of the window control method provided by the present application may be a terminal device having a display device, and the terminal device may be an electronic device as shown in FIG. 1 , which is a schematic structural diagram of an electronic device 100 .
  • Electronic device 100 may include cell phones, foldable electronic devices, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, cell phones, personal computers Digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) device, virtual reality (virtual reality, VR) device, artificial intelligence (artificial intelligence, AI) device, wearable device, vehicle-mounted device, smart home equipment, or at least one of smart city equipment.
  • PDA personal digital assistant
  • augmented reality augmented reality, AR
  • VR virtual reality
  • AI artificial intelligence
  • wearable device wearable device
  • vehicle-mounted device smart home equipment
  • smart home equipment smart home equipment
  • smart home equipment smart home equipment
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software or a combination of software and hardware.
  • 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 processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the processor can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory may store instructions or data that are used by the processor 110 or are frequently used. If the processor 110 needs to use the instructions or data, it can be called directly from this memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • the processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, a camera, and the like through at least one of the above interfaces.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the USB connector 130 is an interface conforming to the USB standard specification, which can be used to connect the electronic device 100 and peripheral devices, and specifically can be a Mini USB connector, a Micro USB connector, a USB Type C connector, and the like.
  • the USB connector 130 can be used to connect to a charger, so that the charger can charge the electronic device 100, and can also be used to connect to other electronic devices, so as to transmit data between the electronic device 100 and other electronic devices. It can also be used to connect headphones to output audio stored in electronic devices through the headphones.
  • This connector can also be used to connect other electronic devices, such as VR devices, etc.
  • the standard specifications of the Universal Serial Bus may be USB1.x, USB2.0, USB3.x, and USB4.
  • the charging management module 140 is used for receiving charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting 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, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • 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.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • 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) networks), bluetooth (BT), bluetooth low power power consumption (bluetooth low energy, BLE), ultra wide band (UWB), global navigation satellite 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 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other electronic 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), wideband 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 a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a 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 electronic device 100 may implement a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • electronic device 100 may include one or more display screens 194 .
  • the electronic device 100 may implement a camera function through a camera module 193, an ISP, a video codec, a GPU, a display screen 194, an application processor AP, a neural network processor NPU, and the like.
  • the camera module 193 can be used to collect color image data and depth data of the photographed object.
  • the ISP can be used to process the color image data collected by the camera module 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera module 193 .
  • Structured light 3D sensing modules can also be used in face recognition, somatosensory game consoles, industrial machine vision detection and other fields.
  • TOF 3D sensing modules can also be applied to game consoles, augmented reality (AR)/virtual reality (VR) and other fields.
  • AR augmented reality
  • VR virtual reality
  • Digital signal processors are used to process digital signals and can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • 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 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card. Or transfer music, video and other files from electronic devices to external memory cards.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional methods or data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 may listen to music through the speaker 170A, or output an audio signal for a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • a touch operation acts on the display screen 194
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • the instruction for viewing the short message is executed.
  • the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyroscope sensor 180B detects the shaking angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and controls the reverse movement of the lens to offset the shaking of the electronic device 100 to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the magnetic sensor 180D can be used to detect the folding or unfolding of the electronic device, or the folding angle.
  • the electronic device 100 when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than the threshold, it may be determined that there is an object near the electronic device 100 . When the intensity of the detected reflected light is less than the threshold, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L may be used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is blocked, eg, the electronic device is in a pocket. When it is detected that the electronic device is blocked or in a pocket, some functions (such as touch functions) can be disabled to prevent misuse.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature detected by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor in order to reduce the power consumption of the electronic device to implement thermal protection.
  • the electronic device 100 heats the battery 142 when the temperature detected by the temperature sensor 180J is below another threshold. In other embodiments, the electronic device 100 may boost the output voltage of the battery 142 when the temperature is below yet another threshold.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • touch sensor 180K may detect user touch operations on display screen 194, eg, user touch operations may be detected on icons of applications, controls on a user interface, and the like.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 may include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • 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 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support one or more SIM card interfaces.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. Multiple cards can be of the same type or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • an embodiment of the present application further provides a software structural block diagram of the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into five layers, from top to bottom, the application layer, the application framework layer, the Android runtime (Android runtime, ART) and the native C/C++ library, and the hardware abstraction layer (Hardware abstraction layer). Abstract Layer, HAL) and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, resource managers, notification managers, activity managers, input managers, and so on.
  • the window manager provides window management services (Window Manager Service, WMS), WMS can be used for window management, window animation management, surface management and as a transfer station for the input system.
  • WMS Window Manager Service
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • This data can include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Activity Manager can provide activity management services (Activity Manager Service, AMS), AMS can be used for system components (such as activities, services, content providers, broadcast receivers) startup, switching, scheduling and application process management and scheduling work .
  • AMS Activity Manager Service
  • system components such as activities, services, content providers, broadcast receivers
  • the input manager can provide an input management service (Input Manager Service, IMS), and the IMS can be used to manage the input of the system, such as touch screen input, key input, sensor input and so on.
  • IMS Input Manager Service
  • IMS fetches events from input device nodes, and distributes events to appropriate windows through interaction with WMS.
  • the Android runtime includes the core library and the Android runtime.
  • the Android runtime is responsible for converting source code to machine code.
  • the Android runtime mainly includes the use of ahead or time (AOT) compilation technology and just in time (JIT) compilation technology.
  • the core library is mainly used to provide the functions of basic Java class libraries, such as basic data structures, mathematics, IO, tools, databases, networks and other libraries.
  • the core library provides an API for users to develop Android applications. .
  • a native C/C++ library can include multiple functional modules. For example: surface manager, Media Framework, libc, OpenGL ES, SQLite, Webkit, 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 framework supports playback and recording of many common audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • OpenGL ES provides the drawing and manipulation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for applications of the electronic device 100 .
  • the hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • the workflow of the software and hardware of the electronic device 100 is exemplarily described below with reference to the scenario of starting a video application.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.).
  • Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the video application icon, for example, the video application invokes the interface of the application framework layer to start the video application.
  • FIG. 3 to FIG. 11 show some exemplary user interfaces involved in the process of executing the window control method provided by the present application on the terminal device.
  • Fig. 3(a) shows a user interface displayed by the terminal device.
  • the user interface displays icons of a plurality of application programs (referred to as application icons).
  • the terminal device can respond to the user to start a free window.
  • Mode of user operation the multi-window application bar 30 is activated and displayed.
  • the user swipes inward from the left or right edge of the screen (the right edge in the figure) with a finger.
  • FIG. 3 shows that after detecting the above user operation, the terminal device can start and display the multi-window application bar 30 on the user interface.
  • the user can select the application icon 31 .
  • FIG. 3 shows the application interface of the application program in which the terminal device displays the application icon 31 in the free window in response to the user's selection operation.
  • the free window mode is a multi-window mode of a terminal device based on an Android system, indicating a window that is not displayed in full screen on the display screen of the terminal device.
  • a free window is a real active window, which not only includes the characteristics of a complete active window, but can also be dragged, dragged, opened and closed according to user operations, and displayed on top of other application windows.
  • the terminal device may adjust the size and position of the free window in response to the user's operation.
  • the free window shown in (c) of FIG. 3 displays the application interface of the application indicated by the application icon 31 .
  • the free window also includes a title bar.
  • a full screen button 301, a minimize button 302, and a close button 303 may be included in the title bar.
  • the full screen button 301 can indicate that the application interface of the application program displayed in the free window is completely displayed on the screen of the terminal device.
  • the terminal device detects that the user clicks the full screen button 301, the application interface of the application can be displayed on the display screen.
  • the minimize button 302 indicates that the applications displayed within the free window are displayed on the screen in the form of small icons.
  • the terminal device when the terminal device detects that the user clicks the minimize button 302, the application icon 31 can be displayed on the screen in a floating form.
  • a close button 303 instructs an application being displayed within a free window to exit free window mode.
  • the terminal device displays the user interface shown in FIG. 3(a) on the screen.
  • Fig. 4(a) shows that there is only a single free window 410 in the terminal device
  • Fig. 4(b) shows that there are multiple free windows 420, 430 and 440 in the terminal device, and these free windows can be superimposed and displayed on the display on the screen.
  • the terminal device may determine the free window to be processed according to the position touched by the user. Taking the free window 410 as an example, the free window 410 may include a title bar 401 and an application interface 402, wherein the title bar 401 and the application interface 402 have been described in (b) of FIG. 3 and will not be repeated here.
  • the interface of the terminal device described below includes the above two parts, which will not be repeated.
  • FIG. 5( a ) shows a user operation for a free window in which an application interface of a video application may be displayed, and the user operation may indicate an adjustment operation for the free window.
  • the area for playing video is displayed at the top of the free window and the area is adjacent to the left and right borders of the free window, but in practice, the area for playing video may be based on the application of the video application.
  • the layout of the interface is displayed anywhere in the free window, and the area may not be adjacent to the left and right borders or only one side is adjacent to the border, which is not limited in this application.
  • the adjustment operation may be a sliding operation from the lower left corner to the upper right corner of the free window as shown in the figure.
  • (b) in FIG. 5 shows that the terminal device detects the user operation, and in response to the user operation, the terminal device can adjust the display size of the free window. It can be seen from (b) in FIG. 5 that the terminal device performs a reduction operation on the free window and displays the reduced free window.
  • the adjustment operation can also perform an enlargement operation on the free window.
  • the free window can scale the window size of the free window under the condition that the position of the right vertex A of the free window on the display screen remains unchanged. It can be seen from (a) and (b) in Figure 5 that as the user scales the window size of the free window, the area where the video is played is also scaled in equal proportions. It is obvious that the area where the video is played changes. got smaller.
  • FIG. 6( a ) shows a user operation on the free window, where an application interface of a video application can be displayed, and the user operation can instruct an adjustment operation on the free window.
  • the adjustment operation may be a sliding operation from the lower right corner of the free window to the upper left corner as shown in the figure.
  • (b) in FIG. 6 shows that the terminal device detects the user operation, and in response to the user operation, the terminal device can adjust the display size of the free window. It can be seen from (b) in FIG. 6 that the terminal device performs a reduction operation on the free window and displays the reduced free window.
  • the adjustment operation can also perform an enlargement operation on the free window.
  • the free window can scale the window size of the free window under the condition that the position of the left vertex B of the free window on the display screen remains unchanged. It can be seen from (a) and (b) in Figure 6 that as the user scales the window size of the free window, the area where the video is played is also scaled in equal proportions. It is obvious that the area where the video is played changes. got smaller.
  • FIG. 7( a ) shows that the terminal device detects a user operation on the free window, wherein the user operation may be a sliding operation upward from the lower border of the free window and in the vertical direction as shown in the figure.
  • the application interface of the video application can be displayed in the free window.
  • At the top of the application interface is an area for playing the video
  • the middle of the application interface is the introduction content of the video
  • the lower part of the application interface is the comment content of the video.
  • FIG. 7 shows that in response to detecting the user operation, the terminal device shortens the length of the free window to the position where the user slides while keeping the width of the free window unchanged.
  • the terminal device trims the free window in response to the user operation, and the trimming position of the free window is the position where the user's sliding ends (that is, below the introduction content). From the perspective of the presentation effect, it is similar to the horizontal scissors from the bottom of the introduction content. Cropped UI.
  • the user can also continue to perform the above operations on the free window shown in (b) in FIG. 7 , that is, the user continues to slide upwards in the vertical direction from the lower border of the free window in (b) in FIG. 7 until the sliding to the bottom of the video.
  • a corner rounding operation may be performed on the cropped window, that is, the terminal device performs a rounding operation on the left and right corners of the cropped window.
  • (c) in FIG. 7 shows that the terminal device performs cropping on the free window in response to the user operation, so that the cropped free window only displays video.
  • FIG. 8( a ) shows that the terminal device detects a user operation on the free window, wherein the user operation may be a sliding operation upwards in the vertical direction from the lower border of the free window as shown in the figure.
  • the application interface of the video application can be displayed in the free window.
  • In the middle of the application interface is an area for playing videos, and the top and lower parts of the application interface can display content related to the playing video, such as video introduction or video comments.
  • (b) of FIG. 8 shows that in response to detecting the user operation, the terminal device keeps the width of the free window unchanged, and the length of the free window becomes a length corresponding to the magnitude of the user's sliding. That is, the terminal device trims the free window in response to the user operation, and displays a video on top of the trimmed free window.
  • the user can perform the above operation again on the free window shown in (b) in FIG. 8 , that is, the user’s finger is still vertically sliding from the bottom of the free window to the top, as shown in (c) in FIG. 8
  • the outbound terminal device performs cropping on the free window, so that the cropped free window only displays video.
  • FIG. 9 shows that the terminal device detects that the user triggers the icon 910 displayed on the free window, that is, the terminal device detects the user's operation on the icon 910 by the user.
  • FIG. 9 shows that the terminal device detects that the user triggers the button 920 displayed on the free window, that is, the terminal device detects the user's operation on the button 920 by the user.
  • the terminal device can receive a user operation input by the user using voice.
  • FIG. 9 shows a specific user gesture of the user for the free window. The user gesture can instruct the user to quickly slide the finger upwards and then leave the display screen. , exceeding the maximum sliding distance).
  • the terminal device may crop the free window to display only the free window as shown in (e) in FIG. 9 . video.
  • Figure 10 shows that when the free window only displays video, the terminal device detects a user operation on the border of the free window, and the user operation can be adjusted by sliding from the lower left corner to the upper right corner of the free window as shown in the figure operate.
  • FIG. 10 shows that the terminal device performs a zoom-out operation on the free window in response to the user operation, and displays a video that is scaled down in the zoomed-in free window.
  • the free window may reduce the window size of the free window under the condition that the position of the right vertex C of the free window on the display screen remains unchanged.
  • Figure 11(a) shows that when the free window only displays video, the terminal device detects a user operation on the border of the free window, and the adjustment operation can be a sliding operation from the lower left corner to the upper right corner of the free window as shown in the figure .
  • (b) of FIG. 11 shows that the terminal device performs an enlarging operation on the free window in response to the user operation, and displays a proportionally enlarged video in the enlarged free window.
  • the free window can enlarge the window size of the free window while keeping the position of the right vertex D of the free window on the display screen unchanged.
  • the window control method provided by the present application can reduce the display area of the free window without changing the area size of the video displayed in the free window. For example, (b) and (c) in FIG. 7 , (b) and (c) in FIG. 8 , so that only the content of interest to the user can be displayed or displayed at the largest scale, and less or no area that the user is not interested in is displayed, resulting in a focused display effect.
  • the terminal device can determine the cutting length according to the sliding range. The following will describe an embodiment in which the terminal device determines the cropping scale of the free window in the case where the video is displayed in the middle of the free window.
  • the application interface of the video application can be displayed in the free window 1210, and the area where the video is played is located in the middle and middle of the free window 1210, and the boundary line of the area where the video is played (also referred to as a contour line) may not be adjacent to the border of the free window 1210, which depends on the layout of the application interface of the video application, which is not limited in this application.
  • a free window 1220 is a window that displays only video.
  • the free window 1230 may include an area for displaying video and an area 1240 for displaying other content, that is, the free window 1230 may display at least video, but not only Only show video.
  • the terminal device may determine the position S 1 of the window lower border of the free window 1210 , and the position S 1 only indicates the position of the free window 1210 in the vertical direction. In an implementation, the terminal device may only use the ordinate of S1 to determine where the free window 1210 is located in the terminal device. In addition, the terminal device can also determine the position of the lower border of the window of the free window 1220 , that is, the position S 2 in the user interface 1202 , which only indicates the position of the free window 1220 in the vertical direction. In an implementation, the terminal device may only use the ordinate of S 2 to determine where the free window 1220 is located in the terminal device.
  • the clipping length L 1 between S 1 and S 2 refers to the maximum length that can be clipped to the free window 1210 .
  • normalization processing may be performed on the crop length L 1 between S 1 and S 2 , and the normalized crop length L 1 is 1.
  • the terminal device may determine the maximum sliding distance corresponding to the cutting length L 1 , where the maximum sliding distance refers to the maximum distance that the user can vertically slide with a finger.
  • the terminal device may cut the free window 1210 to the length L 1 after detecting that the user slides up the maximum sliding distance vertically.
  • the terminal device cuts the free window 1210 to the free window 1220 .
  • the terminal device may determine the ratio of the cutting length L 1 to the maximum sliding distance. As an example, in (c) of FIG. 12 , after the terminal device detects that the user's finger slides, it can determine the cutting length (the cutting length L 2 between S 1 and S 3 ) according to the sliding distance and the ratio determined above, and Further, the position S 3 of the window lower border of the free window 1230 is determined.
  • one application may include multiple application interfaces.
  • each application interface corresponds to an activity (one of the basic components of Android), and multiple activities corresponding to multiple application interfaces form an activity stack (stack) of an application, that is, a task (task).
  • the Activity uses a window (window) to control the display of the interface, and the window can correspond to multiple view components.
  • the decorview is the root layout component used to determine the layout of these view components. Therefore, the terminal device can use the decorview component to determine the layout in the application interface, and then determine the category and position of the displayed content.
  • the terminal device can call the decorview component to obtain the view tree structure of the application interface. Subsequently, the terminal device can use the view tree structure to determine the display information. For example, the terminal device can search for the texture view (surfaceview or textureview) component corresponding to the played video from the view number structure, and then determine the video information in the application interface, For example, whether to play the video is determined by whether the texture view component is found. In addition, the terminal device can also search and play the region information and position information of the video from the view tree structure. In implementation, various operations performed on the application interface are performed by the application process corresponding to the application program. Taking a video application as an example, an application process corresponding to the video application calls its corresponding decorview component and other operations performed by using each view component.
  • the application interface displayed in the free window can correspond to a separate activity, and these activities also constitute a free window stack and belong to the same task.
  • This task is performed by a system process within the terminal device.
  • the terminal device operates the application interface of the application program displayed in the free window
  • the system process corresponding to the free window of the terminal device calls the view component in the application program, that is, the terminal device performs operations across processes.
  • the method specifically includes:
  • Step S101 displaying the first application interface of the selected first application in the free window.
  • the terminal device when the terminal device can display the home screen of the terminal device or the application interface of a certain application program, a user operation for initiating the free window mode by the user is received. Subsequently, the terminal device receives a selection operation for selecting the first application by the user. In response to the selection operation, the terminal device may display the application interface of the selected first application in the free window. As shown in (a) of FIG. 3, the user can initiate the free window mode with a specific gesture (swipe inward from the right edge of the screen). Subsequently, the terminal device may receive the user's selection of the application icon 31 to select an application program, and display the application interface corresponding to the application icon 31 in the free window.
  • step S102 a first operation of the user is received, wherein the first operation may instruct the user to slide up in the vertical direction after touching the lower border of the free window.
  • the vertical direction indicates the vertical line where the user touches the touch point of the lower border of the free window.
  • step S103 the terminal device performs a cropping operation on the free window in response to the first operation.
  • the cropping operation indicates an operation of cropping the size of the free window along the horizontal direction, that is, the cropping operation is performed under the condition that the width of the free window is kept unchanged , which shortens the length of the free window.
  • the terminal device may determine a clipping ratio for the free window according to the ratio of the upward sliding in the first operation, and correspondingly clip the free window.
  • step S104 the terminal device displays the clipped free window on the display screen, and the clipped free window displays a second user interface, where the second user interface is part of the content of the first application interface.
  • the display area of the content of the second user interface displayed in the clipped free window is the same as the area displayed in the first application interface. That is to say, when the display mode and display ratio remain unchanged, the clipped free window does not affect the display of this part of the content. As shown in (b) in Figure 7, the video displayed in the cropped free window and the display area of the introduction part are unchanged, which saves the free window for users who only want to watch this part of the content. space without affecting users' viewing of this part of the content.
  • the content of interest to the user in the application interface can be displayed in the clipped free window, that is, the part of the area mentioned above is the area of interest to the user.
  • the content of interest mentioned in the embodiments of the present application is not the content subjectively determined by the user, but the content preset by the technician or the user according to the application program, and the content of interest corresponding to different application programs is different.
  • the terminal device can preferentially display the video in the clipped free window.
  • the position of playing the video in the clipped free window has changed, that is, in the clipped free window Displays the video at the top of the . That is, the terminal device can change the interface layout within the application to highlight the area of interest to the user in the clipped free window.
  • the embodiments of the present application provide a method for controlling a window. After receiving a user operation, the method can trim a free window and display part of the content in the trimmed free window, so as to highlight the user experience. Areas of interest to improve user experience.
  • the terminal device can automatically adjust the free window to display only part of the content.
  • a window control method provided by this embodiment of the present application is described in detail, as follows. :
  • step S201 the first application interface of the selected first application is displayed in the free window of the display screen. This step is the same as the above step S101, and will not be repeated here.
  • step S202 a first operation of the user is received, wherein the first operation includes a triggering operation or a specific user operation by the user on a first control on the first application interface, where the first control is used to indicate the The free window performs focused display.
  • the triggering operation includes a combination of one or more of a click operation, a sliding operation, a pressing operation, and a long-pressing operation.
  • the triggering operation may also be implemented in the form of voice.
  • the terminal device receives the voice signal input by the user, and analyzes the voice signal to obtain the voice content. When there is a keyword/word matching the preset information corresponding to the focus display control in the voice content, the terminal device determines that the user's voice signal is received.
  • the second operation is shown in (a), (b), (c) of FIG. 9 .
  • the focused display mentioned here may also be referred to as “focused display”, “highlighted display”, etc., which means that the free window only displays part of the content of the first application interface.
  • the partial content mentioned here may indicate the user's interesting content or key content inferred by the terminal device. Taking a video application as an example, the terminal device can infer that part of the content is video, and taking a music playing application as an example, the terminal device can infer that part of the content is music lyrics. In implementation, the terminal device may predetermine the corresponding partial content for the embedded application.
  • the specific user operation indicates that the user is using the user's body part (eg, a finger, etc.) or an input device (eg, a stylus, etc.) to swipe up along the vertical direction of the free window at a speed exceeding a preset speed And/or the operation of leaving the free window after exceeding the preset sliding distance.
  • the user's body part eg, a finger, etc.
  • an input device eg, a stylus, etc.
  • the preset speed mentioned here can be the speed determined by the technician according to the usual sliding speed of the user, which is much faster than the usual sliding speed. Therefore, the specific user operation can be simply understood as fast sliding along the vertical direction of the free window. After leaving the free window.
  • the preset sliding distance mentioned here may indicate the above-mentioned maximum sliding distance. That is, when the user slides along the vertical direction of the free window beyond the maximum sliding distance, the user leaves the free window.
  • the specific user operation further includes an operation in which the sliding speed exceeds the preset speed and the sliding distance exceeds the preset distance, that is, the specific user operation may further indicate that the user is using An operation in which the user's body part or the input device slides upward along the vertical direction of the free window at a speed exceeding a preset speed and exceeds a preset sliding distance and then leaves the free window.
  • step S203 in response to the first operation, the terminal device trims the window size of the free window to a size that only displays the content of interest.
  • the terminal device determines the content of interest of the first application in response to the first operation. That is, the terminal device can determine different contents of interest according to different applications. As shown above, in the case of a video application, the terminal device can determine that the contents of interest are videos. Then, the terminal device may adjust the window size of the free window to a size that only displays the content of interest according to the determined size of the display area of the content of interest. As an example, in response to a user operation in (a), (b), (c) and (d) in FIG. 9 or a specific user gesture (which may be considered as a first operation), the terminal device may ) to crop the free window to show only the video.
  • step S204 the cropped free window is displayed, and the cropped free window only displays the content of interest.
  • an embodiment of the present application provides a window control method, which can adjust the size of a free window to display only part of the content after receiving a user operation, so that the terminal device can highlight the content in the free window. Part of the content, so that the user can easily view the part of the content and save the display area.
  • the terminal device may also perform a zoom operation on the clipped free window.
  • a window control method provided by an embodiment of the present application is described in detail, and the details are as follows:
  • step S301 a second operation of the user is received, wherein the second operation instructs the user to perform a zooming operation on the cropped free window.
  • the second operation may include that the user touches the lower border of the free window and slides in a diagonal direction or a vertical direction.
  • the diagonal direction may indicate a direction that forms a predetermined angle with the horizontal line where the lower border is located, and the predetermined angle may be set within a predetermined angle range, for example, 30 degrees to 60 degrees.
  • the diagonal direction may be the direction from the lower left corner to the upper right corner of the free window as shown in FIG. 10( a ), or may be the direction from the lower left corner to the upper right corner as shown in FIG. 11( a ) direction.
  • step S302 in response to the second operation, the terminal device performs scaling processing on the clipped free window. That is to say, the terminal device can perform scaling on the clipped free window according to the second operation under the condition that the aspect ratio of the clipped free window remains unchanged, and the content displayed in the window is also scaled accordingly. zoom. As shown in Fig. 10(b) and Fig. 11(b), the video displayed in the cropped free window is also scaled proportionally.
  • the embodiments of the present application provide a method for controlling a window.
  • the free window can also be zoomed to meet the requirements.
  • the user's demand for viewing size improves the user experience.
  • an embodiment of the present application provides a window control method, and the method may include the following steps:
  • step S401 the first application interface of the selected first application is displayed in the free window. This step S401 is the same as the above steps S101 and S201, and will not be repeated here.
  • step S402 the first operation of the user is received.
  • this step S402 may be implemented as step S102 or step S202, that is to say:
  • the first operation includes a triggering operation by the user on a first control on the first application interface, where the first control is used to instruct the free window to perform focused display.
  • the first operation includes the user sliding upward along the free window by using a user part or an input device and leaving the free window over a preset speed and/or over a preset sliding distance. operate.
  • the first operation includes sliding upward a first distance from the lower border of the free window in a vertical direction.
  • step S403 in response to the first operation, a cropping operation is performed on the free window.
  • this step S402 can be implemented as step S103 or step S203, that is to say:
  • the length of the free window is trimmed to a length required for displaying the partial content in the first application interface.
  • the free window is cropped by a cropping length corresponding to the first distance.
  • step S404 a second application interface is displayed in the clipped free window, wherein the second application interface includes part of the content of the first application interface.
  • this step S402 may be implemented as step S104 or step S204, which will not be repeated here.
  • the method further includes: performing a corner rounding operation on the clipped free window.
  • the method further includes: receiving a second operation of the user; in response to the second operation, performing a zooming operation on the cropped free window.
  • the method further includes: determining partial content corresponding to the service provided by the first application.
  • the partial content is displayed at the top of the clipped free window.
  • the first application includes a video application
  • the partial content includes a video played on an interface of the first application.
  • the embodiments of the present application provide a window control method.
  • the free window is cropped and only part of the content is displayed in the cropped free window, which not only satisfies the user's demand for the display area but also highlights the user's Therefore, a focused display effect is produced, and the focused display effect refers to only displaying or displaying the content of interest to the user in a maximum ratio, and displaying less or not displaying the area that is not of interest to the user.
  • An embodiment of the present application provides a window control device, including: a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions.
  • Embodiments of the present application provide a non-volatile computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the above method.
  • Embodiments of the present application provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (Electrically Programmable Read-Only-Memory, EPROM or flash memory), static random access memory (Static Random-Access Memory, SRAM), portable compact disk read-only memory (Compact Disc Read-Only Memory, CD - ROM), Digital Video Disc (DVD), memory sticks, floppy disks, mechanically encoded devices, such as punch cards or raised structures in grooves on which instructions are stored, and any suitable combination of the foregoing .
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read-only memory
  • EPROM Errically Programmable Read-Only-Memory
  • SRAM static random access memory
  • portable compact disk read-only memory Compact Disc Read-Only Memory
  • CD - ROM Compact Disc Read-Only Memory
  • DVD Digital Video Disc
  • memory sticks floppy disks
  • Computer readable program instructions or code described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present application may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or, may be connected to an external computer (eg, use an internet service provider to connect via the internet).
  • electronic circuits such as programmable logic circuits, Field-Programmable Gate Arrays (FPGA), or Programmable Logic Arrays (Programmable Logic Arrays), are personalized by utilizing state information of computer-readable program instructions.
  • Logic Array, PLA the electronic circuit can execute computer readable program instructions to implement various aspects of the present application.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in hardware (eg, circuits or ASICs (Application) that perform the corresponding functions or actions. Specific Integrated Circuit, application-specific integrated circuit)), or can be implemented by a combination of hardware and software, such as firmware.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及一种窗口控制方法及其设备,所述方法包括:在自由窗口内显示被选中的第一应用的第一应用界面;接收用户的第一操作;响应于所述第一操作,对所述自由窗口执行裁剪操作;在裁剪后的自由窗口内显示第二应用界面,其中,所述第二应用界面包括所述第一应用界面的部分内容。采用本申请,终端设备可对自由窗口执行裁剪操作并在裁剪后的自由窗口内显示部分内容,便于用户容易观看该部分内容,提高用户体验。

Description

一种窗口控制方法及其设备
本申请要求于2021年04月19日提交中国专利局、申请号为202110418195.1、申请名称为“一种窗口控制方法及其设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种窗口控制方法及其设备。
背景技术
为了能够提升信息交互效率,以手机为代表的终端设备可采用自由窗口(freeform)模式。在自由窗口模式下,手机可以在自由窗口内显示用户选中的应用(例如,视频类应用)的应用界面。在相关技术中,手机可根据用户的操作对自由窗口等比例放大缩小。但是自由窗口通常较小,用户可能会看不清或者需要花时间在缩放后的自由窗口(特别是缩小后的自由窗口)内找到关注的内容。以视频应用为例,在该自由窗口内显示视频应用的应用界面时,用户关注的内容可能是正在播放的视频,用户在使用过程中需要缩小自由窗口的大小,这就导致正在播放的视频所占的显示区域就更小了,用户体验较差。
发明内容
有鉴于此,提出了一种窗口控制方法及其设备,至少解决了以上提到的用户关注的内容所占区域较小的技术问题。
第一方面,本申请的实施例提供了一种窗口控制方法,所述方法包括:在自由窗口内显示被选中的第一应用的第一应用界面;接收用户的第一操作;响应于所述第一操作,对所述自由窗口执行裁剪操作;在裁剪后的自由窗口内显示第二应用界面,其中,所述第二应用界面包括所述第一应用界面的部分内容。
综上可述,用户可在利用自由窗口显示应用的应用界面的情况下,根据用户的操作,对自由窗口执行裁剪并在裁剪后的自由窗口内仅显示部分内容,既满足了用户对于显示区域的需求又可突出显示用户所需要的内容。
在一种可能的实现方式中,所述第一操作包括所述用户对第一应用界面上的第一控件的触发操作,所述第一控件用于指示所述自由窗口执行聚焦显示。
采用以上方法,本申请的实施例的窗口控制方法可直接利用控件实现聚焦显示,减少了用户操作,提高了用户体验。
在一种可能的实现方式,所述第一操作包括所述用户利用用户部位或者输入设备沿所述自由窗口以超过预设速度向上滑动和/或超过预设滑动距离后离开所述自由窗口的操作。
采用以上方法,本申请的实施例的窗口控制方法可利用以上特定的用户操作,将 自由窗口直接裁剪至仅显示部分内容的大小,减少了用户操作,提高了用户体验。
在一种可能的实现方式中,响应于所述第一操作,对所述自由窗口执行裁剪操作,包括:在保持所述自由窗口的宽度不变的情况下,将所述自由窗口的长度裁剪至在所述第一应用界面内显示所述部分内容所需的长度。
采用以上方法,本申请的实施例的窗口控制方法可尽可能大的区域显示所述部分内容,同时节省了自由窗口在屏幕上的显示区域。
在一种可能的实现方式中,所述第一操作包括从所述自由窗口的下边框且沿垂直方向向上滑动第一距离。
采用以上方法,本申请的实施例的窗口控制方法能够更灵活地调整自由窗口的大小,以满足用户需求。
在一种可能的实现方式中,响应于所述第一操作,对所述自由窗口执行裁剪操作,包括:在保持所述自由窗口的宽度不变的情况下,将所述自由窗口裁剪与所述第一距离对应的裁剪长度。
本申请的实施例的窗口控制方法可利用滑动距离来确定裁剪长度,然后再对应用界面进行裁剪,从而能够对不同布局的应用界面执行裁剪并保证裁剪后的窗口能够显示用户感兴趣内容。
在一种可能的实现方式中,在裁剪后的自由窗口内显示第二应用界面后,所述方法还包括:接收用户的第二操作;响应于所述第二操作,对所述裁剪后的自由窗口执行缩放操作。
采用以上方法,本申请的实施例的窗口显示方法还可对裁剪后的自由窗口进行缩放操作,这样可满足用户对于自由窗口的更多需求,提高用户体验。
在一种可能的实现方式中,所述方法还包括:确定所述第一应用所提供的服务对应的部分内容。
采用以上方法,本申请的实施例的窗口显示方法可根据所述应用程序所提供的服务,确定所述部分内容的类型,从而能够更精准地显示用户感兴趣内容,提高用户体验。
在一种可能的实现方式中,所述部分内容被显示在裁剪后的自由窗口的顶部。
为了能够保证并且突出显示所述部分区域,所述方法可将该部分区域显示在裁剪后的自由窗口的顶部。
在一种可能的实现方式中,所述第一应用包括视频应用,所述第一应用界面包括视频以及除视频之外的其它内容,所述部分内容包括第一应用界面上播放的视频。
在实施中,若自由窗口内显示的是视频应用,根据本申请的实施例的窗口控制方法能够在裁剪后的窗口内显示视频内容,从而满足用户需求。
第二方面,本申请的实施例提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的方法。
第三方面,本申请的实施例提供了一种终端设备,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算器程度代码包括计算机指令,当所述处理器执行所述计算机指令时,所 述终端设备执行上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的方法。
第四方面,本申请的实施例提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述第一方面或者第一方面的多种可能的实现方式中的一种或几种的方法。
本申请的这些和其他方面在以下(多个)实施例的描述中会更加简明易懂。
附图说明
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本申请的示例性实施例、特征和方面,并且用于解释本申请的原理。
图1示出根据本申请一实施例的终端设备的结构示意图;
图2示出根据本申请一实施例的终端设备的软件结构框图;
图3示出本申请提供的终端设备的界面示意图;
图4示出本申请提供的终端设备的界面示意图;
图5示出本申请提供的终端设备的界面示意图;
图6示出本申请提供的终端设备的界面示意图;
图7示出本申请提供的终端设备的界面示意图;
图8示出本申请提供的终端设备的界面示意图;
图9示出本申请提供的终端设备的界面示意图;
图10示出本申请提供的终端设备的界面示意图;
图11示出本申请提供的终端设备的界面示意图;
图12示出根据本申请一实施例的确定裁剪长度的示图;
图13示出根据本申请一实施例的确定内容位置的示图;
图14示出根据本申请一实施例的窗口控制方法的步骤流程图;
图15示出根据本申请一实施例的窗口控制方法的步骤流程图;
图16示出根据本申请一实施例的窗口控制方法的步骤流程图;
图17示出根据本申请一实施例的窗口控制方法的步骤流程图。
具体实施方式
以下将参考附图详细说明本申请的各种实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。
在本申请实施例中,“/”可以表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;“和/或”可以用于描述关联对象存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。为了便于描述本申请实施例的技术方案,在本申请实施例中,可以采用“第一”、“第二”等字样对功能相同或相似的技术特征进行区分。该“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。在本申请实施例中,“示例性的”或者“例如”等词用于表示例子、例证或说明, 被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。
另外,为了更好的说明本申请,在下文的具体实施方式中给出了具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。
用户为了能够同时操作或使用多个应用程序,启动手机中的自由窗口模式并选择在自由窗口内显示的应用程序,但是该自由窗口的大小通常小于手机的屏幕。用户可能会看不清自由窗口内的应用界面。例如,在自由窗口内显示视频类应用程序的应用界面的情况下,若该视频类应用程序正在播放视频,则用户可能看不清自由窗口内所播放的视频,此外,用户在观看视频时,对于播放的视频下面的文字介绍很可能不感兴趣,但该文字部分可能占用了较大的显示区域。特别是用户需要对自由窗口的尺寸进一步缩小的情况下,该自由窗口内显示的视频对于用户而言就更小了。
本申请提供一种窗口控制方法,用户可在利用自由窗口显示应用的应用界面的情况下,根据用户的操作,对自由窗口执行裁剪并在裁剪后的自由窗口内仅显示部分内容,既满足了用户对于显示区域的需求又可突出显示用户所需要的内容。本申请提供的窗口控制方法可产生一种聚焦显示效果,该聚焦显示效果是指仅显示或最大比例地显示对用户感兴趣内容,并且少显示或不显示用户不感兴趣的区域。
本申请提供的窗口控制方法的执行主体可以是具有显示设备的终端设备,该终端设备可以是如图1所示的电子设备,图1示意了一种电子设备100的结构示意图。
电子设备100可以包括手机、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备、或智慧城市设备中的至少一种。本申请实施例对该电子设备100的具体类型不作特殊限制。
电子设备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等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软 件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110用过或使用频率较高的指令或数据。如果处理器110需要使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。处理器110可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像头等模块。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
USB接头130是一种符合USB标准规范的接口,可以用于连接电子设备100和外围设备,具体可以是Mini USB接头,Micro USB接头,USB Type C接头等。USB接头130可以用于连接充电器,实现充电器为该电子设备100充电,也可以用于连接其他电子设备,实现电子设备100与其他电子设备之间传输数据。也可以用于连接耳机,通过耳机输出电子设备中存储的音频。该接头还可以用于连接其他电子设备,例如VR设备等。在一些实施例中,通用串行总线的标准规范可以为USB1.x、USB2.0、USB3.x和USB4。
充电管理模块140用于接收充电器的充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于 监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),蓝牙低功耗(bluetooth low energy,BLE),超宽带(ultra wide band,UWB),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备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)。
电子设备100可以通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏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个或多个显示屏194。
电子设备100可以通过摄像模组193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。
摄像模组193可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理摄像模组193采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将该电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像模组193中。
结构光3D感测模组还可应用于人脸识别、体感游戏机、工业用机器视觉检测等领域。TOF 3D感测模组还可应用于游戏机、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)等领域。
数字信号处理器用于处理数字信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。或将音乐,视频等文件从电子设备传输至外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能方法或数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或输出免提通话的音频信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测该触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,控制镜头反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100根据气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。当电子设备为可折叠电子设备,磁传感器180D可以用于检测电子设备的折叠或展开,或折叠角度。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到的反射光的强度大于阈值时,可以确定电子设备100附近有物体。当检测到的反射光的强度小于阈值时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L可以用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否被遮挡,例如电子设备在口袋里。当检测到电子设备被遮挡或在口袋里,可以使部分功能(例如触控功能)处于禁用状态,以防误操作。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当通过温度传感器180J检测的温度超过阈值,电子设备100执行降低处理器的性能,以便降低电子设备的功耗以实施热保护。在另一些实施例中,当通过温度传感器180J检测的温度低于另一阈值时,电子设备100对电池142加热。在其他一些实施例中,当温度低于又一阈值时,电子设备100可以对电池142的输出电压升压。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
在一些实施例中,触摸传感器180K可检测到用户对显示屏194上的触摸操作,例如,可检测到用户对于应用程序的图标、用户界面上的控件等的触摸操作。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于该骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于该骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190可以包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或多个SIM卡接口。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
以下实施例中的方法均可在具有上述硬件结构的电子设备100中实现。
示例性的,如图2所示,本申请实施例还提供电子设备100的软件结构框图。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程 序层,应用程序框架层,安卓运行时(Android runtime,ART)和原生C/C++库,硬件抽象层(Hardware Abstract Layer,HAL)以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器,活动管理器,输入管理器等。
窗口管理器提供窗口管理服务(Window Manager Service,WMS),WMS可以用于窗口管理、窗口动画管理、surface管理以及作为输入系统的中转站。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
活动管理器可以提供活动管理服务(Activity Manager Service,AMS),AMS可以用于系统组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。
输入管理器可以提供输入管理服务(Input Manager Service,IMS),IMS可以用于管理系统的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。
安卓运行时包括核心库和安卓运行时。安卓运行时负责将源代码转换为机器码。安卓运行时主要包括采用提前(ahead or time,AOT)编译技术和及时(just in time,JIT)编译技术。
核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。。
原生C/C++库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(Media Framework),libc,OpenGL ES、SQLite、Webkit等。
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC, AMR,JPG,PNG等。OpenGL ES提供应用程序中2D图形和3D图形的绘制和操作。SQLite为电子设备100的应用程序提供轻量级关系型数据库。
硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合启动视频应用的场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为视频应用图标的控件为例,视频应用调用应用框架层的接口,启动视频应用。
图3至图11示出了终端设备在执行本申请提供的窗口控制方法的过程中涉及的一些示例性的用户界面。
图3中(a)示出了终端设备显示的一种用户界面,该用户界面显示有多个应用程序的图标(简称应用图标),在该用户界面上,终端设备可响应于用户启动自由窗口模式的用户操作,启动并显示多窗口应用栏30。图3中(a)所示,用户利用手指从屏幕左边缘或右边缘(图中为右边缘)向内滑动。图3中(b)示出了终端设备在检测到如上的用户操作后,可在用户界面上启动并显示多窗应用栏30,用户可从多窗口应用栏30中选择将要执行自由窗口模式的应用程序,如图3中(b)所示,用户可选择应用图标31。图3中(c)示出了终端设备响应于用户的选择操作,在自由窗口内显示应用图标31的应用程序的应用界面。
自由窗口模式是基于安卓(android)系统的终端设备的多窗口模式,指示在终端设备的显示屏上非全屏显示的窗口。自由窗口是真正的活动窗口,不但包括完整的活动窗口的特征,还可根据用户操作实现拖动、拖放、打开和关闭,并且显示在其他应用窗口之上。
在实施中,终端设备可以响应于用户的操作,调整自由窗口的尺寸大小和位置。图3中(c)示出的自由窗口显示应用图标31指示的应用程序的应用界面。此外,该自由窗口还包括标题栏。在标题栏中可包括全屏按钮301、最小化按钮302和关闭按钮303。全屏按钮301可指示该自由窗口内显示的应用程序的应用界面完全显示于终端设备的屏幕上。作为示例,终端设备检测到用户点击全屏按钮301,则可在显示屏上显示应用程序的应用界面。最小化按钮302指示该自由窗口内显示的应用程序以小图标的形式显示在屏幕上。作为示例,终端设备检测到用户点击最小化按钮302,则可在屏幕上以悬浮形式显示应用图标31。关闭按钮303指示正在自由窗口内显示的应用程序退出自由窗口模式。作为示例,终端设备检测到用户点击关闭按钮303,则终端设备在屏幕上显示如图3中(a)的用户界面。
图4中(a)示出了终端设备中仅存在单个自由窗口410,图4中(b)示出了终端设备中存在多个自由窗口420、430和440,这些自由窗口可叠加显示在显示屏上。 在一种可能的实施方式中,终端设备可根据用户所触摸的位置确定将要执行处理的自由窗口。以自由窗口410为例,该自由窗口410可包括标题栏401以及应用界面402,其中,标题栏401和应用界面402已在图3中的(b)进行了描述,在此将不再赘述。在以下描述的终端设备的界面均包括以上两部分,将不再赘述。
图5中(a)示出针对自由窗口的用户操作,在该自由窗口可显示视频应用的应用界面,该用户操作可指示对于自由窗口的调整操作。虽然在图5中(a)示出的自由窗口中,播放视频的区域显示在自由窗口的顶部且该区域紧邻自由窗口的左右边框,但在实际中,播放视频的区域可根据视频应用的应用界面的布局显示在自由窗口内的任何地方,并且该区域可能不紧邻左右边框或者仅一边紧邻边框,对此本申请不做限制。
作为示例,该调整操作可以如图所示的从自由窗口的左下角向右上角滑动的操作。图5中(b)示出了该终端设备检测到该用户操作,并且响应于该用户操作,终端设备可调整该自由窗口的显示大小。从图5中(b)可以看出,终端设备对自由窗口执行缩小操作并显示缩小后的自由窗口,当然该调整操作也可以对自由窗口执行放大操作。在调整过程中,该自由窗口可在保持自由窗口的右顶点A在显示屏上的位置上不变的情况下,对自由窗口的窗口大小进行缩放。从图5中(a)和(b)能够看出,随着用户对自由窗口的窗口大小进行缩放,播放视频的区域也随之进行了等比例的缩放,明显看出,播放视频的区域变得更小了。
图6中(a)示出针对该自由窗口的用户操作,在该自由窗口可显示视频应用的应用界面,该用户操作可指示对于自由窗口的调整操作。作为示例,该调整操作可以如图所示的从自由窗口的右下角向左上角滑动的操作。图6中(b)示出了该终端设备检测到该用户操作,并且响应于该用户操作,终端设备可调整该自由窗口的显示大小。从图6中(b)可以看出,终端设备对自由窗口执行缩小操作并显示缩小后的自由窗口,当然该调整操作也可以对自由窗口执行放大操作。在调整过程中,该自由窗口可在保持自由窗口的左顶点B在显示屏上的位置上不变的情况下,对自由窗口的窗口大小进行缩放。从图6中(a)和(b)能够看出,随着用户对自由窗口的窗口大小进行缩放,播放视频的区域也随之进行了等比例的缩放,明显看出,播放视频的区域变得更小了。
图7中(a)示出终端设备检测到用户对于自由窗口的用户操作,其中,所述用户操作可以如图所示从自由窗口的下边框且沿垂直方向向上的滑动操作。在该自由窗口内可显示视频应用的应用界面。在该应用界面的顶部是播放视频的区域,该应用界面的中部是该视频的简介内容,该应用界面的下部是该视频的评论内容。
图7中(b)示出终端设备响应于检测到所述用户操作,在保持自由窗口的宽度不变的情况下,自由窗口的长度剪短至用户滑动的位置。在图7中(b)中,用户的手指从自由窗口的下边框滑动至简介内容下方,则自由窗口的长度将被剪短至简介内容下方,也就是说,滑动距离与裁剪长度是相同的。因此,终端设备响应于该用户操作,对自由窗口进行裁剪,该自由窗口的裁剪位置为用户滑动结束的位置(即,简介内容下方),从呈现效果来看,类似于剪刀从简介内容下方水平裁剪用户界面。
作为示例,用户还可对图7中(b)示出的自由窗口继续执行如上操作,也就是说,用户从图7中(b)的自由窗口的下边框沿垂直方向继续向上滑动,直至滑动至视频下方。此外,为了更符合用户的观看习惯(或者审美),可对裁剪后的窗口执行圆角操 作,也就是说,终端设备对裁剪后的窗口的左右边角执行圆角操作。图7中(c)示出终端设备响应于该用户操作,对自由窗口执行裁剪,使得裁剪后的自由窗口仅显示视频。
图8中(a)示出终端设备检测到用户对于自由窗口的用户操作,其中,所述用户操作可以如图所示从自由窗口的下边框且沿垂直方向向上的滑动操作。在该自由窗口内可显示视频应用的应用界面。在该应用界面的中部是播放视频的区域,该应用界面的顶部和下部可显示与播放视频相关的内容,比如,视频简介或者视频评论。
图8中(b)示出终端设备响应于检测到所述用户操作,在保持自由窗口的宽度不变的情况下,自由窗口的长度变为与用户滑动的幅度对应的长度。也就是说,终端设备响应于所述用户操作,对自由窗口进行裁剪,并且在裁剪后的自由窗口的顶部显示视频。作为示例,用户可对图8中(b)示出的自由窗口再次执行以上操作,也就是说,用户的手指依然是从自由窗口的下方向上方垂直滑动的操作,图8中(c)示出终端设备响应于该用户操作,对自由窗口执行裁剪,使得裁剪后的自由窗口仅显示视频。
图9中(a)示出终端设备检测到用户触发显示在自由窗口上的图标910,也就是说,终端设备检测到用户对于图标910的用户操作。图9中(b)示出终端设备检测到用户触发显示在自由窗口上的按钮920,也就是说,终端设备检测到用户对于按钮920的用户操作。图9中(c)示出终端设备可接收用户利用语音输入的用户操作。图9中(d)示出了用户针对该自由窗口的特定用户手势,该用户手势可指示用户向上快速滑动手指后离开显示屏的特定手势,还可指示用户向上滑动手指超过预设距离(例如,超过最大滑动距离)。响应于图9中(a)、(b)、(c)和(d)中的用户操作或者特定用户手势,终端设备可如图9中的(e)所示,将自由窗口裁剪至仅显示视频。
图10中(a)示出自由窗口仅显示视频的情况下,终端设备检测到对于自由窗口边框的用户操作,该用户操作可以如图所示的从自由窗口的左下角向右上角滑动的调整操作。图10中(b)示出终端设备响应于所述用户操作,对自由窗口执行缩小操作,并且在缩小后的自由窗口中显示等比例缩小的视频。在调整过程中,该自由窗口可在保持自由窗口的右顶点C在显示屏上的位置上不变的情况下,对自由窗口的窗口大小进行缩小。
图11中(a)示出自由窗口仅显示视频的情况下,终端设备检测到对于自由窗口边框的用户操作,该调整操作可以如图所示的从自由窗口的左下角向右上角滑动的操作。图11中(b)示出终端设备响应于所述用户操作,对自由窗口执行放大操作,并且在放大后的自由窗口中显示等比例放大的视频。在调整过程中,该自由窗口可在保持自由窗口的右顶点D在显示屏上的位置上不变的情况下,对自由窗口的窗口大小进行放大。
通过以上描述可以看出,本申请提供的窗口控制方法可在减小自由窗口的显示区域的情况下不改变自由窗口内显示视频的区域大小,例如,图7中的(b)和(c)、图8中的(b)和(c),从而能够仅显示或最大比例地显示对用户感兴趣内容,并且少显示或不显示用户不感兴趣的区域,产生一种聚焦显示的效果。
为了便于理解本申请的窗口控制方法如何确定自由窗口的裁剪长度,以下将结合图12中的(a)至(c)进行详细描述。简而言之,为了能够适应于不同布局的应用界 面,终端设备可根据滑动幅度来确定裁剪长度。以下将描述针对视频显示在自由窗口的中间的情况下终端设备确定自由窗口的裁剪尺度的实施例。
如图12中的(a)所示,在用户界面1201中,自由窗口1210内可显示视频应用的应用界面并且播放视频的区域位于自由窗口1210中部且中间位置,并且播放视频的区域的边界线(也可称作轮廓线)可以不紧邻自由窗口1210的边框,这取决于该视频应用的应用界面的布局,对此本申请不做限制。如图12中的(b)所示,在用户界面1202中,自由窗口1220是仅显示视频的窗口。如图所示12中的(c)所示,在用户界面1203中,自由窗口1230可包括显示视频的区域以及显示其它内容的区域1240,也就是说,自由窗口1230可至少显示视频,但是不仅仅显示视频。
在一种可能的实现方式中,终端设备可确定自由窗口1210的窗口下边框的位置S 1,该位置S 1仅指示自由窗口1210在垂直方向的位置。在实施中,终端设备可仅利用S 1的纵坐标来确定自由窗口1210在终端设备中所处的位置。此外,终端设备还可确定在该自由窗口1220的窗口下边框的位置,即,在用户界面1202中的位置S 2,该位置仅指示自由窗口1220在垂直方向的位置。在实施中,终端设备可仅利用S 2的纵坐标来确定自由窗口1220在终端设备中所处的位置。在本申请的实施例中,S 1与S 2之间的裁剪长度L 1是指能够对自由窗口1210裁剪的最大长度。为了便于后续计算,可将S 1与S 2之间的裁剪长度L 1执行归一化处理,归一化后的裁剪长度L 1为1。
随后,终端设备可确定与裁剪长度L 1对应的最大滑动距离,该最大滑动距离是指用户利用手指垂直滑动的最大距离。换言之,终端设备可在检测到用户向上垂直滑动最大滑动距离后,将裁剪自由窗口1210裁剪长度L 1。结合图12中的(c),终端设备检测到该最大滑动距离后,将自由窗口1210裁剪至自由窗口1220。
终端设备可在确定裁剪长度L 1以及最大滑动距离后,确定裁剪长度L 1与最大滑动距离的比例。作为示例,在图12中(c)中,终端设备检测到用户的手指滑动后,可根据滑动距离和以上确定的比例来确定裁剪长度(S 1与S 3之间的裁剪长度L 2)并进而确定自由窗口1230的窗口下边框的位置S 3
以下将结合图13从软件层面上描述,终端设备如何确定突出显示/聚焦显示的内容的位置。如图13所示,在安卓系统架构中,一个应用程序可包括多个应用界面。其中,每个应用界面对应一个activity(Android基本组件之一),多个应用界面对应的多个activity形成一个应用的activity栈(stack),即一个任务(task)。Activity利用窗口(window)控制界面显示,该window可对应多个view组件,在这些view组件中,decorview是用于确定这些view组件的布局的根布局组件。因此,终端设备可利用decorview组件来确定应用界面中的布局,进而确定显示内容的类别以及位置。
以播放视频的应用界面为例,如图13所示,终端设备可调用decorview组件来获取到该应用界面的view树结构。随后,终端设备可利用该view树结构确定显示信息,例如,终端设备可从view数结构中查找所播放的视频对应的纹理视图(surfaceview或者textureview)组件,进而确定该应用界面内的视频信息,例如,通过是否查找到纹理视图组件确定是否播放视频,此外,终端设备还可从该view树结构中查找与播放视频的区域信息以及位置信息。在实施中,对应用界面执行的各种操作均由应用程序对 应的应用进程来执行。以视频应用为例,由视频应用对应的应用进程来调用其对应的decorview组件以及利用各个view组件执行的其它操作。
在自由窗口模式下,自由窗口内显示的应用界面均可对应于单独的activity,这些activity同样构成了自由窗口栈,属于同一个任务(task)。该任务由终端设备内的系统进程来执行。当终端设备对自由窗口内显示的应用程序的应用界面进行操作时,则由终端设备对应于自由窗口的系统进程调用该应用程序内的view组件,也就是说,终端设备在跨进程执行操作。
结合上述附图,以下将对本申请实施例提供的窗口控制方法的步骤流程图进行说明,如图14所示,所述方法具体包括:
步骤S101,在自由窗口内显示被选中的第一应用的第一应用界面。
在一种可能的实现方式中,终端设备可显示终端设备的主屏幕或者某一应用程序的应用界面的情况下,接收到用户启动自由窗口模式的用户操作。随后,终端设备接收到用户选择第一应用程序的选择操作。终端设备响应于该选择操作,可在自由窗口内显示被选中的第一应用程序的应用界面。如图3中(a)所示,用户可采用特定手势(从屏幕的右边缘向内滑动)启动自由窗口模式。随后,终端设备可接收用户选择应用图标31来选择应用程序,并在自由窗口内显示该应用图标31对应的应用界面。
在步骤S102,接收用户的第一操作,其中,所述第一操作可指示所述用户在触摸所述自由窗口的下边框后沿垂直方向向上滑动。垂直方向则指示用户触摸所述自由窗口的下边框的触摸点所在的垂直线。
在步骤S103,终端设备响应于所述第一操作,对所述自由窗口执行裁剪操作。
在一种可能的实现方式中,所述裁剪操作指示沿水平方向对该自由窗口的大小进行裁剪的操作,也就是说,所述裁剪操作是在保证所述自由窗口的宽度不变的情况下,使该自由窗口的长度变短的操作。在实施中,终端设备可根据第一操作中向上滑动的比例,确定对所述自由窗口的裁剪比例,并相应地对该自由窗口进行裁剪。
在步骤S104,终端设备在显示屏上显示裁剪后的自由窗口,该裁剪后的自由窗口内显示第二用户界面,该第二用户界面是第一应用界面的部分内容。
在一种可能的实现方式中,在裁剪后的自由窗口内显示的第二用户界面的内容的显示区域与其第一应用界面内显示的区域相同。也就是说,在显示方式以及显示比例不变的情况下,裁剪后的自由窗口不影响这部分内容的显示。如图7中(b)所示,裁剪后的自由窗口所显示的视频与简介部分的显示区域是不变的,这对于仅期望观看这部分内容的用户而言,既节省了自由窗口所占用的空间又不影响用户观看该部分内容。
在一种可能的实施方式中,裁剪后的自由窗口内可至少显示所述应用界面中的用户感兴趣内容,也就是说,以上提及的部分区域是用户感兴趣的区域。在本申请的实施例中提及的感兴趣内容并非用户主观确定的内容,而是技术人员或用户根据应用程序预先设置的内容,不同的应用程序对应的感兴趣内容是不同的。以视频应用程序为例,用户感兴趣内容为所播放的视频。因此,终端设备可在裁剪后的自由窗口内优先显示视频,如图8中(b)所示,在裁剪后的自由窗口内的播放视频的位置发生了改变,即,在裁剪后的自由窗口的顶部显示视频。也就是说,终端设备可改变应用程序内的 界面布局,以在裁剪后的自由窗口内突出显示用户感兴趣的区域。
需要说明的是,终端设备的显示屏上可能显示多个自由窗口,如图4中(a)和(b)所示,本申请对此不做限制,而仅检测到的用户所触摸/触发的自由窗口执行以上操作。
综上可述,本申请实施例提供一种窗口控制方法,所述方法在接收到用户操作后,可对自由窗口进行裁剪并在裁剪后的自由窗口中显示部分内容,从而能够突出显示用户感兴趣的区域,提高用户体验。
作为另一实施例,终端设备可在接收到用户操作后,将自由窗口自动调整为仅显示部分内容,如图15所示,对本申请实施例提供的一种窗口控制方法进行详细描述,具体如下:
在步骤S201,在显示屏的自由窗口内显示选中的第一应用的第一应用界面。该步骤与以上步骤S101相同,在此将不再赘述。
在步骤S202,接收用户的第一操作,其中,所述第一操作包括所述用户对第一应用界面上的第一控件的触发操作或特定用户操作,所述第一控件用于指示所述自由窗口执行聚焦显示。
在一种可能的实现方式中,所述触发操作包括点击操作、滑动操作、按压操作以及长按操作中的一种或多种的组合,此外,所述触发操作还可以是语音形式实现的,终端设备接收用户输入的语音信号,对该语音信号进行解析获取语音内容,当语音内容中存在与聚焦显示控件对应的预设信息相匹配的关键字/词时,即终端设备确定接收到用户的第二操作,如图9中的(a)、(b)、(c)所示。
此处提及的聚焦显示还可被称作“重点显示”、“突出显示”等,是指自由窗口仅显示第一应用界面的部分内容。此处提及的部分内容可指示终端设备推测的用户感兴趣内容或者重点内容。以视频应用程序为例,终端设备可推测部分内容为视频,以音乐播放应用程序为例,终端设备可推测部分内容为音乐歌词。在实施中,终端设备可对内嵌的应用程序预先确定对应的部分内容。
在一种可能的实现方式中,所述特定用户操作指示用户在利用用户的身体部位(例如,手指等)或者输入设备(例如,手写笔等)沿自由窗口垂直方向以超过预设速度向上滑动和/或超过预设滑动距离后离开所述自由窗口的操作。
此处提及的预设速度可以是技术人员根据用户通常滑动的速度确定的速度,该速度远快于通常滑动的速度,因此,该特定用户操作可被简单理解为沿自由窗口垂直方向快速滑动后离开所述自由窗口。此处提及的预设滑动距离可指示以上提到的最大滑动距离。也就是说,当用户沿自由窗口垂直方向上滑动超过最大滑动距离后离开所述自由窗口。
在一种可能的实现方式中,该特定用户操作还包括在滑动速度上超过预设速度且在滑动距离上超过预设距离的操作,也就是说,所述特定用户操作还可指示用户在利用用户的身体部位或者输入设备沿自由窗口垂直方向以超过预设速度向上滑动且超过预设滑动距离后离开所述自由窗口的操作。
在步骤S203,终端设备响应于所述第一操作,将所述自由窗口的窗口大小裁剪至仅显示感兴趣内容的大小。
在一种可能的实现方式中,终端设备响应于所述第一操作,确定第一应用的感兴趣内容。也就是说,终端设备可根据不同的应用确定不同的感兴趣内容,如上所示,在视频应用程序的情况下,终端设备可确定感兴趣内容为视频。然后,终端设备可根据确定的感兴趣内容的显示区域大小,将所述自由窗口的窗口大小调整为仅显示感兴趣内容的大小。作为示例,响应于图9中(a)、(b)、(c)和(d)中的用户操作或者特定用户手势(可被认为第一操作),终端设备可如图9中的(e)所示,将自由窗口裁剪至仅显示视频。
在步骤S204,显示裁剪后的自由窗口,该裁剪后的自由窗口仅显示感兴趣内容。
综上可述,本申请实施例提供一种窗口控制方法,所述方法可在接收到用户操作后,调整自由窗口的大小使其仅显示部分内容,这样终端设备可在自由窗口内突出显示这部分内容,使得用户能够容易观看到该部分内容并且节省了显示区域。
作为另一实施例,终端设备在裁剪后的自由窗口内仅显示部分内容(例如,感兴趣内容)的情况下,还可对裁剪后的自由窗口执行缩放操作。如图16所示,对本申请实施例提供的一种窗口控制方法进行详细描述,具体如下:
在步骤S301,接收所述用户的第二操作,其中,所述第二操作指示用户对裁剪后的自由窗口执行缩放的操作。
在一种可能的实施方式中,所述第二操作可包括用户在触摸所述自由窗口的下边框并沿对角方向或者垂直方向滑动。在实施中,所述对角方向可指示与下边框所在的水平线呈预设角度的方向,所述预设角度可被设定在预设角度范围内,例如,30度到60度。作为示例,所述对角方向可以是如图10中(a)所示的从自由窗口的左下角向右上角的方向,也可以是如图11中(a)所示的左下角向右上角的方向。
在步骤S302,终端设备响应于所述第二操作,对裁剪后的自由窗口执行缩放处理。也就是说,终端设备可在保证裁剪后的自由窗口的长宽比比例不变的情况,根据第二操作,对该裁剪后的自由窗口执行缩放,窗口内显示的内容也随之进行等比例的缩放。如图10中(b)和图11中(b)所示,裁剪后的自由窗口内显示的视频也等比例的缩放。
综上可述,本申请实施例提供一种窗口控制方法,所述方法在自由窗口内仅显示部分内容(例如,用户感兴趣内容)的情况下,还可对该自由窗口进行缩放操作以满足用户对于观看尺寸的需求,提高了用户体验。
结合以上各个实施例可以看出,为了能够聚焦显示自由窗口内的部分内容,如图17所示,本申请实施例提供一种窗口控制方法,所述方法可包括如下步骤:
在步骤S401,在自由窗口内显示被选中的第一应用的第一应用界面。该步骤S401与以上步骤S101与步骤S201相同,在此将不再赘述。
在步骤S402,接收用户的第一操作。在实施中,该步骤S402可被实现为步骤S102或者步骤S202,也就是说:
在一种可能的实现方式中,所述第一操作包括所述用户对第一应用界面上的第一控件的触发操作,所述第一控件用于指示所述自由窗口执行聚焦显示。
在一种可能的实现方式中,所述第一操作包括所述用户利用用户部位或者输入设备沿所述自由窗口向上滑动且超过预设速度和/或超过预设滑动距离离开所述自由窗口的操作。
在一种可能的实现方式中,所述第一操作包括从所述自由窗口的下边框且沿垂直方向向上滑动第一距离。
在步骤S403,响应于所述第一操作,对所述自由窗口执行裁剪操作。在实施中,该步骤S402可被实现为步骤S103或者步骤S203,也就是说:
在一种可能的实现方式中,在保持所述自由窗口的宽度不变的情况下,将所述自由窗口的长度裁剪至在所述第一应用界面内显示所述部分内容所需的长度。
在一种可能的是实现方式中,在保持所述自由窗口的宽度不变的情况下,将所述自由窗口裁剪与所述第一距离对应的裁剪长度。
在步骤S404,在裁剪后的自由窗口内显示第二应用界面,其中,所述第二应用界面包括所述第一应用界面的部分内容。在实施中,该步骤S402可被实现为步骤S104或者步骤S204,在此将不再赘述。
在一种可能的实现方式中,所述方法还包括:对裁剪后的自由窗口执行圆角操作。
在一种可能的实现方式中,所述方法还包括:接收用户的第二操作;响应于所述第二操作,对所述裁剪后的自由窗口执行缩放操作。
在一种可能的实现方式中,所述方法还包括:确定所述第一应用所提供的服务对应的部分内容。
在一种可能的实现方式中,所述部分内容被显示在裁剪后的自由窗口的顶部。
在一种可能的实现方式中,所述第一应用包括视频应用,所述部分内容包括第一应用界面上播放的视频。
综上可述,本申请实施例提供一种窗口控制方法,所述对自由窗口执行裁剪并在裁剪后的自由窗口内仅显示部分内容,既满足了用户对于显示区域的需求又可突出显示用户所需要的内容,因此产生了聚焦显示效果,该聚焦显示效果是指仅显示或最大比例地显示对用户感兴趣内容,并且少显示或不显示用户不感兴趣的区域。
本申请的实施例提供了一种窗口控制设备,包括:处理器以及用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令时实现上述方法。
本申请的实施例提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。
本申请的实施例提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器(Electrically Programmable Read-Only-Memory,EPROM或 闪存)、静态随机存取存储器(Static Random-Access Memory,SRAM)、便携式压缩盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Video Disc,DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。
这里所描述的计算机可读程序指令或代码可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(Instruction Set Architecture,ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或可编程逻辑阵列(Programmable Logic Array,PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。
这里参照根据本申请实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本申请的多个实施例的装置、系统、方法和计 算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。
也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行相应的功能或动作的硬件(例如电路或ASIC(Application Specific Integrated Circuit,专用集成电路))来实现,或者可以用硬件和软件的组合,如固件等来实现。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其它变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其它单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。

Claims (13)

  1. 一种窗口控制方法,其特征在于,所述方法包括:
    在自由窗口内显示被选中的第一应用的第一应用界面;
    接收用户的第一操作;
    响应于所述第一操作,对所述自由窗口执行裁剪操作;
    在裁剪后的自由窗口内显示第二应用界面,其中,所述第二应用界面包括所述第一应用界面的部分内容。
  2. 如权利要求1所述的方法,其特征在于,所述第一操作包括所述用户对所述第一应用界面上的第一控件的触发操作,所述第一控件用于指示所述自由窗口执行聚焦显示。
  3. 如权利要求1所述的方法,其特征在于,所述第一操作包括所述用户利用用户部位或者输入设备沿所述自由窗口以超过预设速度向上滑动和/或超过预设滑动距离后离开所述自由窗口的操作。
  4. 如权利要求1或2所述的方法,其特征在于,响应于所述第一操作,对所述自由窗口执行裁剪操作,包括:
    在保持所述自由窗口的宽度不变的情况下,将所述自由窗口的长度裁剪至在所述第一应用界面内显示所述部分内容所需的长度。
  5. 如权利要求1所述的方法,其特征在于,所述第一操作包括从所述自由窗口的下边框且沿垂直方向向上滑动第一距离。
  6. 如权利要求5所述的方法,其特征在于,响应于所述第一操作,对所述自由窗口执行裁剪操作,包括:
    在保持所述自由窗口的宽度不变的情况下,将所述自由窗口裁剪与所述第一距离对应的裁剪长度。
  7. 如权利要求1至6中的任一权利要求所述的方法,其特征在于,在裁剪后的自由窗口内显示第二应用界面后,所述方法还包括:
    接收用户的第二操作;
    响应于所述第二操作,对所述裁剪后的自由窗口执行缩放操作。
  8. 如权利要求1至7中的任一项权利要求所述的方法,其特征在于,所述方法还 包括:
    确定所述第一应用所提供的服务对应的部分内容。
  9. 如权利要求1至8中的任一项权利要求所述的方法,其特征在于,所述部分内容被显示在裁剪后的自由窗口的顶部。
  10. 如权利要求1至9中的任一项权利要求所述的方法,其特征在于,所述第一应用包括视频应用,所述第一应用界面包括视频以及除视频之外的其它内容,所述部分内容包括第一应用界面上播放的视频。
  11. 一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1-10中任意一项所述的方法。
  12. 一种终端设备,其特征在于,包括:处理器、存储器和触摸屏,所述存储器、所述触摸屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算器程度代码包括计算机指令,当所述处理器执行所述计算机指令时,所述终端设备执行如权利要求1至10中任一项权利要求所述的方法。
  13. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至10中任一项所述的方法。
PCT/CN2022/083023 2021-04-19 2022-03-25 一种窗口控制方法及其设备 WO2022222688A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110418195.1A CN115291779A (zh) 2021-04-19 2021-04-19 一种窗口控制方法及其设备
CN202110418195.1 2021-04-19

Publications (1)

Publication Number Publication Date
WO2022222688A1 true WO2022222688A1 (zh) 2022-10-27

Family

ID=83723609

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083023 WO2022222688A1 (zh) 2021-04-19 2022-03-25 一种窗口控制方法及其设备

Country Status (2)

Country Link
CN (1) CN115291779A (zh)
WO (1) WO2022222688A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048708B (zh) * 2023-03-31 2024-02-23 成都齐之之知识产权运营有限公司 基于人工智能的软件窗口调整方法、系统、设备和介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080168388A1 (en) * 2007-01-05 2008-07-10 Apple Computer, Inc. Selecting and manipulating web content
US20090089704A1 (en) * 2003-09-24 2009-04-02 Mikko Kalervo Makela Presentation of large objects on small displays
CN100514288C (zh) * 2006-01-06 2009-07-15 国际商业机器公司 应用程序裁剪方法和系统
CN104392202A (zh) * 2014-10-11 2015-03-04 北京中搜网络技术股份有限公司 一种基于图片识别的自动裁剪方法
CN109254707A (zh) * 2018-09-14 2019-01-22 Oppo广东移动通信有限公司 一种窗口调节的方法、移动终端及计算机可读存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203305A (zh) * 2017-05-03 2017-09-26 努比亚技术有限公司 快速切换应用的方法、移动终端及计算机可读存储介质
CN114816209A (zh) * 2019-06-25 2022-07-29 华为技术有限公司 一种移动终端的全屏显示方法及设备
CN110727382A (zh) * 2019-09-06 2020-01-24 华为技术有限公司 一种分屏显示方法及电子设备
CN112165635A (zh) * 2020-10-12 2021-01-01 北京达佳互联信息技术有限公司 视频转换方法、装置、系统及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089704A1 (en) * 2003-09-24 2009-04-02 Mikko Kalervo Makela Presentation of large objects on small displays
CN100514288C (zh) * 2006-01-06 2009-07-15 国际商业机器公司 应用程序裁剪方法和系统
US20080168388A1 (en) * 2007-01-05 2008-07-10 Apple Computer, Inc. Selecting and manipulating web content
CN104392202A (zh) * 2014-10-11 2015-03-04 北京中搜网络技术股份有限公司 一种基于图片识别的自动裁剪方法
CN109254707A (zh) * 2018-09-14 2019-01-22 Oppo广东移动通信有限公司 一种窗口调节的方法、移动终端及计算机可读存储介质

Also Published As

Publication number Publication date
CN115291779A (zh) 2022-11-04

Similar Documents

Publication Publication Date Title
US11450322B2 (en) Speech control method and electronic device
US11599254B2 (en) Method for quickly invoking small window when video is displayed in full screen, graphic user interface, and terminal
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
JP7081048B2 (ja) システムナビゲーションバー表示方法、システムナビゲーションバー制御方法、グラフィカルユーザインターフェース、および電子機器
CN115866121B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036571A1 (zh) 一种桌面的编辑方法及电子设备
CN111669459B (zh) 键盘显示方法、电子设备和计算机可读存储介质
US20220300129A1 (en) Split-screen processing method and terminal device
US11914850B2 (en) User profile picture generation method and electronic device
US11972106B2 (en) Split screen method and apparatus, and electronic device
WO2022068819A1 (zh) 一种界面显示方法及相关装置
JP7400095B2 (ja) 表示要素の表示方法及び電子機器
CN112068907A (zh) 一种界面显示方法和电子设备
CN113448658A (zh) 截屏处理的方法、图形用户接口及终端
CN114077365A (zh) 分屏显示方法和电子设备
JP2024513773A (ja) 表示方法、電子機器、記憶媒体、及びプログラムプロダクト
WO2022222688A1 (zh) 一种窗口控制方法及其设备
US20240231565A1 (en) Display method, electronic device, storage medium, and program product
US20230280894A1 (en) Control moving method and electronic device
CN116301483A (zh) 一种应用卡片的管理方法、电子设备和存储介质
CN114356196A (zh) 一种显示方法及电子设备
CN118444832A (zh) 一种触控操作方法及电子设备
CN116700568A (zh) 删除对象的方法及电子设备

Legal Events

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

Ref document number: 22790797

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22790797

Country of ref document: EP

Kind code of ref document: A1