WO2024017097A1 - Interface display method and terminal device - Google Patents

Interface display method and terminal device Download PDF

Info

Publication number
WO2024017097A1
WO2024017097A1 PCT/CN2023/106839 CN2023106839W WO2024017097A1 WO 2024017097 A1 WO2024017097 A1 WO 2024017097A1 CN 2023106839 W CN2023106839 W CN 2023106839W WO 2024017097 A1 WO2024017097 A1 WO 2024017097A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop
interface
user
category
page
Prior art date
Application number
PCT/CN2023/106839
Other languages
French (fr)
Chinese (zh)
Inventor
胡杰
古妍妍
倪银堂
卢磊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210887840.9A external-priority patent/CN117472486A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024017097A1 publication Critical patent/WO2024017097A1/en

Links

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

Definitions

  • the present application relates to the field of terminal technology, and in particular, to an interface display method and terminal equipment.
  • This application provides an interface display method and a terminal device, which helps users set the desktop layout of the terminal device more conveniently, thereby improving user experience.
  • embodiments of the present application provide an interface display method.
  • the method can be applied to a terminal device and includes: detecting a first user operation by a user on a first interface, where the first interface contains one or more controls, and the controls are used to instruct the operation of different desktop classification layout modes, so The first user operation is used to run the target desktop category layout mode selected by the user; in response to the first user operation, a second interface is displayed, and the second interface is a desktop page corresponding to the first category and includes information belonging to the first category. At least one desktop element of the first classification; wherein, the first classification is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
  • the terminal device can realize the target desktop classification layout method selected by the user, and layout and display the desktop elements on one or more desktop pages according to the classification; for example, one page of desktop can contain multiple desktops belonging to one category. element.
  • the terminal device can realize the target desktop classification layout method selected by the user, and layout and display the desktop elements on one or more desktop pages according to the classification; for example, one page of desktop can contain multiple desktops belonging to one category. element.
  • the terminal device can realize the target desktop classification layout method selected by the user, and layout and display the desktop elements on one or more desktop pages according to the classification; for example, one page of desktop can contain multiple desktops belonging to one category. element.
  • Sorting method so that users can choose the appropriate layout sorting method, thereby improving user experience.
  • the method further includes: detecting a second user operation of the user on the second interface, the second user operation being used to instruct the user to switch desktop pages displayed on the desktop; in response to the The second user operates to display a third interface; wherein the third interface is a desktop page corresponding to the second category and includes at least one desktop element belonging to the second category; or, the third interface is Another desktop page corresponding to the first category and including at least one desktop element that belongs to the first category and is different from the second interface; or, the third interface is included in the terminal device Fixed pages, which do not carry out classification layout.
  • desktop elements belonging to different categories based on the terminal device are divided into different desktop pages for display, and users can search for desktop elements belonging to different categories on different desktop pages.
  • the method further includes: detecting a third user operation performed by the user on the second interface, where the third user operation is used to instruct the user to change the layout and sorting method of the second interface; In response to the third user operation, a fourth interface is displayed, and the fourth interface is obtained after re-layout and sorting of desktop elements included in the second interface.
  • this design by providing users with the function of quickly switching classification layouts on the desktop page, it can provide users with multiple classification layout sorting methods, making it easier for users to choose appropriate classification layout sorting results, which can help users to facilitate Organize your desktop and improve user experience.
  • the method further includes: detecting a fourth user operation by the user on the second interface, the fourth user operation being used to indicate the user's triggering operation on the navigation point area; in response to the The fourth user operation displays a fifth interface, and the fifth interface is used to provide the user with a category list associated with each desktop page; detect and respond to the user's selection of the third category included in the category list.
  • a sixth interface is displayed; the sixth interface is a desktop page corresponding to the third category and includes at least one desktop element belonging to the third category.
  • the terminal device configures the navigation point area with a function that facilitates users to quickly switch desktop pages, which can help users conveniently switch desktop pages based on the navigation point area, so that when the number of desktop pages is large,
  • the user's target switching page can be quickly located, so that the target desktop elements needed by the user can be quickly located, thereby improving the user experience.
  • the method further includes: detecting a fourth user operation performed by the user on the second interface, the fourth user operation being used to instruct the user to perform an operation on the first navigation point in the navigation point area. Triggering an operation; in response to the fourth user operation, displaying a fifth interface; wherein the fifth interface is used to provide the user with a desktop page associated with the first navigation point.
  • the terminal device associates each navigation point contained in the navigation point area with the corresponding desktop page, so that the user can conveniently switch desktop pages through the navigation points, thereby quickly locating the target desktop that the user needs. elements, which in turn can enhance the user experience.
  • the method further includes: detecting a fifth user operation for instructing the user to add a desktop element; in response to the fifth user operation, determining a category to which the newly added desktop element belongs; and , display the newly added desktop element on the desktop page corresponding to the category according to the target desktop classification layout.
  • the terminal device classifies and lays out the desktop pages according to the target desktop classification layout selected by the user.
  • the terminal device detects that the user has added a desktop element, the new desktop element can be displayed in the corresponding category.
  • this makes it easier for users to find desktop elements on the corresponding desktop page according to categories, so that users can use the desktop category layout more accurately.
  • the newly added desktop element is displayed on the desktop page corresponding to the category according to the target desktop classification layout, including the following two possible scenarios:
  • Scenario 1 If an existing desktop page includes the first desktop page associated with the category to which it belongs and the first desktop page meets the placement condition, then the newly added desktop element is displayed on the first desktop page. ;
  • the placement condition is that the number of free grids is greater than or equal to the number of grids required for the new desktop element;
  • Scenario 2 If the existing desktop page does not contain the first desktop page, or if the existing desktop page contains the first desktop page and the first desktop page does not meet the placement conditions, then add a new desktop page. two desktop pages, and associate the category to the second desktop page; or, display the newly added desktop element on a third desktop page that meets the placement conditions, and associate the third desktop page with the The category is updated to include the category to which it belongs.
  • the terminal device when the terminal device detects that the user needs to add a new desktop element, it can determine the placement position of the new desktop element based on the classification of the new desktop element and the classification layout result of the current desktop page. It can be understood that if it is determined that there is a placement location for the new desktop element, it can be directly displayed at the place where it can be placed. If it is determined that there is no placement location for the new desktop element, a new desktop page can be added for display, or it can be merged into an existing desktop page where the new desktop element can be placed.
  • displaying the second interface includes: displaying the second interface according to a first display effect associated with the first classification; wherein the first display effect includes one of the following effects At least one: default wallpaper, default font, default font color.
  • desktop pages are classified and laid out based on the target desktop classification layout selected by the user based on the terminal device, and personalized display effects can be associated with each desktop page, thereby improving the aesthetics of the desktop layout and improving user experience. experience.
  • the method further includes: displaying related pages associated with the second interface according to the second display effect associated with the first classification; wherein the related pages associated with the second interface include: : Trigger the screen-off display page when the screen is turned off on the second interface, and trigger the display of the notification bar page on the second page.
  • desktop pages are classified and laid out based on the target desktop classification layout selected by the user based on the terminal device.
  • Personalized display effects can also be associated with other display page scenes based on each desktop page, thereby improving the beauty of the desktop layout. , and improve the user experience.
  • the terminal device displays the first interface, including: detecting a user's related preview operation of the preset theme on the theme application, and the related preview operation is used to instruct the user to apply the preset theme on the desktop.
  • the display effect after presetting the theme; in response to the related preview operation, triggering the display of the first interface; or detecting the user's related triggering operation on the desktop display interface, and the related triggering operation is used to instruct the user to enter the desktop Edit entry; in response to the related triggering operation, trigger display of the first interface.
  • one implementation method is to trigger the classified layout display of the desktop layout from the theme APP
  • the other implementation method is to trigger the classified layout display of the desktop layout directly from the desktop editing portal.
  • the terminal device provides the user with the ability to support desktop layout by category on the first interface, which helps the user to easily adjust the desktop layout, thereby improving the user experience. test.
  • the first classification is any desktop classification among the classifications obtained according to the target desktop classification layout, or is a mixed classification of at least two desktop classifications.
  • the selectable desktop classification layout method includes at least one of the following methods: layout by function and layout by color.
  • embodiments of the present application further provide a terminal device, which includes a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code includes computer instructions; When the computer instructions are executed by the processor, the terminal device is caused to execute the method in any possible design of the first aspect.
  • embodiments of the present application also provide an interface display device, which includes a module/unit that performs the method in any possible design of the first aspect.
  • modules/units can be implemented by hardware, or they can be implemented by hardware executing corresponding software.
  • the module/unit can at least perform the following steps: detect the first user operation of the user on the first interface, the first interface includes one or more controls, the controls are used to instruct the running of different desktop classification layouts mode, the first user operation is used to run the target desktop category layout mode selected by the user; in response to the first user operation, a second interface is displayed, the second interface is the desktop page corresponding to the first category, and Contains at least one desktop element belonging to the first category; wherein the first category is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
  • a computer-readable storage medium stores a computer program (which can also be called a code, or an instruction) that when run on a computer causes the computer to execute any one of the above-mentioned first aspects. possible design methods.
  • a computer program product includes: a computer program (which can also be called a code, or an instruction).
  • a computer program which can also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to execute any of the possible designs in the first aspect. method in.
  • a graphical user interface on a terminal device is also provided.
  • the terminal device has a display screen, one or more memories, and one or more processors, and the one or more processors are used to execute the graphical user interface stored in the terminal device.
  • One or more computer programs in one or more memories, the graphical user interface includes a graphical user interface displayed when the terminal device executes any possible implementation of the first aspect of the embodiment of the present application.
  • the present application also provides a chip, which is used to read a computer program stored in a memory and execute any of the above aspects and possible methods for executing it on a terminal device.
  • the present application also provides a chip system.
  • the chip system includes a processor and is used to support a computer device to implement any of the above aspects and possible methods for designing a terminal device to execute the same.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • Figure 1 is a schematic diagram of the hardware architecture of a terminal device provided by an embodiment of the present application.
  • Figure 2 is a software system architecture block diagram of a terminal device provided by an embodiment of the present application.
  • Figure 3a is a schematic diagram of a desktop display interface of a terminal device provided by an embodiment of the present application.
  • Figure 3b is a second schematic diagram of a desktop display interface of a terminal device provided by an embodiment of the present application.
  • Figure 4 is one of the scene schematic diagrams of an interface display method provided by an embodiment of the present application.
  • Figure 5 is a second schematic diagram of a scene of an interface display method provided by an embodiment of the present application.
  • Figure 6 is a third schematic diagram of a scene of an interface display method provided by an embodiment of the present application.
  • Figure 7 is the fourth schematic diagram of a scene of an interface display method provided by an embodiment of the present application.
  • Figure 8 is a fifth schematic diagram of a scene of an interface display method provided by an embodiment of the present application.
  • Figure 9 is one of the flow diagrams of an interface display method provided by an embodiment of the present application.
  • Figure 10 is a second schematic flowchart of an interface display method provided by an embodiment of the present application.
  • Figure 11 is the third schematic flowchart of an interface display method provided by an embodiment of the present application.
  • Figure 12 is the fourth schematic flowchart of an interface display method provided by an embodiment of the present application.
  • the embodiments of the present application can be applied to the field of terminal technology, and specifically can be applied to scenarios in which desktop elements such as application icons, shortcuts, and service cards are displayed on the desktop display interface of a terminal device.
  • the terminal device may be a terminal device with a desktop display interface such as a mobile phone, a tablet computer, a notebook computer, a folding screen mobile phone, or the like. It can be understood that the embodiments of the present application do not place any restrictions on the specific type of terminal equipment.
  • Terminal devices to which the embodiments of this application can be applied include but are not limited to carrying Or terminal equipment of other operating systems.
  • the above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel).
  • Figure 1 shows a schematic diagram of the hardware structure of a possible terminal device.
  • the terminal device 200 includes: a radio frequency (radio frequency, RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a wireless fidelity ( wireless-fidelity, Wi-Fi) module 290 and other components.
  • RF radio frequency
  • RF radio frequency
  • the RF circuit 210 can be used to receive and send data during communication or phone calls. In particular, after receiving the downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; in addition, it sends the uplink data to be sent to the base station.
  • the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
  • LNA low noise amplifier
  • the RF circuit 210 can also communicate with other devices through a wireless communication network.
  • the wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • email short messaging service
  • Wi-Fi technology is a short-distance wireless transmission technology.
  • the terminal device 200 can connect to an access point (AP) through the Wi-Fi module 290, thereby achieving access to the data network.
  • the Wi-Fi module 290 can be used to receive and send data during communication.
  • the terminal device 200 can achieve physical connection with other devices through the communication interface 280 .
  • the communication interface 280 is connected to the communication interface of the other device through a cable to realize data transmission between the terminal device 200 and other devices.
  • the terminal device 200 can also implement communication services and interact with service-side devices or other terminal devices. Therefore, the terminal device 200 needs to have a data transmission function, that is, the terminal device 200 needs to contain a communication module inside.
  • FIG. 1 shows communication modules such as the RF circuit 210, the Wi-Fi module 290, and the communication interface 280, it can be understood that at least one of the above components is present in the terminal device 200 or Other communication modules (such as Bluetooth modules) used to implement communication for data transmission.
  • the terminal device 200 when the terminal device 200 is a mobile phone, the terminal device 200 may include the RF circuit 210, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); When the terminal device 200 is a computer, the terminal device 200 may include the communication interface 280, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); when the When the terminal device 200 is a tablet computer, the terminal device 200 may include the Wi-Fi module, or may include a Bluetooth module (not shown in FIG. 1 ).
  • the memory 240 may be used to store software programs and modules.
  • the processor 230 executes various functional applications and data processing of the terminal device 200 by running software programs and modules stored in the memory 240 .
  • the memory 240 may mainly include a program storage area and a data storage area.
  • the stored program area can store the operating system (mainly including the kernel layer, system corresponding software programs or modules such as the system layer, application framework layer, and application layer).
  • the memory 240 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the memory 240 may store relevant data such as relevant configuration files, downloaded theme files, and wallpapers used to implement the interface display method provided by the embodiment of the present application.
  • the input unit 250 may be used to receive editing operations of multiple different types of data objects such as numeric or character information input by the user, and to generate key signal input related to user settings and function control of the terminal device 200 .
  • the input unit 250 may include a touch panel 251 and other input devices 252.
  • the touch panel 251 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, stylus, etc. on the touch panel 251 or in the vicinity. operations near the touch panel 251), and drive the corresponding connection device according to the preset program.
  • the touch panel 251 can collect the user's user operations on the desktop display interface, such as click operations on the theme application (hereinafter referred to as APP), to control the desktop containing different categories of desktop elements. Page switching operations, etc.
  • APP click operations on the theme application
  • the other input devices 252 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, etc.
  • function keys such as volume control keys, switch keys, etc.
  • trackball such as mouse, joystick, etc.
  • the display unit 260 may be used to display information input by a user or information provided to a user and various menus of the terminal device 200 .
  • the display unit 260 is the display system of the terminal device 200 and is used to present an interface and realize human-computer interaction.
  • the display unit 260 may include a display panel 261.
  • the display panel 261 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • the display unit 260 can be used to display a desktop display interface for the user; wherein, the desktop display interface can display the current desktop page, and each desktop page can include applications or shortcuts for various functions, Some service cards, desktop gadgets and other desktop elements.
  • the processor 230 is the control center of the terminal device 200, using various interfaces and lines to connect various components, by running or executing software programs and/or modules stored in the memory 240, and calling the software programs stored in the memory 240.
  • the data in the memory 240 executes various functions of the terminal device 200 and processes data, thereby realizing various services based on the terminal device 200 .
  • the processor 230 may be used to implement the interface display method provided by the embodiment of the present application.
  • the terminal device 200 also includes a power source 220 (such as a battery) for powering various components.
  • a power source 220 such as a battery
  • the power supply 220 can be logically connected to the processor 230 through a power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.
  • the terminal device 200 also includes an audio circuit 270 , a microphone 271 and a speaker 272 , which can provide an audio interface between the user and the terminal device 200 .
  • the audio circuit 270 can be used to convert the audio data into a signal that can be recognized by the speaker 272, and transmit the signal to the speaker 272, and the speaker 272 converts the signal into a sound signal and outputs it.
  • the microphone 271 is used to collect external sound signals (such as human speech or other sounds, etc.), convert the collected external sound signals into signals that the audio circuit 270 can recognize, and send them to the audio circuit 270 .
  • the audio circuit 270 can also be used to convert the signal sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 to send to, for example, another terminal device, or output the audio data to the memory 240 for subsequent further processing.
  • the terminal device 200 may also include a camera, at least one sensor, etc., which will not be described again here.
  • At least one sensor may include, but is not limited to, a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
  • the operating system (OS) involved in the embodiment of this application is the most basic system software running on the terminal device 200.
  • the software system of the terminal device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • This embodiment of the present application takes an operating system adopting a layered architecture as an example to illustrate the software system architecture of the terminal device 200 .
  • Figure 2 is a software system architecture block diagram of a terminal device provided by an embodiment of the present application.
  • the software system architecture of the terminal device can be a layered architecture.
  • the software can be divided into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the operating system is divided into five layers, from top to bottom: application layer, application framework layer (framework, FWK), runtime and system libraries, kernel layer, and hardware layer.
  • the application layer can include a series of application packages. As shown in Figure 2, the application layer can include cameras, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include wireless local area network (WLAN), music, calls, Bluetooth, video, memos, notes, etc.
  • WLAN wireless local area network
  • the application layer may be used to implement the presentation of the desktop display interface.
  • the above desktop display interface can be based on
  • the classification layout method in the following embodiment implements classification presentation of various desktop elements on different desktop pages.
  • the application can be developed using the Java language and is completed by calling the application programming interface (API) provided by the application framework layer. Developers can operate through the application framework layer. Interact with the bottom layer of the system (such as hardware layer, kernel layer, etc.) to develop your own applications.
  • API application programming interface
  • the application framework layer is mainly a series of services and management systems of the operating system.
  • the application framework layer provides application programming interfaces and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer can include activity manager, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • the activity manager is used to manage the life cycle of each application and provide common navigation rollback functions, providing an interactive interface for all program windows.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the terminal device. For example, call status management (including connected, hung up, etc.).
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • applications such as localized strings, icons, pictures, layout files, video files, etc.
  • all locally stored themes can be displayed to the user by calling the resource manager.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.
  • the runtime includes core libraries and virtual machines.
  • the runtime is responsible for the scheduling and management of the operating system.
  • the core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the operating system.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media framework (media framework), three-dimensional graphics processing library (for example: OpenGL ES), two-dimensional graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media framework can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the three-dimensional graphics processing library can be used to draw three-dimensional motion trajectory images
  • the two-dimensional graphics engine can be used to draw two-dimensional motion trajectory images
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the hardware layer can include various types of sensors, such as acceleration sensors, gravity sensors, touch sensors, etc.
  • the terminal device 200 can run multiple applications at the same time.
  • one application can correspond to one process; for more complex ones, one application can correspond to multiple processes.
  • Each process has a process number (process ID).
  • At least one of the following or similar expressions in the embodiments of this application refers to any combination of these items, including any combination of single item (items) or plural items (items).
  • at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple.
  • "Plural” means two or more.
  • “And/or” describes the relationship between associated objects, indicating that there can be three relationships.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. Character "/" General Indicates that the related objects are an "or” relationship.
  • the hardware structure of the terminal device can be as shown in Figure 1, and the software system architecture can be as shown in Figure 2, wherein the software programs and/or modules corresponding to the software system architecture in the terminal device can be stored in the memory 240, and the processing The processor 230 can run the software programs and applications stored in the memory 240 to execute the process of an interface display method provided by the embodiment of the present application.
  • the terminal device can receive and respond to the user's operation, and layout and display various desktop elements on one or more desktop display interfaces according to categories, which can help the user to conveniently organize the terminal
  • the desktop of the device prevents users from spending a lot of time manually organizing the desktop layout, thereby improving the user experience.
  • the terminal device can receive and respond to a user operation for instructing the user to classify by function.
  • the terminal device layouts and displays various desktop elements according to different functional classifications on different pages of the desktop display interface.
  • various desktop elements corresponding to the entertainment functions are displayed on the desktop page 1; among them, the desktop elements corresponding to the entertainment functions are such as: application folders containing multiple applications belonging to the entertainment function category (such as game folders, audio and video files folder), service cards (such as the service cards corresponding to music APP), various application icons and shortcuts, etc.
  • the terminal device may also receive and respond to a user operation for instructing the user to sort by color.
  • the terminal device layouts and displays various desktop elements according to different color categories on different page desktop display interfaces. For example, desktop page 1 displays apps and service cards with icons whose main color is red, and desktop page 2 displays apps and service cards with icons whose main color is green.
  • FIG. 3a is a schematic diagram of a desktop display interface of a terminal device provided by an embodiment of the present application.
  • the current desktop page displayed on the display panel 261 of the mobile phone can be understood as a desktop display interface.
  • the mobile phone may contain multiple pages of desktop, and the user can switch and display different desktop pages through user operations such as left and right sliding operations; wherein different desktop pages may include different display contents.
  • the desktop display interface may contain one or more of the following contents:
  • Workspace area 301 the desktop workspace on the terminal device, is used to display various desktop elements.
  • the classification of desktop elements may include but is not limited to: application folders 302, applications 303, widgets 304, and service cards 305.
  • the workspace area 301 is usually divided into grids, for example, it can be divided into 4 ⁇ 6 (the workspace area 301 as shown in Figure 3b contains a grid of 4 columns and 6 rows), 5 ⁇ 5, 5 ⁇ 6, etc. Number of grids.
  • Application folder 302 contains icons of multiple application programs.
  • the application folder named "System Tools" in desktop page 1 shown in a in Figure 3a includes a clock icon, a calendar icon, a file management icon, and a mobile phone manager icon.
  • the application folder named "Game Category" in the desktop page 2 shown in b in Figure 3a contains a game 1 icon, a game 2 icon, a game 3 icon and a game 4 icon.
  • the application folders 302 may have different specifications, and the application folders 302 of different specifications may occupy different numbers of grids. For example, a small folder can occupy one grid; a medium folder can occupy 1 ⁇ 2, or 4 ⁇ 4 grids as shown in a in Figure 3a; and a large folder can occupy 9 ⁇ 9 grids. It should be noted that since an application icon generally occupies at least one grid, if all the application icons contained in the application folder cannot be displayed on the grid occupied by the application folder 302, other application icons can be displayed in response to the user's request.
  • a display interface containing more application icons is displayed, which are stored in the folder in other scenarios; for example, the desktop page 2 shown in b in Figure 3a is named "Game" "The application folder may also contain Game 5 icons, Game 6 icons, etc. that are not shown.
  • Application program 303 used to indicate the application program installed on the terminal device, such as the theme APP icon shown as a in Figure 3a.
  • the desktop can also include shortcut icons, etc.; wherein, the shortcut icons can be used to implement any function included in the application (such as a "scan" shortcut, etc.) , this application does not limit this.
  • Widget 304 also known as “desktop widget”, “window widget”, etc.
  • Widget 304 used to provide functions corresponding to the application program more directly.
  • the widget corresponding to the weather APP shown in a in Figure 3a can intuitively provide weather information to the user; and for example, the widget corresponding to the video APP shown in b in Figure 3a can provide some of the video APP to the user.
  • Shortcut functions such as video search bar, etc.
  • Service card 305 (which can also be called a "universal card” and can also be provided in the form of combined cards, stacked cards, etc.), which is used to more conveniently preview the service information of the application.
  • the gallery can be previewed through the service card corresponding to the gallery APP.
  • the dock bar 306 may include icons of commonly used applications, such as the camera icon, address book icon, phone icon and information icon shown in Figure 3a. It should be noted that the icons included in the dock bar 306 can be set accordingly according to the user's needs.
  • Navigation point area 307 used to indicate the desktop page currently displayed on the desktop of the terminal device, the number of desktop pages included, etc.
  • the current desktop display interface shown in a in Figure 3a is desktop page 1
  • the current desktop display interface shown in b in Figure 3a is desktop page 2
  • the desktop shown in Figure 3a also includes negative One screen corresponds to the desktop page.
  • the desktop of the terminal device may also include a status bar; where the status bar may include information such as power, time, network status, etc.
  • the desktop page may also include other tools or other categories of desktop elements that may appear in the future.
  • the specific types of desktop elements included on the desktop page are not limited. The embodiments of this application are mainly used in scenarios where the terminal device performs classified layout display of various desktop elements on the desktop display interface.
  • embodiments of the present application provide an interface display method.
  • Terminal devices can provide users with the function of automatically classifying and laying out various desktop elements, thereby helping users organize their desktops more conveniently and thereby improving user experience.
  • the display interface shown in a in Figure 3a can be a layout interface corresponding to the system tool function category (for example, including a system tool named "System Tool”).
  • application folder, weather widget, gallery service card and theme APP icon) the display interface shown in b in Figure 3a can be a layout interface corresponding to the entertainment function category (for example, including an application folder named "Game Category", Video widget, music service card).
  • the application scenarios applicable to the embodiments of this application are first described below through multiple examples. It can be understood that the embodiments of the present application are not limited to the following application scenarios.
  • FIG. 4 is a schematic diagram of a scenario of an interface display method provided by an embodiment of the present application.
  • the theme APP can include an entrance that triggers the interface display method provided by this application.
  • the terminal device detects and responds to the user operation of opening the theme APP and performs the related preview operation on the preset theme
  • the prompt pop-up window may include a control 401 for indicating that "layout by function" can be performed after applying the preset theme, and a control 402 for indicating that "layout by color” can be performed after applying the preset theme.
  • layout by function and “layout by color” are used as examples.
  • layout can also be based on other principles (such as “layout by naming”, etc.).
  • This application uses classification layout The method is not limited.
  • the terminal device detects and responds to the user operation of the "Layout by Function” control 401, and changes the desktop elements contained in the terminal device to Layout by function on one or more desktop display interfaces. For example, one or more desktop elements belonging to functional category 1 are displayed on the desktop page 1 shown as b1 in Figure 4; and one or more desktop elements belonging to functional category 2 and functional category 3 are displayed. The element is displayed on the desktop page 2 shown as b2 in Figure 4.
  • one functional category can usually be displayed on each desktop page.
  • a functional category that contains too many desktop elements that cannot be displayed on one page of desktop it can be displayed through multiple pages of desktop.
  • there is a functional category that contains fewer desktop elements and occupies less than half a page of desktop it can be merged with other functional categories that contain fewer desktop elements and displayed on one page of desktop, as shown in Figure 4
  • Desktop page 2 shown in b2 simultaneously displays desktop elements included in functional category 2 and desktop elements included in functional category 3.
  • FIG. 5 is a schematic diagram of another scenario of an interface display method provided by an embodiment of the present application.
  • the terminal device can also provide an entrance on the desktop for triggering the method of the present application.
  • the terminal device detects and responds to the user's operation of entering the desktop editing portal (such as the user's two-finger pinch operation on the desktop display interface, etc.), and displays the "layout" control 501 as shown in a in Figure 5 .
  • the terminal device detects the user's click operation on the "layout" control 501, in response to the click operation, the interface shown in b in Figure 5 is displayed.
  • interface b in Figure 5 may include: "original layout” control 502, "layout by function” control 503 and “layout by color” control 504; it can be understood that the "original layout” control 502 is used to maintain The current layout of desktop elements, no need to classify layout.
  • the terminal device detects and responds to the user's
  • the desktop elements contained in the terminal device are arranged according to color classification on one or more pages of desktop display interface. For example, one or more desktop elements belonging to color category 1 are displayed on the desktop page 1 shown as c1 in Figure 5; and one or more desktop elements belonging to color category 2 and color category 3 are displayed. The element is displayed on desktop page 2 as shown as c2 in Figure 5.
  • one color classification can usually be displayed on each page of the desktop.
  • it can be displayed through multiple pages of desktop.
  • it can be merged with other color categories that contain fewer desktop elements and displayed on one page of desktop, as shown in Figure 5
  • Desktop page 2 shown in c2 simultaneously displays desktop elements included in color category 2 and desktop elements included in color category 3.
  • FIG. 6 is a schematic diagram of another scenario of an interface display method provided by an embodiment of the present application.
  • the terminal device can also provide a "change" control 601 on each page of the desktop for changing the layout sorting method. For example, the terminal device detects and responds to the user's click operation on the "Change" control 601, and changes the display interface 61 to the display interface 62.
  • changes to the layout sorting method may include but are not limited to one or a combination of the following methods: display position (such as changing the order of up and down display, changing left and right display positions, etc.), display mode (such as changing from application folder to application icon), the number of occupied networks (for example, changing from occupying 4*2 grids to occupying 2*2 grids), display style (for example, changing from large folders to small folders, widget style changes, etc.).
  • the terminal device can provide a layout sorting method applied to each page of the desktop, detect and respond to the user's click operation on the "Change" control 601, and the terminal device can provide a layout sorting method corresponding to multiple layout sorting methods.
  • the layout display results undergo periodic transformation.
  • FIG. 7 is a schematic diagram of another scenario of an interface display method provided by an embodiment of the present application. If the terminal device detects a user operation on the navigation point area 307 in the desktop display interface 71 (such as a click operation or a long press operation, etc.), in response to the user operation, the user is provided with a prompt popup such as that contained in the display interface 72. Window 701.
  • the prompt pop-up window 701 may include categories associated with each desktop page. For example, taking "layout by function" in the display interface 72 as an example, the prompt pop-up window 701 may include, for example, system tool function classification, learning and office function classification, entertainment function classification, life function classification, food function classification, travel function classification, social networking function classification, etc. Information function classification and other functional classifications.
  • the terminal device detects and responds to the user's operation of the "Travel” category control in the prompt pop-up window 701, and displays the desktop page associated with the "Travel” function category (not shown in Figure 7.) In this way, through the desktop page containing The navigation point area 307 can help users quickly switch desktop pages associated with different functional categories, thereby improving user experience.
  • the prompt pop-up window 701 may include items corresponding to color categories such as black, gray, red, orange, yellow, green, cyan, blue, purple, etc. controls.
  • the colors corresponding to the color categories can also be displayed through navigation points, so as to clarify the color categories associated with each page of the desktop.
  • the navigation point area 307 includes a navigation point corresponding to a negative one-screen desktop, and navigation points 801 and 802 corresponding to two pages of desktop respectively, where each navigation point is based on the corresponding desktop.
  • the associated category of the page is displayed.
  • desktop page 1 can be a desktop corresponding to the red category
  • the navigation point 801 can be displayed in red.
  • the navigation point 802 can be displayed in blue.
  • the currently displayed desktop display interface can be indicated by the mark 800.
  • the user can click the corresponding navigation point to trigger switching to the corresponding desktop page; or, since the navigation point area 307 is small, the user can also be provided with a prompt pop-up window as shown in Figure 7 to assist the user conveniently.
  • Switch the desktop page or, when the number of navigation points contained in the navigation point area 307 is less than the navigation point quantity threshold, the user can switch the desktop page by directly clicking on the navigation point, and when it is more than or equal to the navigation point quantity threshold, , providing users with prompt pop-ups to assist users in switching desktop pages.
  • the navigation point area 307 included on the desktop can more intuitively prompt the user with the classification corresponding to each page of the desktop, helping the user to find the target desktop element more conveniently.
  • Scenario 5 Based on the above scenarios, if the terminal device detects a new operation for instructing the user to add a desktop element, in response to the new operation, the terminal device can determine the classification method of the new desktop element in the desktop application category under. If the terminal device determines that the category corresponding to the newly added desktop element exists on the desktop, and the new desktop element can be placed in the free display position of the desktop page associated with the category, then the new desktop element is placed in the new desktop element. on the desktop page associated with the above category. Alternatively, if the terminal device determines that the category corresponding to the newly added desktop element does not exist on the desktop, or even if the category exists, the new desktop element cannot be placed in the free display position on the associated desktop page, then a new desktop element can be added.
  • One page of desktop, and the new desktop element is placed on the new desktop page; or, in the existing desktop page, a free display position can be selected to place the desktop page on which the new desktop element can be placed, and the new desktop element can be placed on the new desktop page.
  • the new desktop element is added, and the category associated with the selected desktop page is updated to the original category + the new desktop element
  • the category to which the element belongs can be represented by a newly defined mixed name, or it can also be expressed in the form of the original category (the category to which the newly added desktop element belongs), etc. This application does not limit this. .
  • the terminal device when it implements layout of desktop elements by category, it can also display different desktop wallpapers on different desktop pages; for example, when layout display by functional category, the desktop corresponding to the entertainment function category Desktop wallpaper 1 (such as character wallpaper) can be selected on the page, and desktop wallpaper 2 (such as text wallpaper) can be selected on the desktop page corresponding to the learning tool category. And, in each desktop page, the terminal device can also adjust the display style of the preset desktop elements according to the category of the desktop page. For example, when the layout display is classified by color, a desktop page corresponding to the red category can be set simultaneously. Or the background color of multiple service cards is mainly red, and/or the background wallpaper of one or more application folders is set simultaneously as the default desktop wallpaper.
  • Desktop wallpaper 1 such as character wallpaper
  • desktop wallpaper 2 such as text wallpaper
  • desktop elements are displayed on one or more desktop display interfaces according to categories based on the terminal device.
  • the terminal device can also associate the display methods of other display scenes based on the classification layout results. For example, when the terminal device detects that the category corresponding to the current display interface on the desktop is the blue category, and if it detects a user operation on the touch panel to trigger the display of the notification bar page, it responds to the user operation , the terminal device can display the notification bar as a display interface with blue as the main color, for example, the color of the shortcut icon in the notification bar when selected is displayed as blue; it can be understood that if it is detected that the classification corresponding to the current display interface is green When categorizing, you can change the color of the shortcut icon in the notification bar to green when selected.
  • the terminal device when the terminal device detects that the screen-off display function is set, the terminal device can respond to the category corresponding to the desktop page where the user stays when the screen is off, and trigger the display effect of the screen-off display associated with the category (for example, One or more of animation effects, display colors, display styles, etc.); for example, if the terminal device detects that the user has turned off the screen on the desktop page corresponding to the green category, then when the off-screen display (AOD) is displayed, it is displayed in green
  • the display effect associated with the classification for example, can be an animation effect that gradually changes from green to white.
  • FIG. 9 a schematic flow chart of an interface display method is provided according to a possible embodiment of the present application.
  • This method can be applied to terminal devices (such as mobile phones, tablet computers, folding screen mobile phones, etc.) and can include the following processes:
  • Step 901 Detect the first user operation of the user on the first interface.
  • the first interface includes one or more controls.
  • the controls are used to instruct the operation of different desktop classification layout modes.
  • the first user operation is used to Run the target desktop classification layout selected by the user.
  • the terminal device may display the first interface in but not limited to the following ways, including:
  • Method 1 Display the first interface based on the theme APP included on the terminal device. For example, based on the terminal device enabling the application program of the theme APP, the terminal device can receive the user's browsing operations on various pages included in the theme APP, download operations and/or application operations of some themes, etc.
  • the terminal device detects the user's related preview operation on the first theme that meets the preset application conditions, in response to the related preview operation, the first interface shown in a in Figure 4 can be displayed for the user.
  • the first interface includes controls corresponding to one or more desktop classification layout modes supported by the first theme that meets the preset application conditions, such as "layout by function" as shown in a in Figure 4 Control 401, "layout by color” control 402, etc.
  • the first theme that meets the preset application conditions is used to indicate a theme that can be applied by the user and supports the realization of desktop classification layout through the method provided by this application.
  • each theme in the theme APP generally has a corresponding theme package, and the theme package may include configuration files corresponding to various functions used to support the application of the theme; based on this, when implementing this application , the theme package corresponding to the first theme that meets the preset application conditions may include a layout configuration file used to support the desktop classification layout function when the first theme is applied; wherein the layout configuration file may be used to indicate One or more desktop classification layout methods supported by the first theme may also be used to indicate display resources corresponding to each classification (such as wallpaper resources, font resources, screen-off display animation effect resources, etc.).
  • the terminal device can provide the user with display of the first interface according to the layout configuration file.
  • the terminal device can detect the first user operation.
  • the terminal device detects the user's selection operation on the control for running the first desktop classification layout mode (such as "layout by function"), it can be determined that the user selected the "layout by function" mode as the target desktop classification.
  • Layout mode at this time, the desktop application process can be notified, so that when the user applies the first theme, the existing desktop elements are classified and displayed according to the target desktop classification layout mode.
  • Method 2 Display the first interface based on the desktop application process of the terminal device.
  • the terminal device can also detect relevant trigger operations that instruct the user to trigger entry into the desktop editing portal on the desktop display interface and use the desktop classification layout function (for example, the user's two-finger pinch operation on the desktop display interface, and click "Layout” function control, etc.), in response to the related trigger operation, the first interface shown in b in Figure 5 can be displayed for the user.
  • the first interface under method 2 contains the second theme of the current desktop application. At least one supported control for running one or more different desktop classification layout modes, such as the "layout by function" control 503, the "layout by color” control 504, and the "original layout” shown in b in Figure 5 Control 502 etc.
  • the second theme may be a theme that is currently applied on the desktop and supports the implementation of desktop classification layout through the method provided by the embodiments of the present application. It can be understood that if the theme currently applied to the desktop is a third theme that does not support the implementation of desktop classification layout, the "layout" function control may not be displayed when the terminal device displays a display interface including a desktop editing entrance.
  • the terminal device can also detect the first user operation.
  • the terminal device can detect the user's selection operation on the control used to run the second desktop classification layout mode (such as "layout by color") through the desktop application process, and then it can be determined that the user selects the "layout by color" mode as the selected control.
  • the desktop application process can respond to the first user operation to adjust the desktop layout of existing desktop elements according to the target desktop classification layout method on the basis of applying the second theme.
  • Step 902 In response to the first user operation, display a second interface, where the second interface is a desktop page corresponding to the first category and includes at least one desktop element belonging to the first category; wherein, The first classification is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
  • the terminal device may also detect and respond to a second user operation for instructing the user to switch desktop pages, and switch to display a third interface.
  • the third interface may be a desktop page corresponding to the second category. , and include at least one desktop element belonging to the second category; or, the third interface may also be another desktop page corresponding to the first category, and include at least one desktop element belonging to the first category. Element, this scenario is suitable for scenarios where the first category contains a lot of desktop elements and needs to be displayed on a multi-page desktop.
  • the third interface may also be a fixed page such as a negative one-screen page included in the terminal device that may not be classified and laid out.
  • the terminal device may be implemented to respond to the first user operation and notify the desktop application process to classify the classifiable desktops included in the current desktop according to the target desktop classification layout.
  • the elements are classified into layouts; then, the desktop application process is restarted and the new classification layout results take effect.
  • Figure 10 is a schematic flowchart of an interface display method provided by the embodiment of the present application; if the first interface is displayed based on method 1, the method provided by the embodiment of the present application can mainly be performed through the terminal device It is realized through the interaction between the theme application process and the desktop application process. Taking the first user operation as the user to select the control corresponding to the "layout by function" mode and applying it to the first theme as an example, the following process may be included. :
  • Step 1001 The theme application process parses the theme package of the first theme.
  • Step 1002 The theme application process identifies that the first theme supports the desktop classification layout function according to the theme package of the first theme.
  • Step 1003 On the first interface displayed based on Mode 1, the theme application process determines that the target desktop classification layout mode is the "layout by function" mode in response to the first user operation.
  • Step 1004 The theme application decompresses the compressed resources used to implement the "layout by function” method, obtains classification standards by function, and notifies the desktop application process.
  • classification standards can be customized and pre-configured, or adaptively adjusted based on user habits, etc. This application does not limit this.
  • the function classification standard may be a pre-agreed function classification.
  • the pre-agreed function classification can be obtained through the following channels: the function classification associated with each application in the application market APP used to download and install applications on the terminal device, or the function classification of each desktop element stored in advance Standards etc.
  • Table 1 shows one possible functional classification criteria:
  • desktop elements belonging to each major category can be classified together and displayed on one page of desktop, or when there are many desktop elements belonging to this major category, Displayed on a multi-page desktop; and applications belonging to each subcategory under each major category can be divided into an application folder, etc. It should be noted that based on the functional classification standards shown in Table 1, the specific classification method of desktop elements is not limited when this application is implemented.
  • Step 1005 The desktop application process obtains the function classification standard.
  • Step 1006 The desktop application process determines the functional classification of each existing desktop element based on the functional classification standard, and determines the layout order according to the functional classification of each existing desktop element.
  • the terminal device determines the classification of each desktop element included on the current desktop.
  • the video APP can be determined to belong to the entertainment category and the audio-visual subcategory.
  • the terminal device determines the desktop layout sorting based on the functional classification results of each desktop element.
  • the desktop layout sorting method may include but is not limited to one or a combination of the following methods:
  • the terminal device can divide application icons and/or shortcuts into application folders based on subcategories in the functional classification standard; based on the application folders, they can be displayed in different specifications to facilitate the user to intuitively view desktop elements.
  • the application folder specifications may be determined based on the number of desktop elements contained in the application folder.
  • the number of desktop elements contained is less than or equal to the first quantity threshold (for example, 2 desktop elements), it can be displayed as a small folder occupying 1 grid. Or, in order to avoid having too many application folders on the desktop page, you can also merge multiple application folders that are less than or equal to the first number threshold. For example, assume that the game subcategory contains two game APPs and the audio and video subcategory If it contains 1 video APP, you can merge the game subcategory and the audiovisual subcategory into a "game audiovisual" folder containing 3 desktop elements.
  • the first quantity threshold for example, 2 desktop elements
  • the number of desktop elements contained is greater than the first number threshold and less than the second number threshold (for example, 5 desktop elements), it can be displayed as a folder occupying a 1 ⁇ 2 grid, or displayed. In order to occupy a 2 ⁇ 2 medium folder, etc., the specific settings can be set according to the configuration.
  • the number of desktop elements contained is greater than or equal to the second quantity threshold (for example, 5 desktop elements), it can be displayed as occupying 2 ⁇ 2 folders, or as occupying 3 ⁇ 3 folders. Large folders, etc. can be set according to the configuration.
  • the second quantity threshold for example, 5 desktop elements
  • first quantity threshold and second quantity threshold are only an example. During specific implementation, more or less quantity thresholds can also be used to determine application folder specifications; and, when this application is implemented, all The specific settings of the first quantitative threshold and the second quantitative threshold are not limited.
  • the terminal device may determine the weight value, weighted summation value, etc. of each desktop element based on factors such as the frequency of use of the desktop element, duration of use, original layout display position, or preset importance.
  • a larger weight value is assigned to the weather APP based on the preset importance level.
  • the terminal device sorts the desktop elements based on the weight value or the weighted sum value, the weather APP can be displayed in a more prominent position.
  • the terminal device may also periodically update the weight value and/or the weighted sum value.
  • the terminal device may determine the number of desktop pages according to the functional categories.
  • the terminal device determines the number of functional categories involved in the desktop, and determines the number of desktop pages that each functional category needs to occupy.
  • the terminal device determines the target number of rows that the functional category needs to occupy based on the desktop elements included in each functional category, and determines the target number of rows that the functional category needs to occupy based on the target number of rows and the number of first rows included in the desktop workspace area 301.
  • the comparison between the threshold (used to indicate the number of half-screen rows) and the second row number threshold (used to indicate the number of full-screen rows) determines the number of desktop pages required for the functional category. For example, it can be divided into the following situations:
  • Case 1 If the target number of rows is less than or equal to the first row number threshold, it is determined that the functional category occupies half a page of the desktop. Based on this, the terminal device can merge multiple functional categories that occupy half a page of the desktop. For example, assuming that the social information category and other categories respectively occupy half a page of the desktop, the social information category and the other categories can be merged. Major categories are combined into one desktop page for display.
  • the terminal device can prioritize the two categories that occupy a larger number of rows after merging. For example, assuming that the number of lines in the entire screen is 6, Function Category 1 occupies 2 lines, Function Category 2 occupies 3 lines, and Function Category 3 occupies 3 lines, the terminal device can perform pairwise merging calculations based on the merging method to determine the right After the combination of the functional category 2 and the functional category 3, the merged result can occupy 6 rows and can occupy the maximum number of rows and can be displayed on one page of desktop. Then the terminal device can give priority to functional category 2 and function Category 3 is merged.
  • the terminal device can also add some service cards to the half-page desktop display page to improve the aesthetics of the desktop page.
  • Case 3 If the target number of rows is greater than the second row number threshold, it is determined that the functional category occupies multiple pages of the desktop. It can be understood that the terminal device can also determine the number of multi-page desktops that the functional category needs to occupy based on the target row number, for example, it can occupy one and a half desktop pages, two desktop pages, etc.; wherein, if the functional categories are large If a class occupies half of the desktop page, the half-page desktop can also be merged with other functional categories that occupy half of the desktop page.
  • the terminal device can arrange the desktop page or the order of the desktop elements on the desktop page according to one or a combination of the number of grids occupied by the desktop elements, weight value, weighted sum value and other factors. For example, it can be arranged according to The number of occupied grids is arranged from large to small, and the weight values are arranged in order from large to small, etc.
  • the terminal device can merge the at least one desktop element, for example, merge application icons and/or shortcuts into application folders.
  • the terminal device can also merge desktop elements that are not classified into determined functional categories, or merged application folders, etc., into desktop pages that already have functional categories, so that each desktop page can be filled as much as possible. Avoid redundant desktop pages, thereby improving the aesthetics of the desktop, etc.
  • the terminal device can periodically update the weight value or the weighted sum value, and detect the user's addition, deletion or display mode change of desktop elements (for example, the user manually triggers the display of a small folder change to a large folder, or the user changes the display style of the service card, etc.); in view of this, the terminal device can periodically send prompt information to the user whether to update the desktop classification layout; and, if it receives a message to instruct the user to confirm updating the desktop classification During layout, the terminal device updates the classification layout results of the desktop.
  • Step 1007 The theme application process receives that the functional classification layout of the desktop application process has taken effect.
  • Step 1008 The theme application process instructs the desktop application process to restart, and the theme package of the first theme takes effect after the restart.
  • Figure 11 is another schematic flowchart of an interface display method provided by the embodiment of the present application; if the first interface is displayed based on method 2, the method provided by the embodiment of the present application can mainly It is realized through the interaction between the desktop application process and the theme application process in the terminal device. Taking the first user operation as an example for the user to select the "layout by color" mode to apply to the second theme currently used on the desktop, the following process may be included. :
  • Step 1101 On the first interface displayed based on Mode 2, the desktop application determines that the target desktop classification layout mode is the "layout by color" mode in response to the first user operation.
  • Step 1102 Obtain color classification standards from the compressed resources used to implement the "layout by color” method in the theme application. It can be understood that in the triggering scenario based on method 2, the second theme is the theme currently being applied on the desktop. At this time, the first user operation is equivalent to classifying and laying out the applications based on the second theme. Switch, take switching to "layout by color” as an example. At this time, you can obtain the color classification standards from the compressed resources that have been decompressed in the theme application.
  • classification standards can be customized and pre-configured, or adaptively adjusted based on user habits, etc. This application does not limit this.
  • color classification standards may include but are not limited to one or a combination of the following standards:
  • the pre-agreed color classification may be the color classification of each desktop element pre-stored by the terminal device, etc.
  • the color classification may include: black, gray, red, orange, yellow, green, cyan, blue, purple, and others.
  • the main color and color count (count) value of desktop elements calculated based on the image color picking method.
  • the terminal device can also extract the picture bitmap (bitmap) display of the desktop element view according to the desktop display effect of the desktop element view, and then calculate the main color and color count of the desktop element based on the picture color picking method. value.
  • the color classification of desktop elements is not limited to the implementation standards introduced above. Other implementation methods can also be used during specific implementation. For example, other color picking methods can be used to obtain the main colors of desktop elements. wait.
  • Step 1103 Determine the color classification of each existing desktop element based on the color classification standard, and determine the layout sorting result according to the color classification of each existing desktop element.
  • the "layout by color” scenario can also be based on but not limited to the following implementation methods: determining folder specifications, calculating desktop element weights, determining desktop The number of pages and the order of arrangement will not be repeated here.
  • Step 1104 The desktop application process applies the layout sorting result. It can be understood that after applying the layout sorting result, the desktop elements of the terminal device are arranged and displayed according to color classification on the desktop.
  • the desktop application process may not need to interact with the theme application.
  • the existing desktop application process may be modified.
  • Desktop elements are displayed in a categorized layout.
  • the layout configuration file used to implement classified layout display may be pre-stored in the resource package of the desktop application process, or in other preset locations, for example.
  • the terminal device may also respond to a user operation for instructing the user to adjust the classification layout result according to the classification layout principle.
  • the terminal device detects a third user operation for instructing the user to change the layout and sorting method of the second interface (for example, the user performs a "change one" operation on the desktop display interface 61 as shown in Figure 6 Click operation of "Change" control 601), in response to the third user operation, a fourth interface is displayed.
  • the fourth interface contains the same desktop elements as the second interface, but the difference lies in the layout and sorting method.
  • changes to the layout sorting method may include but are not limited to one or a combination of the following methods: display position (such as changing the order of up and down display, changing left and right display positions, etc.), display mode (such as changing from application folder to application icon), the number of occupied networks (for example, changing from occupying 4*2 grids to occupying 2*2 grids), display style (for example, changing from large folders to small folders, widget style changes, etc.).
  • display position such as changing the order of up and down display, changing left and right display positions, etc.
  • display mode such as changing from application folder to application icon
  • the number of occupied networks for example, changing from occupying 4*2 grids to occupying 2*2 grids
  • display style for example, changing from large folders to small folders, widget style changes, etc.
  • the terminal device detects a fourth user operation for instructing the user to trigger the navigation point area (for example, the user operates on the interface 71 as shown in Figure 7 or the interface 81 as shown in Figure 8 Long press operation of navigation point area 307, etc.)
  • the fifth interface is displayed.
  • the fifth interface is used to provide the user with categories associated with each desktop page, such as the categories shown in the prompt pop-up window 701 shown in the interface 72 in FIG. 7 .
  • the terminal device detects a selection operation for any category (assumed to be the third category), it switches to display the desktop page corresponding to the third category (assumed to be the sixth interface).
  • the terminal device configures the navigation point area with a function that facilitates the user to quickly switch desktop pages, which can help the user to conveniently switch desktop pages based on the navigation point area, so that when there are a large number of desktop pages, the terminal device can quickly switch the desktop page. Locate the user's target switching page, so that you can quickly locate the target desktop elements that the user needs, thereby improving the user experience.
  • the target desktop classification layout method will be configured according to the target desktop layout method.
  • New desktop elements are displayed on the desktop page corresponding to the category to which they belong.
  • the newly added desktop elements include: downloading applications, adding service cards, adding shortcuts, etc.
  • Figure 12 is another schematic flowchart of an interface display method provided by an embodiment of the present application, which may at least include the following processes:
  • Step 1201 A fifth user operation is detected, and the fifth user operation is used to add a first desktop element.
  • Step 1202 In response to the fifth user operation, determine the target category to which the first desktop element belongs. Optionally, if the target category of the first desktop element cannot be obtained, the target category is determined to be another category.
  • Step 1203 Based on the multiple desktop pages included in the terminal device, determine whether there is a desktop page corresponding to the target category.
  • Step 1204 If it is determined that there is a first desktop page corresponding to the target category, further determine whether the first desktop page contains the placement position of the first desktop element.
  • Step 1205 If it is determined that the first desktop page corresponding to the target category does not exist, or if it is determined that the first desktop page exists but the first desktop page does not contain the placement position of the first desktop element, add a new a second desktop page, and associate the target category with the second desktop page.
  • the newly added desktop element can also be displayed on a third desktop page that meets the placement condition, and the category associated with the third desktop page is updated to include the category to which it belongs, and the placement condition is the number of free grids. Greater than or equal to the number of grids required for the new desktop element.
  • Step 1206 If it is determined that the first desktop page exists and the first desktop page contains the placement position of the first desktop element, display the first desktop element on the first desktop page.
  • the desktop of the terminal device can be implemented to automatically layout and display existing desktop elements according to categories on one or more desktop pages.
  • Automatic classification and layout of desktop elements can be triggered by the theme package in the theme APP;
  • new desktop elements they can also be automatically classified and displayed on the desktop page corresponding to the category to which they belong. Therefore, this method helps the user to adjust the desktop layout conveniently, and through the automatic classification and layout of desktop elements by the terminal device, a more accurate desktop layout classification can be achieved, and through the processing of the terminal device, it can also be Provide users with multiple layout sorting methods so that users can choose appropriate layout sorting, thereby improving user experience.
  • this application also provides a terminal device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the terminal device in the methods described in the embodiments of this application.
  • the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation. For example, perform steps 901 to 902 performed by the terminal device in the embodiment shown in FIG. 9, or perform steps 1001 to 1008 performed by the terminal device in the embodiment shown in FIG. 10, or perform steps performed by the terminal device in the embodiment shown in FIG. 11. 1101 to 1104, or perform steps 1201 to 1206 performed by the terminal device in the embodiment shown in FIG. 12 .
  • this application also provides a terminal device.
  • the terminal device includes at least one processor and at least one memory. Computer program instructions are stored in the at least one memory.
  • the at least one processing The server performs the functions performed by the terminal device in each method described in the embodiments of this application. For example, perform steps 901 to 902 performed by the terminal device in the embodiment shown in FIG. 9, or perform steps 1001 to 1008 performed by the terminal device in the embodiment shown in FIG. 10, or perform steps performed by the terminal device in the embodiment shown in FIG. 11. 1101 to 1104, or perform steps 1201 to 1206 performed by the terminal device in the embodiment shown in FIG. 12 .
  • the computer program product includes: a computer program (which can also be called a code, or an instruction).
  • a computer program which can also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to execute the steps described in the embodiments of this application. Each method.
  • the present application also provides a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a computer, the computer is caused to execute the embodiments of the present application. Each method is described.
  • this application also provides a chip, which is used to read the computer program stored in the memory and implement the methods described in the embodiments of this application.
  • this application provides a chip system.
  • the chip system includes a processor and is used to support a computer device to implement the methods described in the embodiments of this application.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects.
  • the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Abstract

Provided in the embodiments of the present application are an interface display method and a terminal device. The method can be applied to a terminal device, which is conducive to a user setting up a desktop layout of the terminal device in a more convenient manner, thereby improving the user experience. The method comprises: if a terminal device detects a target desktop classification layout mode, which is selected by a user, in response to the target desktop classification layout mode, which is selected by the user, performing layout display of desktop elements on one or more pages of desktop according to classifications, wherein a plurality of desktop elements belonging to the same classification are displayed on one page of desktop.

Description

一种界面显示方法与终端设备An interface display method and terminal device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年07月20日提交中华人民共和国知识产权局、申请号为202210858781.2、申请名称为“一种界面显示方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;本申请要求在2022年07月26日提交中华人民共和国知识产权局、申请号为202210887840.9、申请名称为“一种界面显示方法与终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application submitted to the Intellectual Property Office of the People's Republic of China on July 20, 2022, with application number 202210858781.2 and application title "An interface display method and device", the entire content of which is incorporated by reference in In this application; this application requires the priority of the Chinese patent application submitted to the Intellectual Property Office of the People's Republic of China on July 26, 2022, with the application number 202210887840.9 and the application title "An interface display method and terminal equipment", all of which The contents are incorporated into this application by reference.
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种界面显示方法与终端设备。The present application relates to the field of terminal technology, and in particular, to an interface display method and terminal equipment.
背景技术Background technique
随着终端设备的普及,用户除了追求终端设备的各种各样的功能之外,对于终端设备的桌面布局以及美观性等方面也逐渐关注。目前,用户一般根据自身诉求和审美观念等因素的考虑,对桌面布局进行手动调整,例如用户手动将一些应用归类到一个文件夹内、或者用户手动将小文件夹调整为大文件夹等。因此,如何使得用户在终端设备的桌面上可以更便捷地设置桌面布局,具有重要的研究意义。With the popularity of terminal devices, in addition to pursuing various functions of terminal devices, users are also gradually paying attention to the desktop layout and aesthetics of terminal devices. At present, users generally manually adjust the desktop layout based on their own demands and aesthetic concepts. For example, users manually classify some applications into a folder, or users manually adjust small folders into large folders. Therefore, how to enable users to more conveniently set the desktop layout on the desktop of the terminal device has important research significance.
发明内容Contents of the invention
本申请提供一种界面显示方法与终端设备,有助于用户设置终端设备的桌面布局时更加便捷,从而可以提高用户体验。This application provides an interface display method and a terminal device, which helps users set the desktop layout of the terminal device more conveniently, thereby improving user experience.
第一方面,本申请实施例提供了一种界面显示方法。该方法可以应用于终端设备,包括:检测用户在第一界面上的第一用户操作,所述第一界面包含一个或多个控件,所述控件用于指示运行不同的桌面分类布局方式,所述第一用户操作用于运行用户选中的目标桌面分类布局方式;响应于所述第一用户操作,显示第二界面,所述第二界面为第一分类所对应的桌面页面、且包含属于所述第一分类的至少一个桌面元素;其中,所述第一分类为按照所述目标桌面分类布局方式对桌面元素进行分类布局之后得到的。In the first aspect, embodiments of the present application provide an interface display method. The method can be applied to a terminal device and includes: detecting a first user operation by a user on a first interface, where the first interface contains one or more controls, and the controls are used to instruct the operation of different desktop classification layout modes, so The first user operation is used to run the target desktop category layout mode selected by the user; in response to the first user operation, a second interface is displayed, and the second interface is a desktop page corresponding to the first category and includes information belonging to the first category. At least one desktop element of the first classification; wherein, the first classification is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
通过该方法,终端设备可以实现基于用户选择的目标桌面分类布局方式,将桌面元素按分类在一页或多页桌面上进行布局显示;例如,一页桌面可以包含属于一种分类的多个桌面元素。这样,有助于用户便捷地进行桌面布局调整,并且通过终端设备对桌面元素的自动分类布局,可以实现更精确地桌面布局分类,以及,通过终端设备的处理,还可以为用户提供多种布局排序方式,以便于用户选择合适的布局排序方式,从而可以提升用户体验。Through this method, the terminal device can realize the target desktop classification layout method selected by the user, and layout and display the desktop elements on one or more desktop pages according to the classification; for example, one page of desktop can contain multiple desktops belonging to one category. element. In this way, it helps the user to adjust the desktop layout conveniently, and through the automatic classification and layout of desktop elements by the terminal device, a more precise desktop layout classification can be achieved, and through the processing of the terminal device, it can also provide users with a variety of layouts. Sorting method, so that users can choose the appropriate layout sorting method, thereby improving user experience.
在一种可能的设计中,所述方法还包括:检测用户在所述第二界面上的第二用户操作,所述第二用户操作用于指示用户切换桌面上显示的桌面页面;响应于所述第二用户操作,显示第三界面;其中,所述第三界面为第二分类所对应的桌面页面、且包含属于所述第二分类的至少一个桌面元素;或者,所述第三界面为所述第一分类所对应的另一桌面页面、且包含属于所述第一分类的且与所述第二界面不同的至少一个桌面元素;或者,所述第三界面为所述终端设备包含的固定页面,所述固定页面不进行分类布局。In a possible design, the method further includes: detecting a second user operation of the user on the second interface, the second user operation being used to instruct the user to switch desktop pages displayed on the desktop; in response to the The second user operates to display a third interface; wherein the third interface is a desktop page corresponding to the second category and includes at least one desktop element belonging to the second category; or, the third interface is Another desktop page corresponding to the first category and including at least one desktop element that belongs to the first category and is different from the second interface; or, the third interface is included in the terminal device Fixed pages, which do not carry out classification layout.
该设计中,基于终端设备可以属于不同分类的桌面元素划分为不同桌面页面上进行显示,用户可以在不同桌面页面上查找属于不同分类的桌面元素。In this design, desktop elements belonging to different categories based on the terminal device are divided into different desktop pages for display, and users can search for desktop elements belonging to different categories on different desktop pages.
在一种可能的设计中,所述方法还包括:检测用户在所述第二界面上的第三用户操作,所述第三用户操作用于指示用户变更所述第二界面的布局排序方式;响应于所述第三用户操作,显示第四界面,所述第四界面为对所述第二界面包含的桌面元素进行重新布局排序之后得到的。In a possible design, the method further includes: detecting a third user operation performed by the user on the second interface, where the third user operation is used to instruct the user to change the layout and sorting method of the second interface; In response to the third user operation, a fourth interface is displayed, and the fourth interface is obtained after re-layout and sorting of desktop elements included in the second interface.
该设计中,通过在桌面页面上向用户提供实现分类布局的快速切换的功能,可以实现为用户提供多种分类布局排序方式,便于用户选择合适的分类布局排序结果,从而可以有助于用户便捷地整理桌面,提升用户体验。In this design, by providing users with the function of quickly switching classification layouts on the desktop page, it can provide users with multiple classification layout sorting methods, making it easier for users to choose appropriate classification layout sorting results, which can help users to facilitate Organize your desktop and improve user experience.
在一种可能的设计中,所述方法还包括:检测用户在所述第二界面上的第四用户操作,所述第四用户操作用于指示用户对导航点区的触发操作;响应于所述第四用户操作,显示第五界面,所述第五界面用于为用户提供各桌面页面关联的分类列表;检测并响应于用户对所述分类列表中包含的第三分类的选 中操作,显示第六界面;所述第六界面为所述第三分类所对应的桌面页面、且包含属于所述第三分类的至少一个桌面元素。In a possible design, the method further includes: detecting a fourth user operation by the user on the second interface, the fourth user operation being used to indicate the user's triggering operation on the navigation point area; in response to the The fourth user operation displays a fifth interface, and the fifth interface is used to provide the user with a category list associated with each desktop page; detect and respond to the user's selection of the third category included in the category list. During the operation, a sixth interface is displayed; the sixth interface is a desktop page corresponding to the third category and includes at least one desktop element belonging to the third category.
该设计中,终端设备通过为导航点区配置上便于用户快速切换桌面页面的功能,可以有助于用户基于所述导航点区实现便捷地切换桌面页面,以便于在桌面页面的数量较多时,可以快速定位到用户的目标切换页面,从而可以快速定位到用户需要的目标桌面元素,进而可以提升用户体验。In this design, the terminal device configures the navigation point area with a function that facilitates users to quickly switch desktop pages, which can help users conveniently switch desktop pages based on the navigation point area, so that when the number of desktop pages is large, The user's target switching page can be quickly located, so that the target desktop elements needed by the user can be quickly located, thereby improving the user experience.
在一种可能的设计中,所述方法还包括:检测用户在所述第二界面上的第四用户操作,所述第四用户操作用于指示用户对导航点区中的第一导航点的触发操作;响应于所述第四用户操作,显示第五界面;其中,所述第五界面用于为用户提供所述第一导航点关联的桌面页面。In a possible design, the method further includes: detecting a fourth user operation performed by the user on the second interface, the fourth user operation being used to instruct the user to perform an operation on the first navigation point in the navigation point area. Triggering an operation; in response to the fourth user operation, displaying a fifth interface; wherein the fifth interface is used to provide the user with a desktop page associated with the first navigation point.
该设计中,终端设备通过将导航点区包含的各导航点关联上相对应的桌面页面,从而可以实现用户通过所述导航点实现便捷地切换桌面页面,从而可以快速定位到用户需要的目标桌面元素,进而可以提升用户体验。In this design, the terminal device associates each navigation point contained in the navigation point area with the corresponding desktop page, so that the user can conveniently switch desktop pages through the navigation points, thereby quickly locating the target desktop that the user needs. elements, which in turn can enhance the user experience.
在一种可能的设计中,所述方法还包括:检测用于指示用户新增桌面元素的第五用户操作;响应于所述第五用户操作,确定所述新增桌面元素的所属分类;并且,根据所述目标桌面分类布局方式,将所述新增桌面元素显示在所属分类所对应的桌面页面上。In a possible design, the method further includes: detecting a fifth user operation for instructing the user to add a desktop element; in response to the fifth user operation, determining a category to which the newly added desktop element belongs; and , display the newly added desktop element on the desktop page corresponding to the category according to the target desktop classification layout.
该设计中,基于终端设备根据用户选择的目标桌面分类布局方式进行桌面页面的分类和布局,在终端设备检测到用户新增桌面元素时,可以将所述新增桌面元素显示在相对应分类的桌面页面上,从而可以便于用户根据分类在相对应的桌面页面上查找桌面元素,以便于用户更准确地使用桌面分类布局。In this design, the terminal device classifies and lays out the desktop pages according to the target desktop classification layout selected by the user. When the terminal device detects that the user has added a desktop element, the new desktop element can be displayed in the corresponding category. On the desktop page, this makes it easier for users to find desktop elements on the corresponding desktop page according to categories, so that users can use the desktop category layout more accurately.
在一种可能的设计中,所述根据所述目标桌面分类布局方式,将所述新增桌面元素显示在所属分类所对应的桌面页面上,包括以下两种可能的场景:In one possible design, the newly added desktop element is displayed on the desktop page corresponding to the category according to the target desktop classification layout, including the following two possible scenarios:
场景1、若已有桌面页面包含所述所属分类关联的第一桌面页面、且所述第一桌面页面满足所述放置条件,则将所述新增桌面元素显示在所述第一桌面页面上;所述放置条件为空闲网格数量大于或等于所述新增桌面元素所需网格数量;Scenario 1. If an existing desktop page includes the first desktop page associated with the category to which it belongs and the first desktop page meets the placement condition, then the newly added desktop element is displayed on the first desktop page. ;The placement condition is that the number of free grids is greater than or equal to the number of grids required for the new desktop element;
场景2、若已有桌面页面中不包含所述第一桌面页面,或者若已有桌面页面包含所述第一桌面页面、且所述第一桌面页面不满足所述放置条件,则新增第二桌面页面,并将所述所属分类与所述第二桌面页面进行关联;或者,在满足放置条件的第三桌面页面上显示所述新增桌面元素,并将所述第三桌面页面关联的分类更新为包含所述所属分类。Scenario 2: If the existing desktop page does not contain the first desktop page, or if the existing desktop page contains the first desktop page and the first desktop page does not meet the placement conditions, then add a new desktop page. two desktop pages, and associate the category to the second desktop page; or, display the newly added desktop element on a third desktop page that meets the placement conditions, and associate the third desktop page with the The category is updated to include the category to which it belongs.
该设计中,终端设备在检测到用户需要新增桌面元素时,可以基于新增桌面元素的分类和当前桌面页面的分类布局结果,确定所述新增桌面元素的放置位置。可以理解,若确定存在所述新增桌面元素的放置位置,则可以直接显示在可放置位置处。若确定不存在所述新增桌面元素的放置位置,则可以新增桌面页面进行显示,或者合并到可以放置所述新增桌面元素的已有桌面页面中。In this design, when the terminal device detects that the user needs to add a new desktop element, it can determine the placement position of the new desktop element based on the classification of the new desktop element and the classification layout result of the current desktop page. It can be understood that if it is determined that there is a placement location for the new desktop element, it can be directly displayed at the place where it can be placed. If it is determined that there is no placement location for the new desktop element, a new desktop page can be added for display, or it can be merged into an existing desktop page where the new desktop element can be placed.
在一种可能的设计中,所述显示第二界面,包括:根据所述第一分类关联的第一显示效果,显示所述第二界面;其中,所述第一显示效果包括以下效果中的至少一种:预设壁纸、预设字体、预设字体颜色。In a possible design, displaying the second interface includes: displaying the second interface according to a first display effect associated with the first classification; wherein the first display effect includes one of the following effects At least one: default wallpaper, default font, default font color.
该设计中,基于终端设备根据用户选择的目标桌面分类布局方式进行桌面页面的分类和布局,还可以为各桌面页面关联个性化的显示效果,从而可以提升桌面布局的美观性,提升用户的使用体验。In this design, desktop pages are classified and laid out based on the target desktop classification layout selected by the user based on the terminal device, and personalized display effects can be associated with each desktop page, thereby improving the aesthetics of the desktop layout and improving user experience. experience.
在一种可能的设计中,所述方法还包括:根据所述第一分类关联的第二显示效果,显示所述第二界面关联的相关页面;其中,所述第二界面关联的相关页面包括:在所述第二界面上触发熄屏时的熄屏显示页面、在所述第二页面上触发显示通知栏页面。In a possible design, the method further includes: displaying related pages associated with the second interface according to the second display effect associated with the first classification; wherein the related pages associated with the second interface include: : Trigger the screen-off display page when the screen is turned off on the second interface, and trigger the display of the notification bar page on the second page.
该设计中,基于终端设备根据用户选择的目标桌面分类布局方式进行桌面页面的分类和布局,还可以为基于各桌面页面的其他显示页面场景关联个性化的显示效果,从而可以提升桌面布局的美观性,提升用户的使用体验。In this design, desktop pages are classified and laid out based on the target desktop classification layout selected by the user based on the terminal device. Personalized display effects can also be associated with other display page scenes based on each desktop page, thereby improving the beauty of the desktop layout. , and improve the user experience.
在一种可能的设计中,所述终端设备显示第一界面,包括:检测到用户在主题应用上对预设主题的相关预览操作,所述相关预览操作用于指示用户在桌面上应用所述预设主题之后的显示效果;响应于所述相关预览操作,触发显示所述第一界面;或者,检测到用户在桌面显示界面上的相关触发操作,所述相关触发操作用于指示用户进入桌面编辑入口;响应于所述相关触发操作,触发显示所述第一界面。In a possible design, the terminal device displays the first interface, including: detecting a user's related preview operation of the preset theme on the theme application, and the related preview operation is used to instruct the user to apply the preset theme on the desktop. The display effect after presetting the theme; in response to the related preview operation, triggering the display of the first interface; or detecting the user's related triggering operation on the desktop display interface, and the related triggering operation is used to instruct the user to enter the desktop Edit entry; in response to the related triggering operation, trigger display of the first interface.
该设计中,一种实现方式为可以从主题APP中触发对桌面布局进行分类布局显示,另一种实现方式为可以直接从桌面编辑入口中触发对桌面布局进行分类布局显示。基于此,终端设备通过在第一界面上向用户提供支持按分类布局桌面的能力,有助于用户便捷地进行桌面布局调整,从而可以提升用户体 验。In this design, one implementation method is to trigger the classified layout display of the desktop layout from the theme APP, and the other implementation method is to trigger the classified layout display of the desktop layout directly from the desktop editing portal. Based on this, the terminal device provides the user with the ability to support desktop layout by category on the first interface, which helps the user to easily adjust the desktop layout, thereby improving the user experience. test.
在一种可能的设计中,所述第一分类为按照所述目标桌面分类布局方式得到的分类中的任一桌面分类、或者为至少两个桌面分类的混合分类。In a possible design, the first classification is any desktop classification among the classifications obtained according to the target desktop classification layout, or is a mixed classification of at least two desktop classifications.
该设计中,在对桌面布局进行分类布局显示的同时,为了避免桌面页面的冗余,还可以对包含桌面元素较少的多个桌面分类进行合并,从而可以进一步保证用户的使用体验,避免由于分类较多导致用户查找困难等问题。In this design, while displaying the desktop layout in categories, in order to avoid redundancy of desktop pages, multiple desktop categories that contain fewer desktop elements can also be merged, so as to further ensure the user experience and avoid Too many categories cause problems such as difficulty for users to find.
在一种可能的设计中,所述可选择的桌面分类布局方式包括以下方式中的至少一种:按功能布局、按颜色布局。In a possible design, the selectable desktop classification layout method includes at least one of the following methods: layout by function and layout by color.
该设计中,提供两种可能的分类布局方式,基于所述按功能布局或所述按颜色布局方式,可以实现对桌面元素的自动分类布局显示,从而可以有助于用户进行桌面布局整理,进而提升用户体验。In this design, two possible classification layout methods are provided. Based on the layout by function or the layout by color, automatic classification layout display of desktop elements can be realized, which can help users organize the desktop layout, and then Improve user experience.
第二方面,本申请实施例还提供一种终端设备,所述终端设备包括存储器和一个或多个处理器;其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述处理器执行时,使得所述终端设备执行上述第一方面中任一种可能设计中的方法。In a second aspect, embodiments of the present application further provide a terminal device, which includes a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code includes computer instructions; When the computer instructions are executed by the processor, the terminal device is caused to execute the method in any possible design of the first aspect.
第三方面,本申请实施例还提供一种界面显示装置,该界面显示装置包括执行上述第一方面中任一种可能设计中的方法的模块/单元。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。例如,所述模块/单元至少可以执行如下步骤:检测用户在第一界面上的第一用户操作,所述第一界面包含一个或多个控件,所述控件用于指示运行不同的桌面分类布局方式,所述第一用户操作用于运行用户选中的目标桌面分类布局方式;响应于所述第一用户操作,显示第二界面,所述第二界面为第一分类所对应的桌面页面、且包含属于所述第一分类的至少一个桌面元素;其中,所述第一分类为按照所述目标桌面分类布局方式对桌面元素进行分类布局之后得到的。In a third aspect, embodiments of the present application also provide an interface display device, which includes a module/unit that performs the method in any possible design of the first aspect. These modules/units can be implemented by hardware, or they can be implemented by hardware executing corresponding software. For example, the module/unit can at least perform the following steps: detect the first user operation of the user on the first interface, the first interface includes one or more controls, the controls are used to instruct the running of different desktop classification layouts mode, the first user operation is used to run the target desktop category layout mode selected by the user; in response to the first user operation, a second interface is displayed, the second interface is the desktop page corresponding to the first category, and Contains at least one desktop element belonging to the first category; wherein the first category is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
第四方面,提供了一种计算机可读存储介质,计算机可读介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能设计中的方法。In a fourth aspect, a computer-readable storage medium is provided. The computer-readable medium stores a computer program (which can also be called a code, or an instruction) that when run on a computer causes the computer to execute any one of the above-mentioned first aspects. possible design methods.
第五方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能设计中的方法。In a fifth aspect, a computer program product is provided. The computer program product includes: a computer program (which can also be called a code, or an instruction). When the computer program is run, it causes the computer to execute any of the possible designs in the first aspect. method in.
第六方面,还提供一种终端设备上的图形用户界面,该终端设备具有显示屏、一个或多个存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述一个或多个存储器中的一个或多个计算机程序,所述图形用户界面包括所述终端设备执行本申请实施例第一方面任一可能的实现方式时显示的图形用户界面。In a sixth aspect, a graphical user interface on a terminal device is also provided. The terminal device has a display screen, one or more memories, and one or more processors, and the one or more processors are used to execute the graphical user interface stored in the terminal device. One or more computer programs in one or more memories, the graphical user interface includes a graphical user interface displayed when the terminal device executes any possible implementation of the first aspect of the embodiment of the present application.
第七方面,本申请还提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面及其各可能的设计终端设备执行的方法。In a seventh aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute any of the above aspects and possible methods for executing it on a terminal device.
第八方面,本申请还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面及其各可能的设计终端设备执行的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, the present application also provides a chip system. The chip system includes a processor and is used to support a computer device to implement any of the above aspects and possible methods for designing a terminal device to execute the same. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The chip system can be composed of chips or include chips and other discrete devices.
需要说明的是,本申请实施例第二方面至第八方面提供的终端设备的各个设计的有益效果请参考第一方面任一种可能的设计的有益效果,此处不再赘述。It should be noted that for the beneficial effects of each design of the terminal equipment provided in the second to eighth aspects of the embodiments of the present application, please refer to the beneficial effects of any possible design in the first aspect, which will not be described again here.
附图说明Description of drawings
图1为本申请实施例提供的一种终端设备的硬件架构的示意图;Figure 1 is a schematic diagram of the hardware architecture of a terminal device provided by an embodiment of the present application;
图2为本申请实施例提供的一种终端设备的软件系统架构框图;Figure 2 is a software system architecture block diagram of a terminal device provided by an embodiment of the present application;
图3a为本申请实施例提供的一种终端设备的桌面显示界面的示意图之一;Figure 3a is a schematic diagram of a desktop display interface of a terminal device provided by an embodiment of the present application;
图3b为本申请实施例提供的一种终端设备的桌面显示界面的示意图之二;Figure 3b is a second schematic diagram of a desktop display interface of a terminal device provided by an embodiment of the present application;
图4为本申请实施例提供的一种界面显示方法的场景示意图之一;Figure 4 is one of the scene schematic diagrams of an interface display method provided by an embodiment of the present application;
图5为本申请实施例提供的一种界面显示方法的场景示意图之二;Figure 5 is a second schematic diagram of a scene of an interface display method provided by an embodiment of the present application;
图6为本申请实施例提供的一种界面显示方法的场景示意图之三;Figure 6 is a third schematic diagram of a scene of an interface display method provided by an embodiment of the present application;
图7为本申请实施例提供的一种界面显示方法的场景示意图之四;Figure 7 is the fourth schematic diagram of a scene of an interface display method provided by an embodiment of the present application;
图8为本申请实施例提供的一种界面显示方法的场景示意图之五;Figure 8 is a fifth schematic diagram of a scene of an interface display method provided by an embodiment of the present application;
图9为本申请实施例提供的一种界面显示方法的流程示意图之一; Figure 9 is one of the flow diagrams of an interface display method provided by an embodiment of the present application;
图10为本申请实施例提供的一种界面显示方法的流程示意图之二;Figure 10 is a second schematic flowchart of an interface display method provided by an embodiment of the present application;
图11为本申请实施例提供的一种界面显示方法的流程示意图之三;Figure 11 is the third schematic flowchart of an interface display method provided by an embodiment of the present application;
图12为本申请实施例提供的一种界面显示方法的流程示意图之四。Figure 12 is the fourth schematic flowchart of an interface display method provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例进行详细描述。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请实施例可以应用于终端技术领域,具体可以适用于在终端设备的桌面显示界面上显示应用图标、快捷方式、服务卡片等桌面元素的场景中。其中,终端设备可以为诸如手机、平板电脑、笔记本电脑、折叠屏手机等具有桌面显示界面的终端设备。可以理解的是,本申请实施例对终端设备的具体类型不作任何限制。The embodiments of the present application can be applied to the field of terminal technology, and specifically can be applied to scenarios in which desktop elements such as application icons, shortcuts, and service cards are displayed on the desktop display interface of a terminal device. The terminal device may be a terminal device with a desktop display interface such as a mobile phone, a tablet computer, a notebook computer, a folding screen mobile phone, or the like. It can be understood that the embodiments of the present application do not place any restrictions on the specific type of terminal equipment.
本申请实施例可以应用到的终端设备,示例性实施例包括但不限于搭载 或者其它操作系统的终端设备。上述便携式电子设备也可以是其它便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。Terminal devices to which the embodiments of this application can be applied, exemplary embodiments include but are not limited to carrying Or terminal equipment of other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel).
图1示出了一种可能的终端设备的硬件结构示意图。其中,所述终端设备200包括:射频(radio frequency,RF)电路210、电源220、处理器230、存储器240、输入单元250、显示单元260、音频电路270、通信接口280、以及无线保真(wireless-fidelity,Wi-Fi)模块290等部件。本领域技术人员可以理解,图1中示出的终端设备200的硬件结构并不构成对终端设备200的限定,本申请实施例提供的终端设备200可以包括比图示更多或更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Figure 1 shows a schematic diagram of the hardware structure of a possible terminal device. Wherein, the terminal device 200 includes: a radio frequency (radio frequency, RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a wireless fidelity ( wireless-fidelity, Wi-Fi) module 290 and other components. Those skilled in the art can understand that the hardware structure of the terminal device 200 shown in Figure 1 does not constitute a limitation on the terminal device 200. The terminal device 200 provided by the embodiment of the present application may include more or fewer components than shown in the figure. , can combine two or more components, or can have different component configurations. The various components shown in Figure 1 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面结合图1对所述终端设备200的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the terminal device 200 with reference to Figure 1:
所述RF电路210可用于通信或通话过程中,数据的接收和发送。特别地,所述RF电路210在接收到基站的下行数据后,发送给所述处理器230处理;另外,将待发送的上行数据发送给基站。通常,所述RF电路210包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。The RF circuit 210 can be used to receive and send data during communication or phone calls. In particular, after receiving the downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; in addition, it sends the uplink data to be sent to the base station. Typically, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
此外,RF电路210还可以通过无线通信网络和其他设备进行通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。In addition, the RF circuit 210 can also communicate with other devices through a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
Wi-Fi技术属于短距离无线传输技术,所述终端设备200通过Wi-Fi模块290可以连接访问接入点(access point,AP),从而实现数据网络的访问。所述Wi-Fi模块290可用于通信过程中,数据的接收和发送。Wi-Fi technology is a short-distance wireless transmission technology. The terminal device 200 can connect to an access point (AP) through the Wi-Fi module 290, thereby achieving access to the data network. The Wi-Fi module 290 can be used to receive and send data during communication.
所述终端设备200可以通过所述通信接口280与其他设备实现物理连接。可选的,所述通信接口280与所述其他设备的通信接口通过电缆连接,实现所述终端设备200和其他设备之间的数据传输。The terminal device 200 can achieve physical connection with other devices through the communication interface 280 . Optionally, the communication interface 280 is connected to the communication interface of the other device through a cable to realize data transmission between the terminal device 200 and other devices.
所述终端设备200还能够实现通信业务,与服务侧设备、或者其他终端设备实现交互,因此所述终端设备200需要具有数据传输功能,即所述终端设备200内部需要包含通信模块。虽然图1示出了所述RF电路210、所述Wi-Fi模块290、和所述通信接口280等通信模块,但是可以理解的是,所述终端设备200中存在上述部件中的至少一个或者其他用于实现通信的通信模块(如蓝牙模块),以进行数据传输。The terminal device 200 can also implement communication services and interact with service-side devices or other terminal devices. Therefore, the terminal device 200 needs to have a data transmission function, that is, the terminal device 200 needs to contain a communication module inside. Although FIG. 1 shows communication modules such as the RF circuit 210, the Wi-Fi module 290, and the communication interface 280, it can be understood that at least one of the above components is present in the terminal device 200 or Other communication modules (such as Bluetooth modules) used to implement communication for data transmission.
例如,当所述终端设备200为手机时,所述终端设备200可以包含所述RF电路210,还可以包含所述Wi-Fi模块290,或可以包含蓝牙模块(图1中未示出);当所述终端设备200为计算机时,所述终端设备200可以包含所述通信接口280,还可以包含所述Wi-Fi模块290,或可以包含蓝牙模块(图1中未示出);当所述终端设备200为平板电脑时,所述终端设备200可以包含所述Wi-Fi模块,或可以包含蓝牙模块(图1中未示出)。For example, when the terminal device 200 is a mobile phone, the terminal device 200 may include the RF circuit 210, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); When the terminal device 200 is a computer, the terminal device 200 may include the communication interface 280, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); when the When the terminal device 200 is a tablet computer, the terminal device 200 may include the Wi-Fi module, or may include a Bluetooth module (not shown in FIG. 1 ).
所述存储器240可用于存储软件程序以及模块。所述处理器230通过运行存储在所述存储器240的软件程序以及模块,从而执行所述终端设备200的各种功能应用以及数据处理。可选的,所述存储器240可以主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统(主要包括内核层、系 统层、应用程序框架层和应用程序层等各自对应的软件程序或模块)。The memory 240 may be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the terminal device 200 by running software programs and modules stored in the memory 240 . Optionally, the memory 240 may mainly include a program storage area and a data storage area. Among them, the stored program area can store the operating system (mainly including the kernel layer, system corresponding software programs or modules such as the system layer, application framework layer, and application layer).
此外,所述存储器240可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。本申请实施例中,所述存储器240可以存储用于实现本申请实施例提供的界面显示方法的相关配置文件、已下载的主题文件和壁纸等相关数据。In addition, the memory 240 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. In this embodiment of the present application, the memory 240 may store relevant data such as relevant configuration files, downloaded theme files, and wallpapers used to implement the interface display method provided by the embodiment of the present application.
所述输入单元250可用于接收用户输入的数字或字符信息等多种不同类型的数据对象的编辑操作,以及产生与所述终端设备200的用户设置以及功能控制有关的键信号输入。可选的,输入单元250可包括触控面板251以及其他输入设备252。The input unit 250 may be used to receive editing operations of multiple different types of data objects such as numeric or character information input by the user, and to generate key signal input related to user settings and function control of the terminal device 200 . Optionally, the input unit 250 may include a touch panel 251 and other input devices 252.
其中,所述触控面板251,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触控面板251上或在所述触控面板251附近的操作),并根据预先设定的程序驱动相应的连接装置。本申请实施例中,所述触控面板251可以收集用户在桌面显示界面上的用户操作,例如对主题应用(application,在下文中简称APP)的点击操作、用以对包含不同分类桌面元素的桌面页面的切换操作等。The touch panel 251, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, stylus, etc. on the touch panel 251 or in the vicinity. operations near the touch panel 251), and drive the corresponding connection device according to the preset program. In the embodiment of the present application, the touch panel 251 can collect the user's user operations on the desktop display interface, such as click operations on the theme application (hereinafter referred to as APP), to control the desktop containing different categories of desktop elements. Page switching operations, etc.
可选的,所述其他输入设备252可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Optionally, the other input devices 252 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, etc.
所述显示单元260可用于显示由用户输入的信息或提供给用户的信息以及所述终端设备200的各种菜单。所述显示单元260即为所述终端设备200的显示系统,用于呈现界面,实现人机交互。所述显示单元260可以包括显示面板261。可选的,所述显示面板261可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置。本申请实施例中,所述显示单元260可用于为用户显示桌面显示界面;其中,桌面显示界面可以显示当前桌面页面,在每个桌面页面中可以分别包含各种功能的应用程序或快捷方式、一些服务卡片、桌面小工具等桌面元素。The display unit 260 may be used to display information input by a user or information provided to a user and various menus of the terminal device 200 . The display unit 260 is the display system of the terminal device 200 and is used to present an interface and realize human-computer interaction. The display unit 260 may include a display panel 261. Optionally, the display panel 261 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In this embodiment of the present application, the display unit 260 can be used to display a desktop display interface for the user; wherein, the desktop display interface can display the current desktop page, and each desktop page can include applications or shortcuts for various functions, Some service cards, desktop gadgets and other desktop elements.
所述处理器230是所述终端设备200的控制中心,利用各种接口和线路连接各个部件,通过运行或执行存储在所述存储器240内的软件程序和/或模块,以及调用存储在所述存储器240内的数据,执行所述终端设备200的各种功能和处理数据,从而实现基于所述终端设备200的多种业务。本申请实施例中,处理器230可用来实现本申请实施例提供的界面显示方法。The processor 230 is the control center of the terminal device 200, using various interfaces and lines to connect various components, by running or executing software programs and/or modules stored in the memory 240, and calling the software programs stored in the memory 240. The data in the memory 240 executes various functions of the terminal device 200 and processes data, thereby realizing various services based on the terminal device 200 . In this embodiment of the present application, the processor 230 may be used to implement the interface display method provided by the embodiment of the present application.
所述终端设备200还包括用于给各个部件供电的电源220(比如电池)。可选的,所述电源220可以通过电源管理系统与所述处理器230逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The terminal device 200 also includes a power source 220 (such as a battery) for powering various components. Optionally, the power supply 220 can be logically connected to the processor 230 through a power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.
如图1所示,终端设备200还包括音频电路270、麦克风271和扬声器272,可提供用户与终端设备200之间的音频接口。音频电路270可用于将音频数据转换为扬声器272能够识别的信号,并将信号传输到扬声器272,由扬声器272转换为声音信号输出。麦克风271用于收集外部的声音信号(如人说话的声音、或者其它声音等),并将收集的外部的声音信号转换为音频电路270能够识别的信号,发送给音频电路270。音频电路270还可用于将麦克风271发送的信号转换为音频数据,再将音频数据输出至RF电路210以发送给比如另一终端设备,或者将音频数据输出至存储器240以便后续进一步处理。As shown in FIG. 1 , the terminal device 200 also includes an audio circuit 270 , a microphone 271 and a speaker 272 , which can provide an audio interface between the user and the terminal device 200 . The audio circuit 270 can be used to convert the audio data into a signal that can be recognized by the speaker 272, and transmit the signal to the speaker 272, and the speaker 272 converts the signal into a sound signal and outputs it. The microphone 271 is used to collect external sound signals (such as human speech or other sounds, etc.), convert the collected external sound signals into signals that the audio circuit 270 can recognize, and send them to the audio circuit 270 . The audio circuit 270 can also be used to convert the signal sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 to send to, for example, another terminal device, or output the audio data to the memory 240 for subsequent further processing.
尽管未示出,所述终端设备200还可以包括摄像头、至少一种传感器等,在此不再赘述。至少一种传感器可以包含但不限于压力传感器、气压传感器、加速度传感器、距离传感器、指纹传感器、触摸传感器、温度传感器等。Although not shown, the terminal device 200 may also include a camera, at least one sensor, etc., which will not be described again here. At least one sensor may include, but is not limited to, a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
本申请实施例涉及的操作系统(operating system,OS),是运行在终端设备200上的最基本的系统软件。终端设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以采用分层架构的操作系统为例,示例性说明终端设备200的软件系统架构。The operating system (OS) involved in the embodiment of this application is the most basic system software running on the terminal device 200. The software system of the terminal device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. This embodiment of the present application takes an operating system adopting a layered architecture as an example to illustrate the software system architecture of the terminal device 200 .
图2为本申请实施例提供的一种终端设备的软件系统架构框图。如图2所示,终端设备的软件系统架构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为五层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),运行时和系统库,内核层,以及硬件层。Figure 2 is a software system architecture block diagram of a terminal device provided by an embodiment of the present application. As shown in Figure 2, the software system architecture of the terminal device can be a layered architecture. For example, the software can be divided into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom: application layer, application framework layer (framework, FWK), runtime and system libraries, kernel layer, and hardware layer.
应用程序层可以包括一系列应用程序包。如图2所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、第三方应用程序等。其中,第三方应用程序可以包括无线局域网(wireless local area network,WLAN)、音乐、通话、蓝牙、视频、备忘录、便签等。The application layer can include a series of application packages. As shown in Figure 2, the application layer can include cameras, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include wireless local area network (WLAN), music, calls, Bluetooth, video, memos, notes, etc.
在本申请实施例中,应用程序层可以用于实现桌面显示界面的呈现。上述桌面显示界面可以基于以 下实施例中的分类布局方式,实现对各种各样的桌面元素在不同的桌面页面上的分类呈现。In this embodiment of the present application, the application layer may be used to implement the presentation of the desktop display interface. The above desktop display interface can be based on The classification layout method in the following embodiment implements classification presentation of various desktop elements on different desktop pages.
一种可能的实现方式中,应用程序可以使用java语言开发,通过调用应用程序框架层所提供的应用程序编程接口(application programming interface,API)来完成,开发者可以通过应用程序框架层来与操作系统的底层(例如硬件层、内核层等)进行交互,开发自己的应用程序。该应用程序框架层主要是操作系统的一系列的服务和管理系统。In one possible implementation, the application can be developed using the Java language and is completed by calling the application programming interface (API) provided by the application framework layer. Developers can operate through the application framework layer. Interact with the bottom layer of the system (such as hardware layer, kernel layer, etc.) to develop your own applications. The application framework layer is mainly a series of services and management systems of the operating system.
应用程序框架层为应用程序层的应用程序提供应用编程接口和编程框架。应用程序框架层包括一些预定义函数。如图2所示,应用程序框架层可以包括活动管理器,窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides application programming interfaces and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer can include activity manager, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
活动管理器用于管理各个应用程序生命周期并提供常用的导航回退功能,为所有程序的窗口提供交互的接口。The activity manager is used to manage the life cycle of each application and provide common navigation rollback functions, providing an interactive interface for all program windows.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。A window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, etc. A view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the terminal device. For example, call status management (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。本申请实施例中,用户在主题APP中选择主题时,可以通过调用资源管理器为用户显示本地存储的所有主题。The resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc. In the embodiment of this application, when the user selects a theme in the theme APP, all locally stored themes can be displayed to the user by calling the resource manager.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.
运行时包括核心库和虚拟机。运行时负责操作系统的调度和管理。The runtime includes core libraries and virtual machines. The runtime is responsible for the scheduling and management of the operating system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是操作系统的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core library of the operating system. The application layer and application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and application framework layer into binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(media framework),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。System libraries can include multiple functional modules. For example: surface manager (surface manager), media framework (media framework), three-dimensional graphics processing library (for example: OpenGL ES), two-dimensional graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体框架可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media framework can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
二维图形引擎是二维绘图的绘图引擎。2D Graphics Engine is a drawing engine for 2D drawing.
在一些实施例中,三维图形处理库可以用于绘制三维的运动轨迹图像,二维图形引擎可以用于绘制二维的运动轨迹图像。In some embodiments, the three-dimensional graphics processing library can be used to draw three-dimensional motion trajectory images, and the two-dimensional graphics engine can be used to draw two-dimensional motion trajectory images.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
硬件层可以包括各类传感器,例如加速度传感器、重力传感器、触摸传感器等。The hardware layer can include various types of sensors, such as acceleration sensors, gravity sensors, touch sensors, etc.
通常终端设备200可以同时运行多个应用程序。较为简单的,一个应用程序可以对应一个进程,较为复杂的,一个应用程序可以对应多个进程。每个进程具备一个进程号(进程ID)。Generally, the terminal device 200 can run multiple applications at the same time. For simple ones, one application can correspond to one process; for more complex ones, one application can correspond to multiple processes. Each process has a process number (process ID).
应理解,本申请实施例中“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般 表示前后关联对象是一种“或”的关系。It should be understood that "at least one of the following" or similar expressions in the embodiments of this application refers to any combination of these items, including any combination of single item (items) or plural items (items). For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple. "Plural" means two or more. "And/or" describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. Character "/" General Indicates that the related objects are an "or" relationship.
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating. Or suggestive order.
应理解,终端设备的硬件结构可以如图1所示,软件系统架构可以如图2所示,其中,终端设备中的软件系统架构对应的软件程序和/或模块可以存储在存储器240中,处理器230可以运行存储器240中存储的软件程序和应用,以执行本申请实施例提供的一种界面显示方法的流程。It should be understood that the hardware structure of the terminal device can be as shown in Figure 1, and the software system architecture can be as shown in Figure 2, wherein the software programs and/or modules corresponding to the software system architecture in the terminal device can be stored in the memory 240, and the processing The processor 230 can run the software programs and applications stored in the memory 240 to execute the process of an interface display method provided by the embodiment of the present application.
为了便于理解本申请提供的界面显示方法,以下结合图3a至图12所示的内容,对采用本申请提供的方法的实现过程进行介绍。In order to facilitate understanding of the interface display method provided by this application, the implementation process using the method provided by this application will be introduced below in conjunction with the content shown in Figures 3a to 12.
本申请实施例提供的方法中,终端设备可以接收并响应于用户操作,将各类桌面元素按分类在一页或多页桌面显示界面上进行布局显示,从而可以有助于用户便捷地整理终端设备的桌面,避免用户耗费大量时间用于手动整理桌面布局,进而可以提升用户体验。In the method provided by the embodiments of the present application, the terminal device can receive and respond to the user's operation, and layout and display various desktop elements on one or more desktop display interfaces according to categories, which can help the user to conveniently organize the terminal The desktop of the device prevents users from spending a lot of time manually organizing the desktop layout, thereby improving the user experience.
例如,终端设备可以接收并响应于用于指示用户按功能分类的用户操作,此时终端设备对各类桌面元素按照不同的功能分类在不同页桌面显示界面上进行布局显示。比如在桌面页面1上显示娱乐功能所对应的各类桌面元素;其中,娱乐功能对应的桌面元素诸如:包含多个属于娱乐功能分类的应用程序的应用文件夹(例如游戏类文件夹、影音文件夹)、服务卡片(如音乐APP对应的服务卡片)、各种应用图标和快捷方式等。For example, the terminal device can receive and respond to a user operation for instructing the user to classify by function. At this time, the terminal device layouts and displays various desktop elements according to different functional classifications on different pages of the desktop display interface. For example, various desktop elements corresponding to the entertainment functions are displayed on the desktop page 1; among them, the desktop elements corresponding to the entertainment functions are such as: application folders containing multiple applications belonging to the entertainment function category (such as game folders, audio and video files folder), service cards (such as the service cards corresponding to music APP), various application icons and shortcuts, etc.
又例如,终端设备也可以接收并响应于用于指示用户按颜色分类的用户操作,此时终端设备对各类桌面元素按照不同颜色分类在不同页桌面显示界面上进行布局显示。比如在桌面页面1上显示图标主色为红色的APP、服务卡片等,以及在桌面页面2上显示图标主色为绿色的APP、服务卡片等。For another example, the terminal device may also receive and respond to a user operation for instructing the user to sort by color. At this time, the terminal device layouts and displays various desktop elements according to different color categories on different page desktop display interfaces. For example, desktop page 1 displays apps and service cards with icons whose main color is red, and desktop page 2 displays apps and service cards with icons whose main color is green.
以终端设备200为手机作为示例,图3a为本申请实施例提供的一种终端设备的桌面显示界面的示意图。其中,手机的显示面板261显示的当前桌面页面可以理解为桌面显示界面。示例性的,手机可以包含多页桌面,用户可以通过如左右滑动操作等用户操作,用于切换显示不同桌面页面;其中,不同的桌面页面上可以包括不同的显示内容。以图3a中的a示出桌面页面1、及图3a中的b示出桌面页面2作为示例,在桌面显示界面上可以包含以下内容中的一种或多种:Taking the terminal device 200 as a mobile phone as an example, FIG. 3a is a schematic diagram of a desktop display interface of a terminal device provided by an embodiment of the present application. Among them, the current desktop page displayed on the display panel 261 of the mobile phone can be understood as a desktop display interface. For example, the mobile phone may contain multiple pages of desktop, and the user can switch and display different desktop pages through user operations such as left and right sliding operations; wherein different desktop pages may include different display contents. Taking a in Figure 3a as desktop page 1 and b in Figure 3a as desktop page 2 as an example, the desktop display interface may contain one or more of the following contents:
(1)workspace区301,终端设备上的桌面工作空间,用于可以显示各种各样的桌面元素。其中,桌面元素的分类可以包括但不限于:应用文件夹302、应用程序303、小部件304、服务卡片305。需要说明的是,workspace区301通常以网格划分,例如可以划分为4×6(如图3b示出的workspace区301中包含4列6行的网格)、5×5、5×6等数量的网格。(1) Workspace area 301, the desktop workspace on the terminal device, is used to display various desktop elements. The classification of desktop elements may include but is not limited to: application folders 302, applications 303, widgets 304, and service cards 305. It should be noted that the workspace area 301 is usually divided into grids, for example, it can be divided into 4×6 (the workspace area 301 as shown in Figure 3b contains a grid of 4 columns and 6 rows), 5×5, 5×6, etc. Number of grids.
(2)应用文件夹302,包含多个应用程序的图标。比如图3a中的a示出的桌面页面1中的命名为“系统工具”的应用文件夹包含时钟图标、日历图标、文件管理图标和手机管家图标。又比如图3a中的b示出的桌面页面2中的命名为“游戏类”的应用文件夹包含游戏1图标、游戏2图标、游戏3图标和游戏4图标。(2) Application folder 302 contains icons of multiple application programs. For example, the application folder named "System Tools" in desktop page 1 shown in a in Figure 3a includes a clock icon, a calendar icon, a file management icon, and a mobile phone manager icon. For another example, the application folder named "Game Category" in the desktop page 2 shown in b in Figure 3a contains a game 1 icon, a game 2 icon, a game 3 icon and a game 4 icon.
其中,应用文件夹302可以具有不同的规格,不同规格的应用文件夹302可占用不同数量的网格。例如,小文件夹可以占用一个网格;中文件夹可以占用1×2、或如图3a中的a示出的4×4个网格;大文件夹可以占用9×9个网格。需要说明的是,鉴于一个应用图标一般至少占用1个网格,若应用文件夹302占用的网格上无法显示出该应用文件夹包含的全部应用图标,则其他应用图标可以在响应于用户对所述应用文件夹302的点击操作之后,显示包含更多应用图标的显示界面,其他场景下收纳在文件夹里面;例如,图3a中的b示出的桌面页面2中的命名为“游戏类”的应用文件夹中还可以包含未示出的游戏5图标、游戏6图标等。The application folders 302 may have different specifications, and the application folders 302 of different specifications may occupy different numbers of grids. For example, a small folder can occupy one grid; a medium folder can occupy 1×2, or 4×4 grids as shown in a in Figure 3a; and a large folder can occupy 9×9 grids. It should be noted that since an application icon generally occupies at least one grid, if all the application icons contained in the application folder cannot be displayed on the grid occupied by the application folder 302, other application icons can be displayed in response to the user's request. After the application folder 302 is clicked, a display interface containing more application icons is displayed, which are stored in the folder in other scenarios; for example, the desktop page 2 shown in b in Figure 3a is named "Game" "The application folder may also contain Game 5 icons, Game 6 icons, etc. that are not shown.
(3)应用程序303,用于指示终端设备上安装的应用程序,如图3a中的a示出的主题APP图标。此外,尽快图3a中未示出,桌面上还可以包含快捷方式图标等;其中,所述快捷方式图标可用于实现应用程序中包含的任一功能等(例如“扫一扫”快捷方式等),本申请对此不进行限定。(3) Application program 303, used to indicate the application program installed on the terminal device, such as the theme APP icon shown as a in Figure 3a. In addition, not shown in Figure 3a, the desktop can also include shortcut icons, etc.; wherein, the shortcut icons can be used to implement any function included in the application (such as a "scan" shortcut, etc.) , this application does not limit this.
(4)小部件304(也可称为“桌面小工具”、“窗口小工具”等),用于更直接地提供应用程序对应的功能。如通过图3a中的a示出的天气APP对应的小部件可以直观地向用户提供天气信息;又如通过图3a中的b示出的视频APP对应的小部件可以向用户提供视频APP的一些快捷功能,如视频搜索栏等。(4) Widget 304 (also known as "desktop widget", "window widget", etc.), used to provide functions corresponding to the application program more directly. For example, the widget corresponding to the weather APP shown in a in Figure 3a can intuitively provide weather information to the user; and for example, the widget corresponding to the video APP shown in b in Figure 3a can provide some of the video APP to the user. Shortcut functions, such as video search bar, etc.
(5)服务卡片305(也可称为“万能卡片”,并且还可以提供组合卡片、堆叠卡片等形式),用于更便捷地预览应用程序的服务信息。如通过图3a中的a示出的图库APP对应的服务卡片可以预览图库 APP中包含的图片;又如通过图3a中的b示出的音乐APP对应的服务卡片可以包含快捷播放按钮等。(5) Service card 305 (which can also be called a "universal card" and can also be provided in the form of combined cards, stacked cards, etc.), which is used to more conveniently preview the service information of the application. As shown in a in Figure 3a, the gallery can be previewed through the service card corresponding to the gallery APP. Pictures included in the APP; for example, the service card corresponding to the music APP shown by b in Figure 3a may include a quick play button, etc.
(6)dock栏306,可以包括常用应用的图标,例如图3a示出的相机图标、通讯录图标、电话图标和信息图标。需要说明的是,dock栏306中包含的图标可以根据用户的需求进行相应设定。(6) The dock bar 306 may include icons of commonly used applications, such as the camera icon, address book icon, phone icon and information icon shown in Figure 3a. It should be noted that the icons included in the dock bar 306 can be set accordingly according to the user's needs.
(7)导航点区307,用于指示终端设备的桌面上当前显示的桌面页面、包含桌面页面的数量等。例如,图3a中的a示出的当前桌面显示界面为桌面页面1,图3a中的b示出的当前桌面显示界面为桌面页面2;除此之外,图3a示出的桌面还包含负一屏对应的桌面页面。(7) Navigation point area 307, used to indicate the desktop page currently displayed on the desktop of the terminal device, the number of desktop pages included, etc. For example, the current desktop display interface shown in a in Figure 3a is desktop page 1, and the current desktop display interface shown in b in Figure 3a is desktop page 2; in addition, the desktop shown in Figure 3a also includes negative One screen corresponds to the desktop page.
此外,尽管图3a中未示出,终端设备的桌面上还可以包含状态栏;其中,状态栏可以包含电量、时间、网络状态等信息。In addition, although not shown in Figure 3a, the desktop of the terminal device may also include a status bar; where the status bar may include information such as power, time, network status, etc.
需要说明的是,具体实现时,桌面页面还可以包含其他或者未来可能出现的其他工具或其他类别桌面元素,本申请实施时对桌面页面上包含的桌面元素具体类型不进行限定。本申请实施例主要应用于终端设备对各类桌面元素在桌面显示界面上进行分类布局显示的场景中。It should be noted that during specific implementation, the desktop page may also include other tools or other categories of desktop elements that may appear in the future. When this application is implemented, the specific types of desktop elements included on the desktop page are not limited. The embodiments of this application are mainly used in scenarios where the terminal device performs classified layout display of various desktop elements on the desktop display interface.
目前,用户可以在如图3a中的a示出的主题APP中实现更换应用图标样式、调整系统字体、选择桌面壁纸等桌面整理手段。然而,针对桌面上的桌面元素的分类布局通常需要用户在桌面页面上进行手动分类或手动移动等用户操作。这样,一方面会导致用户需要耗费大量时间去整理,另一方面由于用户的创造力限制而无法整理得到较为准确、或更为贴合的分类布局。Currently, users can implement desktop organization methods such as changing application icon styles, adjusting system fonts, selecting desktop wallpapers, etc. in the theme APP as shown in a in Figure 3a. However, the classification layout for desktop elements on the desktop usually requires users to perform user operations such as manual classification or manual movement on the desktop page. In this way, on the one hand, it will cause the user to spend a lot of time sorting it out; on the other hand, due to the limitation of the user's creativity, it will be impossible to sort out a more accurate or more suitable classification layout.
有鉴于此,本申请实施例提供一种界面显示方法。终端设备可以为用户提供对各种桌面元素进行自动分类布局的功能,从而有助于用户更便捷性地进行桌面整理,进而提升用户体验。例如,结合图3a所示,假设按功能分类对桌面元素进行布局显示,如图3a中的a示出的显示界面可以为系统工具功能类别对应的布局界面(比如包括以“系统工具”命名的应用文件夹、天气小部件、图库服务卡片以及主题APP图标),如图3a中的b示出的显示界面可以娱乐功能类别对应的布局界面(比如包括以“游戏类”命名的应用文件夹、视频小部件、音乐服务卡片)。以下首先通过多个示例对本申请实施例适用的应用场景进行说明。可以理解,本申请实施例不限定于以下应用场景。In view of this, embodiments of the present application provide an interface display method. Terminal devices can provide users with the function of automatically classifying and laying out various desktop elements, thereby helping users organize their desktops more conveniently and thereby improving user experience. For example, as shown in Figure 3a, assuming that desktop elements are laid out and displayed according to functional classification, the display interface shown in a in Figure 3a can be a layout interface corresponding to the system tool function category (for example, including a system tool named "System Tool"). application folder, weather widget, gallery service card and theme APP icon), the display interface shown in b in Figure 3a can be a layout interface corresponding to the entertainment function category (for example, including an application folder named "Game Category", Video widget, music service card). The application scenarios applicable to the embodiments of this application are first described below through multiple examples. It can be understood that the embodiments of the present application are not limited to the following application scenarios.
场景1,图4为本申请实施例提供的一种界面显示方法的场景示意图。可选的,主题APP中可以包含触发本申请提供的界面显示方法的入口。示例性的,终端设备检测并响应于用户打开主题APP的用户操作,并且对预设主题的相关预览操作,向用户提供所述预设主题的相关预览界面时,可以向用户显示如图4中的a示出的提示弹窗。其中,所述提示弹窗中可以包含用于指示应用所述预设主题后可以“按功能布局”的控件401、用于指示应用所述预设主题后可以“按颜色布局”的控件402。需要说明的是,本申请实施例中以“按功能布局”和“按颜色布局”作为示例,实际实现时,还可以按照其他原则布局(比如“按命名布局”等),本申请对分类布局方式不进行限定。Scenario 1. Figure 4 is a schematic diagram of a scenario of an interface display method provided by an embodiment of the present application. Optionally, the theme APP can include an entrance that triggers the interface display method provided by this application. Exemplarily, when the terminal device detects and responds to the user operation of opening the theme APP and performs the related preview operation on the preset theme, when providing the user with the related preview interface of the preset theme, it can be displayed to the user as shown in Figure 4 a prompt popup window shown. The prompt pop-up window may include a control 401 for indicating that "layout by function" can be performed after applying the preset theme, and a control 402 for indicating that "layout by color" can be performed after applying the preset theme. It should be noted that in the embodiment of this application, "layout by function" and "layout by color" are used as examples. In actual implementation, layout can also be based on other principles (such as "layout by naming", etc.). This application uses classification layout The method is not limited.
在图4中的a示出的显示界面中,以用户选择“按功能布局”作为示例,终端设备检测并响应于用户选择“按功能布局”控件401的用户操作,将终端设备包含的桌面元素在一页或多页桌面显示界面上按功能分类布局。例如,将属于功能分类1的一种或多种桌面元素在如图4中的b1示出的桌面页面1上进行显示;以及,将属于功能分类2和功能分类3的一种或多种桌面元素在如图4中的b2示出的桌面页面2上进行显示。In the display interface shown in a in Figure 4, taking the user's selection of "Layout by Function" as an example, the terminal device detects and responds to the user operation of the "Layout by Function" control 401, and changes the desktop elements contained in the terminal device to Layout by function on one or more desktop display interfaces. For example, one or more desktop elements belonging to functional category 1 are displayed on the desktop page 1 shown as b1 in Figure 4; and one or more desktop elements belonging to functional category 2 and functional category 3 are displayed. The element is displayed on the desktop page 2 shown as b2 in Figure 4.
其中,每页桌面上通常可以显示一种功能分类。除此之外,若存在一种功能分类包含的桌面元素较多,无法在一页桌面上全部显示,则可以通过多页桌面进行显示。或者,若存在一种功能分类包含的桌面元素较少,仅占用少于半页的桌面,则可以与其他包含较少桌面元素的功能分类合并到一页桌面上进行显示,如图4中的b2示出的桌面页面2上同时显示功能分类2包含的桌面元素和功能分类3包含的桌面元素。Among them, one functional category can usually be displayed on each desktop page. In addition, if there is a functional category that contains too many desktop elements that cannot be displayed on one page of desktop, it can be displayed through multiple pages of desktop. Alternatively, if there is a functional category that contains fewer desktop elements and occupies less than half a page of desktop, it can be merged with other functional categories that contain fewer desktop elements and displayed on one page of desktop, as shown in Figure 4 Desktop page 2 shown in b2 simultaneously displays desktop elements included in functional category 2 and desktop elements included in functional category 3.
场景2,图5为本申请实施例提供的一种界面显示方法的另一场景示意图。另一可选的,终端设备还可以在桌面上提供用于触发本申请方法的入口。示例性的,终端设备检测并响应于用户进入桌面编辑入口的用户操作(例如用户在桌面显示界面上的双指捏合操作等),显示如图5中的a示出的“布局”控件501。然后,若终端设备检测到用户对所述“布局”控件501的点击操作,响应于所述点击操作,显示如图5中的b示出的界面。其中,如图5中的b界面中可以包括:“原始布局”控件502、“按功能布局”控件503和“按颜色布局”控件504;可以理解,所述“原始布局”控件502用于保持桌面元素的当前布局、无需进行分类布局。Scenario 2. Figure 5 is a schematic diagram of another scenario of an interface display method provided by an embodiment of the present application. Alternatively, the terminal device can also provide an entrance on the desktop for triggering the method of the present application. For example, the terminal device detects and responds to the user's operation of entering the desktop editing portal (such as the user's two-finger pinch operation on the desktop display interface, etc.), and displays the "layout" control 501 as shown in a in Figure 5 . Then, if the terminal device detects the user's click operation on the "layout" control 501, in response to the click operation, the interface shown in b in Figure 5 is displayed. Among them, interface b in Figure 5 may include: "original layout" control 502, "layout by function" control 503 and "layout by color" control 504; it can be understood that the "original layout" control 502 is used to maintain The current layout of desktop elements, no need to classify layout.
在图5中的b示出的显示界面中,以用户选择“按颜色布局”作为示例,终端设备检测并响应于用 户选择“按颜色布局”控件504的用户操作,将终端设备包含的桌面元素在一页或多页桌面显示界面上按颜色分类布局。例如,将属于颜色分类1的一种或多种桌面元素在如图5中的c1示出的桌面页面1上进行显示;以及,将属于颜色分类2和颜色分类3的一种或多种桌面元素在如图5中的c2示出的桌面页面2上进行显示。In the display interface shown in b in Figure 5, taking the user's selection of "layout by color" as an example, the terminal device detects and responds to the user's When the user selects the "layout by color" control 504, the desktop elements contained in the terminal device are arranged according to color classification on one or more pages of desktop display interface. For example, one or more desktop elements belonging to color category 1 are displayed on the desktop page 1 shown as c1 in Figure 5; and one or more desktop elements belonging to color category 2 and color category 3 are displayed. The element is displayed on desktop page 2 as shown as c2 in Figure 5.
其中,每页桌面上通常可以显示一种颜色分类。除此之外,若存在一种颜色分类包含的桌面元素较多,无法在一页桌面上全部显示,则可以通过多页桌面进行显示。或者,若存在一种颜色分类包含的桌面元素较少,仅占用少于半页的桌面,则可以与其他包含较少桌面元素的颜色分类合并到一页桌面上进行显示,如图5中的c2示出的桌面页面2上同时显示颜色分类2包含的桌面元素和颜色分类3包含的桌面元素。Among them, one color classification can usually be displayed on each page of the desktop. In addition, if there is a color classification that contains many desktop elements and cannot be displayed on one page of desktop, it can be displayed through multiple pages of desktop. Alternatively, if there is a color category that contains fewer desktop elements and occupies less than half a page of desktop, it can be merged with other color categories that contain fewer desktop elements and displayed on one page of desktop, as shown in Figure 5 Desktop page 2 shown in c2 simultaneously displays desktop elements included in color category 2 and desktop elements included in color category 3.
场景3,图6为本申请实施例提供的一种界面显示方法的又一场景示意图。基于如图4或图5示出的分类布局之后的显示界面,终端设备还可以在每页桌面上提供用于变更布局排序方式的“换一换”控件601。示例性的,终端设备检测并响应于用户对“换一换”控件601的点击操作,将显示界面61变更为显示界面62。需要说明的是,布局排序方式的变更可以包括但不限于以下方式中的一种或组合:显示位置(比如上下显示顺序调换,左右显示位置调换等)、显示方式(例如由应用文件夹变更为应用图标)、占用网络数量(例如由占用4*2网格数变更为占用2*2网格数)、显示样式(例如由大文件夹变更为小文件夹、小部件样式变更等)。需要说明的是,终端设备可以提供应用于每页桌面上的布局排序方式,检测并响应于用户对所述“换一换”控件601的点击操作,终端设备可以在多种布局排序方式对应的布局显示结果进行周期变换。Scenario 3. Figure 6 is a schematic diagram of another scenario of an interface display method provided by an embodiment of the present application. Based on the display interface after the classified layout as shown in Figure 4 or Figure 5, the terminal device can also provide a "change" control 601 on each page of the desktop for changing the layout sorting method. For example, the terminal device detects and responds to the user's click operation on the "Change" control 601, and changes the display interface 61 to the display interface 62. It should be noted that changes to the layout sorting method may include but are not limited to one or a combination of the following methods: display position (such as changing the order of up and down display, changing left and right display positions, etc.), display mode (such as changing from application folder to application icon), the number of occupied networks (for example, changing from occupying 4*2 grids to occupying 2*2 grids), display style (for example, changing from large folders to small folders, widget style changes, etc.). It should be noted that the terminal device can provide a layout sorting method applied to each page of the desktop, detect and respond to the user's click operation on the "Change" control 601, and the terminal device can provide a layout sorting method corresponding to multiple layout sorting methods. The layout display results undergo periodic transformation.
场景4,图7为本申请实施例提供的一种界面显示方法的另一场景示意图。若终端设备检测到用户对桌面显示界面71中的导航点区307的用户操作(例如点击操作或长按操作等),响应于所述用户操作,向用户提供如显示界面72中包含的提示弹窗701。其中,所述提示弹窗701中可以包含每页桌面关联的分类。例如,显示界面72中以“按功能布局”为例,提示弹窗701中可以包含如系统工具功能分类、学习办公功能分类、娱乐功能分类、生活功能分类、美食功能分类、出行功能分类、社交资讯功能分类以及其他功能分类。Scenario 4. Figure 7 is a schematic diagram of another scenario of an interface display method provided by an embodiment of the present application. If the terminal device detects a user operation on the navigation point area 307 in the desktop display interface 71 (such as a click operation or a long press operation, etc.), in response to the user operation, the user is provided with a prompt popup such as that contained in the display interface 72. Window 701. The prompt pop-up window 701 may include categories associated with each desktop page. For example, taking "layout by function" in the display interface 72 as an example, the prompt pop-up window 701 may include, for example, system tool function classification, learning and office function classification, entertainment function classification, life function classification, food function classification, travel function classification, social networking function classification, etc. Information function classification and other functional classifications.
然后,终端设备检测并响应于用户对提示弹窗701中的“出行”分类控件的用户操作,显示“出行”功能分类关联的桌面页面(图7中未示出。)这样,通过桌面上包含的导航点区307,可以有助于用户快速切换不同功能分类所关联的桌面页面,从而可以提升用户体验。Then, the terminal device detects and responds to the user's operation of the "Travel" category control in the prompt pop-up window 701, and displays the desktop page associated with the "Travel" function category (not shown in Figure 7.) In this way, through the desktop page containing The navigation point area 307 can help users quickly switch desktop pages associated with different functional categories, thereby improving user experience.
可以理解,若终端设备的桌面是以“按颜色布局”为例,则提示弹窗701中可以包含如黑、灰、红、橙、黄、绿、青、蓝、紫等颜色分类所对应的控件。It can be understood that if the desktop of the terminal device is "layout by color" as an example, the prompt pop-up window 701 may include items corresponding to color categories such as black, gray, red, orange, yellow, green, cyan, blue, purple, etc. controls.
另一示例性的,以“按颜色布局”的场景下,本申请实施时也可以通过导航点显示对应颜色分类的颜色,以便于用于明确各页桌面所关联的颜色分类。例如,如图8中示出的显示界面81,在导航点区307区域包含对应负一屏桌面的导航点、和分别对应两页桌面的导航点801和802,其中各导航点基于对应的桌面页面的关联分类进行显示,如桌面页面1例如可为红色分类对应的桌面,则导航点801可以显示为红色,桌面页面2如可为蓝色分类对应的桌面,则导航点802可以显示为蓝色;需要说明的是,此场景下可以通过标识800来指示当前显示的桌面显示界面。可选的,用户可以通过点击相应导航点以触发切换到相应的桌面页面;或者,由于导航点区307较小,也可以通过向用户提供如图7所示的提示弹窗来协助用户便捷地实现切换桌面页面;又或者,在导航点区307包含的导航点数量少于导航点数量阈值时,用户可以通过直接点击导航点来实现切换桌面页面,而在多于或等于导航点数量阈值时,向用户提供提示弹窗来协助用户实现切换桌面页面。这样,通过桌面上包含的导航点区307可以更加直观地提示用户每页桌面所对应的分类,有助于用户更便捷地找到目标桌面元素。As another example, in the "layout by color" scenario, when the present application is implemented, the colors corresponding to the color categories can also be displayed through navigation points, so as to clarify the color categories associated with each page of the desktop. For example, as shown in the display interface 81 in FIG. 8 , the navigation point area 307 includes a navigation point corresponding to a negative one-screen desktop, and navigation points 801 and 802 corresponding to two pages of desktop respectively, where each navigation point is based on the corresponding desktop. The associated category of the page is displayed. For example, desktop page 1 can be a desktop corresponding to the red category, and the navigation point 801 can be displayed in red. If desktop page 2 can be a desktop corresponding to the blue category, the navigation point 802 can be displayed in blue. color; it should be noted that in this scenario, the currently displayed desktop display interface can be indicated by the mark 800. Optionally, the user can click the corresponding navigation point to trigger switching to the corresponding desktop page; or, since the navigation point area 307 is small, the user can also be provided with a prompt pop-up window as shown in Figure 7 to assist the user conveniently. Switch the desktop page; or, when the number of navigation points contained in the navigation point area 307 is less than the navigation point quantity threshold, the user can switch the desktop page by directly clicking on the navigation point, and when it is more than or equal to the navigation point quantity threshold, , providing users with prompt pop-ups to assist users in switching desktop pages. In this way, the navigation point area 307 included on the desktop can more intuitively prompt the user with the classification corresponding to each page of the desktop, helping the user to find the target desktop element more conveniently.
场景5,基于前述各场景,若终端设备检测到用于指示用户新增桌面元素的新增操作,响应于所述新增操作,终端设备可以确定所述新增桌面元素在桌面应用的分类方式下的所属分类。若终端设备确定桌面存在所述新增桌面元素对应的所属分类,且所述所属分类关联的桌面页面的空闲显示位置可以放置所述新增桌面元素,则将所述新增桌面元素放置到所述所属分类关联的桌面页面上。或者,若终端设备确定桌面不存在所述新增桌面元素对应的所属分类、或者即使存在所述所属分类但关联的桌面页面上的空闲显示位置无法放置所述新增桌面元素,则可以新增一页桌面,并将所述新增桌面元素放置到所述新增桌面页面上;或者,还可以在已有桌面页面中,选择空闲显示位置可以放置所述新增桌面元素的桌面页面,放置所述新增桌面元素,并将所述选择的桌面页面关联的分类更新为原始分类+所述新增桌面元 素的所属分类;其中,更新后的分类例如可以新定义一个混合名字进行表示,或者还可以表示为原始分类(所述新增桌面元素的所属分类)的形式等,本申请对此不进行限定。Scenario 5: Based on the above scenarios, if the terminal device detects a new operation for instructing the user to add a desktop element, in response to the new operation, the terminal device can determine the classification method of the new desktop element in the desktop application category under. If the terminal device determines that the category corresponding to the newly added desktop element exists on the desktop, and the new desktop element can be placed in the free display position of the desktop page associated with the category, then the new desktop element is placed in the new desktop element. on the desktop page associated with the above category. Alternatively, if the terminal device determines that the category corresponding to the newly added desktop element does not exist on the desktop, or even if the category exists, the new desktop element cannot be placed in the free display position on the associated desktop page, then a new desktop element can be added. One page of desktop, and the new desktop element is placed on the new desktop page; or, in the existing desktop page, a free display position can be selected to place the desktop page on which the new desktop element can be placed, and the new desktop element can be placed on the new desktop page. The new desktop element is added, and the category associated with the selected desktop page is updated to the original category + the new desktop element The category to which the element belongs; wherein, the updated category can be represented by a newly defined mixed name, or it can also be expressed in the form of the original category (the category to which the newly added desktop element belongs), etc. This application does not limit this. .
在其他一些可能的场景中,终端设备在实现按分类布局桌面元素时,还可以在不同页桌面上对应显示不同的桌面壁纸;例如,在按功能分类进行布局显示时,娱乐功能分类所对应桌面页面上可以选择桌面壁纸1(例如人物壁纸)、学习工具分类所对应桌面页面上可以选择桌面壁纸2(例如文字类壁纸)。以及,在每页桌面中,终端设备还可以根据该页桌面的类别调整预设桌面元素的显示样式,例如,在按颜色分类进行布局显示时,在红色分类所对应桌面页面上可以同步设置一个或多个服务卡片的背景主色为红色、和/或同步设置一个或多个应用文件夹的背景壁纸为预设桌面壁纸。In some other possible scenarios, when the terminal device implements layout of desktop elements by category, it can also display different desktop wallpapers on different desktop pages; for example, when layout display by functional category, the desktop corresponding to the entertainment function category Desktop wallpaper 1 (such as character wallpaper) can be selected on the page, and desktop wallpaper 2 (such as text wallpaper) can be selected on the desktop page corresponding to the learning tool category. And, in each desktop page, the terminal device can also adjust the display style of the preset desktop elements according to the category of the desktop page. For example, when the layout display is classified by color, a desktop page corresponding to the red category can be set simultaneously. Or the background color of multiple service cards is mainly red, and/or the background wallpaper of one or more application folders is set simultaneously as the default desktop wallpaper.
在其他另一些可能的场景中,基于终端设备将桌面元素按分类显示在一页或多页桌面显示界面上,终端设备还可以基于分类布局结果关联其他显示场景的显示方式。示例性的,终端设备检测到桌面当前显示界面所对应的分类为蓝色分类时,此时若检测到用户在触控面板上用于触发显示通知栏页面的用户操作时,响应于该用户操作,终端设备可以将通知栏显示为以蓝色为主色的显示界面,例如将通知栏中快捷图标选中时的颜色显示为蓝色;可以理解,若检测到当前显示界面所对应的分类为绿色分类时,可以将通知栏中快捷图标选中时的颜色显示为绿色等。另一示例性的,在终端设备检测到设置有熄屏显示功能时,终端设备可以响应于用户灭屏时停留的桌面页面所对应分类,触发所述分类关联的熄屏显示的显示效果(例如动画效果、显示颜色、显示样式等效果中的一种或多种);例如,终端设备检测到用户在绿色分类所对应的桌面页面灭屏,则显示灭屏显示(AOD)时,显示为绿色分类关联的显示效果,比如可以为由绿色渐变为白色的一种动画效果等。In other possible scenarios, desktop elements are displayed on one or more desktop display interfaces according to categories based on the terminal device. The terminal device can also associate the display methods of other display scenes based on the classification layout results. For example, when the terminal device detects that the category corresponding to the current display interface on the desktop is the blue category, and if it detects a user operation on the touch panel to trigger the display of the notification bar page, it responds to the user operation , the terminal device can display the notification bar as a display interface with blue as the main color, for example, the color of the shortcut icon in the notification bar when selected is displayed as blue; it can be understood that if it is detected that the classification corresponding to the current display interface is green When categorizing, you can change the color of the shortcut icon in the notification bar to green when selected. In another example, when the terminal device detects that the screen-off display function is set, the terminal device can respond to the category corresponding to the desktop page where the user stays when the screen is off, and trigger the display effect of the screen-off display associated with the category (for example, One or more of animation effects, display colors, display styles, etc.); for example, if the terminal device detects that the user has turned off the screen on the desktop page corresponding to the green category, then when the off-screen display (AOD) is displayed, it is displayed in green The display effect associated with the classification, for example, can be an animation effect that gradually changes from green to white.
基于前述对采用本申请实施例提供的方法可以达到的界面显示效果进行说明的内容,以下介绍本申请提供的界面显示方法的实现过程,以用来说明如何采用本申请提供的方法达到前述介绍到的图3a至图8所示的界面显示效果,从而可以有助于用户更便捷地整理桌面的分类布局。Based on the foregoing description of the interface display effect that can be achieved by using the method provided by the embodiment of the present application, the implementation process of the interface display method provided by the present application is introduced below to illustrate how to use the method provided by the present application to achieve the aforementioned introduction. The interface display effects shown in Figures 3a to 8 can help users organize the classification layout of the desktop more conveniently.
参阅图9,为本申请一种可能的实施例提供的一种界面显示方法的流程示意图,该方法可以应用于终端设备(例如手机、平板电脑、折叠屏手机等)中,可以包括以下流程:Referring to Figure 9, a schematic flow chart of an interface display method is provided according to a possible embodiment of the present application. This method can be applied to terminal devices (such as mobile phones, tablet computers, folding screen mobile phones, etc.) and can include the following processes:
步骤901、检测用户在第一界面上的第一用户操作,所述第一界面包含一个或多个控件,所述控件用于指示运行不同的桌面分类布局方式,所述第一用户操作用于运行用户选中的目标桌面分类布局方式。Step 901: Detect the first user operation of the user on the first interface. The first interface includes one or more controls. The controls are used to instruct the operation of different desktop classification layout modes. The first user operation is used to Run the target desktop classification layout selected by the user.
示例性的,终端设备可以通过但不限于以下方式显示所述第一界面,包括:Exemplarily, the terminal device may display the first interface in but not limited to the following ways, including:
方式1、基于所述终端设备上包含的主题APP显示所述第一界面。示例性的,在终端设备启用主题APP的应用程序的基础上,终端设备可以接收用户在所述主题APP包含的各种页面上的浏览操作、对一些主题的下载操作和/或应用操作等。可选的,若终端设备检测到用户对满足预设应用条件的第一主题的相关预览操作时,响应于所述相关预览操作,可以为用户显示如图4中的a所示的第一界面。其中,所述第一界面中包含所述满足预设应用条件的第一主题支持的一种或多种桌面分类布局方式所对应的控件,如图4中的a示出的“按功能布局”控件401、“按颜色布局”控件402等。Method 1: Display the first interface based on the theme APP included on the terminal device. For example, based on the terminal device enabling the application program of the theme APP, the terminal device can receive the user's browsing operations on various pages included in the theme APP, download operations and/or application operations of some themes, etc. Optionally, if the terminal device detects the user's related preview operation on the first theme that meets the preset application conditions, in response to the related preview operation, the first interface shown in a in Figure 4 can be displayed for the user. . Wherein, the first interface includes controls corresponding to one or more desktop classification layout modes supported by the first theme that meets the preset application conditions, such as "layout by function" as shown in a in Figure 4 Control 401, "layout by color" control 402, etc.
上述示例中,满足预设应用条件的第一主题用于指示用户可以应用的、且支持通过本申请提供方法实现桌面分类布局的主题。需要说明的是,主题APP中的每个主题一般都具有对应的主题包,所述主题包可包含用以支持主题进行应用时的各种功能所对应的配置文件;基于此,本申请实施时,所述满足预设应用条件的第一主题对应的主题包中可以包含用以支持所述第一主题进行应用时的桌面分类布局功能的布局配置文件;其中,所述布局配置文件可用于指示所述第一主题支持的一种或多种桌面分类布局方式、或者还可用于指示各分类相对应的显示资源(比如壁纸资源、字体资源、熄屏显示动画效果资源等)。可以理解,终端设备可根据所述布局配置文件,向用户提供所述第一界面的显示。In the above example, the first theme that meets the preset application conditions is used to indicate a theme that can be applied by the user and supports the realization of desktop classification layout through the method provided by this application. It should be noted that each theme in the theme APP generally has a corresponding theme package, and the theme package may include configuration files corresponding to various functions used to support the application of the theme; based on this, when implementing this application , the theme package corresponding to the first theme that meets the preset application conditions may include a layout configuration file used to support the desktop classification layout function when the first theme is applied; wherein the layout configuration file may be used to indicate One or more desktop classification layout methods supported by the first theme may also be used to indicate display resources corresponding to each classification (such as wallpaper resources, font resources, screen-off display animation effect resources, etc.). It can be understood that the terminal device can provide the user with display of the first interface according to the layout configuration file.
基于方式1提供的第一界面,终端设备可以检测第一用户操作。可选的,若终端设备检测到用户对用于运行第一桌面分类布局方式(如“按功能布局”)控件的选中操作,则可以确定用户选中“按功能布局”方式作为所述目标桌面分类布局方式,此时可以通知桌面应用进程,以实现用户应用所述第一主题的同时按照所述目标桌面分类布局方式,对现有桌面元素进行分类布局显示。Based on the first interface provided by method 1, the terminal device can detect the first user operation. Optionally, if the terminal device detects the user's selection operation on the control for running the first desktop classification layout mode (such as "layout by function"), it can be determined that the user selected the "layout by function" mode as the target desktop classification. Layout mode, at this time, the desktop application process can be notified, so that when the user applies the first theme, the existing desktop elements are classified and displayed according to the target desktop classification layout mode.
方式2、基于所述终端设备的桌面应用进程显示所述第一界面。示例性的,终端设备还可以检测用于指示用户在桌面显示界面上触发进入桌面编辑入口、并使用桌面分类布局功能的相关触发操作(例如用户在桌面显示界面上的双指捏合操作、并点击“布局”功能控件等),响应于所述相关触发操作,可以为用户显示如图5中的b所示的第一界面。其中,方式2下第一界面中包含当前桌面应用的第二主题 支持的用于运行一种或多种不同桌面分类布局方式的至少一个控件,如图5中的b示出的“按功能布局”控件503、“按颜色布局”控件504、以及“原始布局”控件502等。Method 2: Display the first interface based on the desktop application process of the terminal device. Exemplarily, the terminal device can also detect relevant trigger operations that instruct the user to trigger entry into the desktop editing portal on the desktop display interface and use the desktop classification layout function (for example, the user's two-finger pinch operation on the desktop display interface, and click "Layout" function control, etc.), in response to the related trigger operation, the first interface shown in b in Figure 5 can be displayed for the user. Among them, the first interface under method 2 contains the second theme of the current desktop application. At least one supported control for running one or more different desktop classification layout modes, such as the "layout by function" control 503, the "layout by color" control 504, and the "original layout" shown in b in Figure 5 Control 502 etc.
与方式1类似,在方式2示出的示例中,所述第二主题可以为桌面当前应用的、且支持通过本申请实施例提供的方法实现桌面分类布局的主题。可以理解,若桌面当前应用的主题为不支持实现桌面分类布局的第三主题,则终端设备显示包含桌面编辑入口的显示界面时,可以不显示所述“布局”功能控件。Similar to Method 1, in the example shown in Method 2, the second theme may be a theme that is currently applied on the desktop and supports the implementation of desktop classification layout through the method provided by the embodiments of the present application. It can be understood that if the theme currently applied to the desktop is a third theme that does not support the implementation of desktop classification layout, the "layout" function control may not be displayed when the terminal device displays a display interface including a desktop editing entrance.
基于方式2提供的第一界面,终端设备也可以检测第一用户操作。可选的,终端设备可以通过桌面应用进程检测用户对用于运行第二桌面分类布局方式(如“按颜色布局”)的控件的选中操作,则可以确定用户选中“按颜色布局”方式作为所述目标桌面分类布局方式。基于此,所述桌面应用进程可以对所述第一用户操作进行响应,以实现在应用所述第二主题的基础上,对现有桌面元素按照所述目标桌面分类布局方式调整桌面布局。Based on the first interface provided by method 2, the terminal device can also detect the first user operation. Optionally, the terminal device can detect the user's selection operation on the control used to run the second desktop classification layout mode (such as "layout by color") through the desktop application process, and then it can be determined that the user selects the "layout by color" mode as the selected control. Describe the target desktop classification layout method. Based on this, the desktop application process can respond to the first user operation to adjust the desktop layout of existing desktop elements according to the target desktop classification layout method on the basis of applying the second theme.
需要说明的是,本申请实施时不限定通过上述方式1或方式2来显示所述第一界面,具体实现时还可以在其他页面设置用于触发本申请提供方法的入口等。It should be noted that the implementation of this application is not limited to displaying the first interface through the above-mentioned method 1 or 2. During specific implementation, entrances for triggering the methods provided by this application can also be set on other pages.
步骤902、响应于所述第一用户操作,显示第二界面,所述第二界面为第一分类所对应的桌面页面、且包含属于所述第一分类的至少一个桌面元素;其中,所述第一分类为按照所述目标桌面分类布局方式对桌面元素进行分类布局之后得到的。Step 902: In response to the first user operation, display a second interface, where the second interface is a desktop page corresponding to the first category and includes at least one desktop element belonging to the first category; wherein, The first classification is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
本申请实施例中,所述终端设备还可以检测并响应于用于指示用户切换桌面页面的第二用户操作,切换显示第三界面,所述第三界面可以为第二分类所对应的桌面页面、且包含属于所述第二分类的至少一个桌面元素;或者,所述第三界面还可以为所述第一分类所对应的另一桌面页面、且包含属于所述第一分类的至少一个桌面元素,此场景适用于所述第一分类包含的桌面元素较多,需要通过多页桌面显示的场景。此外,所述第三界面还可以为终端设备包含的可以不进行分类布局的负一屏页面等固定页面。In this embodiment of the present application, the terminal device may also detect and respond to a second user operation for instructing the user to switch desktop pages, and switch to display a third interface. The third interface may be a desktop page corresponding to the second category. , and include at least one desktop element belonging to the second category; or, the third interface may also be another desktop page corresponding to the first category, and include at least one desktop element belonging to the first category. Element, this scenario is suitable for scenarios where the first category contains a lot of desktop elements and needs to be displayed on a multi-page desktop. In addition, the third interface may also be a fixed page such as a negative one-screen page included in the terminal device that may not be classified and laid out.
可以理解,终端设备在第一界面上检测到第一用户操作之后,可实施为响应于所述第一用户操作,通知桌面应用进程按照所述目标桌面分类布局方式对当前桌面包含的可分类桌面元素进行分类布局;然后,桌面应用进程重启并生效新的分类布局结果。It can be understood that after the terminal device detects the first user operation on the first interface, it may be implemented to respond to the first user operation and notify the desktop application process to classify the classifiable desktops included in the current desktop according to the target desktop classification layout. The elements are classified into layouts; then, the desktop application process is restarted and the new classification layout results take effect.
一种可选的实施例中,参阅图10,为本申请实施例提供的一种界面显示方法的流程示意图;若基于方式1显示第一界面,本申请实施例提供的方法主要可以通过终端设备中主题应用进程和桌面应用进程之间的交互来实现,以所述第一用户操作为用户选中“按功能布局”方式所对应的控件并应用于所述第一主题作为示例,可以包括以下流程:In an optional embodiment, refer to Figure 10, which is a schematic flowchart of an interface display method provided by the embodiment of the present application; if the first interface is displayed based on method 1, the method provided by the embodiment of the present application can mainly be performed through the terminal device It is realized through the interaction between the theme application process and the desktop application process. Taking the first user operation as the user to select the control corresponding to the "layout by function" mode and applying it to the first theme as an example, the following process may be included. :
步骤1001、主题应用进程解析第一主题的主题包。Step 1001: The theme application process parses the theme package of the first theme.
步骤1002、所述主题应用进程根据所述第一主题的主题包,识别到所述第一主题支持桌面分类布局功能。Step 1002: The theme application process identifies that the first theme supports the desktop classification layout function according to the theme package of the first theme.
步骤1003、所述主题应用进程在基于方式1显示的第一界面上,响应于所述第一用户操作,确定目标桌面分类布局方式为“按功能布局”方式。Step 1003: On the first interface displayed based on Mode 1, the theme application process determines that the target desktop classification layout mode is the "layout by function" mode in response to the first user operation.
步骤1004、所述主题应用对用于实现“按功能布局”方式的压缩资源进行解压,获取按功能分类标准并通知桌面应用进程。Step 1004: The theme application decompresses the compressed resources used to implement the "layout by function" method, obtains classification standards by function, and notifies the desktop application process.
需要说明的是,实际实现时分类标准可以进行自定义预先配置,或基于用户习惯等进行自适应调整等,本申请对此不进行限定。It should be noted that during actual implementation, the classification standards can be customized and pre-configured, or adaptively adjusted based on user habits, etc. This application does not limit this.
示例性的,功能分类标准可以为预先约定的功能分类。可选的,所述预先约定的功能分类可以通过以下途径获取:所述终端设备上用于下载安装应用的应用市场APP中为各应用程序关联的功能分类、或预先存储各桌面元素的功能分类标准等。For example, the function classification standard may be a pre-agreed function classification. Optionally, the pre-agreed function classification can be obtained through the following channels: the function classification associated with each application in the application market APP used to download and install applications on the terminal device, or the function classification of each desktop element stored in advance Standards etc.
例如,以下表1示出的为一种可能的功能分类标准:For example, Table 1 below shows one possible functional classification criteria:
表1
Table 1
如以上表1示出的功能分类示例,本申请实施时,可以将属于每个大类的桌面元素分类到一起,并显示在一页桌面上,或在属于该大类的桌面元素较多时,显示在多页桌面上;以及,可以将每个大类下面,属于每个小类的应用程序划分到一个应用文件夹内等。需要说明的是,基于如表1所示的功能分类标准,本申请实施时对桌面元素的具体分类方法不进行限定。As shown in the functional classification example in Table 1 above, when this application is implemented, desktop elements belonging to each major category can be classified together and displayed on one page of desktop, or when there are many desktop elements belonging to this major category, Displayed on a multi-page desktop; and applications belonging to each subcategory under each major category can be divided into an application folder, etc. It should be noted that based on the functional classification standards shown in Table 1, the specific classification method of desktop elements is not limited when this application is implemented.
步骤1005、所述桌面应用进程获取所述功能分类标准。Step 1005: The desktop application process obtains the function classification standard.
步骤1006、所述桌面应用进程基于所述功能分类标准,确定各已有桌面元素的所属功能分类,并按照所述各已有桌面元素的所属功能分类确定布局排序。Step 1006: The desktop application process determines the functional classification of each existing desktop element based on the functional classification standard, and determines the layout order according to the functional classification of each existing desktop element.
示例性的,所述终端设备对当前桌面上包含的每个桌面元素的分类进行确定,例如,可以视频APP确定为属于娱乐大类和影音小类。For example, the terminal device determines the classification of each desktop element included on the current desktop. For example, the video APP can be determined to belong to the entertainment category and the audio-visual subcategory.
然后,所述终端设备根据各桌面元素的功能分类结果,确定桌面布局排序。示例性的,桌面布局排序方法可以包括但不限于以下方法中的一种或组合:Then, the terminal device determines the desktop layout sorting based on the functional classification results of each desktop element. By way of example, the desktop layout sorting method may include but is not limited to one or a combination of the following methods:
(1)确定应用文件夹规格。示例性的,所述终端设备可以基于功能分类标准中的小类将应用图标和/或快捷方式划分到应用文件夹中;基于应用文件夹可以显示为不同规格,为了便于用户直观地查看桌面元素,本申请实施例中,可以根据应用文件夹中包含的桌面元素数量确定应用文件夹规格。(1) Determine application folder specifications. For example, the terminal device can divide application icons and/or shortcuts into application folders based on subcategories in the functional classification standard; based on the application folders, they can be displayed in different specifications to facilitate the user to intuitively view desktop elements. , In this embodiment of the present application, the application folder specifications may be determined based on the number of desktop elements contained in the application folder.
可选的,若包含的桌面元素数量小于或等于第一数量阈值(例如2个桌面元素)时,可以显示为占用1个网格的小文件夹。或者,为了避免桌面页面上包含的应用文件夹太多等,还可以将小于或等于第一数量阈值的多个应用文件夹进行合并,例如,假设游戏小类包含2个游戏APP,影音小类包含1个视频APP,则可以将游戏小类和影音小类合并为一个包含3个桌面元素的“游戏影音”文件夹。Optionally, if the number of desktop elements contained is less than or equal to the first quantity threshold (for example, 2 desktop elements), it can be displayed as a small folder occupying 1 grid. Or, in order to avoid having too many application folders on the desktop page, you can also merge multiple application folders that are less than or equal to the first number threshold. For example, assume that the game subcategory contains two game APPs and the audio and video subcategory If it contains 1 video APP, you can merge the game subcategory and the audiovisual subcategory into a "game audiovisual" folder containing 3 desktop elements.
另一可选的,若包含的桌面元素数量大于所述第一数量阈值且小于第二数量阈值(例如5个桌面元素)时,可以显示为占用1×2网格的中文件夹,或显示为占用2×2的中文件夹等,具体可以根据配置进行设定。Alternatively, if the number of desktop elements contained is greater than the first number threshold and less than the second number threshold (for example, 5 desktop elements), it can be displayed as a folder occupying a 1×2 grid, or displayed. In order to occupy a 2×2 medium folder, etc., the specific settings can be set according to the configuration.
又一可选的,若包含的桌面元素数量大于或等于所述第二数量阈值(例如5个桌面元素)时,可以显示为占用2×2的中文件夹、或显示为占用3×3的大文件夹等,具体可以根据配置进行设定。Alternatively, if the number of desktop elements contained is greater than or equal to the second quantity threshold (for example, 5 desktop elements), it can be displayed as occupying 2×2 folders, or as occupying 3×3 folders. Large folders, etc. can be set according to the configuration.
需要说明的是,上述第一数量阈值和第二数量阈值仅是一种示例,具体实现时也可以通过更多或者更少的数量阈值来确定应用文件夹规格;并且,本申请实施时对所述第一数量阈值和所述第二数量阈值的具体设定不作限定。It should be noted that the above-mentioned first quantity threshold and second quantity threshold are only an example. During specific implementation, more or less quantity thresholds can also be used to determine application folder specifications; and, when this application is implemented, all The specific settings of the first quantitative threshold and the second quantitative threshold are not limited.
(2)计算桌面元素权重。示例性的,所述终端设备可以根据桌面元素的使用频次、使用时长、原始布局显示位置、或预设重要程度等因素确定每个桌面元素的权重值、加权求和值等。(2) Calculate the weight of desktop elements. For example, the terminal device may determine the weight value, weighted summation value, etc. of each desktop element based on factors such as the frequency of use of the desktop element, duration of use, original layout display position, or preset importance.
示例性的,以天气APP作为示例,由于所述天气APP的使用必要性,基于所述预设重要程度为所述天气APP分配较大的权重值。这样,若终端设备基于所述权重值或所述加权求和值对桌面元素进行排序时,可以将所述天气APP显示于较明显位置。For example, taking a weather APP as an example, due to the necessity of using the weather APP, a larger weight value is assigned to the weather APP based on the preset importance level. In this way, if the terminal device sorts the desktop elements based on the weight value or the weighted sum value, the weather APP can be displayed in a more prominent position.
另外,终端设备还可周期性地更新所述权重值、和/或所述加权求和值。In addition, the terminal device may also periodically update the weight value and/or the weighted sum value.
(3)确定桌面页面数。示例性的,所述终端设备可以根据所述功能大类确定所述桌面页面数。(3) Determine the number of desktop pages. For example, the terminal device may determine the number of desktop pages according to the functional categories.
可选的,所述终端设备确定桌面涉及的功能大类数量,以及确定每个功能大类需要占用的桌面页面数。示例性的,所述终端设备根据每个功能大类包含的桌面元素、确定所述功能大类需要占据的目标行数,并根据所述目标行数和桌面workspace区301包含的第一行数阈值(用于指示半屏行数)和第二行数阈值(用于指示全屏行数)之间的对比,确定所述功能大类需要的桌面页数,例如可分为以下情况:Optionally, the terminal device determines the number of functional categories involved in the desktop, and determines the number of desktop pages that each functional category needs to occupy. Exemplarily, the terminal device determines the target number of rows that the functional category needs to occupy based on the desktop elements included in each functional category, and determines the target number of rows that the functional category needs to occupy based on the target number of rows and the number of first rows included in the desktop workspace area 301. The comparison between the threshold (used to indicate the number of half-screen rows) and the second row number threshold (used to indicate the number of full-screen rows) determines the number of desktop pages required for the functional category. For example, it can be divided into the following situations:
情况1、若所述目标行数小于或等于所述第一行数阈值,确定所述功能大类占用半页桌面。基于此,终端设备可以对多个占用半页桌面的功能大类进行合并,例如,假设社交资讯大类和其他大类分别占用半页桌面,则可以将所述社交资讯大类和所述其他大类合并到一页桌面上进行显示。Case 1: If the target number of rows is less than or equal to the first row number threshold, it is determined that the functional category occupies half a page of the desktop. Based on this, the terminal device can merge multiple functional categories that occupy half a page of the desktop. For example, assuming that the social information category and other categories respectively occupy half a page of the desktop, the social information category and the other categories can be merged. Major categories are combined into one desktop page for display.
此外,在进行桌面页面合并时,终端设备可以优先对合并之后占用行数较多的两个分类进行合并。例如,假设整屏行数为6行,功能大类1占用2行,功能大类2占用3行,功能大类3占用3行,则终端设备可以基于合并方法进行两两合并计算,确定对所述功能大类2和所述功能大类3合并之后可以占用6行的合并结果可以占用最多行数,且可在一页桌面上实现显示,则终端设备可以优先对功能大类2和功能大类3进行合并。In addition, when merging desktop pages, the terminal device can prioritize the two categories that occupy a larger number of rows after merging. For example, assuming that the number of lines in the entire screen is 6, Function Category 1 occupies 2 lines, Function Category 2 occupies 3 lines, and Function Category 3 occupies 3 lines, the terminal device can perform pairwise merging calculations based on the merging method to determine the right After the combination of the functional category 2 and the functional category 3, the merged result can occupy 6 rows and can occupy the maximum number of rows and can be displayed on one page of desktop. Then the terminal device can give priority to functional category 2 and function Category 3 is merged.
或者,终端设备还可为半页桌面显示页面添加一些服务卡片等,以便于提升桌面页面的美观性。Alternatively, the terminal device can also add some service cards to the half-page desktop display page to improve the aesthetics of the desktop page.
情况2、若所述目标行数大于所述第一行数阈值、且小于或等于第二行数阈值,确定所述功能大类占用整页桌面。 Case 2: If the target number of rows is greater than the first row number threshold and less than or equal to the second row number threshold, it is determined that the functional category occupies the entire page of the desktop.
情况3、若所述目标行数大于所述第二行数阈值,确定所述功能大类占用多页桌面。可以理解,所述终端设备还可以根据所述目标行数确定所述功能大类需要占用的多页桌面的数量,例如可以占用一页半桌面、两页桌面等;其中,若所述功能大类占用所述一页半桌面,则所述半页桌面也可以与其他占用半页桌面的功能大类进行合并。Case 3: If the target number of rows is greater than the second row number threshold, it is determined that the functional category occupies multiple pages of the desktop. It can be understood that the terminal device can also determine the number of multi-page desktops that the functional category needs to occupy based on the target row number, for example, it can occupy one and a half desktop pages, two desktop pages, etc.; wherein, if the functional categories are large If a class occupies half of the desktop page, the half-page desktop can also be merged with other functional categories that occupy half of the desktop page.
(4)确定排列顺序。示例性的,终端设备可以按照桌面元素占用网格数量、权重值、加权求和值等因素中的一种或组合,进行桌面页面、或桌面页面上的桌面元素的顺序排列,例如,可以按照占用网格数量从大到小,权重值从大到小的顺序进行排列等。(4) Determine the order of arrangement. For example, the terminal device can arrange the desktop page or the order of the desktop elements on the desktop page according to one or a combination of the number of grids occupied by the desktop elements, weight value, weighted sum value and other factors. For example, it can be arranged according to The number of occupied grids is arranged from large to small, and the weight values are arranged in order from large to small, etc.
另外,还可能存在未确定功能分类的至少一个桌面元素,此时终端设备可以对所述至少一个桌面元素进行合并,例如将应用图标和/或快捷方式合并到应用文件夹中。而且,所述终端设备还可以将未分确定功能分类的桌面元素、或合并之后的应用文件夹等合并到已有功能分类的桌面页面上,从而可以实现每个桌面页面尽可能地铺满,避免冗余的桌面页面,从而可以提升桌面的美观性等。In addition, there may be at least one desktop element whose functional classification has not been determined. In this case, the terminal device can merge the at least one desktop element, for example, merge application icons and/or shortcuts into application folders. Moreover, the terminal device can also merge desktop elements that are not classified into determined functional categories, or merged application folders, etc., into desktop pages that already have functional categories, so that each desktop page can be filled as much as possible. Avoid redundant desktop pages, thereby improving the aesthetics of the desktop, etc.
又另外,基于用户对终端设备的使用,终端设备可以周期性更新权重值或加权求和值、以及检测到用户对桌面元素的新增、删除或显示方式变更(例如用户手动触发将小文件夹变更为大文件夹、或用户变更服务卡片的显示样式等)等;鉴于此,终端设备可以周期性向用户发送是否更新桌面分类布局的提示信息;以及,若接收到用于指示用户确认更新桌面分类布局时,终端设备更新桌面的分类布局结果。In addition, based on the user's use of the terminal device, the terminal device can periodically update the weight value or the weighted sum value, and detect the user's addition, deletion or display mode change of desktop elements (for example, the user manually triggers the display of a small folder change to a large folder, or the user changes the display style of the service card, etc.); in view of this, the terminal device can periodically send prompt information to the user whether to update the desktop classification layout; and, if it receives a message to instruct the user to confirm updating the desktop classification During layout, the terminal device updates the classification layout results of the desktop.
需要说明的是,本申请实施例中不限定上述介绍的布局排序方法,具体实现时可根据实际场景进行自定义配置、或根据用户使用习惯进行自适应调整等。It should be noted that the embodiments of the present application are not limited to the layout sorting method introduced above. During specific implementation, customized configurations can be made according to actual scenarios, or adaptive adjustments can be made according to user usage habits.
步骤1007、所述主题应用进程接收到所述桌面应用进程的功能分类布局已生效。Step 1007: The theme application process receives that the functional classification layout of the desktop application process has taken effect.
步骤1008、所述主题应用进程指示所述桌面应用进程重启,并在重启后生效所述第一主题的主题包。Step 1008: The theme application process instructs the desktop application process to restart, and the theme package of the first theme takes effect after the restart.
另一种可选的实施例中,参阅图11,为本申请实施例提供的一种界面显示方法的另一流程示意图;若基于方式2显示第一界面,本申请实施例提供的方法主要可以通过终端设备中桌面应用进程和主题应用进程之间的交互来实现,以所述第一用户操作为用户选中“按颜色布局”方式应用于桌面当前使用的第二主题作为示例,可以包括以下流程:In another optional embodiment, refer to Figure 11, which is another schematic flowchart of an interface display method provided by the embodiment of the present application; if the first interface is displayed based on method 2, the method provided by the embodiment of the present application can mainly It is realized through the interaction between the desktop application process and the theme application process in the terminal device. Taking the first user operation as an example for the user to select the "layout by color" mode to apply to the second theme currently used on the desktop, the following process may be included. :
步骤1101、桌面应用程序在基于方式2显示的第一界面上,响应于所述第一用户操作,确定目标桌面分类布局方式为“按颜色布局”方式。Step 1101: On the first interface displayed based on Mode 2, the desktop application determines that the target desktop classification layout mode is the "layout by color" mode in response to the first user operation.
步骤1102、从主题应用程序中用于实现“按颜色布局”方式的压缩资源中,获取按颜色分类标准。可以理解,在基于方式2的触发场景下,基于所述第二主题为桌面当前正在应用的主题,此时所述第一用户操作相当于对基于所述第二主题的应用进行分类布局方式的切换,以切换为“按颜色布局”作为示例,此时可以通过主题应用程序中已经解压的压缩资源中,获取颜色分类标准。Step 1102: Obtain color classification standards from the compressed resources used to implement the "layout by color" method in the theme application. It can be understood that in the triggering scenario based on method 2, the second theme is the theme currently being applied on the desktop. At this time, the first user operation is equivalent to classifying and laying out the applications based on the second theme. Switch, take switching to "layout by color" as an example. At this time, you can obtain the color classification standards from the compressed resources that have been decompressed in the theme application.
需要说明的是,实际实现时分类标准可以进行自定义预先配置,或基于用户习惯等进行自适应调整等,本申请对此不进行限定。It should be noted that during actual implementation, the classification standards can be customized and pre-configured, or adaptively adjusted based on user habits, etc. This application does not limit this.
示例性的,颜色分类标准,可以包括但不限于以下标准中的一种或组合:Examples of color classification standards may include but are not limited to one or a combination of the following standards:
(1)、预先约定的颜色分类。可选的,所述预先约定的颜色分类可以为所述终端设备预先存储的各桌面元素的颜色分类等。示例性的,所述颜色分类可以包括:黑、灰、红、橙、黄、绿、青、蓝、紫、其他。例如,预先预定天气APP为蓝色分类、计算器APP为白色分类等。(1) Pre-agreed color classification. Optionally, the pre-agreed color classification may be the color classification of each desktop element pre-stored by the terminal device, etc. For example, the color classification may include: black, gray, red, orange, yellow, green, cyan, blue, purple, and others. For example, pre-book the weather APP into the blue category, the calculator APP into the white category, etc.
(2)基于图片取色方法计算的桌面元素的主色和颜色计数(count)值。示例性的,终端设备还可根据桌面元素view的桌面显示效果,提取所述桌面元素view的图片位图(bitmap)显示,然后基于图片取色方法计算得到所述桌面元素的主色和颜色count值。(2) The main color and color count (count) value of desktop elements calculated based on the image color picking method. For example, the terminal device can also extract the picture bitmap (bitmap) display of the desktop element view according to the desktop display effect of the desktop element view, and then calculate the main color and color count of the desktop element based on the picture color picking method. value.
需要说明的是,本申请实施时,对桌面元素的颜色分类并不限定于上述介绍的实现标准,具体实现时还可以采用其他实现方式,例如可以采用其他颜色取色方法获取桌面元素的主色等。It should be noted that when this application is implemented, the color classification of desktop elements is not limited to the implementation standards introduced above. Other implementation methods can also be used during specific implementation. For example, other color picking methods can be used to obtain the main colors of desktop elements. wait.
步骤1103、基于所述颜色分类标准,确定各已有桌面元素的所属颜色分类,并按照所述各已有桌面元素的所属颜色分类确定布局排序结果。Step 1103: Determine the color classification of each existing desktop element based on the color classification standard, and determine the layout sorting result according to the color classification of each existing desktop element.
示例性的,参阅前述介绍到的“按功能布局”场景下的布局排序方式,“按颜色布局”场景下也可以基于但不限于以下实现方式:确定文件夹规格、计算桌面元素权重、确定桌面页面数、确定排列顺序,在此不再重复说明。For example, refer to the layout sorting method in the "layout by function" scenario introduced earlier. The "layout by color" scenario can also be based on but not limited to the following implementation methods: determining folder specifications, calculating desktop element weights, determining desktop The number of pages and the order of arrangement will not be repeated here.
步骤1104、所述桌面应用进程应用所述布局排序结果。可以理解,应用所述布局排序结果之后,终端设备的桌面元素在桌面上按颜色分类进行布局显示。 Step 1104: The desktop application process applies the layout sorting result. It can be understood that after applying the layout sorting result, the desktop elements of the terminal device are arranged and displayed according to color classification on the desktop.
又一可选的实施例中,基于方式2显示第一界面的场景下,桌面应用进程也可以无需与主题应用进行交互,响应于用户选中目标桌面分类布局方式的第一用户操作,对已有桌面元素进行分类布局显示。此时,用于实现分类布局显示的布局配置文件例如可以预先存储在桌面应用进程的资源包中,或预先存储在其他预设位置处。In yet another optional embodiment, in the scenario where the first interface is displayed based on method 2, the desktop application process may not need to interact with the theme application. In response to the first user operation of the user selecting the target desktop classification layout mode, the existing desktop application process may be modified. Desktop elements are displayed in a categorized layout. At this time, the layout configuration file used to implement classified layout display may be pre-stored in the resource package of the desktop application process, or in other preset locations, for example.
基于终端设备进行分类布局的场景下,所述终端设备还可以根据所述分类布局原则对用于指示用户调整所述分类布局结果的用户操作进行响应。In a scenario where classification layout is performed based on a terminal device, the terminal device may also respond to a user operation for instructing the user to adjust the classification layout result according to the classification layout principle.
一种可能的实施例中,若终端设备检测到用于指示用户变更所述第二界面的布局排序方式的第三用户操作(例如用户对如图6中桌面显示界面61上包含的“换一换”控件601的点击操作),响应于所述第三用户操作,显示第四界面。其中,所述第四界面与所述第二界面包含的桌面元素相同,不同之处在于布局排序方式不同。示例性的,布局排序方式的变更可以包括但不限于以下方式中的一种或组合:显示位置(比如上下显示顺序调换,左右显示位置调换等)、显示方式(例如由应用文件夹变更为应用图标)、占用网络数量(例如由占用4*2网格数变更为占用2*2网格数)、显示样式(例如由大文件夹变更为小文件夹、小部件样式变更等)。这样,通过在桌面页面上向用户提供实现分类布局的快速切换的功能,可以实现为用户提供多种分类布局排序方式,便于用户选择合适的分类布局排序结果,从而可以有助于用户便捷地整理桌面,提升用户体验。In a possible embodiment, if the terminal device detects a third user operation for instructing the user to change the layout and sorting method of the second interface (for example, the user performs a "change one" operation on the desktop display interface 61 as shown in Figure 6 Click operation of "Change" control 601), in response to the third user operation, a fourth interface is displayed. Wherein, the fourth interface contains the same desktop elements as the second interface, but the difference lies in the layout and sorting method. Exemplarily, changes to the layout sorting method may include but are not limited to one or a combination of the following methods: display position (such as changing the order of up and down display, changing left and right display positions, etc.), display mode (such as changing from application folder to application icon), the number of occupied networks (for example, changing from occupying 4*2 grids to occupying 2*2 grids), display style (for example, changing from large folders to small folders, widget style changes, etc.). In this way, by providing users with the function of quickly switching classification layouts on the desktop page, it is possible to provide users with multiple classification layout sorting methods, making it easier for users to choose appropriate classification layout sorting results, which can help users organize them conveniently. Desktop to improve user experience.
另一种可能的实施例中,若终端设备检测到用于指示用户对导航点区进行触发的第四用户操作(例如用户对如图7中的界面71或如图8中的界面81中的导航点区307的长按操作等),响应于所述第四用户操作,显示第五界面。其中,所述第五界面用于为用户提供各桌面页面关联的分类,例如图7中的界面72中示出的提示弹窗701所示的分类。In another possible embodiment, if the terminal device detects a fourth user operation for instructing the user to trigger the navigation point area (for example, the user operates on the interface 71 as shown in Figure 7 or the interface 81 as shown in Figure 8 Long press operation of navigation point area 307, etc.), in response to the fourth user operation, the fifth interface is displayed. The fifth interface is used to provide the user with categories associated with each desktop page, such as the categories shown in the prompt pop-up window 701 shown in the interface 72 in FIG. 7 .
然后,若终端设备检测到用于对任一分类(假设为第三分类)的选中操作,切换显示所述第三分类对应的桌面页面(假设为第六界面)。这样,终端设备通过为导航点区配置上便于用户快速切换桌面页面的功能,可以有助于用户基于所述导航点区实现便捷地切换桌面页面,以便于在桌面页面的数量较多时,可以快速定位到用户的目标切换页面,从而可以快速定位到用户需要的目标桌面元素,进而可以提升用户体验。Then, if the terminal device detects a selection operation for any category (assumed to be the third category), it switches to display the desktop page corresponding to the third category (assumed to be the sixth interface). In this way, the terminal device configures the navigation point area with a function that facilitates the user to quickly switch desktop pages, which can help the user to conveniently switch desktop pages based on the navigation point area, so that when there are a large number of desktop pages, the terminal device can quickly switch the desktop page. Locate the user's target switching page, so that you can quickly locate the target desktop elements that the user needs, thereby improving the user experience.
此外,还有一种可能的实施例,基于终端设备进行分类布局的场景下,若终端设备检测到用于指示用户新增桌面元素的第五用户操作,根据所述目标桌面分类布局方式将所述新增桌面元素显示在所属分类所对应的桌面页面上。其中,所述新增桌面元素诸如:下载应用程序、添加服务卡片、添加快捷方式等。示例性的,参阅图12,为本申请实施例提供的一种界面显示方法的另一流程示意图,至少可以包括以下流程:In addition, there is another possible embodiment. In the scenario of classification layout based on the terminal device, if the terminal device detects the fifth user operation for instructing the user to add a desktop element, the target desktop classification layout method will be configured according to the target desktop layout method. New desktop elements are displayed on the desktop page corresponding to the category to which they belong. Wherein, the newly added desktop elements include: downloading applications, adding service cards, adding shortcuts, etc. Illustratively, refer to Figure 12, which is another schematic flowchart of an interface display method provided by an embodiment of the present application, which may at least include the following processes:
步骤1201,检测到第五用户操作,所述第五用户操作用于新增第一桌面元素。Step 1201: A fifth user operation is detected, and the fifth user operation is used to add a first desktop element.
步骤1202,响应于所述第五用户操作,确定所述第一桌面元素归属的目标分类。可选的,若无法获取到所述第一桌面元素的目标分类,将目标分类确定为其他类。Step 1202: In response to the fifth user operation, determine the target category to which the first desktop element belongs. Optionally, if the target category of the first desktop element cannot be obtained, the target category is determined to be another category.
步骤1203,基于所述终端设备包含的多页桌面页面,确定是否存在所述目标分类对应的桌面页面。Step 1203: Based on the multiple desktop pages included in the terminal device, determine whether there is a desktop page corresponding to the target category.
步骤1204,若确定存在所述目标分类对应的第一桌面页面,进一步确定所述第一桌面页面是否包含所述第一桌面元素的放置位置。Step 1204: If it is determined that there is a first desktop page corresponding to the target category, further determine whether the first desktop page contains the placement position of the first desktop element.
步骤1205,若确定不存在所述目标分类对应的第一桌面页面、或者若确定存在所述第一桌面页面但所述第一桌面页面不包含所述第一桌面元素的放置位置,则新增第二桌面页面,并为所述第二桌面页面关联所述目标分类。或者,还可以在满足放置条件的第三桌面页面上显示所述新增桌面元素,并将所述第三桌面页面关联的分类更新为包含所述所属分类,所述放置条件为空闲网格数量大于或等于所述新增桌面元素所需网格数量。Step 1205: If it is determined that the first desktop page corresponding to the target category does not exist, or if it is determined that the first desktop page exists but the first desktop page does not contain the placement position of the first desktop element, add a new a second desktop page, and associate the target category with the second desktop page. Alternatively, the newly added desktop element can also be displayed on a third desktop page that meets the placement condition, and the category associated with the third desktop page is updated to include the category to which it belongs, and the placement condition is the number of free grids. Greater than or equal to the number of grids required for the new desktop element.
步骤1206,若确定存在所述第一桌面页面、且所述第一桌面页面包含所述第一桌面元素的放置位置,则将所述第一桌面元素显示在所述第一桌面页面上。Step 1206: If it is determined that the first desktop page exists and the first desktop page contains the placement position of the first desktop element, display the first desktop element on the first desktop page.
通过本申请实施例提供的方法,可以在终端设备上实现几种功能,包括:(1)可以实现终端设备的桌面将已有桌面元素按分类自动在一页或多页桌面页面上进行布局显示;(2)可以实现通过主题APP中的主题包触发对桌面元素进行自动分类布局;(3)新增桌面元素时也可以实现自动归类到所属分类所对应的桌面页面上进行显示。因此,通过该方法,有助于用户便捷地进行桌面布局调整,并且通过终端设备对桌面元素的自动分类布局,可以实现更精确地桌面布局分类,以及,通过终端设备的处理,还可 以为用户提供多种布局排序方式,以便于用户选择合适的布局排序,从而可以提升用户体验。Through the methods provided by the embodiments of the present application, several functions can be implemented on the terminal device, including: (1) The desktop of the terminal device can be implemented to automatically layout and display existing desktop elements according to categories on one or more desktop pages. ; (2) Automatic classification and layout of desktop elements can be triggered by the theme package in the theme APP; (3) When new desktop elements are added, they can also be automatically classified and displayed on the desktop page corresponding to the category to which they belong. Therefore, this method helps the user to adjust the desktop layout conveniently, and through the automatic classification and layout of desktop elements by the terminal device, a more accurate desktop layout classification can be achieved, and through the processing of the terminal device, it can also be Provide users with multiple layout sorting methods so that users can choose appropriate layout sorting, thereby improving user experience.
基于以上实施例,本申请还提供一种终端设备,所述终端设备包括多个功能模块;所述多个功能模块相互作用,实现本申请实施例所描述的各方法中终端设备所执行的功能。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。如执行图9所示实施例中终端设备执行的步骤901至902,或执行图10所示实施例中终端设备执行的步骤1001至1008,或执行图11所示实施例中终端设备执行的步骤1101至1104,或执行图12所示实施例中终端设备执行的步骤1201至1206。Based on the above embodiments, this application also provides a terminal device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the terminal device in the methods described in the embodiments of this application. . The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation. For example, perform steps 901 to 902 performed by the terminal device in the embodiment shown in FIG. 9, or perform steps 1001 to 1008 performed by the terminal device in the embodiment shown in FIG. 10, or perform steps performed by the terminal device in the embodiment shown in FIG. 11. 1101 to 1104, or perform steps 1201 to 1206 performed by the terminal device in the embodiment shown in FIG. 12 .
基于以上实施例,本申请还提供一种终端设备,该终端设备包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述终端设备运行时,所述至少一个处理器执行本申请实施例所描述的各方法中终端设备所执行的功能。如执行图9所示实施例中终端设备执行的步骤901至902,或执行图10所示实施例中终端设备执行的步骤1001至1008,或执行图11所示实施例中终端设备执行的步骤1101至1104,或执行图12所示实施例中终端设备执行的步骤1201至1206。Based on the above embodiments, this application also provides a terminal device. The terminal device includes at least one processor and at least one memory. Computer program instructions are stored in the at least one memory. When the terminal device is running, the at least one processing The server performs the functions performed by the terminal device in each method described in the embodiments of this application. For example, perform steps 901 to 902 performed by the terminal device in the embodiment shown in FIG. 9, or perform steps 1001 to 1008 performed by the terminal device in the embodiment shown in FIG. 10, or perform steps performed by the terminal device in the embodiment shown in FIG. 11. 1101 to 1104, or perform steps 1201 to 1206 performed by the terminal device in the embodiment shown in FIG. 12 .
基于以上实施例,本申请还提供一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行本申请实施例所描述的各方法。Based on the above embodiments, this application also provides a computer program product. The computer program product includes: a computer program (which can also be called a code, or an instruction). When the computer program is run, it causes the computer to execute the steps described in the embodiments of this application. Each method.
基于以上实施例,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行本申请实施例所描述的各方法。Based on the above embodiments, the present application also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, the computer is caused to execute the embodiments of the present application. Each method is described.
基于以上实施例,本申请还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现本申请实施例所描述的各方法。Based on the above embodiments, this application also provides a chip, which is used to read the computer program stored in the memory and implement the methods described in the embodiments of this application.
基于以上实施例,本申请提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现本申请实施例所描述的各方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Based on the above embodiments, this application provides a chip system. The chip system includes a processor and is used to support a computer device to implement the methods described in the embodiments of this application. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The chip system may be composed of chips, or may include chips and other discrete devices. Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the protection scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (15)

  1. 一种界面显示方法,其特征在于,应用于终端设备中,包括:An interface display method, characterized in that it is applied to a terminal device and includes:
    检测用户在第一界面上的第一用户操作,所述第一界面包含一个或多个控件,所述控件用于指示运行不同的桌面分类布局方式,所述第一用户操作用于运行用户选中的目标桌面分类布局方式;Detect the user's first user operation on the first interface. The first interface includes one or more controls. The controls are used to instruct the execution of different desktop classification layout modes. The first user operation is used to execute the selection selected by the user. The target desktop classification layout method;
    响应于所述第一用户操作,显示第二界面,所述第二界面为第一分类所对应的桌面页面、且包含属于所述第一分类的至少一个桌面元素;其中,所述第一分类为按照所述目标桌面分类布局方式对桌面元素进行分类布局之后得到的。In response to the first user operation, a second interface is displayed, the second interface is a desktop page corresponding to the first category and includes at least one desktop element belonging to the first category; wherein the first category It is obtained after classifying and laying out desktop elements according to the target desktop classification layout method.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    检测用户在所述第二界面上的第二用户操作,所述第二用户操作用于指示用户切换桌面上显示的桌面页面;Detecting a second user operation performed by the user on the second interface, the second user operation being used to instruct the user to switch the desktop page displayed on the desktop;
    响应于所述第二用户操作,显示第三界面;In response to the second user operation, display a third interface;
    其中,所述第三界面为第二分类所对应的桌面页面、且包含属于所述第二分类的至少一个桌面元素;或者,所述第三界面为所述第一分类所对应的另一桌面页面、且包含属于所述第一分类的且与所述第二界面不同的至少一个桌面元素;或者,所述第三界面为所述终端设备包含的固定页面,所述固定页面不进行分类布局。Wherein, the third interface is a desktop page corresponding to the second category and includes at least one desktop element belonging to the second category; or, the third interface is another desktop page corresponding to the first category. page, and includes at least one desktop element that belongs to the first category and is different from the second interface; or, the third interface is a fixed page included in the terminal device, and the fixed page does not perform classification layout .
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that, the method further includes:
    检测用户在所述第二界面上的第三用户操作,所述第三用户操作用于指示用户变更所述第二界面的布局排序方式;Detecting a third user operation performed by the user on the second interface, where the third user operation is used to instruct the user to change the layout and sorting method of the second interface;
    响应于所述第三用户操作,显示第四界面,所述第四界面为对所述第二界面包含的桌面元素进行重新布局排序之后得到的。In response to the third user operation, a fourth interface is displayed, and the fourth interface is obtained after re-layout and sorting of desktop elements included in the second interface.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, characterized in that the method further includes:
    检测用户在所述第二界面上的第四用户操作,所述第四用户操作用于指示用户对导航点区的触发操作;Detecting a fourth user operation performed by the user on the second interface, the fourth user operation being used to instruct the user to trigger an operation on the navigation point area;
    响应于所述第四用户操作,显示第五界面,所述第五界面用于为用户提供各桌面页面关联的分类列表;In response to the fourth user operation, a fifth interface is displayed, and the fifth interface is used to provide the user with a classification list associated with each desktop page;
    检测并响应于用户对所述分类列表中包含的第三分类的选中操作,显示第六界面;所述第六界面为所述第三分类所对应的桌面页面、且包含属于所述第三分类的至少一个桌面元素。Detecting and responding to the user's selection operation on the third category included in the category list, displaying a sixth interface; the sixth interface is a desktop page corresponding to the third category and contains information belonging to the third category. at least one desktop element.
  5. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, characterized in that the method further includes:
    检测用户在所述第二界面上的第四用户操作,所述第四用户操作用于指示用户对导航点区中的第一导航点的触发操作;Detecting a fourth user operation performed by the user on the second interface, the fourth user operation being used to instruct the user to trigger an operation on the first navigation point in the navigation point area;
    响应于所述第四用户操作,显示第五界面,所述第五界面用于为用户提供所述第一导航点关联的桌面页面;其中,所述第一导航点基于所述第五界面关联分类进行显示。In response to the fourth user operation, a fifth interface is displayed, and the fifth interface is used to provide the user with a desktop page associated with the first navigation point; wherein the first navigation point is associated with the first navigation point based on the fifth interface Display by category.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, characterized in that the method further includes:
    检测用于指示用户新增桌面元素的第五用户操作;detecting a fifth user operation for instructing the user to add a desktop element;
    响应于所述第五用户操作,确定所述新增桌面元素的所属分类;并且,根据所述目标桌面分类布局方式,将所述新增桌面元素显示在所属分类所对应的桌面页面上。In response to the fifth user operation, the category to which the newly added desktop element belongs is determined; and, according to the target desktop category layout, the newly added desktop element is displayed on the desktop page corresponding to the category to which it belongs.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述目标桌面分类布局方式,将所述新增桌面元素显示在所属分类所对应的桌面页面上,包括:The method according to claim 6, characterized in that displaying the newly added desktop element on the desktop page corresponding to the category according to the target desktop classification layout method includes:
    若已有桌面页面包含所述所属分类关联的第一桌面页面、且所述第一桌面页面满足所述放置条件,则将所述新增桌面元素显示在所述第一桌面页面上;所述放置条件为空闲网格数量大于或等于所述新增桌面元素所需网格数量; If the existing desktop page includes the first desktop page associated with the category and the first desktop page satisfies the placement condition, then display the newly added desktop element on the first desktop page; The placement condition is that the number of free grids is greater than or equal to the number of grids required for the new desktop element;
    若已有桌面页面中不包含所述第一桌面页面,或者若已有桌面页面包含所述第一桌面页面、且所述第一桌面页面不满足所述放置条件,则新增第二桌面页面,并将所述所属分类与所述第二桌面页面进行关联;或者,在满足放置条件的第三桌面页面上显示所述新增桌面元素,并将所述第三桌面页面关联的分类更新为包含所述所属分类。If the existing desktop page does not contain the first desktop page, or if the existing desktop page contains the first desktop page and the first desktop page does not meet the placement condition, then add a second desktop page. , and associate the category to the second desktop page; or, display the newly added desktop element on the third desktop page that meets the placement conditions, and update the category associated with the third desktop page to Contains the category to which it belongs.
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述显示第二界面,包括:The method according to any one of claims 1-7, characterized in that displaying the second interface includes:
    根据所述第一分类关联的第一显示效果,显示所述第二界面;其中,所述第一显示效果包括以下效果中的至少一种:预设壁纸、预设字体、预设字体颜色。The second interface is displayed according to the first display effect associated with the first classification; wherein the first display effect includes at least one of the following effects: preset wallpaper, preset font, and preset font color.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-8, characterized in that the method further includes:
    根据所述第一分类关联的第二显示效果,显示所述第二界面关联的相关页面;其中,所述第二界面关联的相关页面包括:在所述第二界面上触发熄屏时的熄屏显示页面、在所述第二页面上触发显示通知栏页面。Display related pages associated with the second interface according to the second display effect associated with the first category; wherein the related pages associated with the second interface include: triggering screen off on the second interface. display the page on the screen, and trigger the display of the notification bar page on the second page.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述终端设备显示第一界面,包括:The method according to any one of claims 1-9, characterized in that the terminal device displays a first interface, including:
    检测到用户在主题应用上对预设主题的相关预览操作,所述相关预览操作用于指示用户在桌面上应用所述预设主题之后的显示效果;响应于所述相关预览操作,触发显示所述第一界面;或者,Detecting the user's related preview operation on the preset theme on the theme application, the related preview operation is used to indicate the display effect after the user applies the preset theme on the desktop; in response to the related preview operation, triggering the display of the preset theme the first interface; or,
    检测到用户在桌面显示界面上的相关触发操作,所述相关触发操作用于指示用户进入桌面编辑入口;响应于所述相关触发操作,触发显示所述第一界面。A related triggering operation of the user on the desktop display interface is detected, and the related triggering operation is used to instruct the user to enter the desktop editing portal; in response to the related triggering operation, the first interface is triggered to be displayed.
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,所述第一分类为按照所述目标桌面分类布局方式得到的分类中的任一桌面分类、或者为至少两个桌面分类的混合分类。The method according to any one of claims 1 to 10, characterized in that the first classification is any desktop classification among the classifications obtained according to the target desktop classification layout, or is at least two desktop classifications. mixed classification.
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述可选择的桌面分类布局方式包括以下方式中的至少一种:按功能布局、按颜色布局。The method according to any one of claims 1 to 11, characterized in that the selectable desktop classification layout method includes at least one of the following methods: layout by function and layout by color.
  13. 一种终端设备,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于读取所述至少一个存储器所存储的计算机程序,以执行如权利要求1至12中任一项所述的方法。A terminal device, characterized in that it includes at least one processor, the at least one processor is coupled to at least one memory, and the at least one processor is used to read a computer program stored in the at least one memory to execute as follows: The method of any one of claims 1 to 12.
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至12中任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when run on a computer, the computer is caused to execute the method according to any one of claims 1 to 12.
  15. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至12中任一项所述的方法。 A computer program product containing instructions, characterized in that, when the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 12.
PCT/CN2023/106839 2022-07-20 2023-07-11 Interface display method and terminal device WO2024017097A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210858781.2 2022-07-20
CN202210858781 2022-07-20
CN202210887840.9 2022-07-26
CN202210887840.9A CN117472486A (en) 2022-07-20 2022-07-26 Interface display method and terminal equipment

Publications (1)

Publication Number Publication Date
WO2024017097A1 true WO2024017097A1 (en) 2024-01-25

Family

ID=89617057

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/106839 WO2024017097A1 (en) 2022-07-20 2023-07-11 Interface display method and terminal device

Country Status (1)

Country Link
WO (1) WO2024017097A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955563A (en) * 2016-04-15 2016-09-21 奇酷软件(深圳)有限公司 Icon management method, icon management system and terminal
CN106095250A (en) * 2016-07-29 2016-11-09 维沃移动通信有限公司 The method of application icon layout and mobile terminal
CN108647079A (en) * 2018-05-16 2018-10-12 珠海格力电器股份有限公司 A kind of icon of application program methods of exhibiting in a device and equipment
CN109491566A (en) * 2018-11-05 2019-03-19 长沙拓扑陆川新材料科技有限公司 The method that the application of a kind of pair of intelligent mobile terminal carries out Pagination Display
CN111026481A (en) * 2019-11-28 2020-04-17 深圳传音控股股份有限公司 Desktop layout method, terminal and computer storage medium
CN111596817A (en) * 2020-04-24 2020-08-28 维沃移动通信有限公司 Icon moving method and electronic equipment
CN111796731A (en) * 2020-06-24 2020-10-20 上海掌门科技有限公司 Method and equipment for automatically arranging icons
CN112148170A (en) * 2020-09-29 2020-12-29 维沃移动通信有限公司 Desktop element adjusting method and device and electronic equipment
CN112181225A (en) * 2020-09-29 2021-01-05 维沃移动通信有限公司 Desktop element adjusting method and device and electronic equipment
CN113778275A (en) * 2021-08-23 2021-12-10 维沃移动通信有限公司 Application icon management method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955563A (en) * 2016-04-15 2016-09-21 奇酷软件(深圳)有限公司 Icon management method, icon management system and terminal
CN106095250A (en) * 2016-07-29 2016-11-09 维沃移动通信有限公司 The method of application icon layout and mobile terminal
CN108647079A (en) * 2018-05-16 2018-10-12 珠海格力电器股份有限公司 A kind of icon of application program methods of exhibiting in a device and equipment
CN109491566A (en) * 2018-11-05 2019-03-19 长沙拓扑陆川新材料科技有限公司 The method that the application of a kind of pair of intelligent mobile terminal carries out Pagination Display
CN111026481A (en) * 2019-11-28 2020-04-17 深圳传音控股股份有限公司 Desktop layout method, terminal and computer storage medium
CN111596817A (en) * 2020-04-24 2020-08-28 维沃移动通信有限公司 Icon moving method and electronic equipment
CN111796731A (en) * 2020-06-24 2020-10-20 上海掌门科技有限公司 Method and equipment for automatically arranging icons
CN112148170A (en) * 2020-09-29 2020-12-29 维沃移动通信有限公司 Desktop element adjusting method and device and electronic equipment
CN112181225A (en) * 2020-09-29 2021-01-05 维沃移动通信有限公司 Desktop element adjusting method and device and electronic equipment
CN113778275A (en) * 2021-08-23 2021-12-10 维沃移动通信有限公司 Application icon management method and device

Similar Documents

Publication Publication Date Title
JP7197543B2 (en) Devices, methods, and graphical user interfaces for interacting with user interface objects corresponding to applications
US11809693B2 (en) Operating method for multiple windows and electronic device supporting the same
US20220137758A1 (en) Updating display of workspaces in a user interface for managing workspaces in response to user input
US10740117B2 (en) Grouping windows into clusters in one or more workspaces in a user interface
US9658732B2 (en) Changing a virtual workspace based on user interaction with an application window in a user interface
CN107426403B (en) Mobile terminal
US9292196B2 (en) Modifying the presentation of clustered application windows in a user interface
KR20160006256A (en) Systems and methods for displaying notifications received from multiple applications
CN103853424A (en) Display device and method of controlling the same
CN110168487A (en) A kind of method of toch control and device
CN111225108A (en) Communication terminal and card display method of negative screen interface
CN115268730A (en) Device, method and graphical user interface for interacting with user interface objects corresponding to an application
US20190369827A1 (en) Remote data input framework
WO2024017097A1 (en) Interface display method and terminal device
CN115470757A (en) Content ordering method and terminal equipment
CN117472486A (en) Interface display method and terminal equipment
AU2019202690B2 (en) Managing workspaces in a user interface
AU2013216607B2 (en) Managing workspaces in a user interface

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

Country of ref document: EP

Kind code of ref document: A1