CN118226997A - Desktop sorting method and terminal equipment - Google Patents

Desktop sorting method and terminal equipment Download PDF

Info

Publication number
CN118226997A
CN118226997A CN202211651890.3A CN202211651890A CN118226997A CN 118226997 A CN118226997 A CN 118226997A CN 202211651890 A CN202211651890 A CN 202211651890A CN 118226997 A CN118226997 A CN 118226997A
Authority
CN
China
Prior art keywords
area
information
desktop
template
elements
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211651890.3A
Other languages
Chinese (zh)
Inventor
左兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211651890.3A priority Critical patent/CN118226997A/en
Publication of CN118226997A publication Critical patent/CN118226997A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones

Landscapes

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

Abstract

A desktop arrangement method and terminal equipment, the method includes: obtaining and displaying a new layout of the desktop based on information of basic elements in the desktop and information of a first template, wherein the first template is used for arranging the layout of the desktop; the first template comprises at least one first area, each first area comprises at least one second area, and the second areas are used for displaying basic elements; the information of the first template comprises the information of the at least one first area and the information of the at least one second area in each first area. By the method, the arrangement efficiency of the desktop can be effectively improved, and therefore the experience of a user using the desktop can be improved.

Description

Desktop sorting method and terminal equipment
Technical Field
The application relates to the field of intelligent terminals, in particular to a desktop arranging method and terminal equipment.
Background
With the wide application of mobile phones, the desktop of the mobile phone evolves a plurality of rich desktop elements from a traditional single application icon, and the mobile phone has other elements such as service cards, small devices (widgets), shortcuts, folders, large folders and the like, and gradually trends to intelligent layout. The diversified desktop elements make the desktop arrangement of the mobile phone more important. Functionally, the service card, widget and shortcut have the function of directly serving, so that the user can use the function operation level, and the file holder has the function of storing the application icons. In appearance, the imaged service cards and widgets have different sizes, so that the desktop is more attractive. However, the increase in desktop elements makes it more cumbersome for users to manually organize desktops. The desktop is more complex due to the fact that the plurality of service cards, widgets and shortcuts are arranged in a scattered manner on each page of the desktop, and the purpose of service direct cannot be achieved effectively. In order to enhance the experience of using the desktop by the user, the arrangement of the desktop is particularly important.
In some desktop arrangement schemes at present, a terminal device may first receive an icon gap dividing operation of a user in a desktop layout, and divide a desktop into regions according to the dividing operation. After the area is divided, the user selects to add interface elements according to the own requirements, and the interface elements are displayed in the divided area in a preset mode. However, the desktop arrangement scheme of the current terminal equipment is complex in operation, low in desktop arrangement efficiency and poor in user experience. Therefore, how to improve the desktop arrangement efficiency and the experience of the user of the terminal device is a problem to be solved in the desktop arrangement process of the terminal device.
Disclosure of Invention
The embodiment of the application provides a desktop arranging method and terminal equipment, which can improve the desktop arranging efficiency so as to improve the experience of a user using a desktop.
In a first aspect, embodiments of the present application provide a desktop organizer method that is applicable to terminal devices, which may include, but are not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (e.g., cell phones, tablet computers, etc.), on-board computers, smart watches, televisions, and other terminal devices having a display screen, etc., the method including: obtaining and displaying a new layout of the desktop based on information of basic elements in the desktop and information of a first template, wherein the first template is used for arranging the layout of the desktop; the first template comprises at least one first area, each first area comprises at least one second area, and the second areas are used for displaying the basic element; the information of the first template comprises the information of the at least one first area and the information of the at least one second area in each first area.
In an embodiment of the present application, the basic elements (which may also be referred to as elements) in the desktop may include, but are not limited to: application icons, service cards, folders, shortcuts, and gadgets (widgets).
For example, the new layout of the desktop may be obtained by the processor of the terminal device based on the information of all the basic elements in the desktop of the terminal device and the information of the first template of the desktop, and displayed through the display screen of the terminal device.
In the scheme of the application, the information of all the basic elements in the desktop and the information of the first template of the desktop are acquired first, and then the new layout of the desktop can be quickly obtained and displayed based on the information of all the basic elements and the information of the first template, so that the arrangement efficiency of the desktop can be effectively improved through the scheme.
In one possible implementation, obtaining a new layout of the desktop based on information of the base element in the desktop and information of the first template includes: firstly, according to the information of all the basic elements and the information of the first template, matching all the basic elements into the at least one first area; and then carrying out layout arrangement on the basic elements in the at least one first area and the second area to obtain a new layout of the desktop.
By means of the implementation mode, all basic elements in the desktop are accurately and effectively matched into the at least one first area, and then layout adjustment is conducted on the basic elements and the second area in the at least one first area, so that new layout of the desktop can be effectively obtained.
In one possible implementation, matching all the base elements into the at least one first region according to the information of all the base elements and the information of the first template includes: matching all of the base elements into the at least one first region based on the information of the base elements and the information of the at least one first region, wherein the information of the base elements includes, but is not limited to, any one or more of the following: size information, type information, frequency of use information, frequency of download information, source information.
According to the embodiment, based on the information (such as one or more of size information, type information, frequency information used, downloaded frequency information and source information) of all the basic elements in the desktop and the information of the at least one first area in the first template, all the basic elements of the desktop can be effectively and accurately matched with the corresponding first areas in the first template.
In one possible implementation, when the information of the first area includes the hotspot level of the first area; matching the all base elements into the at least one first region based on the information of the all base elements and the information of the at least one first region may include: firstly, determining the hot spot grade of all basic elements; and matching the hot spot levels of all the basic elements with the hot spot level of the at least one first area, and matching all the basic elements into the first area with the same hot spot level.
By the embodiment, all elements in the desktop can be effectively matched into the first area with the same hot spot level according to the hot spot level of all basic elements in the desktop and the hot spot level of the at least one first area.
In an embodiment of the present application, determining the hotspot level of all base elements in the desktop may include, but is not limited to, the following:
mode 1: the information of the basic element also comprises the hot spot level of the basic element.
For example, the processor of the terminal device may obtain, from the data layer of the terminal device, information of all base elements in the desktop, where each base element information includes a hotspot level of the base element.
In this manner 1, the hotspot level of each base element in the desktop can be directly known from the information of the base element.
Mode 2: firstly, according to one or more of size information, type information, frequency information used, downloaded frequency information and source information in the information of each basic element, a preset algorithm is adopted to calculate and obtain a hot spot coefficient of each basic element; and determining the hot spot grade of all the basic elements according to the hot spot coefficients of all the basic elements.
When the information of the first template further includes an area ratio of each first area, determining the hotspot level of all the basic elements according to the hotspot coefficients of all the basic elements, which may specifically include the following steps:
Firstly, ordering according to the hot spot coefficients of all basic elements in order from big to small; dividing all the ordered basic elements into at least one element set according to the area occupation ratio of the at least one first area of different hot spot grades, wherein each element set comprises at least one basic element, the at least one element set corresponds to the at least one first area one by one, the occupation ratio of each element set is the same as the area occupation ratio of the corresponding first area, and the element set with the larger comprehensive hot spot coefficient corresponds to the first area with the higher hot spot grade; and finally, setting the basic elements in each element set as the corresponding hot spot grade of the first area.
Through the mode 2, the hot spot coefficient of each basic element can be effectively calculated according to the information of each basic element in the desktop, and further the hot spot grade of each basic element can be accurately and effectively determined based on the hot spot coefficients of all the basic elements.
In one possible implementation, the higher the hotspot level, the higher the importance to the user of the underlying element presented by the first region. By the method, the importance of the basic elements to the user can be displayed in the first area corresponding to the hot spot level, so that the user can conveniently view and use the hot spot level.
In a possible implementation manner, when the information of the second area further includes the size information of the second area; performing layout arrangement on the basic element and the second area in the at least one first area, including:
layout arrangement is performed for the basic elements and the second areas in each first area, and specifically the layout arrangement may include the following steps:
matching the size of at least one basic element in a first area with the size of at least one second area in the first area, and matching the at least one basic element into the second area with the same size; each second region is used for displaying a basic element; when a second area which is not matched with the basic element exists, generating a new basic element for the second area which is not matched with the basic element; when the basic elements which are not matched with the second area exist, splicing the basic elements which are not matched with the second area, and matching the spliced basic elements into the second area with the same size; or the base elements which are not matched to the second area and the base elements which are matched to the second area and have the same size are displayed in a stacked mode.
By this embodiment, the base elements in each first region can be matched as efficiently as possible to the second regions of the same size, while also fully utilizing all the second regions in each first region for presentation of the base elements.
In one possible embodiment, the method further comprises: when there is a first base element that does not match the second region in the first region of the same hotspot level, matching the first base element that does not match to a second region in the first region of other hotspot levels; or merging the first region with the same hot spot level as the unmatched first base element with the adjacent first region.
With this embodiment, it is ensured that all base elements in the desktop can be matched to the same size second region for presentation as much as possible.
In one possible embodiment, the dimensions of at least one of the second region or the base element include, but are not limited to, any one or more of the following: 1mm, 1mm 2mm, 2mm 4mm.
By means of the embodiment, the second area and the base element can be set to be of suitable sizes, and therefore matching of the base element and the second area can be achieved effectively.
In one possible implementation, the first template is a built-in template or a template customized for a user.
By the embodiment, not only the desktop arrangement efficiency can be improved, but also the personalized desktop arrangement function can be provided.
In a second aspect, a terminal device is provided, including a memory, a processor, and a display screen, where the memory is operable to store computer executable program code, and the processor is operable to invoke the computer executable program code to perform: the memory is used for storing computer executable program codes;
The processor is configured to call the computer-executable program code to perform: based on information of basic elements in a desktop and information of a first template, obtaining a new layout of the desktop and displaying the new layout, wherein the first template is used for arranging the layout of the desktop; the first template comprises at least one first area, and each first area comprises at least one second area which is used for displaying the basic element; the information of the first template comprises the information of the at least one first area and the information of the at least one second area in each first area.
In one possible implementation, the processor, when obtaining a new layout of the desktop based on information of the base element in the desktop and information of the first template, specifically performs: matching all the basic elements into the at least one first area according to the information of all the basic elements and the information of the first template; and carrying out layout arrangement on the basic elements in the at least one first area and the second area to obtain a new layout of the desktop.
In one possible implementation, the processor, when executing matching the all base elements into the at least one first area according to the information of the all base elements and the information of the first template, specifically executes: matching the all base elements into the at least one first region according to the information of the all base elements and the information of the at least one first region, wherein the information of the base elements comprises any one or more of the following:
Size information, type information, frequency of use information, frequency of download information, source information.
In one possible implementation, the information of the first area includes a hotspot level of the first area; the processor, when executing matching the all basic elements into the at least one first area according to the information of the all basic elements and the information of the at least one first area, specifically executes: determining the hot spot levels of all the basic elements; and matching the hot spot grades of all the basic elements with the hot spot grade of the at least one first area, and matching the basic elements into the first area with the same hot spot grade.
In one possible implementation, the information of the base element further includes a hotspot level of the base element.
In one possible implementation, the processor, when executing the determining the hotspot levels of all the base elements, specifically performs: according to one or more of size information, type information, frequency information used, downloaded frequency information and source information in the information of each basic element, a preset algorithm is adopted to calculate and obtain a hot spot coefficient of each basic element; and determining the hot spot grades of all the basic elements according to the hot spot coefficients of all the basic elements.
In a possible implementation, the information of the first template further includes an area ratio of each first area; the processor specifically performs when determining the hotspot levels of all the base elements according to the hotspot coefficients of all the base elements: ordering according to the hot spot coefficients of all basic elements in order from big to small; dividing all the ordered basic elements into at least one element set according to the area occupation ratio of the at least one first area of different hot spot grades, wherein each element set comprises at least one basic element, the at least one element set corresponds to the at least one first area one by one, the occupation ratio of each element set is the same as the area occupation ratio of the corresponding first area, and the element set with the larger comprehensive hot spot coefficient corresponds to the first area with the higher hot spot grade; and finally, setting the basic elements in each element set as the corresponding hotspot grade of the first area.
In one possible implementation, the higher the hotspot level, the higher the importance of the underlying element presented to the user by the first region.
In a possible implementation, the information of the second area further includes size information of the second area; the processor, when executing layout arrangement of the base element and the second region in the at least one first region, specifically executes the following:
And performing layout arrangement on the basic elements in each first area and the second area, wherein the processor specifically executes: matching the size of at least one base element in the first region with the size of the at least one second region in the first region, and matching the at least one base element into one second region of the same size; each second region is used for displaying a basic element; generating a new base element for a second region which is not matched with the base element when the second region which is not matched with the base element exists; when the basic elements which are not matched with the second area exist, splicing the basic elements which are not matched with the second area, and matching the spliced basic elements into the second area with the same size; or the base elements which are not matched to the second area and the base elements which are matched to the second area and have the same size are displayed in a stacked mode.
In one possible implementation, the processor further performs: when there is a first base element that does not match the second region in the first region of the same hotspot level, matching the first base element that does not match to a second region in the first region of other hotspot levels; or merging the first area with the same hot spot level as the unmatched first base element with the adjacent first area.
In one possible implementation, the dimensions of at least one of the second region or the base element include any one or more of:
1mm*1mm、1mm*2mm、2mm*2mm、2mmm*4mm。
In one possible implementation, the base element includes any one or more of the following:
Service cards, icons, folders, shortcuts, and gadgets (widgets).
In one possible implementation, the first template is a built-in template or a template customized for a user.
In a third aspect, an embodiment of the present application provides a terminal device, configured to implement any one of the foregoing first aspect or any implementation manner of the first aspect, including a corresponding function template, and each is configured to implement a step in the foregoing implementation manner. The functions may be realized by hardware, or may be realized by hardware executing corresponding software. The hardware or software includes one or more templates corresponding to the functions described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium comprising computer executable program code which, when used on a computer, causes the computer to perform the method of the first aspect or any of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the application provide a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect or any of the possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide a chip, which may be coupled to a storage, and may be used to execute computer executable program code in the storage, to perform the method of the first aspect of embodiments of the present application and any possible implementation thereof. "coupled" means that two elements are directly or indirectly joined to each other, e.g., coupled may mean that the two elements are electrically connected.
The technical effects of the second and third aspects may be referred to the description of the first aspect, and are not repeated here.
Drawings
FIG. 1A illustrates an example diagram of a desktop display of a terminal device;
FIG. 1B illustrates an example diagram of a desktop layout;
FIG. 2 is a schematic diagram of one possible electronic device to which embodiments of the present application are applicable;
FIG. 3A is a schematic diagram of a user's desktop arrangement according to an embodiment of the present application;
Fig. 3B is a schematic diagram of an application scenario to which the desktop arranging method according to the embodiment of the present application may be adapted;
Fig. 4 is a schematic diagram of an overall architecture of a terminal device according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for desktop collation provided in an embodiment of the application;
FIG. 6 is a schematic diagram of the effect of a desktop organizer based on templates according to an embodiment of the present application;
FIG. 7A is a schematic diagram of a method according to an embodiment of the present application;
FIG. 7B is a schematic diagram showing the effect of an embodiment of the present application;
FIG. 8A is a schematic diagram of several layout template examples provided in embodiments of the present application;
FIG. 8B is a schematic diagram of several basic templates and basic element size matches provided in an embodiment of the present application;
FIG. 9A is a schematic diagram of a strategy for matching base elements with layout templates in an embodiment of the present application;
FIG. 9B is a diagram illustrating layout adjustment based on a desktop template according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
First, some terms in the present application are explained for understanding by those skilled in the art.
1) Terminal equipment: may include cell phones, tablet computers, notebook computers, personal Digital Assistants (PDAs), point of sale (POS), car computers, smart watches, televisions, and other electronic devices having display screens, etc.
Typically, the terminal device may support a variety of applications. Such as one or more of the following applications: travel applications, drawing applications, presentation applications, word processing applications, gaming applications, telephony applications, video player applications, music player applications, email applications, shopping applications, instant messaging applications, photo management applications, camera applications, browser applications, calendar applications, clock applications, payment applications, health management applications, and the like. Among these, instant messaging applications can be varied. Such as a short message application, a multimedia message application, various mailbox applications, a micro message, messenger chat software (QQ), WHATSAPP MESSENGER, even me (Line), photo sharing (instagram), kakao Talk, nailing, etc. A user may send text, voice, pictures, video files, and other various files to other contacts via an instant messaging application.
The applications supported by the terminal device may be native application programs app or fast applications, and the embodiment of the present application is not limited in particular. The terminal device can support the fast service cards corresponding to the applications, such as cards corresponding to order logistics services in shopping applications, cards corresponding to ticket information in travel applications, and the like. And the terminal device can support the fast service cards corresponding to the installed applications and the fast service cards corresponding to the uninstalled applications.
2) A desktop: the desktop interface of the terminal device, that is, the interactive interface between the terminal device and the user when the terminal device does not run any application in the foreground, may be referred to.
Illustratively, as shown in fig. 1A, one or more icons with functionality (i.e., a representative graphic to show its corresponding function) and labels of the icons (names of icon functions) are typically displayed on the desktop of the mobile phone, and as shown in fig. 1A, icons of application programs (e.g., cameras, application malls), icons of folders, etc. may be typically included. In addition, the desktop will typically display service cards, shortcuts, gadgets (widgets), etc., which are not specifically shown in FIG. 1A.
In the embodiment of the application, icons, service cards, shortcuts, small devices (widgets) and the like which can be displayed on the desktop can be respectively regarded as basic elements of the desktop, and each basic element can contain all basic information except position information, such as shape, size, color and the like.
3) Layout templates: typically, the desktop of the terminal may be roughly divided into one or more areas, each area may be referred to as a layout template, the size of each layout template and the content displayed may be set, and the sizes of different layout templates and the content displayed may be the same or different.
In the embodiment of the application, each layout template can be further divided into one or more smaller areas, which can be called as basic templates, each basic template can be used for specific display applications, service cards, folders and the like, the size and the displayed content of each basic template can be flexibly set, and the size and the displayed content of each basic template can be the same or different.
In an embodiment of the present application, an application program, or a service card, or a folder, or a widget, or a shortcut key, etc. displayed on the desktop shown in fig. 1A may be regarded as a basic element, and the basic element may include all basic information except the location information of the element, such as a shape, a size, a color, etc. Each base element may be matched into a base template of uniform size and presented in the base template.
Illustratively, the desktop of the mobile phone shown in fig. 1B is divided into 3 layout templates, namely a layout template 1, a layout template 2 and a layout template 3, wherein each layout template further comprises a plurality of basic templates, and each basic template can be provided with one basic element.
4) Service card: the method can be called as a fast service card, can provide an atomization service capability with finer granularity than an Application (APP), can directly display the service or content which is most concerned by a user to the user in the form of an interactive card, and can be embedded into various APP or interactive scenes to better meet the demands of the user. A card is typically a page (page) in a fast application or a native APP to which the fast application corresponds. Clicking on the card by the user may jump to the corresponding quick application or to a service page within the APP.
The card generation process comprises the following steps: the provider of the application service uploads the service content which needs to be pushed to the user on the server, the server generates a corresponding card according to the service content uploaded by the provider, and the card is pushed to the electronic equipment of the user for display, so that the electronic equipment of the user presents the service pushed by the provider of the application service to the user in the form of the card.
In general, a card corresponds to a part of service functions of an application (except for specific description, the application referred to in the implementation of the present application may be a fast application or a native APP, and the embodiments of the present application are not limited thereto), and a provider of an application program may split services of the application into a plurality of service modules, each service module corresponds to a card, and then push different cards to users according to different service scenarios.
5) Interface: refers to a plane in a display screen of an electronic device that may be used to present images, video, text, information, etc. to a user. The visual style (e.g., shape, structure, size, etc.) of the interface may be generally fixed or may be flexibly set by the user.
Interface resources: content displayed by the interface may generally be indicated, such as images, text, rich media (RICH MEDIA), etc., where rich media refers to information dissemination methods with animation, sound, video, and/or interactivity. The rich media may include one or a combination of several forms of programming languages such as streaming media, sound, flash, java, javascript, DHTML, etc.
Pages may generally refer to content displayed on a screen, through which an interface may be presented. In the embodiment of the application, the pages can be desktops, for example, the mobile phone can comprise at least one page, and each page corresponds to one desktop. The page may also be any one or more of a lock screen interface or a negative screen interface.
6) Visual style (abbreviation "style"): refers to the fact that the object presents visual feelings to people, including the shape, structure, size, color, dynamic and static of the object.
7) The "at least one" related to the embodiments of the present application means one or more, and "plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one (item) below" or the like, refers to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b and c can be single or multiple.
It should be appreciated that in the description of the present application, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not be construed as indicating or implying a relative importance or order.
With the wide application of mobile phones, the desktop of the mobile phone evolves a plurality of rich desktop elements from a traditional single application icon, and the mobile phone has other elements such as service cards, widgets, shortcuts, folders, large folders and the like, and gradually tends to intelligent layout. The diversified desktop elements make the desktop arrangement of the mobile phone more important. Functionally, the service card, widget and shortcut have the function of directly serving, so that the user can use the function operation level, and the file holder has the function of storing the application icons. In appearance, the imaged service cards and widgets have different sizes, so that the desktop is more attractive. However, the increase in desktop elements makes it more cumbersome for users to manually organize desktops. The desktop is more complex due to the fact that the plurality of service cards, widgets and shortcuts are arranged in a scattered manner on each page of the desktop, and the purpose of service direct cannot be achieved effectively. In order to enhance the experience of using the desktop by the user, the arrangement of the desktop is particularly important.
In some desktop arrangement schemes at present, a terminal device may first receive an icon gap dividing operation of a user in a desktop layout, and divide a desktop into regions according to the dividing operation. After the area is divided, the user selects to add interface elements according to the own requirements, and the interface elements are displayed in the divided area in a preset mode. However, the desktop arrangement scheme of the current terminal device has the following disadvantages:
1. Lack swift arrangement, more repeated operation: the desktop of the scheme has high freedom degree, but the desktop arrangement operation is complicated, and interface elements need to be manually added. And each page of desktop organizer may allow the user to perform many repetitive operations.
2. The finishing time is long: the technique is suitable for creating a new desktop layout with fewer interface elements, and if the current desktop elements are more, the sorting operation is not greatly different from the conventional dragging operation and is time-consuming.
3. New, common interface elements cannot be recommended: the interface elements are all determined by the user and cannot be recommended to the user to more suitable layout and interface elements.
Obviously, the current desktop arrangement scheme is complex in operation, low in desktop arrangement efficiency and poor in user experience. Therefore, how to improve the desktop arrangement efficiency and the experience of the user of the terminal device in the desktop arrangement process of the terminal device is a problem to be solved currently.
In order to solve the above problems, the present application proposes a desktop arranging method, which is applicable to a terminal device, and includes: the method comprises the steps of firstly obtaining information of all basic elements in a desktop and information of a first template of the desktop, and then obtaining and displaying a new layout of the desktop based on the information of all basic elements and the information of the first template. The desktop of the terminal equipment is tidied by the method, so that the tidying efficiency of the desktop can be effectively improved.
The desktop arranging method provided by the embodiment of the application can be applied to various terminal devices including, but not limited to, personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, tablet computers, PDAs, media players and the like), consumer electronic devices, vehicle-mounted computers, smart watches, televisions, other terminal devices with display screens and the like.
The specific implementation process of the embodiment of the present invention will be described in detail by taking a mobile phone as an example, and the specific structural composition of the mobile phone will be briefly described below, specifically as shown in fig. 2.
Fig. 2 is a schematic diagram of a hardware structure of a mobile phone according to an embodiment of the present application.
The handset 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (universal serial bus, USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 2, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, and the like. Wherein the sensor module 280 includes an ambient light sensor 280L. In addition, the sensor module 280 may further include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, a bone conduction sensor 280M, and the like. In other embodiments, the mobile phone 200 of the present application may further include an antenna 1, a mobile communication module 250, and a subscriber identity module (subscriber identification module, SIM) card interface 295.
Processor 210 may include one or more processing units. For example: processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-network processing unit, NPU, etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
In some embodiments, a memory may also be provided in the processor 210 for storing instructions and data. By way of example, the memory in the processor 210 may be a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
In other embodiments, processor 210 may also include one or more interfaces. For example, the interface may be a universal serial bus (universal serial bus, USB) interface 230. Also for example, the interface may be an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and the like. It can be appreciated that the embodiments of the present application may interface with different modules of the mobile phone 200, so that the mobile phone 200 can implement different functions. Such as photographing, processing, etc. It should be noted that, the connection manner of the interface in the mobile phone 200 according to the embodiment of the present application is not limited.
Wherein, the USB interface 230 is an interface conforming to the USB standard specification. For example, USB interface 230 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 230 may be used to connect a charger to charge the mobile phone 200, or may be used to transfer data between the mobile phone 200 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
The charge management module 240 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 240 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charge management module 240 may receive wireless charging input through a wireless charging coil of the cell phone 200. The charging management module 240 may also provide power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, and the charge management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240 and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, the wireless communication module 260, and the like. The power management module 241 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charge management module 240 may be disposed in the same device.
The wireless communication function of the mobile phone 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 250 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), or the like. The mobile communication module 250 may receive electromagnetic waves from the antenna 1, perform processes such as filtering and amplifying the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 250 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be provided in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through audio devices (not limited to speakers 270A, receivers 270B, etc.) or displays images or video through a display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 250 or other functional module, independent of the processor 210.
The wireless communication module 260 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network, WIRELESS FIDELITY), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near Field Communication (NFC), infrared (IR), etc. applied to the mobile phone 200. The wireless communication module 260 may be one or more devices that integrate at least one communication processing module. The wireless communication module 260 receives an electromagnetic wave signal via the antenna 2, modulates the electromagnetic wave signal, filters the electromagnetic wave signal, and transmits the processed signal to the processor 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 250 of handset 200 are coupled, and antenna 2 and wireless communication module 260 are coupled, so that handset 200 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a Quasi Zenith Satellite System (QZSS) SATELLITE SYSTEM, and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The cell phone 200 implements a display function through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
The display 294 is for displaying images, videos, and the like. The display 294 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diodes (QLED), or the like. In some embodiments, the cell phone 200 may include 1 or N displays 294, N being a positive integer greater than 1.
The mobile phone 200 may implement a photographing function through an ISP, a camera 293, a video codec, a GPU, a display 294, an application processor, and the like.
The ISP is used to process the data fed back by the camera 293. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also perform algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature, etc. of the photographed scene. In some embodiments, the ISP may be provided in the camera 293.
The camera 293 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the cell phone 200 may include 1 or N cameras 293, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the cell phone 200 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, etc.
Video codecs are used to compress or decompress digital video. The handset 200 may support one or more video codecs. Thus, the mobile phone 200 may play or record video in multiple coding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the mobile phone 200 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 220 may be used to connect an external memory card (e.g., a Micro SD card) to enable expansion of the memory capabilities of the cell phone 200. The external memory card communicates with the processor 210 through an external memory interface 220 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Internal memory 221 may be used to store computer executable program code that includes instructions. The processor 210 executes various functional applications of the cellular phone 200 and data processing by executing instructions stored in the internal memory 221. The internal memory 221 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, and the like. The storage data area may store data (e.g., audio data, phonebook, etc.) created during use of the handset 200, etc. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The handset 200 may implement audio functions through an audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone interface 270D, application processor, etc. Such as music playing, recording, etc.
The audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210.
Speaker 270A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The handset 200 may listen to music, or to hands-free calls, through the speaker 270A.
A receiver 270B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the handset 200 is answering a telephone call or voice message, the voice can be received by placing the receiver 270B close to the human ear.
Microphone 270C, also referred to as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 270C through the mouth, inputting a sound signal to the microphone 270C. The handset 200 may be provided with at least one microphone 270C. In other embodiments, the mobile phone 200 may be provided with two microphones 270C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the mobile phone 200 may further be provided with three, four or more microphones 270C to achieve sound signal collection, noise reduction, sound source recognition, directional recording, etc.
The earphone interface 270D is for connecting a wired earphone. Earphone interface 270D may be USB interface 230, or may be a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface, or the like.
The pressure sensor 280A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 280A may be disposed on display 294. The pressure sensor 280A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 280A, the capacitance between the electrodes changes. The handset 200 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display 294, the mobile phone 200 detects the touch operation intensity from the pressure sensor 280A. The cell phone 200 may also calculate the location of the touch based on the detection signal from the pressure sensor 280A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: when a touch operation with the touch operation intensity smaller than the first pressure threshold is applied to a short message (also called a short message) application icon, an instruction for checking the short message is executed. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 280B may be used to determine the motion gesture of the cell phone 200. In some embodiments, the angular velocity of the handset 200 about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 280B. The gyro sensor 280B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 280B detects the shake angle of the mobile phone 200, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the mobile phone 200 through the reverse motion, thereby realizing anti-shake. The gyro sensor 280B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 280C is used to measure air pressure. In some embodiments, the handset 200 calculates altitude from the barometric pressure value measured by the barometric pressure sensor 280C, aiding in positioning and navigation.
The magnetic sensor 280D includes a hall sensor. The mobile phone 200 can detect the opening and closing of the flip holster using the magnetic sensor 280D. In some embodiments, when the mobile phone 200 is a flip phone, the mobile phone 200 may detect the opening and closing of the flip based on the magnetic sensor 280D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 280E can detect the magnitude of acceleration of the mobile phone 200 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the handset 200 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 280F for measuring distance. The cell phone 200 may measure the distance by infrared or laser. In some embodiments, the cell phone 200 may range using the distance sensor 280F to achieve quick focus.
Proximity light sensor 280G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The cell phone 200 emits infrared light outward through the light emitting diode. The cell phone 200 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the cell phone 200. When insufficient reflected light is detected, the cell phone 200 may determine that there is no object in the vicinity of the cell phone 200. The mobile phone 200 can detect that the user holds the mobile phone 200 close to the ear to talk by using the proximity light sensor 280G, so as to automatically extinguish the screen to achieve the purpose of saving electricity. The proximity light sensor 280G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 280L is used to sense ambient light level. The cell phone 200 may adaptively adjust the brightness of the display 294 based on the perceived ambient light level. The ambient light sensor 280L may also be used to automatically adjust white balance during photographing. The ambient light sensor 280L may also cooperate with the proximity light sensor 280G to detect if the phone 200 is in a pocket to prevent false touches.
The fingerprint sensor 280H is used to collect a fingerprint. The mobile phone 200 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 280J is used to detect temperature. In some embodiments, the handset 200 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 280J exceeds a threshold, handset 200 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 280J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the cell phone 200 heats the battery 242 to avoid the low temperature causing the cell phone 200 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the handset 200 performs boosting of the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 280K, also referred to as a "touch panel". The touch sensor 280K may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, which is also referred to as a "touch screen". The touch sensor 280K is used to detect a touch operation acting on or near it. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 294. In other embodiments, the touch sensor 280K may also be disposed on the surface of the mobile phone 200 at a different location than the display 294.
Bone conduction sensor 280M may acquire a vibration signal. In some embodiments, bone conduction sensor 280M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 280M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 280M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 270 may analyze the voice signal based on the vibration signal of the sound portion vibration bone piece obtained by the bone conduction sensor 280M, so as to implement the voice function. The application processor can analyze heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 280M, so as to realize a heart rate detection function.
Keys 290 may include a power on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be a touch key. The handset 200 may receive key inputs, generating key signal inputs related to user settings and function control of the handset 200.
The motor 291 may generate a vibration alert. The motor 291 may be used for incoming call vibration alerting or for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 291 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display 294. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 292 may be an indicator light, which may be used to indicate a state of charge, a change in power, or may be used to indicate a message, missed call, notification, etc.
The SIM card interface 295 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 295 or removed from the SIM card interface 295 to allow contact and separation from the handset 200. The handset 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 295 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 295 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 295 may also be compatible with different types of SIM cards. The SIM card interface 295 may also be compatible with external memory cards. The mobile phone 200 interacts with the network through the SIM card to realize the functions of communication, data communication and the like. In some embodiments, handset 200 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the handset 200 and cannot be separated from the handset 200.
It should be understood that the structure illustrated in the embodiment of the present application is not limited to the specific embodiment of the mobile phone 200. In other embodiments of the application, the handset 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In order to better understand the technical scheme provided by the embodiment of the application, an application scene of the embodiment of the application is described below by taking a desktop as an example.
The desktop arranging method provided by the embodiment of the application can be respectively applied to application scenes of desktops in two states, wherein one desktop is a normal desktop, the other desktop is an editing desktop, and the specific use of the desktops in the two states is correspondingly introduced.
Normal desktop: the method can refer to a main screen area displayed by a display or a display screen of the terminal equipment after the terminal equipment is started, namely a frequently-displayed desktop interacted with a user, wherein the desktop normally displays basic elements (such as application programs, folders, service cards, shortcut keys and the like), and on the desktop in the state, the user can use fingers to operate the basic elements on the desktop so as to directly access or use the basic elements; and the user can also press the basic element on the desktop for a long time to drag to a designated location on the desktop. However, the normal desktop cannot be provided with wallpaper, icons, layout, plugins, page turning effects and the like.
As shown in fig. 3A, on a normal desktop of a certain page of a terminal device (e.g., a mobile phone), a user may select a shortcut desktop arrangement operation, for example, the user may continuously click on the desktop three times, that is, may quickly initiate an operation of templated desktop arrangement, specifically, referring to fig. 3B (1), for the desktop of the current page, the user may continuously click on the desktop three times with a finger, that is, may automatically adjust a layout by using a default template (which may be understood as a template recommended by a system of the terminal device), and display a new layout of the desktop of the current page.
The default template used on the normal desktop can be a template designed and provided by a mobile phone developer, and can also be a template customized by a user through the selection, setting and other operations of the layout template and the basic template.
In addition, as shown in FIG. 3A, the user may also choose to enter the editing desktop, and then may set up the desktop template and save the template.
Editing state desktop: after the terminal equipment is started, a normal desktop of the current page can be displayed, a user can select and execute the quick finishing operation of the normal desktop, the layout of the desktop of the current page is displayed by a default template, and the desktop can be flexibly adjusted and set by entering an editing state desktop through operation. For example, the user's double fingers pinch the normal desktop, and then enter the edited desktop.
In the edited desktop, as shown in fig. 3B (2), at the desktop of the current page, the user may use a finger to slide upward to switch different templates, after selecting one of the templates, the user clicks the save button, and the system may adjust the layout of the desktop of the current page based on the selected template, and finally may display a new desktop layout.
As shown in (2) of fig. 3B, after the desktop layout of the current page is adjusted, the user can slide left and right using a finger to switch the next page to be arranged in the desktop layout. After selecting a page needing to adjust the desktop layout, a user can slide the switching template up and down to realize quick switching of diversified desktop layout previews, and after selecting one template, the user clicks and saves the template, so that the layout of the current page of the desktop can be adjusted by using the template.
In the editing state desktop, the user can also select and set the operation custom templates through the layout templates and the basic templates, and the like, so that the self desktop layout adjustment is completed. The user can also save the custom template, and subsequently, the desktops of other pages can directly use the custom template to quickly adjust the layout without repeated adjustment operations for other desktop pages.
In addition, the embodiment of the application also provides an overall architecture of the terminal equipment (such as a mobile phone), as shown in fig. 4, the overall architecture of the terminal equipment can be divided into an upper data layer, a middle service layer and a lower view layer. The data layer, the service layer and the view layer are respectively described below.
(1) And (3) a data layer: the method and the system refer to data such as three-party applications, icons provided for the applications, service cards, shortcuts and the like on the original desktop of the user and user behavior data. The user behavior data refers to the using habit of the user desktop, and the information such as applications commonly used by the user, certain services of the applications, shortcuts and the like is collected under the permission of the user.
(2) Service layer: is a method for arranging desktops based on template constraint. For the user, the mobile phone desktop only provides quick operation under two desktop states by using the sorting method.
Under a normal tabletop: the user may launch the template sort desktop, e.g., the user may single-finger click the desktop three times in succession to launch the default template sort desktop; or the user can use a finger to press the desktop for 5s to start the default template arrangement desktop; or the user swings the movable terminal equipment (such as a mobile phone) up and down twice or left and right twice to start the default template arrangement desktop; the embodiment of the present application is not limited to this operation.
Under the editing state desktop: the user may select a template and then apply the selected template to sort the desktop. The method comprises the following steps: first, the three-party application and the Hua-Cheng application are converted into desktop basic elements including icons, service cards, widgets, folders, shortcuts, and the like. Then, the desktop layout is composed of a plurality of layout templates with different hot spot levels (levels), and each hot spot layout template is composed of a plurality of basic templates. The base elements can be arranged on the base templates under the condition that the sizes of the base templates are the same as the sizes of the base elements. And classifying the desktop elements based on the layout template features, and classifying the elements into layout templates of different hot spots according to the types, sizes, user utilization rates and the like of desktop basic elements. Finally, each desktop element is sized to the base template in the layout template to which it belongs.
(3) View layer: refers to a new desktop which is well arranged through template constraint. The final presentation of the view layer is aimed at showing a compact, organized, aesthetically pleasing service card desktop. In order to enhance the use of new desktop elements, such as service cards, by users, the built-in templates may be dedicated to providing service card presentation locations. Thus, the service cards commonly used by the current desktop page can be recommended to the user.
In summary, the data layer is responsible for storing and providing three-party applications, hua Cheng applications and user behavior information, the service layer completes desktop arrangement service logic processing through a desktop shortcut arrangement method based on template constraint, and the arrangement completed desktop layout is presented on the desktop of the user mobile phone.
The embodiment of the application provides a desktop arrangement method which can be applied to but not limited to desktop arrangement under normal desktop and editing state desktop scenes, and can be executed by a processor of terminal equipment or a chip corresponding to the processor. And the ordinal terms such as "first," "second," etc., are used for distinguishing between a plurality of objects for convenience of description and are not used for limiting the order, timing, priority, or importance of the plurality of objects. In the embodiment of the present application, the terminal device is taken as an example of the mobile phone 200, but the embodiment of the present application is not limited to be applied to other types of terminal devices. Referring to fig. 5, the specific flow of the method may include:
S501: the method comprises the steps that a processor of a mobile phone obtains information of all basic elements in a current desktop and information of a first template; the first template is used for sorting the layout of the current desktop.
In the embodiment of the application, the data layer of the mobile phone can store information and data of elements displayed on a desktop, such as information (including names and visual information such as sizes and shapes) and data (including storage and use data occupied by the sizes of the elements, user behavior data and the like) of application programs, service cards, shortcuts and the like. The user behavior data may refer to the habit of using the desktop of the mobile phone, including information such as applications commonly used by the user, a certain service of the applications, and shortcuts. The data layer of the mobile phone can also store a plurality of desktop templates, and the desktop templates can comprise templates built in the mobile phone (such as desktop templates preset by a mobile phone manufacturer) and templates customized by a user (such as the user can edit and store the desktop templates in an editing state).
In the embodiment of the application, the processor of the mobile phone can acquire the information of all the basic elements in the current desktop and the information of the first template from the data layer of the mobile phone, wherein the first template is used for arranging the layout of the current desktop, the first template can comprise at least one first area, each first area can comprise at least one second area, and each second area is used for displaying the independent basic elements, so that the information of the at least one first area and the information of the at least second area in each first area are also included in the information of the first template.
In some embodiments, the processor of the mobile phone may obtain data information of the current desktop from the data layer of the mobile phone, determine information (such as shape and size information) of an interface available for displaying the base element in the current desktop, and generate (or obtain) a new desktop template (i.e., a first template) based on the information of the interface available for displaying the base element in the current desktop, where m layout templates (i.e., m first areas) are included in the new desktop template, and m is a positive integer greater than or equal to 1.
In some embodiments, the first template may be a target template that is automatically recommended by the system after three continuous clicks on the normal desktop using a single finger by the user, or a target template that is automatically selected by the user on the edited desktop. The first template can be a template built in the mobile phone or a template stored after user definition. The underlying elements (also referred to as elements) in the desktop may include, but are not limited to: application icons, service cards, folders, shortcuts, and gadgets (widgets) reference may be made to the desktop shown in fig. 1A.
In some embodiments, the dimensions of the different base elements may be the same or different, as may the dimensions of the different second regions. Each second region (also referred to as a base template) and each base element are matable to each other, and illustratively, in the case where the size of one second region is the same as the size of one base element, the second region can be used to present the base element.
Illustratively, a first region in the first template corresponds to the layout template shown in fig. 1B, and a second region in the first region corresponds to the base template in the layout template shown in fig. 1B.
In some embodiments, the dimensions of at least one of the second region or the base element may include, but are not limited to, one or more of the following:
1mm*1mm、1mm*2mm、2mm*2mm、2mmm*4mm。
illustratively, a second region of size 1mm x 1mm may be suitable for displaying applications or icons as 1mm x 1mm, a second region of size 1mm x 2mm may be suitable for displaying service cards as 1mm x 2mm, a second region of size 2mm x 2mm may be suitable for displaying folders as 2mm x 2mm, and a second region of size 2mm x 4mm may be suitable for displaying service cards as 2mm x 4 mm.
S502: and the processor of the mobile phone obtains and displays a new layout of the current desktop based on the information of all the basic elements and the information of the first template.
The processor of the mobile phone can obtain a new layout of the current desktop based on the information of all the basic elements of the current desktop and the information of the first template, and display the new layout of the current desktop through the display screen of the mobile phone.
In the embodiment of the application, the processor of the mobile phone can match all the basic elements to the at least one first area according to the information of all the basic elements and the information of the first template. The information of the base element may include any one or more of size information, type information, frequency of use information, downloaded frequency information, source information, or hotspot level information.
In some embodiments, the processor of the mobile phone may first match all the base elements to the at least one first region according to the hotspot levels of the base elements and the hotspot levels of the first regions in the first template, and generate a new desktop layout.
The hotspot level for how to determine the information of all base elements in the current desktop and the hotspot level of the first region may include, but is not limited to, the following embodiments:
In the embodiment of the present application, the information of the first area in the information of the first template may include a hotspot level of the first area.
In some embodiments, when the information of the first area in the information of the first template does not include the hotspot level of the first area, the processor of the mobile phone further needs to determine the hotspot level of each first area in the first template. For example, the processor of the mobile phone may set several desktop areas according to the usage situation of the area of the entire desktop, and the hot spot level of the first area closer to the center of the desktop may be set higher, or the hot spot level of the first area closer to the top of the desktop may be set higher than the hot spot level of the first area closer to the bottom of the desktop. The processor of the mobile phone can take the hot spot grade of the desktop area where each first area is located as the hot spot grade of the corresponding first area based on the desktop area where each first area is located in the first template.
In some embodiments, the hotspot level of the first area in the first template may be automatically generated for the system, may be a hotspot level in a historical template of the system selected by the user, or may be a user-defined hotspot level, where the manner of user-defining may be implemented by a method described in the following embodiment one, which is not described herein in detail.
The foregoing manner is merely an example, and the embodiments of the present application may also determine the hotspot level of each first area in the first template in other manners, which are not limited in this manner.
In the embodiment of the application, the information of the basic elements in the current desktop, which is acquired by the processor of the mobile phone from the data layer of the mobile phone, can contain the hot spot level of each basic element. The processor of the mobile phone can count all basic elements on the current desktop and acquire information of all basic elements from the data layer; and determining the corresponding hot spot grade according to the information of each basic element.
In one embodiment, the processor of the mobile phone may calculate, according to one or more of size information, type information, frequency information used, downloaded frequency information, and source information in the information of each base element, a hot spot coefficient of each base element by using a preset algorithm; further, according to the hot spot coefficients of all the basic elements, the hot spot levels of all the basic elements are determined.
The information of the first template may further include an area ratio of each first area, and the processor of the mobile phone may sort all the base elements in order from large to small according to the hotspot coefficients of all the base elements; dividing all the ordered basic elements according to the area occupation ratio of at least one first area of different hot spot grades to obtain at least one element set, wherein each element set comprises at least one basic element, the at least one element set corresponds to the at least one first area one by one, the occupation ratio of each element set is the same as the area occupation ratio of the corresponding first area, and the element set with the larger comprehensive hot spot coefficient corresponds to the first area with the higher hot spot grade; and finally, setting the basic elements in each element set as the hot spot grade of the corresponding first area.
In the above example, the area ratio of each first region may be a ratio of an area of each first region to a total area of all first regions in the first template, the ratio of each element set may be a ratio of a number of base elements in each element set to a number of all base elements in the current desktop, and the integrated hotspot coefficient of each element set may be an average or median of the hotspot coefficients of all base elements in each element set.
In the embodiment of the application, the importance of the basic elements displayed in the first area with higher hotspot grade to the user is higher.
In addition, the hot spot level may be represented by a specific value (may be referred to as a hot spot level value), where a smaller hot spot level value indicates a higher hot spot level (hot spot level), or where a larger hot spot level value indicates a higher hot spot level (hot spot level), which is not limited in this aspect of the present application, and may be flexibly set.
For example, the hot spot coefficient rank list for all base elements E in the current desktop is: e 1、E2、E3……En, where E represents a base element, n represents a ranking of a corresponding base element, and a smaller value of n indicates that the higher the ranking of the base element, the higher the base element hotspot level (hotspot degree).
Assuming that the first template includes three first areas, the hot spot grade value of the first area 1 is 1 (the hot spot degree is highest), the hot spot grade value of the first area 2 is 2, and the hot spot grade value of the first area 3 is 3 (the hot spot degree is lowest); wherein the area of the first area 1 is 20% of the total area of the whole first template, the area of the first area 2 is 30% of the total area of the whole first template, and the area of the first area 3 is 50% of the total area of the whole first template.
Dividing n ranked basic elements into 3 parts, wherein the number of basic elements in the front part accounts for 20% of the total basic elements, and the hot spot grade values of the basic elements in the front part are all determined to be 1; the number of the basic elements in the middle part accounts for 30% of the total number of the basic elements, and the hot spot grade values of the basic elements in the middle part are all determined to be 2; the number of the base elements in the latter part accounts for 50% of the total number of the base elements, and the hot spot rank values of the base elements in the latter part are all determined to be 3.
The hotspot grade value of each basic element can also be determined by the following formula:
Wherein, i is 1, 2, 3 … … n, when the ranking i of the basic elements is less than or equal to n x 20%, the corresponding hot spot grade value is 1; when the ranking of the basic elements is that i is larger than n by 20% and i is smaller than or equal to n by 50%, determining that the corresponding hot spot grade value is 2; and when the ranking i of the basic elements is greater than n by 50 percent and i is less than or equal to 100 percent, determining the corresponding hot spot grade value to be 3.
The foregoing manner is merely exemplary, and other manners may be adopted to calculate the hot spot level of the base element in the desktop according to the embodiments of the present application, for example, refer to the following second embodiment, which is not limited thereto.
For how to match the hotspot levels of all the base elements with the hotspot levels of at least one first region based on the hotspot levels of the information of the base elements and the hotspot levels of the first region, the following embodiments may be included, but are not limited to:
In the embodiment of the application, the information of the first area in the information of the first template can comprise the hot spot grade of the first area, and based on the hot spot grade of all basic elements in the current desktop and the hot spot grade of each first area in the first template, the processor of the mobile phone can match the hot spot grade of all basic elements with the hot spot grade of at least one first area, and the processor of the mobile phone can match each basic element to the first area with the same hot spot grade.
The processor of the mobile phone may match the size information of the base element matched to the first area with the size information of at least one second area in the first area based on the size information of all the base elements, and match each base element to the first area of the same size.
For example, the processor of the mobile phone may cycle through each base element in turn according to the hotspot level (level) of the base element and the hotspot level of the first area in the new first template, and assign each base element to the first area of the same hotspot level. For example, the basic elements of the current desktop include: base element 1 (APP 1), base element 2 (APP 2), base element 3 (APP 3), base element 4 (APP 4), base element 5 (APP 5), base element 6 (APP 6); wherein, the hot spot level of the basic element 1 (APP 1) and the basic element 4 (APP 4) is 1, the hot spot level of the basic element 2 (APP 2) and the basic element 5 (APP 5) is 2, and the hot spot level of the basic element 3 (APP 3) and the basic element 6 (APP 6) is 3. The new first template comprises 3 first areas, wherein the hot spot grade corresponding to the first area 1 is 1, the hot spot grade corresponding to the first area 2 is 2, and the hot spot grade corresponding to the first area 3 is 3. Then base element 1 and base element 4 may be matched into first region 1, base element 2 and base element 5 into first region 2, and base element 3 and base element 6 into first region 3.
Since each first area is divided into one or more second areas again, when the basic elements with the same hot spot level are matched into the corresponding first areas, it is further required to determine which second area in the first areas the basic element is placed in, so for each first area, the size of at least one basic element in the first area and the size of the at least one second area in the first area can be matched, the at least one basic element is matched into one second area with the same size, for example, the processor of the mobile phone can determine the size of each basic element according to the data information of each basic element, and the basic element is matched into the second area with the same size; each of the second regions is for displaying a base element. Illustratively, for the first area 1, the first area 1 includes a second area 1 and a second area 2, and the base elements of the first area 1 include a base element 1 and a base element 4 with the same hot spot level; the processor of the mobile phone can display the base element 1 in the second area 2 if the size of the base element 1 is determined to be the same as the size of the second area 2 according to the size information of the base element 1 and the base element 4 and the size information of the second area 1 and the second area 2, and can display the base element 4 in the second area 1 if the size of the base element 1 is determined to be the same as the size of the second area 2.
In some embodiments, when there is a second region that does not match a base element, a new base element may be generated for the second region that does not match a base element.
In some embodiments, when there is a base element that does not match the second area, the base element that does not match the second area may be spliced, and the spliced base element may be matched into the second area with the same size; or the base elements that do not match to the second region may be displayed in a stacked form with the base elements that have been matched to the second region in the same size.
In some embodiments, when there is a first base element that does not match a second region in a first region of the same hotspot level, the first base element may be matched to a second region in a first region of other hotspot levels, where the first region of other hotspot levels may be a first region of hotspot levels adjacent to the hotspot level of the first region to which the first base element is matched; or a first region of the same hotspot level as the first base element may be merged with an adjacent first region. The adjacent first area may be a first area in the first template, which is adjacent to the first area matched with the first basic element, and the hot spot level of the adjacent first area may be adjacent to or not adjacent to the hot spot level of the first area matched with the first basic element.
For example, the current desktop includes a base element 1, a base element 2, a base element 3, and a base element 4. Assuming that the basic element 1, the basic element 2 and the basic element 3 are matched into a first area 1 with the same hot spot level by referring to the hot spot level, wherein the first area 1 comprises a second area 1, a second area 2 and a second area 3;
If the base element 1 is matched to the second region 1 of the same size, the base element 2 is matched to the second region 3 of the same size, however, there is no base element 3 matched to the second region of the same size, and no base element is placed in the second region 2 of the first region 1, depending on the size of the base element and the size of the second region.
For base element 3 that did not match successfully: when any one or more of the foundation elements 1 or 2 and the foundation element 3 are the same in size, the foundation element 3 may be stacked under any one of the foundation elements 1 or 2 or placed into other first areas; or the first region 1 is combined with the adjacent first region, so that the base element can be placed in the first region 1 and the adjacent first region at the same time.
For the second region 2 where the mismatch was successful: a new base element may be automatically generated for the second area 2, which is a base element of a user-commonly used application or card, etc., or of a high hotspot level.
In some embodiments, when there are locations in the first template that are not used to display the base element, the locations in the first template that are not used to display the base element may fill the pattern.
With reference to the layout arrangement mode, the processor of the mobile phone can perform layout adjustment on all the first areas in the first template, and finally a new layout of the current desktop can be obtained and displayed.
Illustratively, an algorithm for layout adjustment is also provided; input (Input) as shown in table 1 below: a list (BTL) of base templates (corresponding to the second region) and a list (BEL) of base elements; output (Output:) a list of MTEL after the base template is matched with the base element. The definition of the basic templates and the basic elements is described in detail in the second embodiment. And respectively determining the display position and form of the basic element through matching the basic template and the basic element.
The algorithm is executed as follows:
first, a Matched Template Element List (MTEL) is initialized, and the list (MTEL) is used for storing matched basic templates and basic elements;
Then, each element of the basic elements in the BEL is traversed, and each element is matched with all templates in the BTL one by one.
The matching method can be as follows: judging whether the size of the basic element (element) is the same as the size of the basic template (template), and if so, marking the basic element (element) and the basic template (template) as matched.
For the base template (template) in the BTL that has been matched to a base element, it is no longer used to match the next base element (element).
For example, the BEL includes the base element 1, the base element 2, and the base element 3, and the BTL includes the base template 1, the base template 2, the base template 3, and the base template 4. The basic element 1 is compared with the basic templates 1,2, 3 and 4 in the BTL in size, and if the basic element 1 and the basic template 3 are the same in size, the basic element 1 and the basic template 3 are marked as matched and stored in MTEL. Then, the base element 2 is compared with the base templates 1,2, and 4 in the BTL (here, the base element 2 is no longer compared with the base template 3), and if the base element 2 is the same as the base template 2 in size, the base element 2 and the base template 2 are marked as matched and stored in MTEL. Next, the base element 3 is compared with the base templates 1 and 4 in the BTL in terms of size (here, the base element 3 is no longer compared with the base templates 2 and 3), and if the base element 3 is the same as the base template 1 in terms of size, the base element 3 and the base template 1 are marked as matched and stored in MTEL.
The procedure of the above-described processing corresponds to lines 1 to 10 of the algorithm in table 1.
However, after the above processing, there may be an unmatched base element (element) in the BEL and an unmatched base template (template) in the BTL. For unmatched base elements (elements) in the BEL and unmatched base templates (templates) in the BTL, matching can be achieved by:
For unmatched base elements (elements) in the BEL: the unmatched base elements may be combined with the matched base elements of the same size, or the unmatched base elements may be combined.
For example, if the unmatched base element in the BEL is a service card, then the service card may be combined and presented in a stack with service cards of the same size; if there are two unmatched base elements (elements) of size 1*1 in the BEL and one unmatched base template (template) of size 2*1 in the BTL, then the two base elements (elements) of size 1*1 can be combined (i.e., stitched) to a size 2*1 and matched into the unmatched base template (template) of size 2*1.
For unmatched templates (templates) in BTL: and traversing unmatched templates in the BTL, and generating new basic elements according to the size of each basic template, wherein the new basic elements can be service cards, shortcuts and the like commonly used by users.
Finally, after each successful match of the base template with the base element, a pair of matched base template and base element is added to the Matched Template Element List (MTEL), and MTEL is added as the final output of the algorithm.
In the output MTEL, the location information of the base template and the presentation form of the corresponding matched base element are included, so that according to the output MTEL, the unique layout of the base element on the mobile phone desktop can be determined.
TABLE 1
/>
Illustratively, fig. 6 shows an effect diagram of a template-based desktop arrangement, where fig. 6 (1) shows an original desktop, fig. 6 (2) shows a new first template, and fig. 6 (3) shows a new desktop.
The steps S501-S502 are to adjust the layout of the desktop of the current page based on the template to obtain a new layout; the desktops of other pages can be adjusted in a layout manner described in steps 501-502, and will not be described in detail herein.
In summary, the desktop arrangement method provided by the application can realize layout adjustment of the mobile phone desktop based on the template, and is convenient to operate, efficient in arrangement and high in layout rationality.
First embodiment:
In the first embodiment, taking a mobile phone as an example, a detailed description is given for how to customize a template of a desktop by a user, as shown in fig. 7A, the specific flow is as follows:
S701A: and the user operates an editing page of the entering template in the desktop editing state of the mobile phone.
The display screen of the mobile phone automatically displays a normal desktop of the current page after the mobile phone is started, the user performs a first operation on the normal desktop, that is, may enter a desktop editing state, for example, the first operation may be a kneading operation performed by two fingers of the user on the desktop of the mobile phone, and may refer to the desktop editing state shown in (2) in fig. 3B, the user may slide up and down to switch different desktop templates (i.e., the first template), after any desktop template is selected, the desktop of the current page may automatically perform layout with the desktop template, further, the user may enter an editing page of the desktop template, for example, may enter the editing page of the desktop template by pressing any place on the desktop for a long time or double clicking the desktop, in which the user may modify and adjust the desktop template, for example, may delete an existing layout template (i.e., the first area) or add a layout template in the editing page of the desktop template, and set a hot spot level of the new layout template, etc., which is not limited in the embodiment of the application.
S702A: and the user adjusts the layout template on the page edited by the template.
In the embodiment of the application, the user can adjust the number of the layout templates, such as deleting or adding the layout templates, on the page edited by the templates. For an existing layout template in an editing page of the template, if the user does not want to use the existing layout template, the user can use a finger to drag the existing layout template downwards in the editing page of the template, a 'delete' or 'trash can' button is automatically displayed below the page, and the user can drag the layout template to a 'delete' or 'trash can' button position, so that the existing layout template can be deleted or disappeared.
For example, if a user wants to add a layout template, the user may slide the template editing page leftwards or rightwards with a finger to present a new page in which a plurality of layout templates are displayed, and the user may drag any one or more of the layout templates into the editing page of the template.
In the embodiment of the application, on the editing page of the template, the user can set the hot spot level of each layout template. The mobile phone system generally divides a plurality of areas for the desktop, and presets corresponding hot spot grades for each area according to frequency information of operation of a user in each area, and when the user adjusts the layout template to the corresponding area, the system can automatically set the hot spot grade of the area where the layout template is located as the hot spot grade of the layout template.
In some embodiments, the user may use a finger to arbitrarily adjust the position and size of each layout template for the layout templates in the editing page of the template.
S703A: and storing the edited template on an editing page of the template by the user.
By way of example, the user may save the template edited by the user by clicking a "save" button in the editing page of the template, e.g., the edited template may be automatically saved in the data layer of the mobile phone, which is not limited in this regard by the present application.
Illustratively, fig. 7B shows an effect diagram of a user-customized desktop template, where (1) in fig. 7B shows an original desktop template, where the original desktop template includes a layout template 1 (level=1) and a layout template 2 (level=2), and the original desktop template may be adjusted by a user, for example, the user may adjust the size of the layout template in the template by dragging, setting a hotspot level, adding a template element, and the like on the basis of the original desktop template, and finally, a new customized desktop template may be obtained, and (2) in fig. 7B shows a new desktop template customized by the user, where the new desktop template includes a layout template 3 (level=1) and a layout template 4 (level=2).
The steps S701A-S703A take only one template as an example, and describe how the user edits and modifies the template to achieve the effect of the custom template, and other templates can refer to the steps S701A-S703A for editing the template. In addition, the user may not implement the requirement of the template of the custom desktop based on the existing template (or the original template), but may design a new template on the editing page of the template, which is not limited in the embodiment of the present application.
According to the first embodiment, a user can set a custom template according to own requirements, and further desktop arrangement is achieved based on the custom template of the user, so that the desktop arrangement efficiency can be improved, and the personalized desktop arrangement function can be provided.
Specific embodiment II:
In the second embodiment, the terminal device takes a mobile phone as an example, and mainly introduces a relationship among a layout template (corresponding to a first area in the scheme of the present application) in a desktop template, a base template (corresponding to a second area in the scheme of the present application), and a base element of a desktop, and how to allocate the base element to the layout template in the desktop template (corresponding to the first template in the scheme of the present application) of the mobile phone, which is as follows:
the relationship among the layout template, the basic template and the basic element of the desktop in the desktop template:
Layout templates: for any template of the mobile phone desktop, a plurality of layout templates can be included, each layout template is composed of a plurality of small basic templates, each layout template can correspond to a hot spot grade, the hot spot grade of the layout template can represent the importance degree of the desktop position where the layout template is located, for example, the important program of the desktop position where the layout template with the hot spot grade level=1 is located is the largest, namely, the layout template with the hot spot grade level=3 and the hot spot grade level=4 has smaller importance degree, namely, the layout template with the hot spot grade level=3 and the hot spot grade level=4 can be understood as the desktop part with fewer operations of the user, and basic elements which are not frequently used by the user can be displayed in the layout templates with the level=3 and the level=4, or picture elements of the attractive desktop can be arranged.
Fig. 8A shows an example of three desktop layouts, wherein the desktop template (6*4) shown in (1) in fig. 8A includes 2 layout templates, and the 2 layout templates correspond to 2 hotspot levels, i.e., level=1 and level=2. The desktop template (6*4) shown in (2) in fig. 8A includes 4 layout templates, where the 4 layout templates correspond to 4 hotspot levels, that is, level=1, level=2, level=3, and level=4. The desktop template (6*4) shown in (3) in fig. 8A includes 3 layout templates, where the 3 layout templates correspond to 3 hotspot levels, that is, level=1, level=2, and level=3.
In addition, the size of the layout template and the hotspot level in the template can be built in the mobile phone, and can be adjusted and determined by a user according to own desktop using habits.
Base template and base element: the basic template of the layout template is equivalent to a basic unit for storing basic elements, wherein the basic elements are cards, icons, shortcut keys and the like on a desktop, and the basic elements comprise basic information of all elements except position information.
For a base template, the size and location information of the base template may be defined. For example, a2 x 2 service card element may be matched into a2 x 2 base template, and the location of the service card on the desktop may be determined since the location of the base template in the desktop template is determined.
In the embodiment of the application, as long as the size of the basic element is consistent with the size of the basic template, the basic element can be matched for use, namely, the basic element is matched and placed into the basic template with the same size for display. As shown in fig. 8B, in an embodiment of the present application, a matching relationship between a base template and a base element is defined, including but not limited to the following:
1*1 can be icons, shortcut keys and small folders to obtain storage units, namely the icons, the shortcut keys and the small folders can be placed in the 1*1 basic template;
1*2, 2 x 2, 2 x 4 may be the storage unit for the card/widget, i.e., the card/widget may be placed in the base template of 1*2, 2 x 2, 2 x 4;
2 x2 may also be the storage unit for the large folder, i.e. the large folder may also be placed in the base template of 2 x 2.
The matching of the basic elements in the desktop into the layout template (corresponding to the first region in the solution of the present application) in the desktop template can be achieved by, but is not limited to, the following ways:
In this embodiment, the base elements and the layout templates are allocated according to the hotspot level, i.e. the base elements are allocated to the layout templates of the same hotspot level. Wherein, the layout template is defined by the system or the user after the template is determined.
Fig. 9A shows a schematic flow chart of matching of desktop basic elements with layout templates, where the matching process may be performed by a processor of a mobile phone, as shown in fig. 9A, and the specific matching process is as follows:
Firstly, information of basic elements in the current desktop is obtained, wherein the information including the size, the type, the frequency of use, the frequency of downloading, the source and the like can be used for calculating the hot spot coefficients of the basic elements.
For example, the processor of the mobile phone obtains information of all basic elements in the current desktop from the data layer of the mobile phone, such as data of size, type, frequency of use, frequency of download, source, and the like.
Then, a hot spot coefficient is calculated from the information of each base element.
The hot spot coefficients of the desktop base elements can be calculated through the linear relation between the custom features and the hot spot coefficients, or can be calculated through fitting by adopting a learning algorithm such as regression.
Illustratively, the embodiment of the present application further defines the correlation between the desktop basic element features and the hot spot coefficients, which may include, but is not limited to, any one or more of the following:
(1) The larger the size of the base element, the larger its hotspot coefficient should be.
(2) The hot spot of the service card is larger than the hot spot coefficient of the shortcut, the hot spot coefficient of the shortcut is larger than the hot spot coefficient of the common icon, and the hot spot coefficient of the common icon is larger than the hot spot coefficient of other elements.
(3) The larger any one or more of the usage or download frequency of the base element, the larger its hotspot coefficient.
(4) The hot spot coefficient of the element actively added by the user is larger than that recommended by the system, and the hot spot coefficient of the element recommended by the system is larger than that of the element generated by the system by default.
And arranging all basic elements according to the order of the hot spot coefficients from large to small.
The larger the hotspot coefficient of the base element, the more important the base element is to the user, and should be arranged in the area commonly used by the user (i.e., the layout template with high hotspot level).
Further, according to the hot spot coefficients of all the basic elements, the hot spot grade of each basic element is determined.
For example, the desktop layout currently has three layout templates with hotspot level 1, 2, and 3. If the level=1 layout templates account for 50% of the desktop layouts, and the level=2 and level=3 layout templates account for 30% and 20% of the desktop layouts, respectively, the first 50% of the list of desktop elements ranked by hotspot coefficients is assigned a hotspot level level=1. Similarly, 50% -80% of desktop elements are assigned a hotspot level=2, and the rest of desktop elements are level=3.
And finally, storing the desktop basic elements into layout templates with the same hot spot level.
If the current layout cannot be stored, it may be sequentially determined whether the current layout can be stored in the level=n+1 layout templates until all layout templates are traversed. If the element is not arranged by a suitable layout template, the layout template may solve the problem by merging adjacently.
In addition, the base elements may be matched to layout templates of equal or unequal sizes according to the sizes of the base elements in the current desktop (i.e., the base elements should be smaller than or equal to the size of the layout templates).
Through the second embodiment, the definition and effect of the template can be further introduced, and a hotspot level attribute is added for the layout template and the desktop basic element, so that the desktop basic element can be arranged in a region frequently operated by a user according to the importance degree.
After a template is set as shown in fig. 9B (1), as shown in fig. 9B (2), on the basis of the template, the arrangement of desktop elements according to hot spots can be realized after the level of the desktop base elements shown in fig. 9A is matched with the level of the layout template, so that a new desktop can be finally obtained by adjusting, namely, as shown in fig. 9B (3).
It should be understood that, in the embodiments of the present application described above, the method provided in the embodiments of the present application is described from the point of view that the terminal device (e.g., mobile phone) is the execution subject. In order to implement the functions in the method provided by the embodiment of the present application, the terminal device may include a hardware structure and/or a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Some of the functions described above are performed in a hardware configuration, a software module, or a combination of hardware and software modules, depending on the specific application of the solution and design constraints.
Based on the same concept, fig. 10 shows a terminal device 1000 provided by the present application. Terminal device 1000 can include at least one processor 1001, memory 1002, and a display 1003, for example. The processor 1001 is coupled to the memory 1002 and the display screen 1003, and the coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between the devices, units or modules.
In practice, memory 1002 may be used to store program instructions and display 1003 may be used to implement display functionality of terminal device 1000. When the processor 1001 is used to call the program and the instruction stored in the memory 1002, in combination with the display screen 1003, the terminal device 1000 executes the steps executed by the mobile phone in the desktop arranging method shown in fig. 5, so that the desktop arranging efficiency can be improved.
Specifically, the memory 1002 may have the functions of the internal memory 221 of the mobile phone 200 in the above-described method embodiment, such as storing program codes and instructions. The processor 1001 may have the functions of the processor 210 of the mobile phone 200 in the above embodiment of the method, for example, the processor 1001 may call the program code, the instructions stored in the memory 1002 to execute the steps shown in S501 and S502 in the method shown in fig. 5. The display 1003 may have the function of the display 294 of the mobile phone 200 in the above-described method embodiment, for example, the display 1003 may be used to perform the step S502 in the method shown in fig. 5, that is, to display a new layout of the desktop.
It will be apparent to those skilled in the art that embodiments of the present application may be implemented in hardware, or firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limited to: computer readable media can include RAM, ROM, electrically erasable programmable read-Only memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY, EEPROM), compact-disk-read-Only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, it is possible to provide a device for the treatment of a disease. Any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (digital subscriber line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the fixing of the medium. As used in the embodiments of the present application, discs (disks) and disks include Compact Discs (CDs), laser discs, optical discs, digital versatile discs (digital video disc, DVDs), floppy disks, and blu-ray discs where disks usually reproduce data magnetically, while disks reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The processor 1001 may be, among other things, a general purpose processor, a digital signal processor (DIGITAL SIGNAL processor, DSP), an Application SPECIFIC INTEGRATED Circuit (ASIC), an off-the-shelf programmable gate array (field programmable GATE ARRAY, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a memory medium well known in the art such as random access memory (random access memory, RAM), flash memory, read-only memory (ROM), programmable read-only memory (ROM), or electrically erasable programmable memory (eeprom), registers, etc. The storage medium is located in a memory, and the processor reads instructions from the memory and, in combination with its hardware, performs the steps of the method described above.
The relevant features of the specific implementation manner of the device may refer to the above method parts, and are not repeated herein.
It should be understood that the functions of the terminal device (e.g., mobile phone) according to the embodiments of the present application may also be implemented by a modular structure, and as shown in fig. 11, the terminal device 1100 includes a processing module 1101 and a display module 1102. Wherein the processing module 1101 may be configured to perform a processing procedure according to an embodiment of the present application, and in particular, the processing module 1101 may be configured to perform a step performed by the processor 1001 as shown in fig. 10; the display module 1102 may be used to perform the display process according to the embodiments of the present application, for example, the display module 1102 may be used to perform the steps performed by the display 1003 as shown in fig. 10. The processing module 1101 and the display module 1102 may each include a memory module, or share the same memory module, which is not specifically limited in the present application.
Based on the same technical conception, the embodiment of the application also provides a chip, wherein the chip is coupled with the memory in the device, so that the chip calls the program instructions stored in the memory when running, and the desktop arrangement method of the embodiment of the application is realized.
Based on the same technical concept, the embodiment of the present application further provides a computer storage medium, where the computer storage medium includes a computer program, and when the computer program runs on a terminal device (for example, a mobile phone), the terminal device (for example, the mobile phone) is caused to execute the desktop arranging method of the embodiment of the present application.
Based on the same technical concept, the embodiment of the present application also provides a computer program product, where the computer program product includes instructions, when the instructions are executed, cause a computer to perform the desktop finishing method according to the embodiment of the present application.
The embodiments of the application can be used alone or in combination with one another to achieve different technical effects.
The foregoing embodiments are merely used to describe the technical solution of the present application in detail, but the descriptions of the foregoing embodiments are only used to help understand the method of the embodiments of the present application and should not be construed as limiting the embodiments of the present application. Variations or alternatives readily apparent to those skilled in the art are intended to be encompassed within the scope of the embodiments of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
The foregoing description, for purposes of explanation, has been described with reference to specific examples. However, the illustrative discussions above are not intended to be exhaustive or to limit the application to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical application to thereby enable others skilled in the art to best utilize the application and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (16)

1. A desktop arranging method, which is applied to a terminal device, the method comprising:
Based on information of basic elements in a desktop and information of a first template, obtaining a new layout of the desktop and displaying the new layout, wherein the first template is used for arranging the layout of the desktop;
The first template comprises at least one first area, and each first area comprises at least one second area which is used for displaying the basic element; the information of the first template comprises the information of the at least one first area and the information of the at least one second area in each first area.
2. The method of claim 1, wherein the obtaining a new layout of the desktop based on the information of the base element in the desktop and the information of the first template comprises:
matching all the basic elements into the at least one first area according to the information of all the basic elements and the information of the first template;
And carrying out layout arrangement on the basic elements in the at least one first area and the second area to obtain a new layout of the desktop.
3. The method of claim 2, wherein said matching said all base elements into said at least one first region based on said information of all base elements and said information of said first template comprises:
matching the all base elements into the at least one first region according to the information of the all base elements and the information of the at least one first region, wherein the information of the base elements comprises any one or more of the following:
size information, type information, frequency of use information, frequency of download information, or source information.
4. The method of claim 3, wherein the information of the first area includes a hotspot level of the first area;
said matching said all base elements into said at least one first region based on said information of all base elements and said information of said at least one first region, comprising:
Determining the hot spot levels of all the basic elements;
And matching the hot spot grades of all the basic elements with the hot spot grade of the at least one first area, and matching the basic elements into the first area with the same hot spot grade.
5. The method of claim 4, wherein the information of the base element further includes a hotspot level of the base element.
6. The method of claim 4, wherein said determining the hotspot level of all of the base elements comprises:
according to one or more of size information, type information, frequency information used, downloaded frequency information and source information in the information of each basic element, a preset algorithm is adopted to calculate and obtain a hot spot coefficient of each basic element;
And determining the hot spot grades of all the basic elements according to the hot spot coefficients of all the basic elements.
7. The method of claim 6, wherein the information of the first template further includes an area ratio of each of the first regions;
and determining the hotspot grades of all the basic elements according to the hotspot coefficients of all the basic elements, wherein the method comprises the following steps:
the hot spot coefficients according to all basic elements are ordered in order from big to small;
Dividing all the ordered basic elements into at least one element set according to the area occupation ratio of the at least one first area of different hot spot grades, wherein each element set comprises at least one basic element, the at least one element set corresponds to the at least one first area one by one, the occupation ratio of each element set is the same as the area occupation ratio of the corresponding first area, and the element set with the larger comprehensive hot spot coefficient corresponds to the first area with the higher hot spot grade;
and setting the basic elements in each element set as the hot spot grade of the corresponding first area.
8. The method of any of claims 4 to 7, wherein the first region exhibiting a higher hotspot rating exhibits a higher importance to the user of the underlying element.
9. The method of claim 2, wherein the information of the second area further includes size information of the second area; the performing layout arrangement on the basic element and the second area in the at least one first area comprises the following steps:
performing layout arrangement for the base element in each first region and the second region, including:
matching the size of at least one base element in the first region with the size of the at least one second region in the first region, and matching the at least one base element into one second region of the same size; each second region is used for displaying a basic element;
Generating a new base element for a second region which is not matched with the base element when the second region which is not matched with the base element exists;
When the basic elements which are not matched with the second area exist, splicing the basic elements which are not matched with the second area, and matching the spliced basic elements into the second area with the same size; or the base elements which are not matched to the second area and the base elements which are matched to the second area and have the same size are displayed in a stacked mode.
10. The method of claim 9, wherein the method further comprises:
When there is a first base element that does not match the second region in the first region of the same hotspot level, matching the first base element that does not match to a second region in the first region of other hotspot levels; or merging the first region with the same hot spot level as the unmatched first base element with the adjacent first region.
11. The method of any one of claims 1 to 10, wherein the dimensions of at least one of the second region or the base element comprise any one or more of:
1mm*1mm、1mm*2mm、2mm*2mm、2mmm*4mm。
12. the method of any one of claims 1 to 11, wherein the base element comprises any one or more of:
Service cards, icons, folders, shortcuts, and gadgets (widgets).
13. The method of any one of claims 1 to 12, wherein the first template is a built-in template or a user-defined template.
14. A terminal device, comprising a memory, a processor, and a display screen:
the memory is used for storing computer executable program codes;
The processor for invoking the computer executable program code to perform the method of any of claims 1 to 13;
The display screen is used for displaying a new layout of the desktop.
15. A computer readable storage medium comprising program instructions which, when run on the computer, cause the computer to perform the method of any one of claims 1 to 13.
16. A chip, coupled to a memory, for executing program instructions in the memory, for performing the method of any of claims 1 to 13.
CN202211651890.3A 2022-12-21 2022-12-21 Desktop sorting method and terminal equipment Pending CN118226997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211651890.3A CN118226997A (en) 2022-12-21 2022-12-21 Desktop sorting method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211651890.3A CN118226997A (en) 2022-12-21 2022-12-21 Desktop sorting method and terminal equipment

Publications (1)

Publication Number Publication Date
CN118226997A true CN118226997A (en) 2024-06-21

Family

ID=91501563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211651890.3A Pending CN118226997A (en) 2022-12-21 2022-12-21 Desktop sorting method and terminal equipment

Country Status (1)

Country Link
CN (1) CN118226997A (en)

Similar Documents

Publication Publication Date Title
CN111666119B (en) UI component display method and electronic device
CN114467297B (en) Video call display method and related device applied to electronic equipment
US11849210B2 (en) Photographing method and terminal
WO2021018067A1 (en) Floating window management method and related device
US12032410B2 (en) Display method for flexible display, and terminal
WO2020238774A1 (en) Notification message preview method and electronic device
CN113905179B (en) Method for switching cameras by terminal and terminal
KR102534354B1 (en) System navigation bar display control method, graphical user interface and electronic device
US20230046708A1 (en) Application Interface Interaction Method, Electronic Device, and Computer-Readable Storage Medium
CN111078091A (en) Split screen display processing method and device and electronic equipment
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
US20220358089A1 (en) Learning-Based Keyword Search Method and Electronic Device
CN110633043A (en) Split screen processing method and terminal equipment
CN114115770B (en) Display control method and related device
CN113961157A (en) Display interaction system, display method and equipment
CN112445762A (en) File sharing method and equipment for mobile terminal
CN112068907A (en) Interface display method and electronic equipment
CN113746961A (en) Display control method, electronic device, and computer-readable storage medium
CN113194454B (en) Data sharing method and electronic equipment
WO2023273543A1 (en) Folder management method and apparatus
CN115314591A (en) Device interaction method, electronic device and computer-readable storage medium
CN115129410A (en) Desktop wallpaper configuration method and device, electronic equipment and readable storage medium
US20230273902A1 (en) File Opening Method and Device
CN110704145A (en) Hot area adjusting method and device, electronic equipment and storage medium
CN114064160A (en) Application icon layout method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination