WO2020038163A1 - 图标的显示方法、装置、终端及存储介质 - Google Patents

图标的显示方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2020038163A1
WO2020038163A1 PCT/CN2019/096393 CN2019096393W WO2020038163A1 WO 2020038163 A1 WO2020038163 A1 WO 2020038163A1 CN 2019096393 W CN2019096393 W CN 2019096393W WO 2020038163 A1 WO2020038163 A1 WO 2020038163A1
Authority
WO
WIPO (PCT)
Prior art keywords
sub
application
sidebar
foreground application
columns
Prior art date
Application number
PCT/CN2019/096393
Other languages
English (en)
French (fr)
Inventor
宋方
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP19851559.5A priority Critical patent/EP3835931A4/en
Publication of WO2020038163A1 publication Critical patent/WO2020038163A1/zh
Priority to US17/181,881 priority patent/US11500513B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • Embodiments of the present application relate to the field of computer technology, and in particular, to a method, a device, a terminal, and a storage medium for displaying icons.
  • the terminal can run multiple applications at the same time.
  • the terminal may find an interface for jumping to a specified background application in a user interface in the foreground application.
  • the terminal transfers the foreground application to the background, transfers the designated background application to the foreground, receives the user's operation, and provides services for the user.
  • the embodiments of the present application provide a method, a device, a terminal, and a storage medium for displaying icons, which can solve the problem that since the jump interface is usually set at a specified position in the foreground application or is displayed only under specified conditions, the user cannot display it at any time.
  • a method for displaying an icon includes:
  • the attributes of the front-end application are obtained, and the sidebar display instruction is used to instruct the terminal to display the sidebar on the current user interface.
  • the sidebar includes at least two sub-areas.
  • the attributes of the foreground application include the type of the foreground application or the application scenario in which the foreground application is located;
  • an icon display device in another aspect, and the device includes:
  • An attribute acquisition module is configured to acquire attributes of a foreground application when a sidebar display instruction is received, the sidebar display instruction is used to instruct a terminal to display a sidebar on a current user interface, and the sidebar includes at least Two sub-areas, the attributes of the foreground application include the type of the foreground application or the application scenario in which the foreground application is located;
  • a row and column determining module is configured to determine the number of rows and columns of icons of each of the at least two sub-regions according to the attributes of the foreground application.
  • the number of rows and columns of icons is used to indicate that the sides in one page of one of the sub-regions
  • a sidebar display module configured to determine the size of the subarea in the sidebar according to the number of rows and columns of the icons in the subarea;
  • An icon display module is configured to display at least one sidebar icon in each of the sub-areas.
  • a terminal in another aspect, includes a processor and a memory, and the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement display of an icon as provided in the present application. method.
  • a computer-readable storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to implement the icon display method provided in the present application.
  • FIG. 1 is a structural block diagram of a terminal 100 according to an exemplary embodiment of the present application.
  • FIG. 2 is a structural block diagram of a terminal 100 according to another exemplary embodiment of the present application.
  • FIG. 3 is a schematic diagram of a full screen provided by an exemplary embodiment of the present application.
  • FIG. 4 is a schematic diagram of a curved screen provided by an exemplary embodiment of the present application.
  • FIG. 5 is a schematic diagram of a special-shaped screen provided by an exemplary embodiment of the present application.
  • FIG. 6 is a schematic diagram of another shaped screen provided by an exemplary embodiment of the present application.
  • FIG. 7 is a schematic diagram of a screen with a hole in a screen provided by an exemplary embodiment of the present application.
  • FIG. 8 is a schematic diagram of another screen with a hole screen provided by an exemplary embodiment of the present application.
  • FIG. 9 is a schematic diagram of a drop-shaped fringe screen provided by an exemplary embodiment of the present application.
  • FIG. 10 is a schematic diagram of a side of a screen provided by an exemplary embodiment of the present application.
  • FIG. 11 is a schematic diagram of a side of another screen provided by an exemplary embodiment of the present application.
  • FIG. 12 is a schematic diagram of a side of another screen according to an exemplary embodiment of the present application.
  • FIG. 13 is a flowchart of an icon display method provided by an exemplary embodiment of the present application.
  • FIG. 15 is a schematic diagram of a display mode of a sidebar in a vertical screen state according to the embodiment shown in FIG. 14;
  • FIG. 16 is a schematic diagram of a display mode of a sidebar in a horizontal screen state provided by the embodiment shown in FIG. 14;
  • FIG. 17 is a schematic diagram of a display mode of a sidebar in a horizontal screen state provided based on the embodiment shown in FIG. 14;
  • FIG. 18 is a schematic diagram of an icon position priority according to the embodiment shown in FIG. 14;
  • FIG. 20 is a schematic diagram of a sidebar display corresponding to a foreground application of a video playback type provided by the embodiment shown in FIG. 19;
  • FIG. 21 is a schematic diagram showing a sidebar display corresponding to a front-end application of an instant messaging type based on the embodiment shown in FIG. 19;
  • 22 is a structural block diagram of an icon display device provided by an exemplary embodiment of the present application.
  • FIG. 23 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the jump interface is usually set at a specified position in the foreground application, or displayed only under specified conditions, the user cannot efficiently use the required function at any time.
  • the terminal when the solution of the embodiment of the present application is executed, when the terminal receives a display instruction in the sidebar, it can obtain the attributes of the foreground application, and determine the number of rows and columns of each icon in at least two sub-regions according to the attributes of the foreground application. The number of rows and columns of the respective icons in the area, and a sidebar icon is displayed in each of the at least two sub-areas.
  • the terminal can determine the number of rows and columns of icons in the corresponding sub-area according to the attributes of the foreground application, so that more icons can be displayed in the sub-area that is more commonly used than the foreground application, Fewer sub-regions can display fewer icons, which improves the efficiency of users using functions corresponding to the sidebar icons in the designated foreground application.
  • the attributes of the front-end application are obtained, and the sidebar display instruction is used to instruct the terminal to display the sidebar on the current user interface.
  • the sidebar includes at least two sub-areas.
  • the attributes of the foreground application include the type of the foreground application or the application scenario in which the foreground application is located;
  • the sidebar icon is displayed in each of the at least two sub-regions.
  • displaying the sidebar icon in each of the at least two sub-regions according to the number of rows and columns of the icons of the at least two sub-regions includes:
  • At least one corresponding sidebar icon is displayed.
  • the displaying at least one corresponding sidebar icon in the sub-region includes:
  • the multi-page sub-area is a sub-area containing i of the pages, and i is not less than A positive integer of 2
  • j is a positive integer and j + 1 is not greater than i.
  • the determining the number of rows and columns of icons of the at least two sub-areas according to the attributes of the foreground application includes:
  • the multi-page sub-region exists in the at least two sub-regions, determining a historical page turning frequency or a historical page-turning frequency of the multi-page sub-region in the application scenario, and an icon row number of the multi-page sub-region For m1 rows and n1 columns, one said sub-region displays one said page at the same time;
  • the first mode refers to a mode in which the sidebar is displayed on the left or right side of the current user interface
  • the second mode refers to a mode in which the sidebar is displayed at the top or bottom of the current user interface
  • m1, n1, m2, n2, p, and q are natural numbers, m2 is not less than p, and n2 is not less than q.
  • the obtaining the attributes of the foreground application when receiving a sidebar display instruction includes:
  • the determining the number of icons and columns of each of the at least two sub-areas according to the attributes of the foreground application includes:
  • obtaining the attributes of the foreground application includes:
  • an application scenario in which the foreground application is located is determined from a scenario configuration file, and the scenario configuration file is a file preset in the terminal or downloaded from a server.
  • determining the application scenario in which the foreground application is located according to the application identifier of the foreground application includes:
  • an application scenario in which the foreground application is located is determined from a scenario configuration file.
  • determining the application scenario in which the foreground application is located according to the application identifier of the foreground application includes:
  • determining an application scenario corresponding to the foreground application is an application scenario in which the foreground application is located;
  • the application scenario where the foreground application is located is determined according to the first application programming interface API called by the foreground application.
  • determining the application scenario in which the foreground application is located according to the first API called by the foreground application includes:
  • the application scenario corresponding to the first API is determined as an application scenario in which the foreground application is located.
  • FIG. 1 and FIG. 2 are structural block diagrams of a terminal 100 according to an exemplary embodiment of the present application.
  • the terminal 100 may be a mobile phone, a tablet computer, a notebook computer, an e-book, or the like.
  • the terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and a touch display screen 130.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts in the entire terminal 100, and executes the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. 100 various functions and processing data.
  • the processor 110 may adopt digital signal processing (English: Digital Signal Processing, abbreviation: DSP), field programmable gate array (English: Field-Programmable Gate Array, FPGA: abbreviation), programmable logic array (English: Programmable Logic Array (abbreviation: PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (English: Central Processing Unit, abbreviation: CPU), an image processor (English: Graphics Processing Unit, abbreviation: GPU), and a modem.
  • a central processing unit English: Central Processing Unit, abbreviation: CPU
  • an image processor English: Graphics Processing Unit, abbreviation: GPU
  • a modem mainly handles the operating system, user interface, and application programs
  • the GPU is responsible for rendering and rendering of the content required to be touched by the display screen 130
  • the modem is used for processing wireless communication. It can be understood that the modem may not be integrated into the processor 110, and may be implemented by a single chip.
  • the memory 120 may include a random access memory (English: Random Access Memory, abbreviation: RAM), and may also include a read-only memory (English: Read-Only Memory).
  • the memory 120 includes a non-transitory computer-readable storage medium (English: non-transitory computer-readable storage medium).
  • the memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 120 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions for implementing the following method embodiments, etc .; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the terminal 100.
  • the storage program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions for implementing the following method embodiments, etc .; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the terminal 100.
  • the memory 120 stores the Linux kernel layer 220, the system runtime layer 240, the application framework layer 260, and applications. Layer 280.
  • the Linux kernel layer 220 provides low-level drivers for various hardware of the terminal 100, such as a display driver, an audio driver, a camera driver, a Bluetooth driver, a Wi-Fi driver, and power management.
  • the system runtime layer 240 provides main feature support for the Android system through some C / C ++ libraries.
  • the SQLite library provides database support
  • the OpenGL / ES library provides 3D graphics support
  • the Webkit library provides browser kernel support.
  • An Android runtime library 242 (English: Android Runtime) is also provided in the system runtime layer 240, which mainly provides some core libraries, which can allow developers to write Android applications using the Java language.
  • the application framework layer 260 provides various APIs that may be used when building applications. Developers can also use these APIs to build their own applications, such as activity management, window management, view management, notification management, content providers, Package management, call management, resource management, positioning management.
  • At least one application program is running in the application layer 280, and these application programs may be contact programs, SMS programs, clock programs, camera applications, etc. that are native to the operating system; or applications developed by third-party developers, such as instant Communication programs, photo beautification programs, etc.
  • the IOS system includes: a core operating system layer 320 (English: Core OS layer), and a core service layer 340 (English: Core Services layer) ), A media layer 360 (English: Media layer), and a touchable layer 380 (English: Cocoa Touch Layer).
  • the core operating system layer 320 includes an operating system kernel, drivers, and a low-level program framework. These low-level program frameworks provide functions closer to the hardware for use by the program framework located in the core service layer 340.
  • the core service layer 340 provides system services and / or program frameworks required by applications, such as a Foundation framework, an account framework, an advertising framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so on. .
  • the media layer 360 provides audio-visual-related interfaces for applications, such as interfaces related to graphics and images, interfaces related to audio technology, interfaces related to video technology, and wireless playback (English: AirPlay) interfaces for audio and video transmission technologies.
  • the touchable layer 380 provides various commonly-used interface-related frameworks for application development. The touchable layer 380 is responsible for user touch interaction operations on the terminal 100. For example, a local notification service, a remote push service, an advertising framework, a game tool framework, a message user interface interface (English: User Interface) framework, a user interface UIKit framework, a map framework, and so on.
  • frameworks related to most applications include, but are not limited to, a basic framework in a core service layer 340 and a UIKit framework in a touchable layer 380.
  • the basic framework provides many basic object classes and data types, and provides the most basic system services for all applications, regardless of the UI.
  • the classes provided by the UIKit framework are basic UI class libraries for creating touch-based user interfaces.
  • IOS applications can provide UIs based on the UIKit framework, so it provides the application's infrastructure for building user interfaces and drawing. , Handling and user interaction events, responding to gestures, and more.
  • the touch display screen 130 is used for receiving a user's touch operation on or near any suitable object using a finger, a touch pen, or the like, and displaying a user interface of each application program.
  • the touch display screen 130 is generally disposed on a front panel of the terminal 130.
  • the touch display screen 130 may be designed as a full screen, a curved screen or a special-shaped screen.
  • the touch display screen 130 can also be designed as a combination of a full screen and a curved screen, and a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment. among them:
  • the full screen may refer to a screen design in which the touch screen display 130 occupies the front panel of the terminal 100 with a screen ratio exceeding a threshold (such as 80% or 90% or 95%).
  • One calculation method of the screen ratio is: (the area of the touch display screen 130 / the area of the front panel of the terminal 100) * 100%; another calculation method of the screen ratio is: (the actual display area in the touch display screen 130) Area / the area of the front panel of the terminal 100) * 100%; another way to calculate the screen ratio is: (the diagonal of the touch screen 130 / the diagonal of the front panel of the terminal 100) * 100% .
  • almost all areas on the front panel of the terminal 100 are touch display screens 130.
  • On the front panel 40 of the terminal 100 areas other than the edges generated by the middle frame 41 Are all touch display screens 130.
  • the four corners of the touch display screen 130 may be right-angled or rounded.
  • the full screen may also be a screen design in which at least one front panel component is integrated inside or below the touch display screen 130.
  • the at least one front panel component includes a camera, a fingerprint sensor, a proximity light sensor, a distance sensor, and the like.
  • other components on the front panel of the conventional terminal are integrated in all or part of the touch display screen 130. For example, after the photosensitive element in the camera is divided into multiple photosensitive pixels, each photosensitive The pixels are integrated in a black area in each display pixel in the touch display screen 130. Since at least one front panel component is integrated inside the touch display screen 130, the full screen has a higher screen ratio.
  • the front panel components on the front panel of the traditional terminal can also be set on the side or back of the terminal 100.
  • an ultrasonic fingerprint sensor is set under the touch display screen 130, and a bone conduction type
  • the handset is disposed inside the terminal 130, and the camera is disposed on the side of the terminal and is pluggable.
  • a single side of the middle frame of the terminal 100 or two sides (such as left and right sides), or four sides (such as (Upper, lower, left, and right sides) are provided with edge touch sensors 120, which are used to detect the user's touch operations, click operations, press operations, and slide operations on the middle frame. At least one operation.
  • the edge touch sensor 120 may be any one of a touch sensor, a thermal sensor, and a pressure sensor. The user can apply an operation on the edge touch sensor 120 to control an application program in the terminal 100.
  • the curved screen refers to a screen design in which the screen area of the touch display screen 130 is not in a plane.
  • a curved screen has at least one cross section: the cross section has a curved shape, and the projection of the curved screen in any plane direction perpendicular to the cross section is a flat screen design, where the curved shape may be U-shaped.
  • the curved screen refers to a screen design manner in which at least one side is a curved shape.
  • the curved screen refers to that at least one side of the touch display screen 130 extends to cover the middle frame of the terminal 100.
  • the curved screen refers to a screen design in which the left and right sides 42 are curved; or the curved screen refers to a screen design in which the upper and lower sides are curved; or, Curved screen refers to a screen design with four curved sides on the top, bottom, left, and right.
  • the curved screen is made of a touch screen material with a certain flexibility.
  • the special-shaped screen is a touch screen with an irregular appearance, and the irregular shape is not a rectangle or a rounded rectangle.
  • the special-shaped screen refers to a screen design provided with protrusions, notches, and / or holes on the rectangular or rounded rectangular touch display screen 130.
  • the protrusion, the notch and / or the hole can be located at the edge of the touch display screen 130, the center of the screen, or both.
  • the protrusion, notch and / or hole When the protrusion, notch and / or hole is set on one edge, it can be set at the middle position or both ends of the edge; when the protrusion, notch and / or hole is set on the center of the screen, it can be set above the screen One or more of the region, the upper left region, the left region, the lower left region, the lower region, the lower right region, the right region, and the upper right region.
  • the protrusions, notches, and digging holes can be distributed in a centralized or distributed manner; they can be distributed symmetrically or asymmetrically.
  • the number of the protrusions, notches and / or holes is not limited.
  • the special-shaped screen covers the upper and / or lower forehead area of the touch display screen as a displayable area and / or an operable area, so that the touch-screen display occupies more space on the front panel of the terminal, so the special-shaped screen also has Larger screen ratio.
  • the notches and / or holes are used to receive at least one front panel component, which includes a camera, a fingerprint sensor, a proximity light sensor, a distance sensor, a handset, an ambient light sensor, and a physical button. At least one.
  • the notch may be provided on one or more edges, and the notch may be a semicircular notch, a right-angled rectangular notch, a rounded rectangular notch, or an irregularly shaped notch.
  • the special-shaped screen may be a screen design provided with a semi-circular notch 43 at the center of the upper edge of the touch display 130, and the space vacated by the semi-circular notch 43 is used.
  • the special-shaped screen may be on the lower edge of the touch display screen 130
  • the screen design of the semi-circular notch 44 is set in the center position, and the space vacated by the semi-circular notch 44 is used to accommodate at least one component of a physical button, a fingerprint sensor, and a microphone; as shown schematically in FIG. 7
  • the special-shaped screen may be a screen design provided with a semi-elliptical notch 45 in the center of the lower edge of the touch display screen 130, and a semi-elliptical notch is formed on the front panel of the terminal 100.
  • the notch encloses an elliptical area, which is used to accommodate physical keys or fingerprint recognition modules.
  • the screen shown in Figure 7 is also called a screen-in-screen;
  • the special-shaped screen may be a screen design provided with at least one small hole 46 in the upper half of the touch display screen 130.
  • the space vacated by the small hole 46 is used to accommodate a camera At least one of a front panel component of a distance sensor, a handset, an ambient light sensor.
  • the screen with the notch is also called Liu Haiping.
  • a water drop-shaped fringe screen is shown, in which the water drop-shaped notch 47 occupies a smaller screen area than other notch shapes, which helps to increase the screen ratio.
  • the water-drop-shaped notch 47 is located on the edge of the touch display screen 130.
  • the screen ratio of the terminal using a drop-shaped bangs screen can be expanded to 91.5%.
  • the structure of the terminal 100 shown in the above drawings does not constitute a limitation on the terminal 100.
  • the terminal may include more or fewer components than shown, or a combination of some Components, or different component arrangements.
  • the terminal 100 further includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (English: Wireless Fidelity, WiFi: abbreviation: WiFi) module, a power supply, and a Bluetooth module, and details are not described herein again.
  • Sidebar refers to a virtual bar-shaped area displayed next to the side of the terminal. In this virtual bar-shaped area, a sidebar icon is displayed. In practical applications, the sidebar may be called a smart sidebar, a function extension bar, or a control bar, etc., which is not limited in this application.
  • the side refers to an edge that intersects with the top edge and the bottom edge of the display screen.
  • FIG. 10 illustrates a schematic diagram of a side of the screen.
  • the long side 1010 and the long side 1020 are side edges
  • the short side 1030 is
  • the top edge and short edge 1040 are the bottom edges.
  • FIG. 11 illustrates a schematic diagram of the side of another screen.
  • the short side 1030 and the short side 1040 are side sides, and the long side 1020 is the top side, and long side 1010 is the bottom side.
  • the sidebar includes at least two sub-regions. In this implementation, multiple different categories of controls may be included in the sidebar at the same time.
  • FIG. 12 is a schematic diagram of a side of another screen according to an exemplary embodiment of the present application.
  • the sidebar 1200 includes a first sub-region 1210, a second sub-region 1220, and a third sub-region 1230. It should be noted that the function controls displayed in each sub-area are displayed in the form of sidebar icons.
  • the first sub-region 1210 is used to place important function controls provided by the system such as the shorthand function control 1211 or the file table function control 1212.
  • the terminal may fix the first sub-region 1210 so that the display controls in the first sub-region 1210 are not changed, that is, the side displayed in the first sub-region 1210 is fixed.
  • the sidebar icon does not change.
  • the first sub-region 1210 may also be referred to as a fixed function region.
  • the functional controls provided in the first sub-region 1210 are not limited in this application, and the above functional controls are only for illustrative purposes.
  • the second sub-region 1220 is used to place a shortcut function control.
  • the shortcut function may be a system service provided by the operating system or an application service provided by a third-party application.
  • the second sub-region 1220 may also be referred to as a shortcut tool region.
  • the system service may be a shortcut function such as a screenshot function control, a screen recording function control, a translation function control, a voice assistant control, and a cleanup acceleration control.
  • the application service may be an independent function in a third-party application.
  • a code scanning function in a payment application a code scanning function in a social application
  • a car checking function in a car calling application to view a current order vehicle location
  • a positioning function in a takeaway application to view a takeaway location.
  • this application does not limit the shortcut function controls set in the second sub-region 1220, and the above shortcut function controls are only for illustrative purposes.
  • the second sub-region 1220 may be an empty bar, that is, the sidebar icon displayed in the second sub-region 1220 may be an add control.
  • the terminal When the add control is triggered by clicking, the terminal will Add another sidebar icon in the second sub-area 1220.
  • the number of rows and columns of icons on one page of the second sub-region 1220 is 1 row and 2 columns, that is, the terminal displays 1 ⁇ 2 sidebar icons in the second sub-region 1220.
  • the terminal When the displayed number exceeds the number that can be displayed on one page, the terminal will display a sidebar icon on other pages of the second sub-region 320. For example, when four sidebar icons need to be displayed in the second sub-region 1220, the terminal displays the first and second sidebar icons on the first page of the second sub-region 1220, and The third and fourth sidebar icons appear on the page.
  • the third sub-region 1230 is used to place a startup icon of a third-party application.
  • the third sub-region may also be referred to as a shortcut application region.
  • the number of rows and columns of icons of one page of the third sub-region 1230 is 3 rows and 2 columns. That is, in one page of the third sub-region 1230, six sidebar icons can be displayed.
  • the second sub-area 1230 may be an empty bar, that is, the sidebar icon displayed in the second sub-area 1230 may be an add control.
  • the add control When the add control is triggered by clicking, the terminal will Add another sidebar icon in the second sub-area 1230.
  • the startup icon of the third-party application displayed in the third sub-area 1230 may display a floating window identifier on one corner of the icon, and the floating window identifier may be displayed at the same time as the application corner mark. For example, if the corner mark of the third-party application displays the upper right corner of the startup icon, the floating window identifier may be displayed at any one of the lower right corner, the upper left corner, and the lower left corner of the startup icon.
  • the number of unread messages is displayed in a corner of a startup icon of the third-party application.
  • the sidebar icon is a split application of a designated third-party application
  • the name directly below the sidebar icon may indicate that the application is a split application.
  • the sidebar icon is an icon of a quick application
  • the sidebar icon may be represented in a grayscale different from a startup icon of a third-party application.
  • the icon of the quick application may also display a quick application mark in one of the unoccupied corners.
  • a display screen such as a special-shaped screen, a rectangular screen, a rounded rectangular screen, or an oval screen
  • the side refers to the edge of the display screen abutting the left edge or the right edge of the user interface.
  • the special-shaped screen may include a bangs screen.
  • the bangs screen includes a rectangular grooved bangs screen, a rounded rectangular grooved bangs screen, a semi-circular grooved bangs screen, or a rounded grooved bangs screen.
  • the rounded groove bangs can also be called drop-shaped bangs.
  • Sidebar display instruction used to instruct the terminal to display the sidebar on the current user interface.
  • the sidebar display instruction may be an instruction generated when a trigger operation of a user is received.
  • the terminal when the terminal is in a horizontal screen state, the terminal may generate the sidebar display instruction when the user slides from the outside of the side to the inside of the screen.
  • the terminal when the terminal is in a horizontal screen state, when the user presses the area where the front camera is located for a long time, the sidebar display instruction is generated.
  • the terminal when the terminal is in a vertical screen state, the terminal may also generate the sidebar display instruction when the user slides from the outside of the side to the inside of the screen.
  • the sidebar display instruction may be an instruction generated when the terminal switches to a specified state. For example, when the terminal is switched from a vertical screen state to a horizontal screen state, if the terminal does not display a sidebar at this time, a sidebar display instruction is generated. As another example, when the video playback software is switched from the window playback mode to the full-screen playback mode, if the terminal does not display a sidebar at this time, a sidebar display instruction is generated.
  • the display instruction in the sidebar may be an instruction generated when the terminal receives environmental sensing information. For example, when the terminal detects that the ambient light intensity is higher than a specified threshold, the terminal generates a sidebar display instruction. Alternatively, when the terminal detects that the ambient light intensity is lower than a specified threshold, the terminal generates a sidebar display instruction. Alternatively, when the terminal detects the specified voice information, the terminal generates a sidebar display instruction.
  • Properties of the foreground application including the type of the foreground application or the application scenario in which the foreground application is located.
  • the type of the foreground application includes the type of use of the application, including camera type, game type, shopping type, instant messaging type, blog type, drawing type, text editing type, booking type, map navigation type, and video playback type , Live broadcast type, browser type, reading type, music type, financial payment type, photo beautification type, smart device control type, phone type, text message type, weather type, clock type, system search type, contact type, shared traffic type , Logistics type, taxi type, takeaway type, attendance punch type and scan code type.
  • the application scenario where the foreground application is located refers to the application scenario where the foreground application in the terminal is currently located.
  • One application in the terminal may correspond to one application scenario, or it may correspond to two or more application scenarios.
  • the terminal determines the number of application scenarios corresponding to the foreground application k according to the application identifier of the foreground application, where k is a positive integer; when k equals 1, determines the application scenario corresponding to the foreground application, which is the foreground application location. When k is not less than 2, the application scenario in which the foreground application is located is determined according to the first application programming interface API called by the foreground application.
  • the scene corresponding to the news reading application A is a text reading scene; the scene corresponding to the news reading application B is at least one of a text reading scene, a picture browsing scene, and a video playback scene.
  • the terminal previously stores an application scenario corresponding to the news reading application A, that is, a text reading scenario.
  • Application scenarios corresponding to the news reading application B that is, text reading scenarios, picture viewing scenarios, and video playback scenarios.
  • the terminal may obtain an application identifier of the news reading application A. For example, the installation package name of the news reading application A is obtained, and the installation package name is determined as the application identifier of the news reading application A. The terminal determines that the number of application scenarios k corresponding to the news reading application A is equal to 1, and determines the text reading scenario as the application scenario in which the news reading application A is located.
  • the terminal may obtain an application identifier of the news reading application B.
  • the terminal will determine the number k of application scenarios corresponding to the news reading application B according to the installation package name of the news reading application B, which is not less than two.
  • the terminal determines the application scenario in which the foreground application is located according to the first API (Application Programming Interface) called by the foreground application.
  • the first API Application Programming Interface
  • the terminal will determine the application scenario in which the foreground application is located according to the first API called by the foreground application.
  • the terminal may determine an application scenario corresponding to the first API according to a preset scenario mapping relationship, where the scenario mapping relationship is used to indicate a mapping relationship from the API to the application scenario; determining the application scenario corresponding to the first API, The application scenario where the foreground application is located.
  • Table 2 shows a mapping relationship of API mapping to application scenarios.
  • FIG. 13 is a flowchart of a method for displaying an icon according to an exemplary embodiment of the present application.
  • the icon display method can be applied to the terminal shown in FIG. 1 to FIG. 9.
  • the display method of the icon includes:
  • Step 1310 When a sidebar display instruction is received, the attributes of the foreground application are obtained.
  • the sidebar display instruction is used to instruct the terminal to display the sidebar on the current user interface.
  • the sidebar includes at least two sub-areas. Attributes include the type of foreground application or the application scenario in which the foreground application is located.
  • the terminal can obtain a type of a foreground application when receiving a display instruction in a sidebar.
  • the terminal when receiving a sidebar display instruction, the terminal obtains an application scenario in which a foreground application is located.
  • the operating system carried in the terminal is an Android system
  • the terminal can obtain the application package name at the top of the stack from the stack where the application is running, and the application package name at the top of the stack is the foreground application Package names.
  • the terminal After the terminal obtains the identification (package name) of the foreground application, the terminal may determine the application scenario in which the application is located according to the application identification. In different terminal function designs and terminal architectures, the manner of determining the application scenario in which the foreground application is located is different.
  • the foreground application corresponds to only one application scenario.
  • the terminal determines the application scenario corresponding to the foreground application as the application scenario in which the foreground application is located.
  • the foreground application corresponds to at least two application scenarios.
  • the terminal can determine the application scenario in which the current application is located through the API currently called by the foreground application. For example, when the front-end application calls the video playback API, it is determined that the foreground application is in a video playback scene. When the front-end application calls the game optimization API, it is determined that the front-end application is in a game battle scenario.
  • the sidebar that the terminal needs to display includes at least two sub-areas, and the sidebar display instruction is used to instruct the terminal to display the sidebar.
  • Step 1320 Determine the number of rows and columns of icons of each of the at least two sub-regions according to the attributes of the foreground application. The number of rows and columns of icons is used to indicate the number of rows and columns of the sidebar icons in one page of one sub-region.
  • the terminal may determine the number of icons and columns of each of the at least two sub-regions according to the type of the foreground application.
  • the terminal determines the number of icons and columns of each of the at least two sub-areas according to the application scenario in which the foreground application is located.
  • each sub-area has its own number of rows and columns.
  • the terminal includes the first sub-area, the second sub-area, and the third sub-area.
  • the number of rows in the sidebar icon is 1, and the number of columns is 2.
  • the number of rows in the sidebar icon is 2, the number of columns is 2.
  • the side The sidebar icon has 3 rows and 2 columns.
  • the number of rows and columns of icons between different pages may be equal.
  • Step 1330 Display a sidebar icon in each of the at least two sub-regions according to the number of rows and columns of the icons of the at least two sub-regions.
  • the terminal can determine the display area of each sub-area according to the number of icons and columns of each sub-area in the sidebar. After the corresponding sub-area is displayed in the designated display area, the terminal will display a sidebar icon in each sub-area.
  • the terminal determines the display area of the sub-area on the screen according to the number of rows and columns of icons of each sub-area in the sidebar.
  • the terminal displays a subarea on the screen, a sidebar icon is displayed in the subarea.
  • the icon display method provided in this embodiment can obtain the attributes of the foreground application when the terminal receives a sidebar display instruction, and determine the number of icons and columns of each of the at least two sub-regions according to the attributes of the foreground application. A sidebar icon is then displayed in each of the at least two sub-regions based on the respective number of rows and columns of icons of the at least two sub-regions.
  • the terminal can determine the number of rows and columns of icons in the corresponding sub-area according to the attributes of the foreground application, so that more icons can be displayed in the sub-area that is more commonly used than the foreground application, Fewer sub-regions can display fewer icons, which improves the efficiency of users using functions corresponding to the sidebar icons in the designated foreground application.
  • the embodiment of the present application can also automatically adjust the arrangement of the sidebar icons in each sub-area based on the usage of the sidebar icons. Please refer to the following embodiments.
  • FIG. 14 is a flowchart of a method for displaying an icon according to another exemplary embodiment of the present application.
  • the icon display method can be applied to the terminal shown in FIG. 1 to FIG. 9.
  • the icon display method includes:
  • Step 1401 When receiving a display instruction in a sidebar, obtain an application identifier of a foreground application.
  • the terminal when receiving a display instruction in a sidebar, the terminal can obtain an application identifier of a foreground application.
  • the operating system carried in the terminal is an Android system
  • the terminal can obtain the application package name at the top of the stack from the stack in which the application is running, and the application package name at the top of the stack is the foreground application.
  • Package names if the operating system carried in the terminal is an Android system, the terminal can obtain the application package name at the top of the stack from the stack in which the application is running, and the application package name at the top of the stack is the foreground application. Package names.
  • the terminal may determine the application scenario in which the application is located according to the application identification. In different terminal function designs and terminal architectures, the manner of determining the application scenario in which the foreground application is located is different.
  • Step 1402 According to the application identifier of the foreground application, determine the application scenario in which the foreground application is located from the scenario configuration file.
  • the scene configuration file is a file preset in a terminal or downloaded from a server.
  • the terminal may find the correspondence between the application identifier and the corresponding application scenario in the scene configuration file according to the application identifier of the foreground application, and according to the correspondence relationship, the terminal will determine the application scenario in which the application is located.
  • the terminal may determine the number of application scenarios k corresponding to the foreground application according to the application identifier of the foreground application. It should be noted that k is a positive integer.
  • the application scenario corresponding to the foreground application is determined as the application scenario in which the foreground application is located.
  • the application scenario in which the foreground application is located is determined according to the first application programming interface API called by the foreground application.
  • the terminal may determine an application scenario corresponding to the first API according to a preset scenario mapping relationship.
  • the scenario mapping relationship is used to indicate a mapping relationship from an API to an application scenario.
  • the terminal may determine the application scenario corresponding to the first API as the application scenario where the foreground application is located.
  • the front-end application calls the video playback API
  • the foreground application is in a video playback scene.
  • the front-end application calls the game optimization API, it is determined that the front-end application is in a game battle scenario.
  • the terminal determines an application running in the focus screen as a foreground application.
  • the terminal can determine the application scenario where the foreground application is located from the scenario configuration file according to the identification of the foreground application.
  • the terminal determines the application running in the focus screen as the foreground application.
  • the terminal can also display a sidebar icon in an area other than the focus screen.
  • the terminal can display a sidebar icon in a display area other than the focus screen.
  • step 1403 when there are multi-page sub-regions in at least two sub-regions, the historical page turning times or historical page-turning frequencies of the multi-page sub-regions in the application scenario are determined.
  • the sub-area of the sidebar includes one page or at least two pages.
  • the sub-region can be called a single-page sub-region.
  • the sub-area of the sidebar contains at least two pages, the sub-area may be referred to as a multi-page sub-area.
  • the multi-page sub-area is a sub-area including at least two pages and the number of icon rows and columns includes m1 rows and n1 columns. One sub-area displays one page at the same time.
  • the terminal can determine the number of historical page turning times or the historical page turning frequency when there are multiple page subareas in the sidebar.
  • the terminal directly counts the number of historical page turning times or the historical page turning frequency of the multi-page sub-region.
  • the multi-page sub-area includes a total of three pages including a first page, a second page, and a third page.
  • the number of times the terminal switches from the first page to the second page t1 the number of times t2 from the second page to the third page, the number of times t3 from the third page to the second page, and
  • the number t4 of switching from the second page to the first page is counted together, so that the historical page turning times of the multi-page sub-region is (t1 + t2 + t3 + t4).
  • the terminal may count statistics from the third page based on the above example
  • the number of times of switching to the first page is t5, so that the historical page turning times are (t1 + t2 + t3 + t4 + t5).
  • the historical page turning frequency may be the number of times of the above-mentioned historical page turning times within a specified time. For example, the frequency of use in 10 minutes, the frequency of use in 1 hour, the frequency of use in 1 day, or the frequency of use in 30 days, and so on.
  • the terminal counts the number of historical page turnings or the historical page turning frequency according to the application scenario corresponding to the sidebar. For example, the terminal will count the historical page turning times or historical page turning frequency of the multi-page subregion in this scenario for an application scenario.
  • step 1404 when the number of historical page turning is greater than the first threshold, or when the historical page turning frequency is greater than the second threshold, a low frequency sub-region among at least two sub-regions is determined.
  • the terminal can determine the number of historical page turnings or the frequency of historical page turning.
  • the low-frequency sub-region may be the sub-region with the least total number of times that the sidebar icon is triggered, or the sub-region with the lowest frequency of the sidebar icon being triggered. It should be noted that the frequency at which the sidebar icon is triggered is the ratio of the total number of times the sidebar icon is triggered in the sub-region to the specified time period.
  • the first threshold value may be a threshold value pre-stored by the terminal, for example, an integer value such as 300, 500, or 1000.
  • the second threshold may be a frequency value pre-stored by the terminal, such as 3 times per minute, 50 times per hour, or 160 times per day, and so on.
  • the number of icon rows and columns of the low frequency sub-region is m2 rows and n2 columns.
  • m2 can be a value such as 1, 2, or 3.
  • n2 may also be a value such as 1, 2, or 3.
  • the terminal may perform step 14051 or step 14052.
  • the first mode refers to a mode in which the sidebar is displayed on the left or right side of the current user interface.
  • FIG. 15 is a schematic diagram of a display mode of a sidebar in a vertical screen state according to the embodiment shown in FIG. 14.
  • the display state of the terminal is a vertical screen state
  • the side bar is displayed abutting on the left edge 1510 of the screen, or is displayed abutting on the right edge 1520 of the screen.
  • FIG. 16 is a schematic diagram of a display mode of a sidebar in a landscape mode based on the embodiment shown in FIG. 14.
  • the display state of the terminal is a horizontal screen state
  • the side bar is displayed abutting on the left edge 1610 of the screen, or displayed on the right edge 1620 of the screen.
  • this application can not only determine the number of rows and columns of icons in each sub-region according to the application scenario of the foreground application. Moreover, the number of rows and columns of icons in each sub-area of the sidebar corresponding to an application scenario can also be adjusted. Optionally, adjusting the number of rows and columns of icons in each sub-area in the sidebar corresponding to the application scenario may be performed when the terminal starts an application scenario.
  • the sidebar displays the sidebar according to the number of rows and columns of icons in each sub-region corresponding to the video playback scene.
  • the terminal can also determine the number of sub-regions and low-frequency sub-regions in the sidebar before determining the number of icons and columns in each sub-region corresponding to the video playback scene. Under the corresponding conditions, adjust the number of rows and columns of icons in each sub-region corresponding to the video playback scene.
  • the sub-region z2 is a multi-page sub-region
  • the sub-region z3 is a low-frequency sub-region
  • the sub-region z2 satisfies a historical page turning frequency greater than a second threshold.
  • the terminal may adjust the number of lines m1 of the sub-region z2 and the number of lines m2 of the sub-region z3 according to a preset adjustment strategy.
  • the preset adjustment strategy is to set p to 1. Therefore, the number of rows of the adjusted sub-region z2 is three, and the number of rows of the sub-region z3 is one.
  • this application can not only provide sub-areas of different sizes in different application scenarios, enable more corresponding sidebar icons to be displayed in corresponding application scenarios, and reduce the user's page-turning operations for sub-regions.
  • the number of rows and columns of icons for the sub-area of the application scenario can be adjusted according to the actual usage of the user. The longer the user uses the sidebar, the more it can adapt to the user's operating habits, saving users' operating steps and Time, to improve the efficiency of users using sidebar icons in the specified application scenarios.
  • the second mode refers to a mode in which the sidebar is displayed at the top or bottom of the current user interface.
  • FIG. 17 is a schematic diagram of a display mode of a sidebar in a landscape mode based on the embodiment shown in FIG. 14.
  • the display state of the terminal is a horizontal screen state
  • the side bar is displayed against the top edge 1630 of the screen, or is displayed against the bottom edge 1640 of the screen.
  • this application can not only determine the number of rows and columns of icons in each sub-region according to the application scenario of the foreground application. Moreover, the number of rows and columns of icons in each sub-area of the sidebar corresponding to an application scenario can also be adjusted. Optionally, adjusting the number of rows and columns of icons in each sub-area in the sidebar corresponding to the application scenario may be performed when the terminal starts an application scenario.
  • the sidebar displays the sidebar according to the number of rows and columns of icons in each sub-region corresponding to the video playback scene.
  • the terminal can also determine the number of sub-regions and low-frequency sub-regions in the sidebar before determining the number of icons and columns in each sub-region corresponding to the video playback scene. Under the corresponding conditions, adjust the number of rows and columns of icons in each sub-region corresponding to the video playback scene.
  • the sub-region z5 is a multi-page sub-region
  • the sub-region z6 is a low-frequency sub-region
  • the sub-region z5 satisfies the historical page turning frequency greater than the second threshold.
  • the terminal may adjust the number of lines m1 of the sub-region z5 and the number of lines m2 of the sub-region z6 according to a preset adjustment strategy.
  • the preset adjustment strategy is to set p to 1. Therefore, the number of columns of the adjusted sub-region z2 is three, and the number of columns of the sub-region z3 is one.
  • m1, n1, m2, n2, p, and q are natural numbers, m2 is not less than p, and n2 is not less than q.
  • Step 1406 Determine the shape and size of the sub-area in the sidebar according to the number of rows and columns of icons in the sub-area.
  • the terminal will determine the shape and size of the sub-area in the sidebar according to the number of rows and columns of icons of the sub-area.
  • the number of rows and columns of icons in the three sub-regions z1 in the sidebar is row number 1, column number 2; the number of rows and columns of icons in the sub-region z2 is row number 2, and column number 2; The number is the number of rows 2 and the number of columns 2.
  • the number of rows and columns of the icons in the three sub-regions z1 in the sidebar is row number 1, and the number of columns is 2; the number of rows and columns of the icons in the sub-region z2 is number of rows 1, 2; Number of rows 3, number of columns 2.
  • the terminal will determine the size and shape of each sub-region in the sidebar according to the number of rows and columns of icons in the different sub-regions.
  • the size and shape are used to describe geometric parameters such as the side length, overall shape, and area of each side of the sub-region.
  • Step 1407 Determine the display position of the subregion in the sidebar according to the shape and size of the subregion in the sidebar and the display order of the subregion.
  • the display sort is a relative display sort between at least two sub-regions preset in the sidebar.
  • a sidebar it is divided into 3 areas from top to bottom to display 3 sub-areas.
  • Each sub-area in the sidebar has its own display order.
  • the sub-area with a display order of 1 needs to be displayed at the top position of the sidebar
  • the sub-area with a display order of 2 needs to be displayed at the center position of the sidebar.
  • the display sub-area with the order of 3 needs to be displayed at the bottom of the sidebar.
  • Step 1408 Display the sub-area at the display position.
  • the terminal can display the sub-area at the display position.
  • Step 1409 In the sub-area, display at least one corresponding sidebar icon.
  • the terminal may perform step 14091, step 14092, and step 14093 to replace step 1409 to display a sub-region, and display at least one sidebar icon function in the sub-region.
  • Step 14091 When the sub-area is a multi-page sub-area, determine a sidebar icon included in the multi-page sub-area.
  • the terminal determines a sidebar icon in the multi-page sub-area.
  • the number of icons in the sidebar may be at least two, the multi-page subregion is a subregion including i pages, and i is a positive integer not less than 2.
  • the sidebar icon included in the sidebar is at least one of an important function control, a shortcut function control, and a startup icon of a third-party application.
  • the sidebar icon included in the sidebar may be an add control.
  • Step 14092 Determine the historical usage frequency or historical usage frequency of the sidebar icon included in the multi-page sub-area in the application scenario.
  • the terminal determines the respective historical usage times of the sidebar icons included in a multi-page sub-area in the application scenario where the foreground application is currently located, or determines the side edges included in the multi-page sub-area.
  • the historical frequency of use of each bar icon is not limited to one hour.
  • step 14093 the sidebar icons are arranged in the multi-page sub-area from the jth page to the j + 1th page according to the historical usage frequency or the historical usage frequency from high to low.
  • the terminal can arrange the sidebar icons in a multi-page sub-area in order from the historical usage frequency or historical usage frequency from high to low, from the jth page to the j + 1th page. .
  • j is a positive integer
  • j + 1 is not greater than i
  • the j-th page may be a page on which a sidebar icon is currently arranged.
  • the terminal can specify the priority of each icon position on a page basis, and the icons on the same page have the same priority. For example, from page 1, page 2, ..., page i-1, to page i, the priority can be from high to low.
  • the terminal may also specify icon positions of different priorities on the same page, and arrange the sidebar icons according to the priority of the icon positions.
  • FIG. 18 is a schematic diagram of an icon position priority according to the embodiment shown in FIG. 14.
  • a sub-region 1810, a sub-region 1820, and a sub-region 1830 are displayed in a sidebar.
  • a sidebar icon 1811 and a sidebar icon 1812 whose positions cannot be changed are displayed in the sub-region 1810.
  • the icon position 1821 in the sub-region 1820 has a higher priority than the icon position 1822.
  • the sub-area 1830 in order of priority, they are icon position 1831, icon position 1832, icon position 1833, icon position 1834, icon position 1835, and icon position 1836.
  • the number of sidebar icons displayed in the sub-region 1830 is less than 6, the number of pages of the terminal in the sub-region 1830 is 1, and the sidebar icons are displayed on the page.
  • the terminal displays 6 side-bar icons on the first page of the sub-region 1830, and On the page, arrange the sidebar icons in order of priority from high to low.
  • the icon display method provided in the embodiment of the present application enables the terminal to obtain the application identifier of the foreground application when receiving the display instruction in the sidebar, and determines the location of the foreground application from the scene configuration file according to the application identifier.
  • the application scenario further determines the number of rows and columns of icons in at least two sub-regions, and displays a sidebar icon in each sub-region according to the number of rows and columns of icons in at least two sub-regions.
  • this application can enable the terminal to determine the application scenario in which the foreground application is located, so that the terminal can adapt to the application scenario to provide a corresponding size of the sub-area, thereby displaying a corresponding number of sidebar icons, and improving the user's use of the specified child in the specified scene.
  • the efficiency of the sidebar icon in the area thereby achieving the effect that the user quickly triggers the function corresponding to the sidebar icon.
  • the present application can determine the number of historical page turning times or the frequency of historical page turning of a multipage subregion in an application scenario.
  • the number of page turning is greater than the first threshold, or when the historical page turning frequency is greater than the second threshold, the low frequency sub-regions in at least two sub-regions are determined.
  • the sidebar is displayed in the first mode, and each sub-region in the sidebar is displayed, When the number of columns in the regions is equal, the present application will reduce the number of rows in one page of the low frequency sub-region, and increase the reduced number of rows to the multi-page sub-region.
  • the present application can adjust the size of the sub-region according to the page turning situation of the sub-region in the application scenario, so that the sub-region where the user frequently turns pages is adaptively expanded.
  • the longer the user has used the sidebar the more the sidebar can be adapted to the user's operating habits, saving the user's operation steps and time, and improving the user's use of the sidebar icon in the specified application scenario. effectiveness.
  • the terminal can also determine the number of icons and columns of each of the at least two sub-regions in the sidebar according to the type of the foreground application. For details, see the following embodiments.
  • FIG. 19 is a flowchart of another icon display method provided by an embodiment of the present application. The method can be applied to the terminal shown in FIG. 1 to FIG. 9.
  • the icon display method includes:
  • step 1901 when a sidebar display instruction is received, an application identifier of a foreground application is obtained.
  • step 1901 is the same as that of step 1401, and details are not described herein again.
  • Step 1902 Determine the type corresponding to the foreground application according to the application identifier of the foreground application.
  • the terminal can determine the type corresponding to the foreground application according to the application identifier of the foreground application. For example, the terminal may determine the type corresponding to the foreground application according to the package name of the foreground application.
  • the correspondence may be stored in the terminal in advance, or may be stored in the server in advance, and the terminal may directly pull the corresponding relationship from the server when the terminal needs it.
  • Step 1903 Determine the number of icons and columns of each of the at least two sub-areas according to the type of the foreground application.
  • the terminal may determine the number of icons and columns of each of the at least two sub-regions according to different types of foreground applications.
  • the distribution of the size of the subregions is different for different types.
  • Table 3 shows a correspondence between a type of a foreground application and the number of rows and columns of icons in a sidebar subregion.
  • a sidebar includes three sub-regions including a sub-region z1, a sub-region z2, and a sub-region z3 as an example for description.
  • the terminal judges the type of the foreground application.
  • the terminal determines that the type of the foreground application is an instant messaging type
  • the terminal determines that the number of rows and columns of icons in the sidebar is: sub-region z1 is 1 row, 2 columns, The sub-region z2 is one row and two columns, and the sub-region z3 is three rows and two columns.
  • the terminal determines that the type of the foreground application is the default type
  • the terminal will determine the number of rows and columns of icons in the sidebar as follows: sub-region z1 is 1 row, 2 columns, sub-region z2 is 2 rows, 2 columns, and sub-region z3 is 2 rows , 2 columns. It should be noted that, when the terminal cannot find the type corresponding to the identifier of the foreground application in the correspondence between the identifier and the type of the foreground application, the terminal may determine the foreground application as the default type.
  • FIG. 20 is a schematic diagram showing a sidebar display corresponding to a foreground application of a video playback type provided by the embodiment shown in FIG. 19.
  • the current user interface is a video playback type application interface 2000.
  • a sidebar icon of 1 row and 2 columns is displayed in the first sub-region 2010, and a sidebar of 3 rows and 2 columns is displayed in the second sub-region 2020.
  • Icon, sidebar icons of one row and two columns are displayed in the third sub-region 2030.
  • the shortcut function controls such as the screenshot function control, the screen recording function control, the translation function control, the voice assistant control, and the cleanup acceleration control, can be displayed in the second sub-area.
  • the embodiment of the present application can use the above-mentioned shortcut function controls without requiring the user to turn pages in the second sub-area, so that when the terminal is in a foreground application of a video playback type, multiple shortcut function controls can be directly displayed, which improves the user's use of shortcut functions. effectiveness.
  • FIG. 21 is a schematic diagram showing a sidebar display corresponding to a front-end application of an instant messaging type provided by the embodiment shown in FIG. 19.
  • the current user interface is an instant messaging type application interface 2100.
  • a sidebar icon with 1 row and 2 columns is displayed in the first sub-region 2010, and a sidebar with 1 row and 2 columns is displayed in the second sub-region 2020.
  • the third sub area 2130 displays a sidebar icon of 3 rows and 2 columns.
  • the third sub-area 2130 may display a startup icon of a third-party application.
  • a startup icon of a third-party application For example, launch icons for other instant messaging applications, blog applications, and news reading applications.
  • the embodiment of the present application can display the startup icons of multiple third-party applications when the foreground application is an instant messaging application, which facilitates users to directly switch to a designated third-party application, and improves the efficiency of the user switching from the instant messaging application to other applications.
  • a sidebar icon is displayed in each of the at least two sub-regions according to the number of rows and columns of the icons of the at least two sub-regions.
  • step 1904 is the same as that of step 1330, and details are not described herein again.
  • the icon display method provided in the embodiment of the present application can obtain the application identifier of the foreground application when receiving a sidebar display instruction, and determine the type corresponding to the foreground application according to the application identifier of the foreground application.
  • the type of application determines the number of icons and columns of each of the at least two sub-regions. According to the number of icons and columns of each of the at least two sub-regions, a sidebar icon is displayed in each of the at least two sub-regions. Because different types of foreground applications can correspond to the size of different sidebar subregions, the steps for users to switch pages in a designated subregion can be reduced, and the efficiency of users using sidebar icons in the subregion can be improved.
  • FIG. 22 shows a structural block diagram of an icon display device provided by an exemplary embodiment of the present application.
  • the icon display device can be implemented as all or part of a terminal through software, hardware, or a combination of both.
  • the device includes:
  • An attribute obtaining module 2210 is configured to obtain attributes of a foreground application when a sidebar display instruction is received, the sidebar display instruction is used to instruct a terminal to display a sidebar on a current user interface, and the sidebar includes At least two sub-regions, the attributes of the foreground application include a type of the foreground application or an application scenario in which the foreground application is located;
  • a row and column determining module 2220 is configured to determine the number of rows and columns of icons of each of the at least two sub-regions according to the attributes of the foreground application. The number of rows and columns of icons is used to indicate that the side in one page of one of the sub-regions Number of rows and columns in the sidebar icon;
  • a sidebar display module 2230 configured to determine the size of the subarea in the sidebar according to the number of rows and columns of the icons in the subarea;
  • An icon display module 2240 is configured to display at least one sidebar icon in each of the sub-areas.
  • the icon display module 2240 is configured to determine the shape and size of the sub-region in the sidebar according to the number of rows and columns of the icons in the sub-region; The shape and size of the area in the sidebar and the display order of the subareas determine the display position of the subarea in the sidebar, and the display order is preset in the sidebar The relative display between the at least two sub-regions is displayed; the sub-region is displayed at the display position; and in the sub-region, at least one corresponding sidebar icon is displayed.
  • the icon display module 2240 is configured to determine the sidebar icons included in the multi-page sub-area when the sub-area is a multi-page sub-area.
  • the page sub-area is a sub-area containing i pages, where i is a positive integer not less than 2; determining the historical usage times of the sidebar icons included in the multi-page sub-area in the application scenario Or historical usage frequency; according to the historical usage frequency or the historical usage frequency from high to low, moving the sidebar icon from the j-th page to the j + 1-th page in the multi-page sub-area , J is a positive integer, and j + 1 is not greater than i.
  • the rank determination module 2220 is configured to determine a history of the multi-page sub-area in the application scenario when the multi-page sub-area exists in the at least two sub-areas.
  • the number of columns in the region is adjusted to (n1 + q) columns, and the number of columns in the low frequency sub-region is adjusted to (n2-q) columns
  • the second mode refers to a mode in which the sidebar is displayed at the top or bottom of the current user interface; wherein m1, n1, m2, n2, p, and q are natural numbers, m2 is not less than p, and n2 is not less than q.
  • an attribute obtaining module 2210 is configured to obtain the application identifier of the foreground application when the attributes of the foreground application include the type of the foreground application and a sidebar display instruction is received;
  • the application identification of the foreground application determines the type corresponding to the foreground application;
  • the rank determination module 2220 is configured to determine the number of icons and ranks of each of the at least two sub-areas according to the type of the foreground application.
  • the attribute obtaining module 2210 is configured to obtain attributes of the foreground application including an application scenario in which the foreground application is located, and obtain the foreground application when a sidebar display instruction is received.
  • An application identifier of the foreground application determine an application scenario in which the foreground application is located from a scenario configuration file according to the application identifier of the foreground application, and the scenario configuration file is a file preset in the terminal or downloaded from a server .
  • the attribute acquisition module 2210 is configured to determine the number of application scenarios k corresponding to the foreground application according to the application identifier of the foreground application, where k is a positive integer.
  • the attribute obtaining module 2210 is configured to determine an application scenario corresponding to the foreground application when k is equal to 1, which is an application scenario in which the foreground application is located;
  • the attribute obtaining module 2210 is configured to determine an application scenario where the foreground application is located according to a first application programming interface API called by the foreground application when k is not less than 2.
  • the attribute obtaining module 2210 is configured to determine the application scenario corresponding to the first API according to a preset scenario mapping relationship, where the scenario mapping relationship is used to indicate a slave API A mapping relationship mapped to an application scenario; determining the application scenario corresponding to the first API as an application scenario in which the foreground application is located.
  • FIG. 23 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the terminal includes a processor 2310 and a memory 2310.
  • the memory 2310 stores at least one instruction.
  • the instructions are loaded and executed by the processor 2310 to implement the icon display method according to the foregoing embodiments.
  • the screen component 2330 is configured to display a user interface and a sidebar of the foreground application.
  • An embodiment of the present application further provides a computer-readable medium, where the computer-readable medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement display of an icon according to the foregoing embodiments. method.
  • An embodiment of the present application further provides a computer program product that stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for displaying an icon according to the foregoing embodiments.
  • the screen recording device provided in the foregoing embodiment executes the icon display method
  • only the above-mentioned division of the functional modules is used as an example.
  • the above functions may be allocated by different functional modules as required.
  • the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the icon display device and the icon display method embodiments provided in the foregoing embodiments belong to the same concept. For specific implementation processes, refer to the method embodiments, and details are not described herein again.
  • the program may be stored in a computer-readable storage medium.
  • the storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk.

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

图标的显示方法、装置、终端及存储介质
本申请要求于2018年08月22日提交的申请号为201810961881.1、发明名称为“图标的显示方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机技术领域,特别涉及一种图标的显示方法、装置、终端及存储介质。
背景技术
随着移动终端运行能力的发展,终端能够在同一时间运行多个应用。
相关技术中,当用户需要使用后台应用的功能时,终端可以在前台应用中的用户界面中找到跳转至指定后台应用的接口。当用户点击该跳转接口时,终端将前台应用转入后台,将指定后台应用调入前台,接收用户的操作并为用户提供的服务。
发明内容
本申请实施例提供了一种图标的显示方法、装置、终端及存储介质,可以解决由于跳转接口通常设定在前台应用的指定位置,或,在指定条件下才显示,造成用户无法随时高效率地使用需要的功能的问题。所述技术方案如下:
一方面,提供了一种图标的显示方法,所述方法包括:
当接收到侧边栏显示指令时,获取前台应用的属性,所述侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,所述侧边栏包括至少两个子区域,所述前台应用的属性包括所述前台应用的类型或所述前台应用所处的应用场景;
根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,所述图标行列数用于指示,一个所述子区域的一个页面中的侧边栏图标的行数和列数;
根据所述至少两个子区域各自的图标行列数,在所述至少两个子区域中的每一个子区域中,显示所述侧边栏图标
另一方面,提供了一种图标的显示装置,所述装置包括:
属性获取模块,用于当接收到侧边栏显示指令时,获取前台应用的属性,所述侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,所述侧边栏包括至少两个子区域,所述前台应用的属性包括所述前台应用的类型或所述前台应用所处的应用场景;
行列确定模块,用于根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,所述图标行列数用于指示,一个所述子区域的一个页面中的所述侧边栏图标的行数和列数;
侧边栏显示模块,用于根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的大小;
图标显示模块,用于在每一个所述子区域中,分别显示至少一个侧边栏图标。
另一方面,提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如本申请提供的图标的显示方法。
另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如本申请提供的图标的显示方法。
附图说明
图1是本申请一个示例性实施例提供的终端100的结构方框图;
图2是本申请另一个示例性实施例提供的终端100的结构方框图;
图3是本申请一个示例性实施例提供的全面屏的示意图;
图4是本申请一个示例性实施例提供的曲面屏的示意图;
图5是本申请一个示例性实施例提供的一种异形屏的示意图;
图6是本申请一个示例性实施例提供的另一种异形屏的示意图;
图7是本申请一个示例性实施例提供的一种屏中孔屏幕的示意图;
图8是本申请一个示例性实施例提供的另一种屏中孔屏幕的示意图;
图9是本申请一个示例性实施例提供的水滴形刘海屏幕的示意图;
图10是本申请一个示例性实施例提供的一种屏幕的侧边的示意图;
图11是本申请一个示例性实施例提供的另一种屏幕的侧边的示意图;
图12是本申请一个示例性实施例提供的又一种屏幕的侧边的示意图;
图13是本申请一个示例性实施例提供的图标的显示方法的流程图;
图14是本申请另一个示例性实施例提供的图标的显示方法的流程图;
图15是基于图14所示的实施例提供的一种竖屏状态下的侧边栏的显示模式示意图;
图16是基于图14所示的实施例提供的一种横屏状态下的侧边栏的显示模式示意图;
图17是基于图14所示的实施例提供的一种横屏状态下的侧边栏的显示模式示意图;
图18是根据图14所示实施例提供的一种图标位置优先级的示意图;
图19是本申请实施例提供的另一种图标的显示方法的流程图;
图20是基于图19所示实施例提供的一种视频播放类型的前台应用对应的侧边栏显示的示意图;
图21是基于图19所示实施例提供的一种即时通讯类型的前台应用对应的侧边栏显示的示意图;
图22是本申请一个示例性实施例提供的图标的显示装置的结构框图;
图23是本申请一个示例性实施例提供的终端的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
相关技术中,由于跳转接口通常设定在前台应用的指定位置,或,在指定条件下才显示,造成用户无法随时高效率地使用需要的功能。
本申请实施例的方案在执行时,能够在终端接收到侧边栏显示指令时,获取前台应用的属性,根据前台应用的属性,确定至少两个子区域各自的图标行列数,随后根据至少两个子区域各自的图标行列数,在至少两个子区域中的每一个子区域中显示侧边栏图标。因此,在本申请中,终端能够根据前台应用的属性确定相应的各个子区域的图标行列数,使得相对于前台应用较多使用的子区域能够显示较多的图标,在相对于前台应用使用较少的子区域能够显示较少的图标,提高了用户在指定前台应用中使用侧边栏图标对应的功能的效率。
本申请实施例提供的图标的显示方法,包括:
当接收到侧边栏显示指令时,获取前台应用的属性,所述侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,所述侧边栏包括至少两个子区域,所述前台应用的属性包括所述前台应用的类型或所述前台应用所处的应用场景;
根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,所述图标行列数用于指示,一个所述子区域的一个页面中的侧边栏图标的行数和列数;
根据所述至少两个子区域各自的图标行列数,在所述至少两个子区域中的每一个子区域中,显示所述侧边栏图标。
可选地,所述根据所述至少两个子区域各自的图标行列数,在所述至少两个子区域中的每一个子区域中,显示所述侧边栏图标,包括:
根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的形状尺寸;
根据所述子区域在所述侧边栏中的形状尺寸和所述子区域的显示排序,确定所述子区域在所述侧边栏中的显示位置,所述显示排序是所述侧边栏中所述至少两个子区域之间的显示相对排序;
在所述显示位置显示所述子区域;
在所述子区域中,显示对应的至少一个所述侧边栏图标。
可选地,所述在所述子区域中,显示对应的至少一个所述侧边栏图标,包括:
当所述子区域是多页子区域时,确定所述多页子区域中包含的所述侧边栏图标,所述多页子区域是包含i个所述页面的子区域,i是不小于2的正整数;
确定在所述应用场景中,所述多页子区域中包含的所述侧边栏图标的历史使用次数或历史使用频率;
根据所述历史使用次数或所述历史使用频率从高到低的顺序,在所述多页子区域中将所述侧边栏图标,从第j页面向第j+1页面的顺序排布,j为正整数,j+1不大于i。
可选地,当所述前台应用的属性包括所述前台应用所处的应用场景时,所述根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,包括:
当所述至少两个子区域中存在所述多页子区域时,确定所述应用场景下所述多页子区域的历史翻页次 数或历史翻页频率,所述多页子区域的图标行列数为m1行和n1列,一个所述子区域在同一时刻显示一个所述页面;
当所述历史翻页次数大于第一阈值时,或者,所述历史翻页频率大于第二阈值时,确定所述至少两个子区域中的低频子区域,所述低频子区域的图标行列数为m2行和n2列;
当所述侧边栏以第一模式显示,且n1=n2时,将所述多页子区域的行数调整为(m1+p)列,将所述低频子区域的行数调整为(m2-p),所述第一模式指所述侧边栏在所述当前用户界面的左侧或右侧显示的模式;
当所述侧边栏以第二模式显示,且m1=m2时,将所述多页子区域的列数调整为(n1+q)列,将所述低频子区域的列数调整为(n2-q)列,所述第二模式指所述侧边栏在所述当前用户界面的顶端或底端显示的模式;
其中,m1、n1、m2、n2、p和q为自然数,m2不小于p,n2不小于q。
可选地,当所述前台应用的属性包括所述前台应用的类型时,所述当接收到侧边栏显示指令时,获取前台应用的属性,包括:
当接收到侧边栏显示指令时,获取前台应用的应用标识;
根据所述前台应用的应用标识,确定所述前台应用对应的类型;
所述根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,包括:
根据所述前台应用的类型,确定所述至少两个子区域各自的图标行列数。
可选地,当所述前台应用的属性包括所述前台应用所处的应用场景时,所述当接收到侧边栏显示指令时,获取前台应用的属性,包括:
当接收到侧边栏显示指令时,获取所述前台应用的应用标识;
根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,所述场景配置文件是预置在所述终端中或从服务器中下载得到的文件。
可选地,所述根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,包括:
当所述终端处于分屏模式时,将焦点分屏中运行的应用确定为所述前台应用;
根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景。
可选地,所述根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,包括:
根据所述前台应用的应用标识,确定所述前台应用对应的应用场景数量k,k为正整数;
当k等于1时,确定所述前台应用对应的应用场景,为所述前台应用所处的应用场景;
当k不小于2时,根据所述前台应用调用的第一应用程序编程接口API,确定所述前台应用所处的应用场景。
可选地,所述根据所述前台应用调用的第一API,确定所述前台应用所处的应用场景,包括:
根据预设的场景映射关系,确定所述第一API对应的所述应用场景,所述场景映射关系是用于指示从API映射到应用场景的映射关系;
将所述第一API对应的所述应用场景,确定为所述前台应用所处的应用场景。
参考图1和图2所示,其示出了本申请一个示例性实施例提供的终端100的结构方框图。该终端100可以是手机、平板电脑、笔记本电脑和电子书等。本申请中的终端100可以包括一个或多个如下部件:处理器110、存储器120和触摸显示屏130。
处理器110可以包括一个或者多个处理核心。处理器110利用各种接口和线路连接整个终端100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行终端100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(英文:Digital Signal Processing,缩写:DSP)、现场可编程门阵列(英文:Field-Programmable Gate Array,缩写:FPGA)、可编程逻辑阵列(英文:Programmable Logic Array,缩写:PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(英文:Central Processing Unit,缩写:CPU)、图像处理器(英文:Graphics Processing Unit,缩写:GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏130所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块芯片进行实现。
存储器120可以包括随机存储器(英文:Random Access Memory,缩写:RAM),也可以包括只读存储器(英文:Read-Only Memory)。可选地,该存储器120包括非瞬时性计算机可读介质(英文:non-transitory computer-readable storage medium)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器 120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据终端100的使用所创建的数据(比如音频数据、电话本)等。
以操作系统为安卓(英文:Android)系统为例,存储器120中存储的程序和数据如图1所示,存储器120中存储有Linux内核层220、系统运行库层240、应用框架层260和应用层280。Linux内核层220为终端100的各种硬件提供了底层的驱动,如显示驱动、音频驱动、摄像头驱动、蓝牙驱动、Wi-Fi驱动、电源管理等。系统运行库层240通过一些C/C++库来为Android系统提供了主要的特性支持。如SQLite库提供了数据库的支持,OpenGL/ES库提供了3D绘图的支持,Webkit库提供了浏览器内核的支持等。在系统运行库层240中还提供有Android运行时库242(英文:Android Runtime),它主要提供了一些核心库,能够允许开发者使用Java语言来编写Android应用。应用框架层260提供了构建应用程序时可能用到的各种API,开发者也可以通过使用这些API来构建自己的应用程序,比如活动管理、窗口管理、视图管理、通知管理、内容提供者、包管理、通话管理、资源管理、定位管理。应用层280中运行有至少一个应用程序,这些应用程序可以是操作系统自带的联系人程序、短信程序、时钟程序、相机应用等;也可以是第三方开发者所开发的应用程序,比如即时通信程序、相片美化程序等。
以操作系统为IOS系统为例,存储器120中存储的程序和数据如图2所示,IOS系统包括:核心操作系统层320(英文:Core OS layer)、核心服务层340(英文:Core Services layer)、媒体层360(英文:Media layer)、可触摸层380(英文:Cocoa Touch Layer)。核心操作系统层320包括了操作系统内核、驱动程序以及底层程序框架,这些底层程序框架提供更接近硬件的功能,以供位于核心服务层340的程序框架所使用。核心服务层340提供给应用程序所需要的系统服务和/或程序框架,比如基础(英文:Foundation)框架、账户框架、广告框架、数据存储框架、网络连接框架、地理位置框架、运动框架等等。媒体层360为应用程序提供有关视听方面的接口,如图形图像相关的接口、音频技术相关的接口、视频技术相关的接口、音视频传输技术的无线播放(英文:AirPlay)接口等。可触摸层380为应用程序开发提供了各种常用的界面相关的框架,可触摸层380负责用户在终端100上的触摸交互操作。比如本地通知服务、远程推送服务、广告框架、游戏工具框架、消息用户界面接口(英文:User Interface,UI)框架、用户界面UIKit框架、地图框架等等。
在图2所示出的框架中,与大部分应用程序有关的框架包括但不限于:核心服务层340中的基础框架和可触摸层380中的UIKit框架。基础框架提供许多基本的对象类和数据类型,为所有应用程序提供最基本的系统服务,和UI无关。而UIKit框架提供的类是基础的UI类库,用于创建基于触摸的用户界面,iOS应用程序可以基于UIKit框架来提供UI,所以它提供了应用程序的基础架构,用于构建用户界面,绘图、处理和用户交互事件,响应手势等等。
触摸显示屏130用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏130通常设置在终端130的前面板。触摸显示屏130可被设计成为全面屏、曲面屏或异型屏。触摸显示屏130还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合,本实施例对此不加以限定。其中:
全面屏
全面屏可以是指触摸显示屏130占用终端100的前面板的屏占比超过阈值(比如80%或90%或95%)的屏幕设计。屏占比的一种计算方式为:(触摸显示屏130的面积/终端100的前面板的面积)*100%;屏占比的另一种计算方式为:(触摸显示屏130中实际显示区域的面积/终端100的前面板的面积)*100%;屏占比的再一种计算方式为:(触摸显示屏130的对角线/在终端100的前面板的对角线)*100%。示意性的如图3所示的例子中,终端100的前面板上近乎所有区域均为触摸显示屏130,在终端100的前面板40上,除中框41所产生的边缘之外的其它区域,全部为触摸显示屏130。该触摸显示屏130的四个角可以是直角或者圆角。
全面屏还可以是将至少一种前面板部件集成在触摸显示屏130内部或下层的屏幕设计。可选地,该至少一种前面板部件包括:摄像头、指纹传感器、接近光传感器、距离传感器等。在一些实施例中,将传统终端的前面板上的其他部件集成在触摸显示屏130的全部区域或部分区域中,比如将摄像头中的感光元件拆分为多个感光像素后,将每个感光像素集成在触摸显示屏130中每个显示像素中的黑色区域中。由于将至少一种前面板部件集成在了触摸显示屏130的内部,所以全面屏具有更高的屏占比。
当然在另外一些实施例中,也可以将传统终端的前面板上的前面板部件设置在终端100的侧边或背面,比如将超声波指纹传感器设置在触摸显示屏130的下方、将骨传导式的听筒设置在终端130的内部、将摄像头设置成位于终端的侧边且可插拔的结构。
在一些可选的实施例中,当终端100采用全面屏时,终端100的中框的单个侧边,或两个侧边(比如左、右两个侧边),或四个侧边(比如上、下、左、右四个侧边)上设置有边缘触控传感器120,该边缘触控传感器120用于检测用户在中框上的触摸操作、点击操作、按压操作和滑动操作等中的至少一种操作。 该边缘触控传感器120可以是触摸传感器、热力传感器、压力传感器等中的任意一种。用户可以在边缘触控传感器120上施加操作,对终端100中的应用程序进行控制。
曲面屏
曲面屏是指触摸显示屏130的屏幕区域不处于一个平面内的屏幕设计。一般的,曲面屏至少存在这样一个截面:该截面呈弯曲形状,且曲面屏在沿垂直于该截面的任意平面方向上的投影为平面的屏幕设计,其中,该弯曲形状可以是U型。可选地,曲面屏是指至少一个侧边是弯曲形状的屏幕设计方式。可选地,曲面屏是指触摸显示屏130的至少一个侧边延伸覆盖至终端100的中框上。由于触摸显示屏130的侧边延伸覆盖至终端100的中框,也即将原本不具有显示功能和触控功能的中框覆盖为可显示区域和/或可操作区域,从而使得曲面屏具有了更高的屏占比。可选地,如图4所示的例子中,曲面屏是指左右两个侧边42是弯曲形状的屏幕设计;或者,曲面屏是指上下两个侧边是弯曲形状的屏幕设计;或者,曲面屏是指上、下、左、右四个侧边均为弯曲形状的屏幕设计。在可选的实施例中,曲面屏采用具有一定柔性的触摸屏材料制备。
异型屏
异型屏是外观形状为不规则形状的触摸显示屏,不规则形状不是矩形或圆角矩形。可选地,异型屏是指在矩形或圆角矩形的触摸显示屏130上设置有凸起、缺口和/或挖孔的屏幕设计。可选地,该凸起、缺口和/或挖孔可以位于触摸显示屏130的边缘、屏幕中央或两者均有。当凸起、缺口和/或挖孔设置在一条边缘时,可以设置在该边缘的中间位置或两端;当凸起、缺口和/或挖孔设置在屏幕中央时,可以设置在屏幕的上方区域、左上方区域、左侧区域、左下方区域、下方区域、右下方区域、右侧区域、右上方区域中的一个或多个区域中。当设置在多个区域中时,凸起、缺口和挖孔可以集中分布,也可以分散分布;可以对称分布,也可以不对称分布。可选地,该凸起、缺口和/或挖孔的数量也不限。
由于异型屏将触摸显示屏的上额区和/或下额区覆盖为可显示区域和/或可操作区域,使得触摸显示屏在终端的前面板上占据更多的空间,所以异型屏也具有更大的屏占比。在一些实施例中,缺口和/或挖孔中用于容纳至少一种前面板部件,该前面板部件包括摄像头、指纹传感器、接近光传感器、距离传感器、听筒、环境光亮度传感器、物理按键中的至少一种。
示例性的,该缺口可以设置在一个或多个边缘上,该缺口可以是半圆形缺口、直角矩形缺口、圆角矩形缺口或不规则形状缺口。示意性的如图5所示的例子中,异型屏可以是在触摸显示屏130的上边缘的中央位置设置有半圆形缺口43的屏幕设计,该半圆形缺口43所空出的位置用于容纳摄像头、距离传感器(又称接近传感器)、听筒、环境光亮度传感器中的至少一种前面板部件;示意性的如图6所示,异型屏可以是在触摸显示屏130的下边缘的中央位置设置有半圆形缺口44的屏幕设计,该半圆形缺口44所空出的位置用于容纳物理按键、指纹传感器、麦克风中的至少一种部件;示意性的如图7所示的例子中,异型屏可以是在触摸显示屏130的下边缘的中央位置设置有半椭圆形缺口45的屏幕设计,同时在终端100的前面板上还形成有一个半椭圆型缺口,两个半椭圆形缺口围合成一个椭圆形区域,该椭圆形区域用于容纳物理按键或者指纹识别模组,在一种方式中,图7所示的屏幕又称屏中孔屏幕;示意性的如图8所示的例子中,异型屏可以是在触摸显示屏130中的上半部中设置有至少一个小孔46的屏幕设计,该小孔46所空出的位置用于容纳摄像头、距离传感器、听筒、环境光亮度传感器中的至少一种前面板部件。
在一种可能的命名方式中,该含缺口的屏幕也称刘海屏。在图9中,示出了一种水滴形刘海屏幕,其中,水滴形缺口47相比于其他缺口形状所占用的屏幕面积更小,有助于提高屏占比。其中,水滴形缺口47位于触摸显示屏130的边缘。可选地,在一种可能的实现方式中,使用水滴形刘海屏的终端的屏占比可以拓展至91.5%.
除此之外,本领域技术人员可以理解,上述附图所示出的终端100的结构并不构成对终端100的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端100中还包括射频电路、输入单元、传感器、音频电路、无线保真(英文:Wireless Fidelity,缩写:WiFi)模块、电源、蓝牙模块等部件,在此不再赘述。
为了本申请实施例所示方案易于理解,下面将对本申请实施例中出现的若干名词进行介绍。
侧边栏:指贴靠终端的侧边显示的虚拟栏状区域,在该虚拟栏状区域中,显示有侧边栏图标。在实际应用时,侧边栏可以称为智能侧边栏、功能扩展栏或控件栏等等名称,本申请对此不作限定。
需要说明的是,侧边指的是与显示屏的顶边以及底边相交的边缘。
在一种可能的实现方式中,若显示屏处于竖屏状态,请参见图10,其示出了一种屏幕的侧边的示意图,长边1010和长边1020为侧边,短边1030为顶边,短边1040为底边。
在另一种可能的实现方式中,若显示屏处于横屏状态,请参见图11,其示出了另一种屏幕的侧边的示意图,短边1030和短边1040为侧边,长边1020为顶边,长边1010为底边。
在一种可能的实现方式中,侧边栏包括至少两个子区域。在此实现方式中,侧边栏中可能同时包括多 个不同类别的控件。请参见图12,其是本申请一个示例性实施例提供的又一种屏幕的侧边的示意图。在图12中,侧边栏1200包括第一子区域1210、第二子区域1220和第三子区域1230。需要说明的是,各个子区域中的显示的功能控件,都是通过侧边栏图标的形式进行显示的。
(1)第一子区域1210用于放置速记功能控件1211或文件台功能控件1212等系统提供的重要功能控件。可选地,为了保证该重要的功能不被用户误操作改变,终端可以固定第一子区域1210,令第一子区域1210中显示控件不被改变,也即令第一子区域1210中显示的侧边栏图标不做改变。可选地,第一子区域1210也可称之为固定功能区。
需要说明的是,本申请对第一子区域1210中设置的功能控件不做限定,上述功能控件仅为示意性展示。
(2)第二子区域1220用于放置快捷功能控件,该快捷功能可以是操作系统提供的系统服务,也可以是第三方应用提供的应用服务。可选地,第二子区域1220还可以被称作快捷工具区。
当该快捷功能是操作系统提供的系统服务时,该系统服务可以是截屏功能控件、录屏功能控件、翻译功能控件、语音助手控件和清理加速控件等快捷功能。
当该快捷功能是操作系统提供的应用服务时,该应用服务可以是第三方应用中独立的功能。例如,支付应用中的扫码功能、社交应用中的扫码功能、叫车应用中的查看当前订单车辆位置的查车功能或外卖应用中的查看外卖员位置的定位功能。
需要说明的是,本申请对第二子区域1220中设置的快捷功能控件不做限定,上述快捷功能控件仅为示意性展示。
在一种可能的实现方式中,该第二子区域1220可以是空栏,即第二子区域1220中显示的侧边栏图标可以是一个添加控件,当该添加控件被点击触发后,终端将在第二子区域1220中添加其他侧边栏图标。在一种可能的实现方式中,第二子区域1220的一个页面的图标行列数是1行2列,即终端在第二子区域1220中显示1×2个侧边栏图标。当显示数目超过一个页面所能显示的数目时,终端将在第二子区域320的其它页面显示侧边栏图标。例如,当第二子区域1220中有4个侧边栏图标需要显示时,终端在第二子区域1220的第一个页面中显示第一个和第二个侧边栏图标,在第二个页面中显示第三个和第四个侧边栏图标。
(3)第三子区域1230用于放置第三方应用的启动图标。可选地,第三子区域也可以称为快捷应用区。
在一种可能实现的方式中,第三子区域1230的一个页面的图标行列数是3行2列。即在第三子区域1230的一个页面中,可以显示6个侧边栏图标。
在一种可能的实现方式中,该第二子区域1230可以是空栏,即第二子区域1230中显示的侧边栏图标可以是一个添加控件,当该添加控件被点击触发后,终端将在第二子区域1230中添加其他侧边栏图标。
在一种可能的实现方式中,第三子区域1230中显示的第三方应用的启动图标,可以在图标的一个拐角上显示浮窗标识,该浮窗标识可以与应用的角标同时显示。例如,第三方应用的角标显示启动图标的右上角,则浮窗标识可以显示在启动图标中右下角、左上角和左下角中任意一个位置上。
在一种可能的实现方式中,若第三方应用中存在未读消息,则在第三方应用的启动图标的角标中显示未读消息的数量。
在一种可能的实现方式中,若侧边栏图标是一个指定的第三方应用的分身应用,则可以通过侧边栏图标正下方的名称表示应用是分身应用。
在一种可能的实现方式中,若侧边栏图标是一个快应用的图标,则可以采用和第三方应用的启动图标不同的灰度表示该侧边栏图标。可选地,该快应用的图标也可以在其中一个未被占用的拐角中显示快应用标记。
需要说明的是,在异形屏、矩形屏、圆角矩形屏或椭圆形屏等显示屏中,侧边指贴靠用户界面的左边缘或者右边缘的显示屏边缘。其中,异形屏可以包括刘海屏,刘海屏包括矩形凹槽刘海屏、圆角矩形凹槽刘海屏、半圆形凹槽刘海屏或圆角凹槽刘海屏。其中,圆角凹槽刘海屏也可称为水滴形刘海屏。
侧边栏显示指令:用于指示终端在当前用户界面上显示所述侧边栏。
在一种可能的实现方式中,该侧边栏显示指令可以是在接收到用户的触发操作时生成的指令。例如,终端在横屏状态下,终端可以在用户从侧边外侧向屏幕内侧滑动时,生成该侧边栏显示指令。或者,终端在横屏状态下,也可以在用户长时间按压前置摄像头所在的区域时,生成该侧边栏显示指令。或者,终端在竖屏状态下,终端也可以在用户从侧边外侧向屏幕内侧滑动时,生成该侧边栏显示指令。
在另一种可能的实现方式中,该侧边栏显示指令可以是在终端切换至一个指定状态时生成的指令。例如,终端从竖屏状态切换到横屏状态时,若终端此时没有显示侧边栏,则生成侧边栏显示指令。再例如,视频播放软件从窗口播放模式切换到全屏播放模式时,若终端此时没有显示侧边栏,则生成侧边栏显示指令。
在又一种可能的实现方式中,该侧边栏显示指令可以是终端在接收到环境传感信息时生成的指令。例 如,终端在检测到环境光强高于指定阈值时,终端生成侧边栏显示指令。或者,终端在检测到环境光强低于指定阈值时,终端生成侧边栏显示指令。或者,终端在检测到指定的语音信息时,终端生成侧边栏显示指令。
前台应用的属性:包括所述前台应用的类型或所述前台应用所处的应用场景。
可选地,前台应用的类型包括应用的使用类型,包括相机类型、游戏类型、购物类型、即时通讯类型、博客类型、制图绘画类型、文本编辑类型、订票类型、地图导航类型、视频播放类型、直播类型、浏览器类型、阅读类型、音乐类型、理财支付类型、相片美化类型、智能设备控制类型、电话类型、短信类型、天气类型、时钟类型、系统搜索类型、联系人类型、共享交通类型、物流类型、打车类型、外卖类型、考勤打卡类型和扫码类型中的至少一种类型。
前台应用所处的应用场景:指终端中的前台应用当前所处的应用场景。在终端中一个应用可能对应1个应用场景,也可能对应2个或2个以上的应用场景。
在一种可能的实现方式中,终端根据前台应用的应用标识,确定前台应用对应的应用场景数量k,k为正整数;当k等于1时,确定前台应用对应的应用场景,为前台应用所处的应用场景;当k不小于2时,根据前台应用调用的第一应用程序编程接口API,确定前台应用所处的应用场景。
例如,请参见表一,在表一中,新闻阅读应用A对应的场景是文本阅读场景;新闻阅读应用B对应的场景是文本阅读场景、图片阅览场景和视频播放场景中至少一个场景。
表一
  文本阅读场景 图片阅览场景 视频播放场景
新闻阅读应用A 存在 不存在 不存在
新闻阅读应用B 存在 存在 存在
在表一中,终端预先存储了新闻阅读应用A对应的应用场景,即文本阅读场景。新闻阅读应用B对应的应用场景,即文本阅读场景、图片阅览场景和视频播放场景。
当新闻阅读应用A是前台应用时,终端可以获取新闻阅读应用A的应用标识。例如,获取新闻阅读应用A的安装包名,将该安装包名确定为新闻阅读应用A的应用标识。终端将确定新闻阅读应用A对应的应用场景数量k等于1,将文本阅读场景确定为新闻阅读应用A所处的应用场景。
当新闻阅读应用B是前台应用时,终端可以获取新闻阅读应用B的应用标识。终端将根据新闻阅读应用B的安装包名,根据该包名确定新闻阅读应用B对应的应用场景数量k为3,不小于2。此时,终端根据前台应用调用的第一API(Application Programming Interface,应用程序编程接口),确定前台应用所处的应用场景。在该场景中,第一API和应用程序所处的应用场景有对应关系,终端将根据前台应用所调用的第一API,确定前台应用所处的应用场景。
可选地,终端可以根据预设的场景映射关系,确定第一API对应的应用场景,场景映射关系是用于指示从API映射到应用场景的映射关系;将第一API对应的应用场景,确定为前台应用所处的应用场景。
例如,请参考表二,表二示出了一种API映射到应用场景的映射关系。
表二
视频播放API 图片渲染API 游戏优化API
视频播放场景 图片阅览场景 游戏对战场景
请参考图13,其是本申请一个示例性实施例提供的图标的显示方法的流程图。该图标的显示方法可以应用在上述图1至图9所示的终端中。在图13中,图标的显示方法包括:
步骤1310,当接收到侧边栏显示指令时,获取前台应用的属性,侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,侧边栏包括至少两个子区域,前台应用的属性包括前台应用的类型或前台应用所处的应用场景。
在本申请实施例中,在一种可能的实现方式中,终端能够在接收到侧边栏显示指令时,获取前台应用的类型。
在本申请实施例中,在另一种可能的实现方式中,当接收到侧边栏显示指令时,终端获取前台应用所处的应用场景。在一种可能的实现方式中,若终端中搭载的操作系统是安卓系统,则终端可以从运行应用的堆栈中,获取栈顶的应用包名,该栈顶的应用包名即为前台应用的包名。在终端获取前台应用的标识(包名)后,终端可以根据应用标识确定应用所处的应用场景。在不同的终端功能设计和终端架构中,确定该前台应用所处的应用场景的方式不同。
在一种可能的方式中,前台应用仅对应一种应用场景。在此场景下,终端在获取前台应用的标识后,将该前台应用对应的应用场景确定为前台应用所处的应用场景。
在另一种可能的方式中,前台应用对应至少两种应用场景。在此场景下,终端可以通过前台应用当前调用的API来确定当前应用所处的应用场景。比如,当前台应用调用视频播放API时,确定该前台应用处于视频播放场景。当前台应用调用游戏优化API时,确定该前台应用处于游戏对战场景。
需要说明的是,终端需要展示的侧边栏包括至少两个子区域,侧边栏显示指令用于指示终端显示侧边栏。
步骤1320,根据前台应用的属性,确定至少两个子区域各自的图标行列数,图标行列数用于指示,一个子区域的一个页面中的侧边栏图标的行数和列数。
在本申请实施例中,在一种可能的实现方式中,终端可以根据前台应用的类型来确定至少两个子区域各自的图标行列数。
在本申请实施例中,在另一种可能的实现方式中,终端将根据前台应用所处的应用场景,确定至少两个子区域各自的图标行列数。在侧边栏中,每一个子区域中均有各自的行列数,例如在一个侧边栏中,包括第一子区域、第二子区域和第三子区域,第一子区域的一个页面中,侧边栏图标的行数是1,列数是2;第二子区域的一个页面中,侧边栏图标的行数是2,列数是2;第三子区域的一个页面中,侧边栏图标的行数是3,列数是2。
在一种可能的实施方式中,在同一个子区域中,不同的页面之间的图标行列数可以相等。
步骤1330,根据至少两个子区域各自的图标行列数,在至少两个子区域中的每一个子区域中,显示侧边栏图标。
在本申请实施例中,终端能够根据侧边栏中每一个子区域各自的图标行列数,分别确定每一个子区域的显示区域。在指定的显示区域显示对应的子区域后,终端将在每一个子区域中显示侧边栏图标。
在一种可能的实现场景中,终端将按照侧边栏中每一个子区域的图标行列数,确定该子区域的在屏幕中的显示区域。终端在屏幕中显示子区域时,该子区域中显示侧边栏图标。
综上所述,本实施例提供的图标的显示方法,能够在终端接收到侧边栏显示指令时,获取前台应用的属性,根据前台应用的属性,确定至少两个子区域各自的图标行列数,随后根据至少两个子区域各自的图标行列数,在至少两个子区域中的每一个子区域中显示侧边栏图标。因此,在本申请中,终端能够根据前台应用的属性确定相应的各个子区域的图标行列数,使得相对于前台应用较多使用的子区域能够显示较多的图标,在相对于前台应用使用较少的子区域能够显示较少的图标,提高了用户在指定前台应用中使用侧边栏图标对应的功能的效率。
在上一个实施例的基础上,本申请实施例还可以通过针对侧边栏图标的使用情况,来自动调整侧边栏图标在各个子区域中的排布情况,请参考如下实施例。
请参见图14,其是本申请另一个示例性实施例提供的图标的显示方法流程图。该图标的显示方法可以应用在上述图1至图9所示的终端中。在图14中,该图标的显示方法包括:
步骤1401,当接收到侧边栏显示指令时,获取前台应用的应用标识。
在本申请实施例中,终端在接收到侧边栏显示指令时,能够获取前台应用的应用标识。在一种可能的实现方式中,若终端中搭载的操作系统是安卓系统,则终端可以从运行应用的堆栈中,获取栈顶的应用包名,该栈顶的应用包名即为前台应用的包名。在终端获取前台应用的标识(包名)后,终端可以根据应用标识确定应用所处的应用场景。在不同的终端功能设计和终端架构中,确定该前台应用所处的应用场景的方式不同。
步骤1402,根据前台应用的应用标识,从场景配置文件中确定前台应用所处的应用场景。
在本申请实施例中,场景配置文件是预置在终端中或从服务器中下载得到的文件。终端可以根据前台应用的应用标识,在场景配置文件中查找该应用标识和对应的应用场景之间的对应关系,根据该对应关系,终端将确定该应用所处的应用场景。
需要说明的是,在本申请中,终端可以根据前台应用的应用标识,确定前台应用对应的应用场景数量k。需要说明的是,k为正整数。
在一种可能的方式中,当k等于1时,确定前台应用对应的应用场景,为前台应用所处的应用场景。
在另一种可能的方式中,当k不小于2时,根据前台应用调用的第一应用程序编程接口API,确定前台应用所处的应用场景。
可选地,终端在调用API时,可以根据预设的场景映射关系,确定第一API对应的应用场景。其中,场景映射关系是用于指示从API映射到应用场景的映射关系。随后,终端可以将第一API对应的应用场景,确定为前台应用所处的应用场景。
比如,当前台应用调用视频播放API时,确定该前台应用处于视频播放场景。当前台应用调用游戏优化API时,确定该前台应用处于游戏对战场景。
在一种可能实现的方式中,当终端处于分屏模式时,终端将焦点屏幕中运行的应用确定为前台应用。终端能够根据前台应用的标识,从场景配置文件中确定前台应用所处的应用场景。
需要说明的是,当终端处于分屏模式时,在多个子屏幕中存在一个焦点屏幕,该焦点屏幕是当前焦点存在的位置。终端在该场景下,将焦点屏幕中运行的应用确定为前台应用。
可选地,终端还能够在除焦点屏幕之外的区域,显示侧边栏图标。由于终端处于分屏模式时,每一个自屏幕的显示面积有限,其中,焦点屏幕需要较多的显示面积。在该场景中,终端能够在除焦点屏幕之外的显示区域中显示侧边栏图标。
步骤1403,当至少两个子区域中存在多页子区域时,确定在应用场景中的多页子区域的历史翻页次数或历史翻页频率。
在本申请实施例中,侧边栏的子区域中包含一个页面或者至少两个页面。当侧边栏的子区域中包含一个页面时,该子区域可以称作单页面子区域。当侧边栏的子区域中包含至少两个页面时,该子区域可以称作多页子区域。其中,多页子区域是包含至少两个页面的子区域且图标行列数为包括m1行和n1列,一个子区域在同一时刻显示一个页面。
终端能够在侧边栏中存在多页子区域时,确定多页子区域的历史翻页次数或历史翻页频率。
在一种可能的实现方式中,终端将直接统计多页子区域的历史翻页次数或历史翻页频率。例如,多页子区域包含第一页面、第二页面和第三页面一共三个页面。在本实现方式中,终端将从第一页面切换至第二页面的次数t1、将从第二页面切换至第三页面的次数t2,将从第三页面切换至第二页面的次数t3,将从第二页面切换至第一页面的次数t4,一同统计,从而获得该多页子区域的历史翻页次数为(t1+t2+t3+t4)。可选地,当多页子区域支持页面的循环切换时,即该多页子区域的最后一个页面可以直接切换至第一个页面时,终端可以在上述例子的基础上,统计从第三页面切换至第一页面的次数t5,从而获得历史翻页次数为(t1+t2+t3+t4+t5)。需要说明的是,历史翻页频率可以是上述历史翻页次数在指定时间内的次数。例如,在10分钟内的使用频率、在1小时内的使用频率、在1天内的使用频率或在30天内的使用频率等等。
在另一种可能的实现方式中,终端根据侧边栏对应的应用场景统计历史翻页次数或历史翻页频率。例如,终端将针对一个应用场景,来统计在该场景下,多页子区域的历史翻页次数或历史翻页频率。
步骤1404,当历史翻页次数大于第一阈值时,或者,历史翻页频率大于第二阈值时,确定至少两个子区域中的低频子区域。
需要说明的是,终端能够对历史翻页次数,或者历史翻页频率进行判断。其中,低频子区域可以是侧边栏图标被触发的总次数最少的子区域,也可以是侧边栏图标被触发的频率最低的子区域。需要说明的是,侧边栏图标被触发的频率是该子区域中侧边栏图标被触发的总次数和指定时间段的比值。
可选地,第一阈值可以是终端预存的一个次数阈值,例如300、500或1000等整数值。
可选地,第二阈值可以是终端预存的一个频率值,例如3次每分钟、50次每小时或160次每天等等。
可选地,在本申请实施例中,低频子区域的图标行列数为m2行和n2列。例如,m2可以为1、2或3等数值。n2也可以是1、2或3等数值。
在本申请实施例中,终端可以执行步骤14051或步骤14052。
步骤14051,当侧边栏以第一模式显示,且n1=n2时,将多页子区域的行数调整为(m1+p)列,将低频子区域的行数调整为(m2-p)。
在本申请实施例中,第一模式指侧边栏在当前用户界面的左侧或右侧显示的模式。
请参考图15,其是基于图14所示的实施例提供的一种竖屏状态下的侧边栏的显示模式示意图。在图15中,终端的显示状态是竖屏状态,侧边栏贴靠在屏幕的左侧边缘1510处显示,或者,贴靠在屏幕的右侧边缘1520处显示。
请参考图16,其是基于图14所示的实施例提供的一种横屏状态下的侧边栏的显示模式示意图。在图16中,终端的显示状态是横屏状态,侧边栏贴靠在屏幕的左侧边缘1610处显示,或者,贴靠在屏幕的右侧边缘1620处显示。
以图16所示的侧边栏为例,本申请不仅能够根据前台应用的应用场景确定对应的各个子区域的图标行列数。而且,还能够调整一个应用场景对应的侧边栏中各个子区域的图标行列数。可选地,调整该应用场景对应的侧边栏中的各个子区域的图标行列数,可以在终端启动一个应用场景时进行。
例如,侧边栏中有子区域z1、子区域z2和子区域z3三个子区域,在视频播放场景下,子区域z1的图标行列数是行数1,列数2;子区域z2的图标行列数是行数2,列数2;子区域z3的图标行列数是行数2,列数2。在一个可能实现的方式中,当终端的前台应用启动视频播放场景后,侧边栏就将按照视频播放场景对应的各个子区域的图标行列数,显示侧边栏。
基于上述示例,终端还能够在确定视频播放场景对应的各个子区域的图标行列数前,根据侧边栏中的多页子区域和低频子区域进行判断,当多页子区域和低频子区域满足相应条件时,调整视频播放场景对应的各个子区域的图标行列数。例如,子区域z2是多页子区域,子区域z3是低频子区域,且子区域z2满足历史翻页频率大于第二阈值。此时,由于终端以第一模式显示,且子区域z2的列数n1和子区域z3的列数n2相等,均为2。因此,终端可以按照预设的调整策略调整子区域z2的行数m1和子区域z3的行数m2。可选地,预设的调整策略是设置p为1。因此,调整后的子区域z2的行数是3,子区域z3的行数是1。
可见,本申请不仅能够在不同的应用场景中提供不同大小的子区域,使得相应应用场景中能够显示较 多对应的侧边栏图标,减少用户针对子区域的翻页操作。而且,还能够根据用户实际的使用情况调整针对应用场景的子区域的图标行列数,侧边栏在用户使用时间越长的情况下,越能够适应于用户的操作习惯,节省用户的操作步骤和时间,提高用户在指定应用场景中使用侧边栏图标的效率。
步骤14052,当侧边栏以第二模式显示,且m1=m2时,将多页子区域的列数调整为(n1+q)列,将低频子区域的列数调整为(n2-q)列。
在本申请实施例中,第二模式指侧边栏在当前用户界面的顶端或底端显示的模式。
请参考图17,其是基于图14所示的实施例提供的一种横屏状态下的侧边栏的显示模式示意图。在图17中,终端的显示状态是横屏状态,侧边栏贴靠在屏幕的顶端边缘1630处显示,或者,贴靠在屏幕的底端边缘1640处显示。
以图16所示的侧边栏为例,本申请不仅能够根据前台应用的应用场景确定对应的各个子区域的图标行列数。而且,还能够调整一个应用场景对应的侧边栏中各个子区域的图标行列数。可选地,调整该应用场景对应的侧边栏中的各个子区域的图标行列数,可以在终端启动一个应用场景时进行。
例如,侧边栏中有子区域z4、子区域z5和子区域z6三个子区域,在视频播放场景下,子区域z4的图标行列数是行数2,列数1;子区域z5的图标行列数是行数2,列数2;子区域z6的图标行列数是行数2,列数2。在一个可能实现的方式中,当终端的前台应用启动视频播放场景后,侧边栏就将按照视频播放场景对应的各个子区域的图标行列数,显示侧边栏。
基于上述示例,终端还能够在确定视频播放场景对应的各个子区域的图标行列数前,根据侧边栏中的多页子区域和低频子区域进行判断,当多页子区域和低频子区域满足相应条件时,调整视频播放场景对应的各个子区域的图标行列数。例如,子区域z5是多页子区域,子区域z6是低频子区域,且子区域z5满足历史翻页频率大于第二阈值。此时,由于终端以第二模式显示,且子区域z5的行数m1和子区域z6的行数m2相等,均为2。因此,终端可以按照预设的调整策略调整子区域z5的行数m1和子区域z6的行数m2。可选地,预设的调整策略是设置p为1。因此,调整后的子区域z2的列数是3,子区域z3的列数是1。
需要说明的是,在上述步骤中,m1、n1、m2、n2、p和q为自然数,m2不小于p,n2不小于q。
步骤1406,根据子区域的图标行列数,确定子区域在侧边栏中的形状尺寸。
在本申请实施例中,终端将根据子区域的图标行列数,确定子区域在侧边栏中的形状尺寸。
例如,视频播放场景中,侧边栏的三个子区域z1的图标行列数是行数1,列数2;子区域z2的图标行列数是行数2,列数2;子区域z3的图标行列数是行数2,列数2。
文本阅读场景中,侧边栏的三个子区域z1的图标行列数是行数1,列数2;子区域z2的图标行列数是行数1,列数2;子区域z3的图标行列数是行数3,列数2。
终端将根据不同的子区域的图标行列数确定各个子区域在侧边栏中的尺寸形状,该尺寸形状用于描述子区域的各边的边长、整体形状和面积等几何参数。
步骤1407,根据子区域在侧边栏中的形状尺寸和子区域的显示排序,确定子区域在侧边栏中的显示位置。
在本申请实施例中,显示排序是侧边栏中预设的至少两个子区域之间的显示相对排序。例如,在一个侧边栏中,从上到下分为3个区域,用于显示3个子区域。侧边栏中的每一个子区域有自身的显示排序,如显示排序为1的子区域需要在侧边栏最上边的位置显示,显示排序为2的子区域需要在侧边栏居中的位置显示,显示排序为3的子区域需要在侧边栏最下边的位置显示。
步骤1408,在显示位置显示子区域。
在本申请实施例中,终端能够在显示位置显示子区域。
步骤1409,在子区域中,显示对应的至少一个侧边栏图标。
在一种可能的实现方式中,终端可以通过执行步骤14091、步骤14092和步骤14093来替换步骤1409以实现显示子区域,并在子区域中显示至少一个侧边栏图标的功能。
步骤14091,当子区域是多页子区域时,确定多页子区域中包含的侧边栏图标。
在本申请实施例中,当子区域是多页子区域时,终端在该多页子区域中,确定侧边栏图标。其中,该侧边栏图标的数量可以是至少两个,该多页子区域是包含i个页面的子区域,i是不小于2的正整数。
在一种可能的实现方式中,侧边栏中包含的侧边栏图标是重要功能控件、快捷功能控件和第三方应用的启动图标中至少一种。
在另一种可能的实现方式中,侧边栏中包含的侧边栏图标可以是一个添加控件。
步骤14092,确定在应用场景中,多页子区域中包含的侧边栏图标的历史使用次数或历史使用频率。
在本申请实施例中,终端确定在前台应用当前所在的应用场景中,一个多页子区域中包含的侧边栏图标各自的历史使用次数,或者,确定该多页子区域中包含的侧边栏图标各自的历史使用频率。
步骤14093,根据历史使用次数或历史使用频率从高到低的顺序,在多页子区域中将侧边栏图标,从 第j页面向第j+1页面的顺序排布。
在本申请实施例中,终端能够根据历史使用次数或历史使用频率从高到低的顺序,将侧边栏图标在多页子区域中,从第j页面向第j+1页面的顺序排布。其中,j为正整数,j+1不大于i,第j页面可以是当前排布侧边栏图标的页面。在同一个子区域的一个页面中,终端可以以页面为单位,指定每一个图标位置的优先级,同一个页面中的图标的优先级相同。例如,从第1页面、第2页面、…、第i-1页面,直至第i页面,优先级可以从高到低。
可选地,在一种可能实现的方式中,终端还可以在同一页面中指定不同优先级的图标位置,按照图标位置的优先级排布侧边栏图标。
请参见图18,其是根据图14所示实施例提供的一种图标位置优先级的示意图。在图18中,侧边栏中显示有子区域1810、子区域1820和子区域1830。其中,子区域1810中显示有位置不可更改的侧边栏图标1811和侧边栏图标1812。子区域1820中的图标位置1821的优先级高于图标位置1822的优先级。子区域1830中,按照优先级从高到第顺序,依次是图标位置1831、图标位置1832、图标位置1833、图标位置1834、图标位置1835和图标位置1836。
在一种可能的实现方式中,若显示在子区域1830中的侧边栏图标的数量不足6个,则终端在子区域1830的页面数量为1,在该页面中显示侧边栏图标。
在另一种可能的实现方式中,若显示在子区域1830中的侧边栏图标的数量超过6个,则终端在子区域1830的第1个页面中显示6个侧边栏图标,在其它页面中,按照优先级从高到低的顺序依次排布侧边栏图标。
综上所述,本申请实施例提供的图标的显示方法,能够令终端在接收到侧边栏显示指令时,获取前台应用的应用标识,根据该应用标识从场景配置文件中确定前台应用所处的应用场景,进而确定了至少两个子区域各自的图标行列数,根据至少两个子区域各自的图标行列数,在每一个子区域中显示侧边栏图标。可见,本申请能够令终端确定前台应用所处的应用场景,使得终端能够适应于应用场景提供相应大小的子区域,从而显示相应数量的侧边栏图标,提高了用户在指定场景中使用指定子区域中的侧边栏图标的效率,从而实现了用户快速触发侧边栏图标对应的功能的效果。
在一种实现方式中,本申请能够在侧边栏的至少两个子区域中存在多页子区域时,确定在应用场景中的多页子区域的历史翻页次数或历史翻页频率,当历史翻页次数大于第一阈值时,或者,历史翻页频率大于第二阈值时,确定至少两个子区域中的低频子区域,当侧边栏以第一模式显示,且侧边栏中的各个子区域的列数相等时,本申请将减少低频子区域一个页面的行数,并将上述减少的行数增加到多页子区域中。可见,本申请能够根据在应用场景中的子区域的翻页情况调整子区域的大小,使得用户频繁翻页的子区域自适应地扩大。在用户使用侧边栏的时间越长的情况下,令侧边栏越能够适应于用户的操作习惯,节省了用户的操作步骤和时间,提高了用户在指定应用场景中使用侧边栏图标的效率。
不同于图14所示的实施例,终端还能够根据前台应用的类型,确定侧边栏中的至少两个子区域各自的图标行列数,详见下述实施例。
请参考图19,其是本申请实施例提供的另一种图标的显示方法的流程图,该方法能够应用在如图1至图9所示的终端中。在图19中,该图标的显示方法包括:
步骤1901,当接收到侧边栏显示指令时,获取前台应用的应用标识。
在本申请实施例中,步骤1901的执行方式和步骤1401的执行方式相同,此处不再赘述。
步骤1902,根据前台应用的应用标识,确定前台应用对应的类型。
在本申请实施例中,终端能够根据前台应用的应用标识,确定前台应用对应的类型。例如,终端可以根据前台应用的包名,确定前台应用对应的类型,该对应关系可以预先存储在终端中,也可以预先存储在服务器中,在终端需要时直接从服务器中拉取该对应关系。
步骤1903,根据前台应用的类型,确定至少两个子区域各自的图标行列数。
在本申请实施例中,终端可以根据不同的前台应用的类型,确定至少两个子区域各自的图标行列数。
在一种可能的实现方式中,不同的类型,子区域大小的分布也不同。例如,请参见表三,其示出了一种前台应用的类型和侧边栏子区域的图标行列数的对应关系。以一个侧边栏包括子区域z1、子区域z2和子区域z3共三个子区域为例进行介绍。
表三
  子区域z1 子区域z2 子区域z3
即时通讯类型 1行,2列 1行,2列 3行,2列
视频播放类型 1行,2列 3行,2列 1行,2列
默认类型 1行,2列 2行,2列 2行,2列
在表三中,终端会对前台应用的类型进行判断,当终端确定前台应用的类型是即时通讯类型时,终端 将确定侧边栏的图标行列数为:子区域z1是1行,2列,子区域z2是1行,2列,子区域z3是3行,2列。当终端确定前台应用的类型是默认类型时,终端将确定侧边栏的图标行列数为:子区域z1是1行,2列,子区域z2是2行,2列,子区域z3是2行,2列。需要说明的是,终端在前台应用的标识和类型的对应关系中,查找不到前台应用的标识对应的类型时,终端可以将前台应用确定为默认类型。
请参考图20,其是基于图19所示实施例提供的一种视频播放类型的前台应用对应的侧边栏显示的示意图。在图20中,当前的用户界面是视频播放类型的应用界面2000,第一子区域2010中显示1行2列的侧边栏图标,第二子区域2020中显示3行2列的侧边栏图标,第三子区域2030中显示1行2列的侧边栏图标。
其中,第二子区域中可以显示快捷功能控件,例如截屏功能控件、录屏功能控件、翻译功能控件、语音助手控件和清理加速控件等快捷功能的控件。本申请实施例能够无需用户在第二子区域中翻页来使用上述快捷功能控件,使得终端在处于视频播放类型的前台应用时,能够直接显示多个快捷功能控件,提高了用户使用快捷功能的效率。
请参考图21,其是基于图19所示实施例提供的一种即时通讯类型的前台应用对应的侧边栏显示的示意图。在图21中,当前的用户界面是即时通讯类型的应用界面2100,第一子区域2010中显示1行2列的侧边栏图标,第二子区域2020中显示1行2列的侧边栏图标,第三子区域2130中显示3行2列的侧边栏图标。
其中,第三子区域2130中可以显示第三方应用的启动图标。例如,其它及时通讯应用、博客应用和新闻阅读应用等应用的启动图标。本申请实施例能够在前台应用是及时通讯应用时,显示多个第三方应用的启动图标,便于用户直接切换至指定的第三方应用,提高了用户从及时通信应用切换至其他应用的效率
步骤1904,根据至少两个子区域各自的图标行列数,在至少两个子区域中的每一个子区域中,显示侧边栏图标。
在本申请实施例中,步骤1904的执行方式和步骤1330的执行方式相同,此处不再赘述。
综上所述,本申请实施例提供的图标的显示方法,能够在接收到侧边栏显示指令时,获取前台应用的应用标识,根据前台应用的应用标识,确定前台应用对应的类型,根据前台应用的类型,确定至少两个子区域各自的图标行列数,根据至少两个子区域各自的图标行列数,在至少两个子区域中的每一个子区域中,显示侧边栏图标。由于不同的前台应用的类型能够对应不同的侧边栏子区域的大小,因此能够减少用户在指定子区域中切换页面的步骤,提高用户使用该子区域中的侧边栏图标的效率。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参看图22,其示出了本申请一个示例性实施例提供的图标的显示装置的结构框图。该图标的显示装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该装置包括:
属性获取模块2210,用于当接收到侧边栏显示指令时,获取前台应用的属性,所述侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,所述侧边栏包括至少两个子区域,所述前台应用的属性包括所述前台应用的类型或所述前台应用所处的应用场景;
行列确定模块2220,用于根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,所述图标行列数用于指示,一个所述子区域的一个页面中的所述侧边栏图标的行数和列数;
侧边栏显示模块2230,用于根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的大小;
图标显示模块2240,用于在每一个所述子区域中,分别显示至少一个侧边栏图标。
在一个可选的实施例中,所述图标显示模块2240,用于根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的形状尺寸;根据所述子区域在所述侧边栏中的形状尺寸和所述子区域的显示排序,确定所述子区域在所述侧边栏中的显示位置,所述显示排序是所述侧边栏中预设的所述至少两个子区域之间的显示相对排序;在所述显示位置显示所述子区域;在所述子区域中,显示对应的至少一个所述侧边栏图标。
在一个可选的实施例中,所述图标显示模块2240,用于当所述子区域是多页子区域时,确定所述多页子区域中包含的所述侧边栏图标,所述多页子区域是包含i个所述页面的子区域,i是不小于2的正整数;确定在所述应用场景中,所述多页子区域中包含的所述侧边栏图标的历史使用次数或历史使用频率;根据所述历史使用次数或所述历史使用频率从高到低的顺序,在所述多页子区域中将所述侧边栏图标,从第j页面向第j+1页面的顺序排布,j为正整数,j+1不大于i。
在一个可选的实施例中,所述行列确定模块2220,用于当所述至少两个子区域中存在所述多页子区域时,确定所述应用场景下所述多页子区域的历史翻页次数或历史翻页频率,所述多页子区域的图标行列数为m1行和n1列,一个所述子区域在同一时刻显示一个所述页面;当所述历史翻页次数大于第一阈值时, 或者,所述历史翻页频率大于第二阈值时,确定所述至少两个子区域中的低频子区域,所述低频子区域的图标行列数为m2行和n2列;当所述侧边栏以第一模式显示,且n1=n2时,将所述多页子区域的行数调整为(m1+p)列,将所述低频子区域的行数调整为(m2-p),所述第一模式指所述侧边栏在所述当前用户界面的左侧或右侧显示的模式;当所述侧边栏以第二模式显示,且m1=m2时,将所述多页子区域的列数调整为(n1+q)列,将所述低频子区域的列数调整为(n2-q)列,所述第二模式指所述侧边栏在所述当前用户界面的顶端或底端显示的模式;其中,m1、n1、m2、n2、p和q为自然数,m2不小于p,n2不小于q。
在一个可选的实施例中,属性获取模块2210,用于当所述前台应用的属性包括所述前台应用的类型,且接收到侧边栏显示指令时,获取前台应用的应用标识;根据所述前台应用的应用标识,确定所述前台应用对应的类型;所述行列确定模块2220,用于根据所述前台应用的类型,确定所述至少两个子区域各自的图标行列数。
在一个可选的实施例中,所述属性获取模块2210,用于所述前台应用的属性包括所述前台应用所处的应用场景,且接收到侧边栏显示指令时,获取所述前台应用的应用标识;根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,所述场景配置文件是预置在所述终端中或从服务器中下载得到的文件。
在一个可选的实施例中,所述属性获取模块2210,用于根据所述前台应用的应用标识,确定所述前台应用对应的应用场景数量k,k为正整数。
所述属性获取模块2210,用于在k等于1时,确定所述前台应用对应的应用场景,为所述前台应用所处的应用场景;
所述属性获取模块2210,用于在k不小于2时,根据所述前台应用调用的第一应用程序编程接口API,确定所述前台应用所处的应用场景。
在一个可选的实施例中,所述属性获取模块2210,用于根据预设的场景映射关系,确定所述第一API对应的所述应用场景,所述场景映射关系是用于指示从API映射到应用场景的映射关系;将所述第一API对应的所述应用场景,确定为所述前台应用所处的应用场景。
请参考图23,其是本申请一个示例性实施例提供的终端的结构框图,如图23所示,该终端包括处理器2310和存储器2310,所述存储器2310中存储有至少一条指令,所述指令由所述处理器2310加载并执行以实现如上各个实施例所述的图标的显示方法。可选地,屏幕组件2330用于显示前台应用的用户界面和侧边栏。
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的图标的显示方法。
本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的图标的显示方法。
需要说明的是:上述实施例提供的录屏装置在执行图标的显示方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的图标的显示装置与图标的显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种图标的显示方法,所述方法包括:
    当接收到侧边栏显示指令时,获取前台应用的属性,所述侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,所述侧边栏包括至少两个子区域,所述前台应用的属性包括所述前台应用的类型或所述前台应用所处的应用场景;
    根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,所述图标行列数用于指示,一个所述子区域的一个页面中的侧边栏图标的行数和列数;
    根据所述至少两个子区域各自的图标行列数,在所述至少两个子区域中的每一个子区域中,显示所述侧边栏图标。
  2. 根据权利要求1所述的方法,其中,所述根据所述至少两个子区域各自的图标行列数,在所述至少两个子区域中的每一个子区域中,显示所述侧边栏图标,包括:
    根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的形状尺寸;
    根据所述子区域在所述侧边栏中的形状尺寸和所述子区域的显示排序,确定所述子区域在所述侧边栏中的显示位置,所述显示排序是所述侧边栏中所述至少两个子区域之间的显示相对排序;
    在所述显示位置显示所述子区域;
    在所述子区域中,显示对应的至少一个所述侧边栏图标。
  3. 根据权利要求2所述的方法,其中,所述在所述子区域中,显示对应的至少一个所述侧边栏图标,包括:
    当所述子区域是多页子区域时,确定所述多页子区域中包含的所述侧边栏图标,所述多页子区域是包含i个所述页面的子区域,i是不小于2的正整数;
    确定在所述应用场景中,所述多页子区域中包含的所述侧边栏图标的历史使用次数或历史使用频率;
    根据所述历史使用次数或所述历史使用频率从高到低的顺序,在所述多页子区域中将所述侧边栏图标,从第j页面向第j+1页面的顺序排布,j为正整数,j+1不大于i。
  4. 根据权利要求2或3所述的方法,其中,当所述前台应用的属性包括所述前台应用所处的应用场景时,所述根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,包括:
    当所述至少两个子区域中存在所述多页子区域时,确定所述应用场景下所述多页子区域的历史翻页次数或历史翻页频率,所述多页子区域的图标行列数为m1行和n1列,一个所述子区域在同一时刻显示一个所述页面;
    当所述历史翻页次数大于第一阈值时,或者,所述历史翻页频率大于第二阈值时,确定所述至少两个子区域中的低频子区域,所述低频子区域的图标行列数为m2行和n2列;
    当所述侧边栏以第一模式显示,且n1=n2时,将所述多页子区域的行数调整为(m1+p)列,将所述低频子区域的行数调整为(m2-p),所述第一模式指所述侧边栏在所述当前用户界面的左侧或右侧显示的模式;
    当所述侧边栏以第二模式显示,且m1=m2时,将所述多页子区域的列数调整为(n1+q)列,将所述低频子区域的列数调整为(n2-q)列,所述第二模式指所述侧边栏在所述当前用户界面的顶端或底端显示的模式;
    其中,m1、n1、m2、n2、p和q为自然数,m2不小于p,n2不小于q。
  5. 根据权利要求1所述的方法,其中,当所述前台应用的属性包括所述前台应用的类型时,所述当接收到侧边栏显示指令时,获取前台应用的属性,包括:
    当接收到侧边栏显示指令时,获取前台应用的应用标识;
    根据所述前台应用的应用标识,确定所述前台应用对应的类型;
    所述根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,包括:
    根据所述前台应用的类型,确定所述至少两个子区域各自的图标行列数。
  6. 根据权利要求1所述的方法,其中,当所述前台应用的属性包括所述前台应用所处的应用场景时,所述当接收到侧边栏显示指令时,获取前台应用的属性,包括:
    当接收到侧边栏显示指令时,获取所述前台应用的应用标识;
    根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,所述场景配置文件是预置在所述终端中或从服务器中下载得到的文件。
  7. 根据权利要求6所述的方法,其中,所述根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,包括:
    当所述终端处于分屏模式时,将焦点屏幕中运行的应用确定为所述前台应用;
    根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景。
  8. 根据权利要求6所述的方法,其中,所述根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,包括:
    根据所述前台应用的应用标识,确定所述前台应用对应的应用场景数量k,k为正整数;
    当k等于1时,确定所述前台应用对应的应用场景,为所述前台应用所处的应用场景;
    当k不小于2时,根据所述前台应用调用的第一应用程序编程接口API,确定所述前台应用所处的应用场景。
  9. 根据权利要求8所述的方法,其中,所述根据所述前台应用调用的第一API,确定所述前台应用所处的应用场景,包括:
    根据预设的场景映射关系,确定所述第一API对应的所述应用场景,所述场景映射关系是用于指示从API映射到应用场景的映射关系;
    将所述第一API对应的所述应用场景,确定为所述前台应用所处的应用场景。
  10. 一种图标的显示装置,所述装置包括:
    属性获取模块,用于当接收到侧边栏显示指令时,获取前台应用的属性,所述侧边栏显示指令用于指示终端在当前用户界面上显示侧边栏,所述侧边栏包括至少两个子区域,所述前台应用的属性包括所述前台应用的类型或所述前台应用所处的应用场景;
    行列确定模块,用于根据所述前台应用的属性,确定所述至少两个子区域各自的图标行列数,所述图标行列数用于指示,一个所述子区域的一个页面中的所述侧边栏图标的行数和列数;
    侧边栏显示模块,用于根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的大小;
    图标显示模块,用于在每一个所述子区域中,分别显示至少一个侧边栏图标。
  11. 根据权利要求10所述的装置,其中,所述图标显示模块,用于:
    根据所述子区域的所述图标行列数,确定所述子区域在所述侧边栏中的形状尺寸;
    根据所述子区域在所述侧边栏中的形状尺寸和所述子区域的显示排序,确定所述子区域在所述侧边栏中的显示位置,所述显示排序是所述侧边栏中预设的所述至少两个子区域之间的显示相对排序;
    在所述显示位置显示所述子区域;
    在所述子区域中,显示对应的至少一个所述侧边栏图标。
  12. 根据权利要求11所述的装置,其中,图标显示模块,用于:
    当所述子区域是多页子区域时,确定所述多页子区域中包含的所述侧边栏图标,所述多页子区域是包含i个所述页面的子区域,i是不小于2的正整数;
    确定在所述应用场景中,所述多页子区域中包含的所述侧边栏图标的历史使用次数或历史使用频率;
    根据所述历史使用次数或所述历史使用频率从高到低的顺序,在所述多页子区域中将所述侧边栏图标,从第j页面向第j+1页面的顺序排布,j为正整数,j+1不大于i。
  13. 根据权利要求11或12所述的装,其中,行列确定模块,用于:
    当所述至少两个子区域中存在所述多页子区域时,确定所述应用场景下所述多页子区域的历史翻页次数或历史翻页频率,所述多页子区域的图标行列数为m1行和n1列,一个所述子区域在同一时刻显示一个所述页面;
    当所述历史翻页次数大于第一阈值时,或者,所述历史翻页频率大于第二阈值时,确定所述至少两个子区域中的低频子区域,所述低频子区域的图标行列数为m2行和n2列;
    当所述侧边栏以第一模式显示,且n1=n2时,将所述多页子区域的行数调整为(m1+p)列,将所述低频子区域的行数调整为(m2-p),所述第一模式指所述侧边栏在所述当前用户界面的左侧或右侧显示的模式;当所述侧边栏以第二模式显示,且m1=m2时,将所述多页子区域的列数调整为(n1+q)列,将所述 低频子区域的列数调整为(n2-q)列,所述第二模式指所述侧边栏在所述当前用户界面的顶端或底端显示的模式;
    其中,m1、n1、m2、n2、p和q为自然数,m2不小于p,n2不小于q。
  14. 根据权利要求10所述的装置,其中,
    所述属性获取模块,用于当所述前台应用的属性包括所述前台应用的类型,且接收到侧边栏显示指令时,获取前台应用的应用标识;根据所述前台应用的应用标识,确定所述前台应用对应的类型;
    所述行列确定模块,用于根据所述前台应用的类型,确定所述至少两个子区域各自的图标行列数。
  15. 根据权利要求10所述的装置,其中,所述属性获取模块,用于:
    所述前台应用的属性包括所述前台应用所处的应用场景,且接收到侧边栏显示指令时,获取所述前台应用的应用标识;
    根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景,所述场景配置文件是预置在所述终端中或从服务器中下载得到的文件。
  16. 根据权利要求15所述的装置,其中,所述属性获取模块,用于:
    当所述终端处于分屏模式时,将焦点屏幕中运行的应用确定为所述前台应用;
    根据所述前台应用的应用标识,从场景配置文件中确定所述前台应用所处的应用场景。
  17. 根据权利要求15所述的装置,其中,所述属性获取模块,用于:
    根据所述前台应用的应用标识,确定所述前台应用对应的应用场景数量k,k为正整数;
    当k等于1时,确定所述前台应用对应的应用场景,为所述前台应用所处的应用场景;
    当k不小于2时,根据所述前台应用调用的第一应用程序编程接口API,确定所述前台应用所处的应用场景。
  18. 根据权利要求17所述的装置,其中,所述属性获取模块,用于:
    根据预设的场景映射关系,确定所述第一API对应的所述应用场景,所述场景映射关系是用于指示从API映射到应用场景的映射关系;
    将所述第一API对应的所述应用场景,确定为所述前台应用所处的应用场景。
  19. 一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如权利要求1至9任一所述的图标的显示方法。
  20. 一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求1至9任一所述的图标的显示方法。
PCT/CN2019/096393 2018-08-22 2019-07-17 图标的显示方法、装置、终端及存储介质 WO2020038163A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19851559.5A EP3835931A4 (en) 2018-08-22 2019-07-17 ICON DISPLAY PROCEDURE AND DEVICE, AS WELL AS TERMINAL DEVICE AND STORAGE MEDIUM
US17/181,881 US11500513B2 (en) 2018-08-22 2021-02-22 Method for icon display, terminal, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810961881.1A CN109144649B (zh) 2018-08-22 2018-08-22 图标的显示方法、装置、终端及存储介质
CN201810961881.1 2018-08-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/181,881 Continuation US11500513B2 (en) 2018-08-22 2021-02-22 Method for icon display, terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2020038163A1 true WO2020038163A1 (zh) 2020-02-27

Family

ID=64791066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096393 WO2020038163A1 (zh) 2018-08-22 2019-07-17 图标的显示方法、装置、终端及存储介质

Country Status (4)

Country Link
US (1) US11500513B2 (zh)
EP (1) EP3835931A4 (zh)
CN (1) CN109144649B (zh)
WO (1) WO2020038163A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144649B (zh) * 2018-08-22 2020-12-29 Oppo广东移动通信有限公司 图标的显示方法、装置、终端及存储介质
CN109358927B (zh) * 2018-09-21 2020-05-01 Oppo广东移动通信有限公司 应用程序显示的方法、装置及终端设备
CN110175301A (zh) * 2019-04-08 2019-08-27 平安科技(深圳)有限公司 一种导航栏配置方法和装置、计算机设备及存储介质
CN110531920B (zh) * 2019-08-29 2021-05-14 Oppo广东移动通信有限公司 侧边工具栏的显示方法、装置、终端及存储介质
CN111142756A (zh) * 2019-12-25 2020-05-12 上海传英信息技术有限公司 页面显示方法、设备及计算机可读存储介质
CN111190678B (zh) * 2019-12-25 2024-03-12 上海传英信息技术有限公司 终端显示方法、移动终端及计算机可读存储介质
CN111638826A (zh) * 2020-05-28 2020-09-08 维沃移动通信有限公司 界面显示方法、装置和电子设备
CN112148167A (zh) * 2020-09-29 2020-12-29 维沃移动通信有限公司 控件设置方法、装置和电子设备
CN115220828A (zh) * 2021-04-19 2022-10-21 Oppo广东移动通信有限公司 侧边栏的显示方法、装置、终端及存储介质
CN113342230A (zh) * 2021-06-29 2021-09-03 北京字跳网络技术有限公司 控件显示方法、装置、设备及介质
CN113282206A (zh) * 2021-07-22 2021-08-20 北京聚通达科技股份有限公司 页面数据显示方法、装置、存储介质及电子设备
CN116126432A (zh) * 2021-11-12 2023-05-16 华为技术有限公司 桌面管理方法、图形用户界面及电子设备
CN114489422A (zh) * 2022-01-26 2022-05-13 荣耀终端有限公司 侧边栏的显示方法及电子设备
CN116016761A (zh) * 2022-11-30 2023-04-25 深圳传音控股股份有限公司 显示方法、智能终端及存储介质
CN116069222B (zh) * 2023-03-07 2023-09-15 荣耀终端有限公司 一种识别焦点视图的方法、装置和可穿戴设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130326391A1 (en) * 2012-05-31 2013-12-05 Pegatron Corporation User interface, method for displaying the same and electrical device
CN106547446A (zh) * 2016-10-31 2017-03-29 努比亚技术有限公司 应用切换装置和方法
CN107704185A (zh) * 2017-08-31 2018-02-16 努比亚技术有限公司 一种分屏桌面显示方法、终端及计算机可读存储介质
WO2018068328A1 (zh) * 2016-10-14 2018-04-19 华为技术有限公司 一种界面显示的方法及终端
CN109144649A (zh) * 2018-08-22 2019-01-04 Oppo广东移动通信有限公司 图标的显示方法、装置、终端及存储介质

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7668718B2 (en) * 2001-07-17 2010-02-23 Custom Speech Usa, Inc. Synchronized pattern recognition source data processed by manual or automatic means for creation of shared speaker-dependent speech user profile
JP2007536634A (ja) * 2004-05-04 2007-12-13 フィッシャー−ローズマウント・システムズ・インコーポレーテッド プロセス制御システムのためのサービス指向型アーキテクチャ
KR100801089B1 (ko) * 2005-12-13 2008-02-05 삼성전자주식회사 터치 및 드래그를 이용하여 제어 가능한 모바일 장치 및 그조작 방법
US8607149B2 (en) * 2006-03-23 2013-12-10 International Business Machines Corporation Highlighting related user interface controls
TWI327308B (en) * 2006-10-05 2010-07-11 Acer Inc Handheld electronic apparatus with functions of intelligent remote control
KR101012300B1 (ko) * 2008-03-07 2011-02-08 삼성전자주식회사 터치스크린을 구비한 휴대 단말기의 사용자 인터페이스장치 및 그 방법
KR101730422B1 (ko) * 2010-11-15 2017-04-26 엘지전자 주식회사 영상표시기기 및 그 동작 방법
US20130227413A1 (en) * 2012-02-24 2013-08-29 Simon Martin THORSANDER Method and Apparatus for Providing a Contextual User Interface on a Device
CN104035650A (zh) * 2013-03-04 2014-09-10 腾讯科技(深圳)有限公司 侧边栏信息的显示方法及装置
CN103475784B (zh) 2013-09-18 2016-03-30 广东欧珀移动通信有限公司 一种手机应用程序窗口模式显示和操作方法
US9740825B2 (en) * 2013-12-31 2017-08-22 Cerner Innovation, Inc. Dynamic presentation of actionable content items
CN103984538B (zh) * 2014-03-27 2017-04-26 华为技术有限公司 应用场景的识别方法、功耗管理方法、装置及终端设备
CN104035662A (zh) * 2014-05-15 2014-09-10 小米科技有限责任公司 一种界面显示方法、装置及终端
KR102454196B1 (ko) * 2014-05-27 2022-10-14 삼성전자 주식회사 디스플레이 제어 방법 및 이를 제공하는 전자 장치
CN106547578B (zh) * 2015-09-21 2020-09-15 阿里巴巴集团控股有限公司 终端应用app的加载方法及装置
CN108008896B (zh) * 2017-12-20 2021-03-09 Oppo广东移动通信有限公司 显示控制方法及相关产品
CN108111687B (zh) * 2017-12-20 2020-06-16 Oppo广东移动通信有限公司 显示控制方法及相关产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130326391A1 (en) * 2012-05-31 2013-12-05 Pegatron Corporation User interface, method for displaying the same and electrical device
WO2018068328A1 (zh) * 2016-10-14 2018-04-19 华为技术有限公司 一种界面显示的方法及终端
CN106547446A (zh) * 2016-10-31 2017-03-29 努比亚技术有限公司 应用切换装置和方法
CN107704185A (zh) * 2017-08-31 2018-02-16 努比亚技术有限公司 一种分屏桌面显示方法、终端及计算机可读存储介质
CN109144649A (zh) * 2018-08-22 2019-01-04 Oppo广东移动通信有限公司 图标的显示方法、装置、终端及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3835931A4 *

Also Published As

Publication number Publication date
US11500513B2 (en) 2022-11-15
CN109144649A (zh) 2019-01-04
EP3835931A1 (en) 2021-06-16
EP3835931A4 (en) 2021-10-06
US20210173550A1 (en) 2021-06-10
CN109144649B (zh) 2020-12-29

Similar Documents

Publication Publication Date Title
US11500513B2 (en) Method for icon display, terminal, and storage medium
US20210048939A1 (en) Icon display method, device, and terminal
US11467715B2 (en) User interface display method, terminal and non-transitory computer-readable storage medium for splitting a display using a multi-finger swipe
US11301131B2 (en) Method for split-screen display, terminal, and non-transitory computer readable storage medium
CN109101157B (zh) 侧边栏图标设置方法、装置、终端及存储介质
CN107688422B (zh) 通知消息显示方法及装置
US11644943B2 (en) Method for icon display, terminal, and storage medium
WO2019114828A1 (zh) 用户界面显示方法、装置、设备及存储介质
CN108804190B (zh) 用户界面显示方法、装置、终端及存储介质
WO2019174477A1 (zh) 用户界面显示方法、装置及终端
CN108279966B (zh) 网页截图方法、装置、终端及存储介质
WO2020038168A1 (zh) 内容分享方法、装置、终端及存储介质
CN108803964B (zh) 浮标显示方法、装置、终端及存储介质
US11132101B2 (en) Icon moving method, terminal and storage medium
CN107765959B (zh) 后台应用程序显示方法和终端
CN109656445B (zh) 内容处理方法、装置、终端及存储介质
WO2019174465A1 (zh) 用户界面显示方法、装置、终端及存储介质
CN107688430B (zh) 更换壁纸的方法、装置、终端及存储介质
CN107580039B (zh) 传输进度的显示方法、装置及终端
US20210216177A1 (en) Navigation bar controlling method and terminal
CN107562324B (zh) 数据显示控制的方法和终端
US11194598B2 (en) Information display method, terminal and storage medium
CN111324398A (zh) 最近内容的处理方法、装置、终端及存储介质
CN109714474B (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: 19851559

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019851559

Country of ref document: EP

Effective date: 20210311