WO2022063074A1 - 桌面布局方法、装置和电子设备 - Google Patents

桌面布局方法、装置和电子设备 Download PDF

Info

Publication number
WO2022063074A1
WO2022063074A1 PCT/CN2021/119285 CN2021119285W WO2022063074A1 WO 2022063074 A1 WO2022063074 A1 WO 2022063074A1 CN 2021119285 W CN2021119285 W CN 2021119285W WO 2022063074 A1 WO2022063074 A1 WO 2022063074A1
Authority
WO
WIPO (PCT)
Prior art keywords
icon
area
application
desktop
icon area
Prior art date
Application number
PCT/CN2021/119285
Other languages
English (en)
French (fr)
Inventor
周璇
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to EP21871444.2A priority Critical patent/EP4220387A4/en
Publication of WO2022063074A1 publication Critical patent/WO2022063074A1/zh
Priority to US18/187,118 priority patent/US20230221846A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a desktop layout method, apparatus and electronic device.
  • application icons on the desktop of an electronic device are of the same size, and the application icons are distributed in blocks at equal intervals, presenting a palace-style desktop layout.
  • users customize the desktop they can only make simple settings on the basis of the original palace layout. For example, change the number of rows and columns of desktop application icons, such as changing from 4 ⁇ 6 (6 rows and 4 columns) to 5 ⁇ 5 or 5 ⁇ 6. Change the desktop skin, delete or add desktop pages, etc., the layout of the palace format cannot be changed.
  • the existing desktop layout mode is relatively simple, resulting in a small degree of freedom of the desktop layout, and it is difficult to meet the diversified and personalized desktop layout requirements of users.
  • the purpose of the embodiments of the present application is to provide a desktop layout method, apparatus, and electronic device, which can improve the degree of freedom of desktop layout and satisfy users' demands for diversified desktop layouts.
  • an embodiment of the present application provides a desktop layout method, which includes:
  • N icon regions are determined on the desktop page of the electronic device, wherein each icon region is formed by merging at least one unit block region, N is an integer greater than or equal to 1;
  • the N icon areas are filled with the application icons to generate a target desktop layout.
  • an embodiment of the present application provides a desktop layout device, including:
  • the first determining module is configured to determine N icon regions on the desktop page of the electronic device according to the user's region selection input when the desktop of the electronic device is in the desktop layout setting state, wherein each icon region is composed of at least one icon region.
  • the unit block area is merged, and N is an integer greater than or equal to 1;
  • a second determination module configured to determine the application icons to be placed in the N icon areas
  • a filling module configured to fill the N icon areas with the application icons based on the application icons to be placed to generate a target desktop layout.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product stored in a readable storage medium, where the computer program product is executed by at least one processor to implement the method according to the first aspect.
  • an embodiment of the present application provides a desktop layout device, which is used to execute the method described in the first aspect.
  • N icon regions are determined on the desktop page of the electronic device, wherein each icon region consists of at least one unit block areas are combined, N is an integer greater than or equal to 1; determine the application icons to be placed in the N icon areas; fill the N icon areas based on the application icons to be placed Apply the icon to generate the target desktop layout.
  • users can customize the size of different desktop icon areas according to their preferences, and determine the application icons displayed in different desktop icon areas, so that a personalized desktop layout can be generated.
  • this application provides The desktop layout method has a higher degree of freedom and can meet the diverse and personalized desktop layout needs of users.
  • FIG. 1 is a flowchart of a desktop layout method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of entering a desktop layout setting state provided by an embodiment of the present application
  • 3a is a schematic diagram of determining a merged region according to a selected unit block provided by an embodiment of the present application
  • 3b is a schematic diagram of an operation for dissolving a merged area provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of intelligently filling icons in each icon area provided by an embodiment of the present application.
  • 5a is a schematic diagram of defining different boundary scores provided by an embodiment of the present application.
  • Fig. 5b is one of the schematic diagrams of calculating the score of each icon area provided by the embodiment of the present application.
  • FIG. 5c is the second schematic diagram of calculating the score of each icon area provided by the embodiment of the present application.
  • FIG. 6a is a schematic diagram of a layout design of an exit area provided by an embodiment of the present application.
  • 6b is a schematic diagram of an operation of selecting and filling an icon area with an application icon provided by an embodiment of the present application
  • 7a is a schematic diagram of a desktop layout in which an application icon is placed in each icon area provided by an embodiment of the present application;
  • 7b is a schematic diagram of a desktop layout in which application icons are not placed in some icon areas provided by an embodiment of the present application;
  • FIG. 8 is a schematic diagram of an operation of disbanding a generated desktop layout provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of displaying an application notification message in an icon area with a larger area provided by an embodiment of the present application.
  • Fig. 10a is a schematic diagram of a page after the icons in the original desktop layout page provided by the embodiment of the present application are removed;
  • FIG. 10b is a schematic diagram of a page after icons are removed in a custom desktop layout page provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a desktop layout device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a flowchart of a desktop layout method provided by an embodiment of the present application. As shown in FIG. 1, the method includes the following steps:
  • Step 101 When the desktop of the electronic device is in the desktop layout setting state, according to the user's region selection input, determine N icon regions on the desktop page of the electronic device, wherein each icon region is merged by at least one unit block region. so that N is an integer greater than or equal to 1.
  • the above-mentioned desktop layout setting state may be a state in which the desktop layout can be set, and specifically, the desktop layout setting state can be entered through a trigger operation of the user.
  • the method may further include:
  • the electronic device In the case of receiving the first preset input, the electronic device enters the desktop layout setting state
  • M unit blocks in a selectable state are displayed on the desktop page, where M is an integer greater than 1.
  • the above-mentioned first preset input may be a preset input for triggering entering the desktop layout setting state, for example, it may be a two-finger sliding input or an input to a certain control on the desktop, or the like.
  • M units in the optional state may be displayed on the desktop page of the electronic device.
  • the The original number of desktop pages remains unchanged, and a new blank desktop page is created, and M unit blocks are displayed on the blank desktop page.
  • the icon placement area of the blank desktop page can be evenly divided by the M unit blocks, which can be used by users from Select several unit blocks, and merge the selected unit blocks to obtain the icon area of the desired size.
  • the unit block may be used as the smallest unit identifier for dividing the desktop page, and its size may be consistent with the size of the desktop icon using the existing palace-style desktop layout.
  • a new desktop page can be generated.
  • the newly generated desktop page 20 displays a plurality of uniformly distributed unit blocks 21, and these unit blocks are all in a selectable state.
  • the original form can be maintained, that is, application icons are displayed, and are not optional.
  • the fixed icon areas at the bottom can also be set as optional unit blocks according to needs.
  • the user can select a desired unit block to merge regions according to requirements, thereby obtaining an icon region of a custom size.
  • the user can perform region selection input on the desktop page, and can select the unit block region to be merged from the desktop page.
  • the desktop page can be It is divided into multiple unit block areas, and the user can select at least one unit block area for merging.
  • the area selection input can be a click input, a press input, etc. on a certain unit block area, or it can be on the desktop page.
  • Execute sliding input along the boundary of one or more unit block areas, and the area circled by the sliding track is the selected unit block area.
  • the user can slide on the boundary of two adjacent unit block areas, and the area circled by the sliding track includes these two adjacent unit block areas, so that the two adjacent unit block areas are selected.
  • the selected unit block area can present a selection effect, such as color deepening, display in a specific color, etc.
  • the selected unit block area can be merged based on the selected unit block area to obtain the corresponding icon area. Specifically, according to the location of the selected unit block area, Determine a rectangular area including the selected unit block area as the corresponding icon area, wherein, when the selected unit block area is combined to form a regular rectangular area, the rectangular area can be directly determined as the corresponding icon area , when the selected unit block area is combined to form an irregular area, the missing unit block area can be filled up until a regular rectangular area is formed, and the rectangular area is determined as the corresponding icon area.
  • the boundary of the outermost unit block area may be determined as the boundary of the rectangular area, and the rectangular area formed by the boundary may be determined as the corresponding icon area.
  • the user may determine only one icon area on the desktop page, or may determine multiple icon areas on the desktop page in sequence in the same manner as above, and the sizes of the multiple icon areas may vary. The same, that is, irregular arrangements can be rendered on desktop pages.
  • N icon regions on the desktop page of the electronic device including:
  • a corresponding target icon area is determined, wherein the target icon area is any one of the N icon areas.
  • the user can perform a selection input on the M unit blocks, that is, a desired unit block can be selected from the M unit blocks, and the selection input can be a click input , press input, etc.
  • the user can click any unit block in the M unit blocks, and can click multiple unit blocks in turn, the clicked unit block is the selected unit block, and the selected unit block can be Renders selected effects, such as color burn, display with a specific color, etc.
  • the selected unit block can be merged, that is, the area where the selected unit block is located is merged into a large icon area, and the selected unit block is located in the merged icon area, so that , based on the selected unit block, an icon area formed by merging the selected unit block areas can be determined.
  • the user can select one unit block from the M unit blocks, or select multiple unit blocks. When only one unit block is selected, the corresponding icon area is the unit block area. When multiple unit blocks are selected, the corresponding icon area is the unit block area. , the corresponding icon area can be formed by combining these multiple unit block areas.
  • each unit block located in the icon area from the M unit blocks in turn according to the desired location and size of the icon area, or he can only select the icon.
  • Trigger area merge After the user selects the unit block, the user can trigger the area merging through a trigger input. Trigger area merge.
  • the user can obtain a corresponding target icon area by selecting a desired unit block from the M unit blocks for merging, which is not only easy to operate, but also can obtain an icon of a desired size by merging the selected unit blocks area.
  • determining the corresponding target icon area based on the selected unit block including:
  • each boundary coincides with a boundary of at least one of the selected unit blocks
  • the rectangular area formed by the four boundaries is determined as the corresponding target icon area, wherein the selected unit blocks are all located in the target icon area.
  • the left border of the leftmost unit block in the selected unit block may be the left border of the target icon area to be determined
  • the right border of the rightmost unit block in the selected unit block is the right boundary of the target icon area to be determined
  • the upper boundary of the unit block located at the top in the selected unit block is the upper boundary of the target icon area to be determined
  • the upper boundary of the selected unit block located at the bottom is The lower boundary of the unit block is the lower boundary of the target icon area to be determined, so as to obtain four boundaries of the upper, lower, left, and right of the target icon area.
  • the rectangular area formed by the four borders is the target icon area corresponding to the selected unit block, so that each border of the obtained target icon area coincides with the border of at least one unit block in the selected unit block. , and the selected unit blocks are all located in the target icon area.
  • FIG. 3a a schematic diagram of several target icon regions obtained by merging unit blocks in different positions is given. As can be seen from the figure, the leftmost, rightmost, and most The top and the bottom are the boundaries to determine a maximum merged area to obtain the corresponding target icon area 32 .
  • the corresponding target icon area including the selected unit block can be quickly determined, and through this embodiment, the user only needs to select several unit blocks in the desired icon area. , without selecting all unit blocks within the icon area.
  • the method further includes:
  • the target icon area includes at least two unit blocks
  • the target icon area is dismissed.
  • the area can also be disbanded through a preset touch input to the target icon area, wherein the preset touch input Double-click input, press input, etc. may be used, and the disbanding of the target icon area may be to restore the target icon area to the style before merging, that is, to restore the display of multiple unit blocks.
  • the target icon area 33 can be disbanded, and the disbanded desktop page 30 is shown in the figure on the right.
  • the area can be quickly disbanded through a preset touch input on the icon area.
  • Step 102 Determine the application icons to be placed in the N icon areas.
  • the application icons to be placed in the N icon areas may be further determined, that is, the icon of the application program to be placed in each icon area may be determined respectively.
  • the application icons to be placed in the N icon areas may be further determined, that is, the icon of the application program to be placed in each icon area may be determined respectively.
  • the step 102 includes:
  • An application icon to be placed in each icon area is determined based on the score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop.
  • a second preset input can be executed to trigger the electronic device to intelligently fill the N icon areas with application icons, wherein, The second preset input may be a shake of an electronic device, or a touch control on a desktop page for intelligent filling, or the like.
  • the rule of the intelligent filling may be to determine the application icon to be placed in each icon area according to the score of each icon area in the N icon areas and the usage parameters of the application program corresponding to each application icon on the desktop, For example, the application icons of the more frequently used applications may be placed in the icon area with a higher score, and the application icons of the infrequently used applications may be placed in the icon area with a lower score.
  • the score of each icon area can be determined according to the location of each icon area, the size of the area, etc. For example, the score of different positions and different area sizes can be set, such as the upper or middle position has a higher score, Larger areas have higher scores, and specific rules can be set according to actual needs.
  • the above-mentioned usage parameters may be usage duration, usage frequency, etc., for example, the usage parameters are determined by counting the number of times or duration of applications corresponding to each application icon that are started within a week.
  • the user can realize intelligent filling by shaking the electronic device.
  • the intelligently filled desktop layout 41 is shown in the figure on the right, in the figure
  • the areas marked in black are several icon areas determined by the user, wherein the icon in the figure indicates that an icon is placed.
  • each icon area is determined based on the score of each icon area in the N icon areas and the usage parameters of the application program corresponding to each application icon on the desktop
  • the application icon to be placed in the icon can provide a practical and feasible intelligent filling icon rule.
  • the usage parameter is usage frequency
  • the usage parameter may be the usage frequency.
  • the usage frequency of each application icon on the desktop may be determined by counting the usage times of each application icon in a fixed period, so that when intelligent filling is required, the usage frequency can be determined based on the N
  • the score of the icon area and the use frequency of each application icon on the desktop are used to determine the application icon to be placed in each icon area.
  • the application icons to be placed in the icon area that is, the application icons of the applications with high frequency are placed in the icon area with high scores, and the application icons with low frequency are placed in the icon area with low scores.
  • the score of icon area 1 is higher than the score of icon area 2
  • the score of icon area 2 is higher than the score of icon area 3
  • the frequency of use of application 1 is higher than that of application 2
  • the frequency of use of application 2 is higher than that of application 3.
  • the icon of application 1 can be placed in icon area 1
  • the icon of application 2 can be placed in icon area 2
  • the icon of application 3 can be placed in icon area 3.
  • the determining the score of each icon area in the N icon areas includes:
  • the sum of the first position score and the area score of each icon area is determined as the total score of the corresponding icon area.
  • the location score and area score of each icon area can be calculated separately based on the location and area size of each icon area, and the sum of the two can be used as the total score of each icon area, and then based on each icon area.
  • the total score of the icon area is used to determine the application icon to be placed in each icon area.
  • the score of each border on the desktop page can be defined in advance, and then the position score of each icon area can be determined according to the score corresponding to the upper border of each icon area, and the score can be recorded.
  • Score for the first position For example, as shown in Figure 5a, the horizontal line where the upper boundary of the unit block in the first row is located is denoted as 6 points, the horizontal line where the upper boundary of the unit block in the second row is located is denoted as 5 points, and the upper boundary of the unit block in the third row is denoted as 5 points.
  • the horizontal line is marked as 4 points, and so on.
  • the upper boundary of the icon area A is in the first row, so the position score of the icon area A is 6, and the upper boundary of the icon area B is in the third row, so The location score of icon area B is 4.
  • each unit block included in the icon area has a target score, so the area score of each icon area can be equal to the number of unit blocks included in the icon area multiplied by the target score.
  • each unit block can be scored 1 point, and how many unit blocks an icon area consists of, how many area scores are recorded.
  • the icon area A includes 4 unit blocks, so the area of the icon area A can be scored It is denoted as 4, and the icon area B includes 6 unit blocks, so the area score of the icon area B can be denoted as 6.
  • the sum of the first position score and area score of each icon area can be determined as the total score of the icon area, for example, as shown in Figure 5b , the position score of icon area A is 6, and the area score is 4, so the total score of icon area A is 10, the position score of icon area B is 4, and the area score is 6, so the total score of icon area B is also 10.
  • the score calculation method in this embodiment is simple and easy to implement, so that the score of each icon area can be quickly determined, and the calculation result can more accurately reflect the importance of each icon area.
  • determining the application icon to be placed in each icon area based on the score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop including:
  • the corresponding icon area is determined according to the second position score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop
  • the application to be placed in the corresponding icon area is determined according to the total score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop
  • the icon that is, the application icon of the more frequently used application is preferentially placed with a higher total score.
  • the application to be placed in the corresponding icon area may be determined according to the first position score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop Icons, that is, in the icon areas with the same total score, the icon area with the highest score in the first position is placed first.
  • the total score of both icon area A and icon area B is 10, but the first position score of icon area A is higher than the first position score of icon area B, so icon area A takes precedence over icon area B.
  • the application icons of the applications that are used more frequently will be placed.
  • the second position score of each icon area may be further determined, and the second position score of each icon area and each icon area on the desktop may be further determined.
  • the usage parameters of the application program corresponding to the application icon determine the application icon to be placed in the corresponding icon area, that is, in the icon area with the same total score and the first position score, the icon area with the highest second position score is preferentially placed.
  • the second position score may be determined based on the position of the lower boundary of the icon area.
  • the upper boundaries of the icon area C and the icon area D are both located in the first row, the first position score of both can be recorded as 6, and both the icon area C and the icon area D include two unit blocks , so the area score of both can be recorded as 2, so the icon area C and the icon area D not only have the same first position score, but also have the same total score, both of which are 8.
  • the priority area can be determined based on the scores corresponding to the lower boundaries of the icon area C and the icon area D.
  • the lower boundary of the icon area C is located in the third row, and its second position score can be recorded as 4, and the icon area The lower boundary of D is located in the second row, and its second position score can be recorded as 5, so icon area D takes precedence over icon area C, and application icons of applications that are used more frequently will be placed in icon area D.
  • the probability of occurrence will be smaller. In this case, which icon area can be placed first can be randomly determined, which will not have much impact on the final desktop layout result.
  • the step 102 includes:
  • the application icons to be placed in the N icon areas are determined.
  • the user can completely customize the application icons to be placed in each icon area, that is, you can select the application icons you want to place in each icon area one by one.
  • the user can perform a specific input to exit the area layout design, so as to enter the next step of the user selecting the application icon to be placed in each icon area. For example, as shown in FIG. 6a, the user can Execute two-finger sliding input to exit the area layout design, and generate the desktop page 60 as shown in the figure on the right, then the remaining unit blocks not selected by the user to merge can be formed into independent icon areas. Then, the user can perform icon selection input on the icon areas in the N icon areas respectively to select the application icon to be placed in each icon area, so that the electronic device can determine the N icon areas based on the user's selection. The app icon to be placed.
  • the user can select the application icon to be placed for each icon area on the current desktop page, or only select the application icon to be placed in part of the icon area, and no application can be placed in the icon area where no application icon is selected. icon.
  • determining the application icons to be placed in the N icon areas based on the user's input of icon selection to the icon areas in the N icon areas includes:
  • the first icon area is any one of the N icon areas.
  • the user when the user wants to select an application icon for an icon area, he or she can perform touch input on the icon area.
  • the application icon to be selected is displayed in the target area associated with the icon area, from which the user can select the application icon to be placed, wherein the target area associated with the icon area may be an area located near the icon area, such as An application icon display area pops up below the icon area.
  • the user can select a desired target application icon from a plurality of candidate application icons displayed in the target area, such as clicking on the target application icon, so that the electronic device can determine the target application icon as the target application icon to be placed in the icon area.
  • the application icon is placed, and after the user selects the application icon in an icon area, the application icon can be filled in the icon area.
  • the same operation can be repeated to continue to perform application icon selection in the next icon area until the application icon selection is completed for each icon area where the application icon is to be placed.
  • the user can long press the icon area 61 on the desktop page 60 where the area layout has been completed, so that an icon selection area 62 is expanded under the icon area 61, and the icon selection area 62 can display the current status of the electronic device.
  • the user can select an application icon from the icon selection area 62 and place it in the icon area 61 , and the size of the placed application icon automatically adapts to the icon area 61 .
  • Step 103 Based on the application icons to be placed, fill the N icon areas with the application icons to generate a target desktop layout.
  • the determined application icons may be respectively filled in the corresponding icon areas to complete user-defined desktop layout settings to obtain a personalized desktop layout. Since the size of each icon area may be different, when filling the application icon, the size of the application icon and its icon area can be automatically adapted, that is, the size of the application icon filled in each icon area is the same as the size of the icon area.
  • the user can exit the desktop layout setting by performing a specific input, for example, two fingers can slide down on the desktop page to complete the layout design of the entire desktop, and exit the desktop layout setting state. to generate a new desktop page with user-defined layout settings.
  • the user can choose to fill the application icon for each icon area on the desktop page, or select to fill the application icon only for some icon areas, and some icon areas do not place the application icon, for example, as shown in Figure 7a.
  • the user has selected to place the application icon for each icon area, and after the user performs a two-finger slide input on the desktop page 70, a desktop is generated in which each icon area is filled with application icons as shown in the figure on the right side of the figure.
  • Layout 71 as shown in Figure 7b, the user only selects to place application icons in certain icon areas, when the user performs a two-finger slide input on the desktop page 70, the desktop layout 72 as shown on the right side of the figure can be generated, It can be seen that only the icon area where the application icon is selected is filled with the application icon, and the icon area where the application icon is not selected remains blank.
  • the method further includes:
  • the desktop icon editing state is a state in which application icons in each icon area on the target desktop page can be replaced or deleted;
  • the user can also modify or dissolve the target desktop layout in a specific manner, so as to flexibly meet the diverse needs of the user.
  • the user can perform a third preset input on the target desktop page corresponding to the target desktop layout to enter a desktop icon editing state, in which the user can be supported to edit each icon area on the target desktop page. Change or delete the application icon of , wherein the third preset input may be a two-finger expansion input, a sliding input of a specific sliding track, or the like.
  • the user can also continue to disband the target desktop layout through the fourth preset input, that is, restore the icons on the desktop page to the original palace format layout, wherein the fourth preset
  • the input can be a two-finger expansion input, a control on a touch desktop page to dismiss the desktop layout, and so on.
  • the user can perform two-finger expansion input on the already laid out desktop page 80 to enter the desktop icon editing state.
  • the user can modify or delete the application icon in any of the icon areas.
  • two-finger expansion input again on the desktop page to quickly dissolve the current desktop layout and the desktop page 81 after the dissolution is shown on the right side of the figure.
  • the method further includes:
  • the notification message is displayed in the second icon area, where the second icon area is the N icon areas The icon area whose area is larger than the preset area threshold.
  • the notification message of the application corresponding to the application icon can also be directly displayed in the icon area, so that the user can quickly read the information without entering the application interface. notification message.
  • the application icon 91 on the desktop page 90 occupies a relatively large area, so the application notification message can be directly displayed in the icon area.
  • the method further includes:
  • the first desktop page is filled with the left after the application icon is moved by means of automatic filling. blank space;
  • the position of the icons on the original desktop page will be adjusted, that is, the application icons originally on other desktop pages will be moved to the newly generated desktop page.
  • the blank position left after the application icon on the desktop page is removed can be filled by automatic filling, so as to keep the desktop icon neatly arranged. For example, as shown in FIG. 10a, after an application icon on the desktop page 100 is removed, the application icon behind the application icon is automatically filled forward, and the filled desktop page 101 is shown in the right figure.
  • the blank position left after the application icon is removed can be maintained to maintain the current desktop layout style and avoid the desktop layout being disrupted.
  • Figure 10b after an application icon on the desktop page 102 is removed, the position corresponding to the application icon remains blank, and the desktop page 103 after the icon is removed is shown in the right figure.
  • N icon regions are determined on the desktop page of the electronic device, wherein each icon region is Combining at least one unit block area, N is an integer greater than or equal to 1; determine the application icons to be placed in the N icon areas; based on the application icons to be placed, in the N icon areas
  • the application icons are filled to generate a target desktop layout.
  • users can customize the size of different desktop icon areas according to their preferences, and determine the application icons displayed in different desktop icon areas, so that a personalized desktop layout can be generated.
  • this application provides The desktop layout method has a higher degree of freedom and can meet the diverse and personalized desktop layout needs of users.
  • the execution body may be a desktop layout device, or a control module in the desktop layout device for executing the desktop layout method.
  • the desktop layout device provided by the embodiment of the present application is described by taking the desktop layout device executing the desktop layout method as an example.
  • FIG. 11 is a schematic structural diagram of a desktop layout apparatus provided by an embodiment of the present application. As shown in FIG. 11, the desktop layout apparatus 1100 includes:
  • the first determination module 1101 is configured to determine N icon regions on the desktop page of the electronic device according to the user's region selection input when the desktop of the electronic device is in the desktop layout setting state, wherein each icon region is composed of at least A unit block area is merged, and N is an integer greater than or equal to 1;
  • the second determining module 1102 is configured to determine the application icons to be placed in the N icon areas;
  • the filling module 1103 is configured to fill the N icon areas with the application icons based on the application icons to be placed to generate a target desktop layout.
  • the desktop layout apparatus 1100 further includes:
  • the first processing module is used to enter the desktop layout setting state of the electronic device when receiving the first preset input;
  • M unit blocks in a selectable state are displayed on the desktop page, where M is an integer greater than 1.
  • the first determining module 1101 includes:
  • a first receiving unit configured to receive a user's selection input of the M unit blocks
  • the first determining unit is configured to determine a corresponding target icon area based on the selected unit block, wherein the target icon area is any icon area in the N icon areas.
  • the first determining unit includes:
  • a first determination subunit for determining four boundaries based on the selected unit block, wherein each boundary coincides with the boundary of at least one of the selected unit blocks;
  • the second determination subunit is configured to determine the rectangular area formed by the four borders as the corresponding target icon area, wherein the selected unit blocks are all located in the target icon area.
  • the second determining module 1102 includes:
  • a second receiving unit configured to receive a second preset input from the user
  • a second determining unit configured to, in response to the second preset input, determine the score of each icon area in the N icon areas, and obtain usage parameters of the application corresponding to each application icon on the desktop;
  • the third determining unit is configured to determine the application icon to be placed in each icon area based on the score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop.
  • the usage parameter is usage frequency
  • the third determining unit is configured to, based on the score of each icon area and the use frequency of each application icon on the desktop, and according to the rule of placing application icons of applications with high frequency in the icon area with high scores, Determine the application icons to be placed in each icon area.
  • the second determining unit includes:
  • a third determination subunit for determining the first position score of the corresponding icon area based on the position of the upper boundary of each icon area
  • the fourth determination subunit is used to determine the area score of the corresponding icon area based on the number of unit blocks included in each icon area;
  • the fifth determination subunit is used for determining the sum of the first position score and the area score of each icon area as the total score of the corresponding icon area.
  • the third determining unit includes:
  • the sixth determination subunit is used for, for the icon areas with different total scores among the N icon areas, according to the total score of each icon area and the usage parameters of the application programs corresponding to each application icon on the desktop, to determine the corresponding icon area
  • the seventh determination subunit is used for, for the icon areas with the same total score among the N icon areas, according to the first position score of each icon area and the usage parameter of the application program corresponding to each application icon on the desktop, determine the corresponding The application icon to be placed in the icon area;
  • the eighth determination subunit is used to, for the icon areas with the same total score and the first position score in the N icon areas, according to the second position score of each icon area and the application program corresponding to each application icon on the desktop
  • the usage parameters of determine the application icon to be placed in the corresponding icon area, wherein the second position score of the icon area is determined based on the location of the lower boundary of the icon area.
  • the second determining module 1102 is configured to determine the application icon to be placed in the N icon areas based on the user's input of icon selection to the icon areas in the N icon areas.
  • the second determining module 1102 includes:
  • a first receiving subunit configured to receive a user's touch input on the first icon area in the N icon areas
  • a display subunit configured to display Q candidate application icons in a target area associated with the first icon area in response to the touch input, where Q is a positive integer;
  • a second receiving subunit configured to receive a user's selection input of the target application icon in the Q candidate application icons
  • a ninth determination subunit configured to, in response to the selection input, determine the target application icon as the application icon to be placed in the first icon area
  • the first icon area is any one of the N icon areas.
  • the desktop layout apparatus 1100 further includes:
  • a receiving module configured to receive a user's third preset input on the target desktop page corresponding to the target desktop layout
  • the second processing module is configured to enter the desktop icon editing state in response to the third preset input, wherein the desktop icon editing state is that the application icons in each icon area on the target desktop page can be replaced or the state of deletion;
  • the third processing module is configured to dissolve the target desktop layout in the case of receiving the fourth preset input.
  • the desktop layout apparatus 1100 further includes:
  • a display module configured to display the notification message in the second icon area when the application program corresponding to the application icon in the second icon area receives the notification message, wherein the second icon area is all among the N icon areas, the area of the icon area is greater than the preset area threshold.
  • N icon regions are determined on the desktop page of the electronic device, wherein each icon region Combining at least one unit block area, N is an integer greater than or equal to 1; determine the application icons to be placed in the N icon areas; based on the application icons to be placed, in the N icon areas
  • the application icons are filled to generate a target desktop layout.
  • users can customize the size of different desktop icon areas according to their preferences, and determine the application icons displayed in different desktop icon areas, so that a personalized desktop layout can be generated.
  • this application provides The desktop layout method has a higher degree of freedom and can meet the diverse and personalized desktop layout needs of users.
  • the desktop layout device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the desktop layout device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the desktop layout device provided in the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 1200, including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • an electronic device 1200 including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • the program or instruction is executed by the processor 1201
  • each process of the above-mentioned desktop layout method embodiment can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, and a processor 1310, etc. part.
  • the electronic device 1300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1310 is configured to determine N icon areas on the desktop page of the electronic device according to the user's area selection input when the desktop of the electronic device is in the desktop layout setting state, wherein each icon area is composed of at least A unit block area is merged, and N is an integer greater than or equal to 1;
  • the N icon areas are filled with the application icons to generate a target desktop layout.
  • the processor 1310 is further configured to, in the case of receiving the first preset input, enter the desktop layout setting state of the electronic device;
  • M unit blocks in a selectable state are displayed on the desktop page, where M is an integer greater than 1.
  • the user input unit 1307 is configured to receive the user's selection input for the M unit blocks;
  • the processor 1310 is further configured to determine a corresponding target icon area based on the selected unit block, wherein the target icon area is any icon area in the N icon areas.
  • the processor 1310 is further configured to determine four boundaries based on the selected unit block, wherein each boundary coincides with the boundary of at least one of the selected unit blocks;
  • the rectangular area formed by the four boundaries is determined as the corresponding target icon area, wherein the selected unit blocks are all located in the target icon area.
  • the user input unit 1307 is further configured to receive a second preset input from the user;
  • the processor 1310 is further configured to, in response to the second preset input, determine the score of each icon area in the N icon areas, and obtain usage parameters of the application corresponding to each application icon on the desktop;
  • An application icon to be placed in each icon area is determined based on the score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop.
  • the usage parameter is usage frequency
  • the processor 1310 is further configured to, based on the score of each icon area and the usage frequency of each application icon on the desktop, and according to the rule of placing application icons of applications with high frequency in the icon area with high scores, determine Application icons to be placed in each icon area.
  • the processor 1310 is further configured to determine the first position score of the corresponding icon area based on the position of the upper boundary of each icon area;
  • the sum of the first position score and the area score of each icon area is determined as the total score of the corresponding icon area.
  • the processor 1310 is further configured to, for the icon areas with different total scores among the N icon areas, determine according to the total score of each icon area and the usage parameters of the application corresponding to each application icon on the desktop. Corresponds to the application icon to be placed in the icon area;
  • the corresponding icon area is determined according to the second position score of each icon area and the usage parameters of the application program corresponding to each application icon on the desktop
  • the processor 1310 is further configured to determine the application icon to be placed in the N icon areas based on the user's input of icon selection to the icon areas in the N icon areas.
  • the user input unit 1307 is further configured to receive a user's touch input on the first icon area in the N icon areas;
  • a display unit 1306, configured to display Q to-be-selected application icons in the target area associated with the first icon area in response to the touch input, where Q is a positive integer;
  • the user input unit 1307 is further configured to receive a user's selection input on the target application icon in the Q candidate application icons;
  • the processor 1310 is further configured to, in response to the selection input, determine the target application icon as the application icon to be placed in the first icon area;
  • the first icon area is any one of the N icon areas.
  • the user input unit 1307 is further configured to receive a third preset input from the user on the target desktop page corresponding to the target desktop layout;
  • the processor 1310 is further configured to enter the desktop icon editing state in response to the third preset input, wherein the desktop icon editing state is that the application icons in each icon area on the target desktop page can be replaced or the state of deletion;
  • the display unit 1306 is further configured to display the notification message in the second icon area when the application program corresponding to the application icon in the second icon area receives the notification message, wherein the The second icon area is an icon area whose area is larger than a preset area threshold among the N icon areas.
  • N icon regions are determined on the desktop page of the electronic device, wherein each icon region is composed of At least one unit block area is merged, and N is an integer greater than or equal to 1; determine the application icons to be placed in the N icon areas; based on the application icons to be placed, fill in the N icon areas
  • the application icon generates a target desktop layout.
  • users can customize the size of different desktop icon areas according to their preferences, and determine the application icons displayed in different desktop icon areas, so that a personalized desktop layout can be generated.
  • this application provides The desktop layout method has a higher degree of freedom and can meet the diverse and personalized desktop layout needs of users.
  • the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1307 includes a touch panel 13071 and other input devices 13072 .
  • the touch panel 13071 is also called a touch screen.
  • the touch panel 13071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • Memory 1309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1310.
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above-mentioned desktop layout method embodiments
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above-mentioned desktop layout method embodiments
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM
  • each module of the above device is only a division of logical functions, and in actual implementation, all or part of it may be integrated into a physical entity, or it may be physically separated.
  • These modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of calling software through processing elements, and some modules can be implemented in hardware.
  • the receiving module may be a separately established processing element, or may be integrated into a certain chip of the above-mentioned device to be implemented, in addition, it may also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device Call and execute the function of the above receiving module.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • each module, unit, sub-unit or sub-module may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuit (ASIC), or, one or Multiple microprocessors (digital signal processors, DSP), or, one or more field programmable gate arrays (Field Programmable Gate Array, FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP digital signal processors
  • FPGA Field Programmable Gate Array
  • the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processors that can call program codes.
  • CPU central processing unit
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip

Landscapes

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

Abstract

本申请提供了一种桌面布局方法、装置和电子设备。该方法包括:在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;确定N个图标区域中待放置的应用图标;基于待放置的应用图标,在N个图标区域中填充应用图标,生成目标桌面布局。

Description

桌面布局方法、装置和电子设备
相关申请的交叉引用
本申请主张在2020年09月25日在中国提交的中国专利申请号No.202011025778.X的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种桌面布局方法、装置和电子设备。
背景技术
目前,电子设备桌面上的应用图标大小一致,各应用图标之间呈块状等间隔分布,呈现为宫格式桌面布局。用户自定义桌面时,也只能在原有宫格式布局基础上进行简单设置,例如,更改桌面应用图标的排放行列数,如从4×6(6行4列)更改为5×5或5×6,更改桌面皮肤,删除或添加桌面页面等,无法改变宫格式布局。
可见,现有桌面布局方式较为单一,使得桌面布局自由度较小,难以满足用户多样化、个性化的桌面布局需求。
发明内容
本申请实施例的目的是提供一种桌面布局方法、装置和电子设备,可提高桌面布局的自由度,满足用户对桌面布局多样化的需求。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种桌面布局方法,该方法包括:
在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;
确定所述N个图标区域中待放置的应用图标;
基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标, 生成目标桌面布局。
第二方面,本申请实施例提供了一种桌面布局装置,包括:
第一确定模块,用于在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;
第二确定模块,用于确定所述N个图标区域中待放置的应用图标;
填充模块,用于基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种计算机程序产品,存储在可读存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。
第七方面,本申请实施例提供了一种桌面布局装置,用于执行如第一方面所述的方法。
在本申请实施例中,在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;确定所述N个图标区域中待放置的应用图标;基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。这样,用户可根据喜好自定义不同的桌面图标区域大小,并确定不同桌面图标区域 中显示的应用图标,从而可生成具备个性化的桌面布局,相比现有固定格式的桌面布局,本申请提供的桌面布局方法具备更高的自由度,能够满足用户多样化、个性化的桌面布局需求。
附图说明
图1是本申请实施例提供的一种桌面布局方法的流程图;
图2是本申请实施例提供的进入桌面布局设置状态的示意图;
图3a是本申请实施例提供的根据选择的单位块确定合并区域的示意图;
图3b是本申请实施例提供的解散合并区域的操作示意图;
图4是本申请实施例提供的对各图标区域进行智能填充图标的示意图;
图5a是本申请实施例提供的定义不同边界得分的示意图;
图5b是本申请实施例提供的计算各图标区域得分的示意图之一;
图5c是本申请实施例提供的计算各图标区域得分的示意图之二;
图6a是本申请实施例提供的退出区域布局设计的示意图;
图6b是本申请实施例提供的对图标区域进行应用图标选择和填充的操作示意图;
图7a是本申请实施例提供的每个图标区域均放置应用图标的桌面布局示意图;
图7b是本申请实施例提供的部分图标区域不放置应用图标的桌面布局示意图;
图8是本申请实施例提供的解散已生成的桌面布局的操作示意图;
图9是本申请实施例提供的在面积较大的图标区域显示应用通知消息的示意图;
图10a是本申请实施例提供的原始桌面布局页面中图标被移走后的页面示意图;
图10b是本申请实施例提供的自定义桌面布局页面中图标被移走后的页面示意图;
图11是本申请实施例提供的一种桌面布局装置的结构示意图;
图12是本申请实施例提供的一种电子设备的结构示意图;
图13是本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的桌面布局方法进行详细地说明。
请参见图1,图1为本申请实施例提供的一种桌面布局方法的流程图,如图1所示,该方法包括以下步骤:
步骤101、在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数。
上述桌面布局设置状态可以是可对桌面布局进行设置的状态,具体地,可通过用户的触发操作进入桌面布局设置状态。
也就是说,所述步骤101之前,所述方法还可以包括:
在接收到第一预设输入的情况下,所述电子设备进入桌面布局设置状态;
其中,在所述电子设备的桌面处于所述桌面布局设置状态下,所述桌面页面上显示有M个处于可选状态的单位块,M为大于1的整数。
上述第一预设输入可以是预设的用于触发进入桌面布局设置状态的输入,例如,可以是双指上滑输入或对桌面上某控件的输入等。
在所述电子设备进入桌面布局设置状态后,所述电子设备的桌面页面上可以显示有M个处于可选状态的单位块,具体地,在所述电子设备进入桌面布局设置状态时,可保持原有的桌面页数不变,并新建一个空白桌面页面,在该空白桌面页面上显示M个单位块,该空白桌面页面的图标放置区域可被这M个单位块均匀分割,用于用户从中选择若干个单位块,并对所选择的单位块进行区域合并,以得到期望大小的图标区域。其中,单位块可以作为分割所述桌面页面的最小单位标识,其大小可以与采用现有宫格式桌面布局的桌面图标大小一致。
例如,电子设备进入桌面布局设置状态后,可以新生成一桌面页面,如图2所示,新生成的桌面页面20上显示有多个均匀分布的单位块21,这些单位块均处于可选状态。其中,对于桌面底部固定的若干个应用图标区域,可以保持原有形式,即显示应用图标,且不可选,当然,也可根据需要将底部固定的图标区域设定为可选状态的单位块。
这样,通过在桌面布局设置状态下在桌面页面上显示M个处于可选状态的单位块,可使用户根据需求从中选择期望的单位块进行区域合并,进而得到自定义大小的图标区域。
在所述电子设备进入桌面布局设置状态后,用户可在所述桌面页面上执行区域选择输入,即可从所述桌面页面上选择需要合并的单位块区域,具体地,所述桌面页面可以被划分为多个单位块区域,用户可以从中选择至少一个单位块区域进行合并,所述区域选择输入可以是对某个单位块区域的点击输入、按压输入等,也可以是在所述桌面页面上沿一个或多个单位块区域的边界执行滑动输入,其滑动轨迹所圈选的区域即为所选择的单位块区域。例如,用户可以在两个相邻的单位块区域的边界上滑动,其滑动轨迹所圈选的区域包括这两个相邻的单位块区域,从而选中了这两个相邻的单位块区域。其中,被选中的单位块区域可以呈现选中效果,如颜色加深、使用特定颜色显示等。
在用户选择完单位块区域后,便可基于所选择的单位块区域,对所选择的单位块区域进行合并,得到对应的图标区域,具体地,可以依据所选择的单位块区域所在的位置,确定一包括所选择的单位块区域在内的矩形区域为 对应的图标区域,其中,当所选择的单位块区域组合后形成一规则的矩形区域时,可直接将该矩形区域确定为对应的图标区域,当所选择的单位块区域组合后形成一不规则的区域时,可以补齐所缺失的单位块区域,直至形成一规则的矩形区域,并将该矩形区域确定为对应的图标区域。或者说,可以依据所选择的单位块区域,将位于最外侧的单位块区域的边界确定为矩形区域的边界,并将由该边界组成的矩形区域确定为对应的图标区域。
本申请实施例中,用户可以只在所述桌面页面上确定一个图标区域,也可以使用上述同样的方式在所述桌面页面上依次确定多个图标区域,这多个图标区域的大小可以各不相同,即在桌面页面上可以呈现不规则排列。
可选的,所述根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,包括:
接收用户对M个单位块的选择输入;
基于选中的单位块,确定对应的目标图标区域,其中,所述目标图标区域为所述N个图标区域中的任一图标区域。
该实施方式中,在进入桌面布局设置状态后,用户可对所述M个单位块执行选择输入,即可从所述M个单位块中选择需要的单位块,所述选择输入可以是点击输入、按压输入等,例如,用户可以点击所述M个单位块中的任一单位块,且可以依次点击多个单位块,被点击的单位块即为选中的单位块,被选中的单位块可以呈现选中效果,如颜色加深、使用特定颜色显示等。
在用户选择完单位块后,可以将所选择的单位块进行合并,即将所选择的单位块所在区域合并为一个大的图标区域,所选择的单位块均位于该合并后的图标区域内,这样,可基于所选择的单位块,确定一由所选择的单位块区域合并而成的图标区域。其中,用户可以从所述M个单位块中选择一个单位块,也可以选择多个单位块,当只选择一个单位块时,对应的图标区域即为该单位块区域,当选择多个单位块时,对应的图标区域可以由这多个单位块区域合并而成。
需说明的是,用户在选择单位块时,可以依据期望得到的图标区域位置和大小,从所述M个单位块中依次选中位于该图标区域内的每个单位块,也可以只选中该图标区域内的位于对角的两个单位块或更多单位块。
还需说明的是,用户在选择完单位块后,可通过一触发输入来触发区域合并,例如,可以在任一被选中的单位块上执行长按输入,或者点击桌面页面上的空白处,来触发区域合并。
这样,用户可以通过从所述M个单位块中选择期望的单位块进行合并,来得到对应的目标图标区域,该实施方式不仅易于操作,且能通过合并选择的单位块来得到期望大小的图标区域。
进一步的,所述基于选中的单位块,确定对应的目标图标区域,包括:
基于选中的单位块,确定四条边界,其中,每条边界均与所选择的单位块中的至少一个单位块的边界重合;
将由所述四条边界组成的矩形区域确定为对应的目标图标区域,其中,所选择的单位块均位于所述目标图标区域内。
即该实施方式中,可以以所选择的单位块中位于最左边的单位块的左边界为待确定的目标图标区域的左边界,以所选择的单位块中位于最右边的单位块的右边界为待确定的目标图标区域的右边界,以所选择的单位块中位于最上方的单位块的上边界为待确定的目标图标区域的上边界,以所选择的单位块中位于最下方方的单位块的下边界为待确定的目标图标区域的下边界,从而得到所述目标图标区域的上下左右四条边界。
由所述四条边界组成的矩形区域即为所选择的单位块对应的目标图标区域,这样,所得到的目标图标区域的每条边界均与所选择的单位块中的至少一个单位块的边界重合,且所选择的单位块均位于所述目标图标区域内。
例如,如图3a所示,给出了几种由不同位置的单位块合并后得到的目标图标区域的示意图,由图可见,是分别以被选中的单位块31的最左、最右、最顶部和最底部为边界确定一最大合并区域,来得到对应的目标图标区域32的。
这样,可基于所选择的单位块,快速确定对应的包括所选择的单位块在内的目标图标区域,且通过该实施方式,用户只需选中期望得到的图标区域内的若干个单位块便可,而无需选中图标区域内的所有单位块。
可选的,所述基于选中的单位块,确定对应的目标图标区域之后,所述方法还包括:
接收对所述目标图标区域的预设触控输入,其中,所述目标图标区域中包括至少两个单位块;
响应于所述预设触控输入,解散所述目标图标区域。
也就是说,在用户对选择的多个单位块进行合并得到目标图标区域之后,还可通过对所述目标图标区域的预设触控输入来解散该区域,其中,所述预设触控输入可以双击输入、按压输入等,所述解散所述目标图标区域可以是将所述目标图标区域恢复至合并前的样式,即恢复至显示多个单位块。例如,如图3b所示,当接收到用户双击目标图标区域33的输入时,可以解散目标图标区域33,解散后的桌面页面30如右侧图所示。
这样,当合并后的图标区域非用户所期望时,可以通过对该图标区域的预设触控输入来快速解散该区域。
步骤102、确定所述N个图标区域中待放置的应用图标。
在确定N个图标区域后,可以进一步确定所述N个图标区域中待放置的应用图标,即分别确定每个图标区域中放置哪个应用程序的图标,具体可以有两种不同的确定方式,其一可以是由系统自动确定,实现对所述N个图标区域的智能填充,其二可以由用户自定义确定,即可以由用户依次选择每个图标区域中需放置的应用图标。
一种实施方式中,所述步骤102包括:
接收用户的第二预设输入;
响应于所述第二预设输入,确定所述N个图标区域中每个图标区域的得分,并获取桌面上各应用图标对应的应用程序的使用参数;
基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标。
也就是说,在确定好N个图标区域后,若用户需要智能填充桌面布局,则可以执行第二预设输入,以触发电子设备对所述N个图标区域进行应用图标的智能填充,其中,所述第二预设输入可以是摇一摇电子设备,或触控桌面页面上的用于智能填充的控件等。
所述智能填充的规则可以是根据所述N个图标区域中每个图标区域的得分,以及桌面上各应用图标对应的应用程序的使用参数,来确定每个图标区 域中需放置的应用图标,例如,可以将使用较为频繁的应用程序的应用图标放置在得分较高的图标区域中,将不经常使用的应用程序的应用图标放置在得分较低的图标区域中。
其中,各图标区域的得分可以按照各图标区域所处的位置、区域大小等来确定,例如,可以设定不同位置以及不同区域面积大小的得分,如位置靠上的或靠中间的得分高,区域面积大的得分高等,具体规则可以根据实际需要进行设定。上述使用参数可以是使用时长、使用频率等,如通过统计各应用图标对应的应用程序一周内被启动的次数或时长来确定其使用参数。
例如,如图4所示,在桌面页面40上确定好若干个图标区域后,用户可通过摇一摇电子设备来实现智能填充,智能填充后的桌面布局41如右侧图所示,图中使用黑色标注的区域为用户确定的若干个图标区域,其中,图中icon表示放置有图标。
这样,用户可通过第二预设输入来触发对所述N个图标区域进行智能填充图标,从而无需用户手动选择各图标区域中需放置的应用图标,能够提高桌面布局效率。而且,在对所述N个图标区域进行智能填充时,通过基于所述N个图标区域中每个图标区域的得分和桌面上各应用图标对应的应用程序的使用参数,来确定每个图标区域中待放置的应用图标,可提供一种实用可行的智能填充图标规则。
可选的,所述使用参数为使用频率;
所述基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标,包括:
基于所述每个图标区域的得分和所述桌面上各应用图标的使用频率,并按照得分高的图标区域中放置使用频率高的应用程序的应用图标的规则,确定每个图标区域中待放置的应用图标。
该实施方式中,所述使用参数可以是使用频率,具体可以通过统计桌面上各应用图标在固定周期内的使用次数来确定其使用频率,从而在需要进行智能填充时,可基于所述N个图标区域的得分和所述桌面上各应用图标的使用频率,来确定每个图标区域中待放置的应用图标,具体规则为按照各应用图标的使用频率高低和各图标区域的得分高低,确定每个图标区域中待放置 的应用图标,也就是说,将使用频率高的应用程序的应用图标放置在得分高的图标区域中,使用频率低的应用图标则放置在得分低的图标区域中。
例如,图标区域1的得分大于图标区域2的得分,图标区域2的得分大于图标区域3的得分,应用1的使用频率高于应用2的使用频率,应用2的使用频率高于应用3的使用频率,则可以将应用1的图标放置在图标区域1,应用2的图标放置在图标区域2,应用3的图标放置在图标区域3。
这样,通过按照得分高的图标区域中放置使用频率高的应用程序的应用图标的规则,确定每个图标区域中待放置的应用图标,可保证基于用户的使用习惯进行智能填充,进而保证最终生成的桌面布局较符合用户操作习惯。
可选的,所述确定所述N个图标区域中每个图标区域的得分,包括:
基于每个图标区域的上边界所在位置,确定对应图标区域的第一位置得分;
基于每个图标区域中所包括的单位块数量,确定对应图标区域的面积得分;
将每个图标区域的第一位置得分和面积得分之和确定为对应图标区域的总得分。
即该实施方式中,可以基于各图标区域所处的位置和面积大小,分别计算每个图标区域的位置得分和面积得分,将二者之和作为每个图标区域的总得分,进而依据每个图标区域的总得分来确定各图标区域中待放置的应用图标。
具体地,对于位置得分的计算,可通过预先定义好桌面页面上每条边界的得分,然后根据每个图标区域的上边界对应的得分,确定各图标区域的位置得分,且可将该得分记为第一位置得分。例如,如图5a所示,将第一行的单位块的上边界所在水平线记为6分,第二行的单位块的上边界所在水平线记为5分,第三行的单位块的上边界所在水平线记为4分,以此类推,如图5b所示,图标区域A的上边界处于第一行,故图标区域A的位置得分为6,图标区域B的上边界处于第三行,故图标区域B的位置得分为4。
对于面积得分的计算,可定义图标区域每包括一个单位块记目标分值,因此每个图标区域的面积得分可等于该图标区域中包括的单位块数量乘以目 标分值。例如,可以每一个单位块记1分,一个图标区域由多少单位块组成,则记多少面积得分,如图5b所示,图标区域A包括4个单位块,故可将图标区域A的面积得分记为4,图标区域B包括6个单位块,故可将图标区域B的面积得分记为6。
在确定每个图标区域的第一位置得分和面积得分之和,可以将每个图标区域的第一位置得分和面积得分之和,确定为该图标区域的总得分,例如,如图5b所示,图标区域A的位置得分为6,面积得分记为4,故图标区域A的总得分为10,图标区域B的位置得分为4,面积得分记为6,故图标区域B的总得分也为10。
这样,该实施方式中的得分计算方式简单易于实现,从而可快速地确定每个图标区域的得分,且计算结果能够较为准确反应各图标区域的重要程度。
可选的,所述基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标,包括:
对于所述N个图标区域中总得分不同的图标区域,按照各图标区域的总得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
对于所述N个图标区域中总得分相同的图标区域,按照各图标区域的第一位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
对于所述N个图标区域中总得分和第一位置得分均相同的图标区域,按照各图标区域的第二位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,其中,图标区域的第二位置得分基于图标区域的下边界所在位置确定。
在依据所述N个图标区域的得分确定各图标区域中待放置的应用图标时,可能会存在多个图标区域的得分相同而导致无法确定哪个图标区域优先放置的情况,鉴于此,本实施方式中给出了一种解决方案。
具体为,对于所述N个图标区域中总得分不同的图标区域,按照各图标区域的总得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,也即总得分高的优先放置使用较为频繁的 应用程序的应用图标。
对于所述N个图标区域中总得分相同的图标区域,可按照各图标区域的第一位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,也即总得分相同的图标区域中,第一位置得分高的图标区域的优先放置。例如,如图5b所示,图标区域A和图标区域B的总得分均为10,但图标区域A的第一位置得分高于图标区域B的第一位置得分,故图标区域A优先于图标区域B,图标区域A中将放置使用频率稍高的应用程序的应用图标。当然,该情况下也可根据用户需求,设定以面积得分高的优先放置。
对于所述N个图标区域中总得分和第一位置得分均相同的图标区域,则可进一步确定各图标区域的第二位置得分,并按照各图标区域的第二位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,也即总得分和第一位置得分均相同的图标区域中,第二位置得分高的图标区域的优先放置。其中,第二位置得分可以基于图标区域的下边界所在位置确定。
例如,如图5c所示,图标区域C和图标区域D的上边界均位于第一行,二者的第一位置得分均可记为6,图标区域C和图标区域D均包括两个单位块,故二者的面积得分均可记为2,故图标区域C和图标区域D不仅第一位置得分相同,而且总得分也相同,均为8。此时可基于图标区域C和图标区域D的下边界对应的得分,来确定优先区域,由图可见,图标区域C的下边界位于第三行,其第二位置得分可记为4,图标区域D的下边界位于第二行,其第二位置得分可记为5,故图标区域D优先于图标区域C,图标区域D中将放置使用频率稍高的应用程序的应用图标。
需说明的是,对于第二位置得分也相同的情况,出现概率会更小,对于此种情况可以随机确定哪个图标区域优先放置,对最终的桌面布局结果不会产生太大影响。
这样,通过该实施方式,为存在得分相同的图标区域提供了一种有效可行的确定待放置应用图标的方案。
另一种实施方式中,所述步骤102包括:
基于用户对所述N个图标区域中的图标区域的图标选择输入,确定所述N个图标区域中待放置的应用图标。
也就是说,在确定好N个图标区域后,用户可以完全自定义每个图标区域中需放置的应用图标,即可以一一选择每个图标区域中想要放置的应用图标。
具体地,在确定好图标区域后,用户可以执行特定输入来退出区域布局设计,以进入下一步的用户选择各图标区域中待放置的应用图标的步骤,例如,如图6a所示,用户可以执行双指下滑输入,来退出区域布局设计,并生成如右侧图所示的桌面页面60,即可将用户未选择合并的剩余单位块形成独立的图标区域。接着,用户可以分别对所述N个图标区域中的图标区域执行图标选择输入,以选择各图标区域中需放置的应用图标,从而电子设备可以基于用户的选择,确定所述N个图标区域中待放置的应用图标。
需说明的是,用户可以对当前桌面页面上的每个图标区域均选择待放置应用图标,也可以只对部分图标区域选择待放置的应用图标,对于没有选择应用图标的图标区域可以不放置应用图标。
这样,用户也可以根据自身需求,设置各图标区域中放置的应用,进而生成自己喜欢的桌面布局,且该新颖独特的桌面布局方式还能够增进用户的体验感。
进一步的,所述基于用户对所述N个图标区域中的图标区域的图标选择输入,确定所述N个图标区域中待放置的应用图标,包括:
接收用户对所述N个图标区域中的第一图标区域的触控输入;
响应于所述触控输入,在与所述第一图标区域关联的目标区域显示Q个待选应用图标,其中,Q为正整数;
接收用户对所述Q个待选应用图标中的目标应用图标的选择输入;
响应于所述选择输入,将所述目标应用图标确定为所述第一图标区域中待放置的应用图标;
其中,所述第一图标区域为所述N个图标区域中的任一图标区域。
即该实施方式中,当用户想要对某个图标区域进行应用图标选择时,可以对该图标区域执行触控输入,如长按该图标区域,电子设备在接收到该触 控输入后,可以在与该图标区域关联的目标区域中显示待选的应用图标,供用户从中选择需放置的应用图标,其中,所述与该图标区域关联的目标区域可以是位于该图标区域附近的区域,如在该图标区域的下方弹出一应用图标展示区域。
然后,用户可以从所述目标区域中显示的多个待选应用图标中选择期望放置的目标应用图标,如点击目标应用图标,从而电子设备可将所述目标应用图标确定为该图标区域中待放置的应用图标,并且可在用户选择完某个图标区域中的应用图标后,便将该应用图标填充在该图标区域中。
在用户选择完一个图标区域中的应用图标后,可以重复相同的操作,继续对下一个图标区域进行应用图标选择,直至完成对每个想要放置应用图标的图标区域的应用图标选择。
例如,如图6b所示,用户可以在已完成区域布局的桌面页面60中长按图标区域61,从而在该图标区域61下方展开一图标选择区域62,图标选择区域62中可展示电子设备当前已安装的应用程序的应用图标,用户可从图标选择区域62中选择一应用图标,放置在图标区域61,放置的应用图标大小自动适配图标区域61。
这样,用户可以根据自身需求,选择各图标区域中放置的应用,可实现将期望的应用图标放置在期望的位置,生成自己喜欢的桌面布局。
步骤103、基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。
在确定所述N个图标区域中待放置的应用图标,可以将所确定的应用图标分别填入对应的图标区域中,完成用户自定义桌面布局设置,得到个性化的桌面布局。其中,由于各图标区域的大小可能各不相同,从而在填充应用图标时,可将应用图标大小与其图标区域自动适配,即各图标区域中填充的应用图标大小与其图标区域大小一致。
并且在对所述N个图标区域填充完应用图标后,用户可以通过执行特定输入来退出桌面布局设置,例如,可以在桌面页面上双指下滑,完成整个桌面的布局设计,退出桌面布局设置状态,生成一页经过用户自定义布局设置的新桌面页面。
需说明的是,用户可以对桌面页面上的每个图标区域均选择填充应用图标,也可以只对某些图标区域选择填充应用图标,而某些图标区域不放置应用图标,例如,如图7a所示,用户对每个图标区域均选择了放置应用图标,当用户在桌面页面70上执行双指下滑输入后,生成如图右侧图所示的每个图标区域均填充有应用图标的桌面布局71;如图7b所示,用户只对某些图标区域选择了放置应用图标,当用户在桌面页面70上执行双指下滑输入后,可生成如图右侧图所示的桌面布局72,可见,只有选择了放置应用图标的图标区域填充有应用图标,未选择放置应用图标的图标区域保持空白。
可选的,所述步骤103之后,所述方法还包括:
接收用户在所述目标桌面布局对应的目标桌面页面上的第三预设输入;
响应于所述第三预设输入,进入桌面图标编辑状态,其中,所述桌面图标编辑状态为可对所述目标桌面页面上各图标区域中的应用图标进行更换或删除的状态;
在接收到第四预设输入的情况下,解散所述目标桌面布局。
该实施方式中,在生成好所述目标桌面布局后,用户也可以通过特定方式来修改或解散所述目标桌面布局,以灵活满足用户的多样化需求。
具体地,用户可以在所述目标桌面布局对应的目标桌面页面上执行第三预设输入,以进入桌面图标编辑状态,在该状态下,可支持用户对所述目标桌面页面上各图标区域中的应用图标进行更改或删除,其中,所述第三预设输入可以是双指展开输入、特定滑动轨迹的滑动输入等。
而在所述桌面图标编辑状态下,用户也可以继续通过第四预设输入来解散所述目标桌面布局,即将该桌面页面上的图标恢复至原始宫格式布局,其中,所述第四预设输入可以是双指展开输入、触控桌面页面上用于解散桌面布局的控件等。
例如,如图8所示,用户可在已布局好的桌面页面80上执行双指展开输入,进入桌面图标编辑状态,在该状态下,用户可修改或删除其中任一图标区域中的应用图标,也可在桌面页面上再次执行双指展开输入,即可实现快速解散当前桌面布局,解散后的桌面页面81如图右侧图所示。
这样,对于已生成好的个性化桌面布局,可支持用户修改或解散,以满 足用户的多样化需求。
可选的,所述步骤103之后,所述方法还包括:
在第二图标区域中的应用图标对应的应用程序接收到通知消息的情况下,在所述第二图标区域中显示所述通知消息,其中,所述第二图标区域为所述N个图标区域中面积大于预设面积阈值的图标区域。
也就是说,对于面积占据比较大的图标区域,还可以将其中的应用图标对应的应用程序的通知消息直接外显在该图标区域中,这样,用户无需进入应用界面,便可快速读取到通知消息。
例如,如图9所示,桌面页面90上应用图标91占据比较大的面积,故可以直接在其图标区域中显示其应用通知消息。
这样,通过将图标区域比较大的应用的通知消息直接显示在其图标区域中,可方便用户快速阅读和处理通知消息。
可选的,所述步骤103之后,所述方法还包括:
在使用原始桌面布局的第一桌面页面中存在应用图标被移动至所生成的目标桌面页面的情况下,对所述第一桌面页面采用自动补位的方式填补应用图标被移走后留下的空白位置;
在使用所述目标桌面布局的第二桌面页面中存在应用图标被移动至所生成的目标桌面页面的情况下,将所述第二桌面页面中被移走的应用图标位置保持空白。
在布局生成新桌面页面时,会涉及到原桌面页面上的图标位置的调整,即会将原来在其他桌面页面的应用图标移动至新生成的桌面页面。这样,对于采用原始桌面布局的桌面页面,若存在应用图标被移走,则可以采用自动补位的方式填补其桌面页面上的应用图标被移走后留下的空白位置,以保持桌面图标的整齐排放。例如,如图10a所示,桌面页面100上的某个应用图标被移走后,位于该应用图标后面的应用图标自动向前补位,补位后的桌面页面101如右侧图所示。
而对于采用个性化桌面布局的桌面页面,若存在应用图标被移走,则可以保持该应用图标被移走后留下的空白位置,以保持当前桌面布局风格,避免桌面布局被打乱。例如,如图10b所示,桌面页面102上的某个应用图标 被移走后,该应用图标对应的位置处保持空白,移走图标后的桌面页面103如右侧图所示。
这样,通过该实施方式,在桌面布局时,既可保证采用原始桌面布局的桌面页面保持整洁,又可保持使用所述目标桌面布局的桌面页面的布局风格不受破坏。
本申请实施例中的桌面布局方法,在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;确定所述N个图标区域中待放置的应用图标;基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。这样,用户可根据喜好自定义不同的桌面图标区域大小,并确定不同桌面图标区域中显示的应用图标,从而可生成具备个性化的桌面布局,相比现有固定格式的桌面布局,本申请提供的桌面布局方法具备更高的自由度,能够满足用户多样化、个性化的桌面布局需求。
需要说明的是,本申请实施例提供的桌面布局方法,执行主体可以为桌面布局装置,或者该桌面布局装置中的用于执行桌面布局方法的控制模块。本申请实施例中以桌面布局装置执行桌面布局方法为例,说明本申请实施例提供的桌面布局装置。
请参见图11,图11为本申请实施例提供的桌面布局装置的结构示意图,如图11所示,桌面布局装置1100包括:
第一确定模块1101,用于在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;
第二确定模块1102,用于确定所述N个图标区域中待放置的应用图标;
填充模块1103,用于基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。
可选的,桌面布局装置1100还包括:
第一处理模块,用于在接收到第一预设输入的情况下,所述电子设备进 入桌面布局设置状态;
其中,在所述电子设备的桌面处于所述桌面布局设置状态下,所述桌面页面上显示有M个处于可选状态的单位块,M为大于1的整数。
可选的,第一确定模块1101包括:
第一接收单元,用于接收用户对M个单位块的选择输入;
第一确定单元,用于基于选中的单位块,确定对应的目标图标区域,其中,所述目标图标区域为所述N个图标区域中的任一图标区域。
可选的,所述第一确定单元包括:
第一确定子单元,用于基于选中的单位块,确定四条边界,其中,每条边界均与所选择的单位块中的至少一个单位块的边界重合;
第二确定子单元,用于将由所述四条边界组成的矩形区域确定为对应的目标图标区域,其中,所选择的单位块均位于所述目标图标区域内。
可选的,第二确定模块1102包括:
第二接收单元,用于接收用户的第二预设输入;
第二确定单元,用于响应于所述第二预设输入,确定所述N个图标区域中每个图标区域的得分,并获取桌面上各应用图标对应的应用程序的使用参数;
第三确定单元,用于基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标。
可选的,所述使用参数为使用频率;
所述第三确定单元用于基于所述每个图标区域的得分和所述桌面上各应用图标的使用频率,并按照得分高的图标区域中放置使用频率高的应用程序的应用图标的规则,确定每个图标区域中待放置的应用图标。
可选的,所述第二确定单元包括:
第三确定子单元,用于基于每个图标区域的上边界所在位置,确定对应图标区域的第一位置得分;
第四确定子单元,用于基于每个图标区域中所包括的单位块数量,确定对应图标区域的面积得分;
第五确定子单元,用于将每个图标区域的第一位置得分和面积得分之和 确定为对应图标区域的总得分。
可选的,所述第三确定单元包括:
第六确定子单元,用于对于所述N个图标区域中总得分不同的图标区域,按照各图标区域的总得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
第七确定子单元,用于对于所述N个图标区域中总得分相同的图标区域,按照各图标区域的第一位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
第八确定子单元,用于对于所述N个图标区域中总得分和第一位置得分均相同的图标区域,按照各图标区域的第二位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,其中,图标区域的第二位置得分基于图标区域的下边界所在位置确定。
可选的,第二确定模块1102用于基于用户对所述N个图标区域中的图标区域的图标选择输入,确定所述N个图标区域中待放置的应用图标。
可选的,第二确定模块1102包括:
第一接收子单元,用于接收用户对所述N个图标区域中的第一图标区域的触控输入;
显示子单元,用于响应于所述触控输入,在与所述第一图标区域关联的目标区域显示Q个待选应用图标,其中,Q为正整数;
第二接收子单元,用于接收用户对所述Q个待选应用图标中的目标应用图标的选择输入;
第九确定子单元,用于响应于所述选择输入,将所述目标应用图标确定为所述第一图标区域中待放置的应用图标;
其中,所述第一图标区域为所述N个图标区域中的任一图标区域。
可选的,桌面布局装置1100还包括:
接收模块,用于接收用户在所述目标桌面布局对应的目标桌面页面上的第三预设输入;
第二处理模块,用于响应于所述第三预设输入,进入桌面图标编辑状态,其中,所述桌面图标编辑状态为可对所述目标桌面页面上各图标区域中的应 用图标进行更换或删除的状态;
第三处理模块,用于在接收到第四预设输入的情况下,解散所述目标桌面布局。
可选的,桌面布局装置1100还包括:
显示模块,用于在第二图标区域中的应用图标对应的应用程序接收到通知消息的情况下,在所述第二图标区域中显示所述通知消息,其中,所述第二图标区域为所述N个图标区域中面积大于预设面积阈值的图标区域。
本申请实施例中的桌面布局装置,在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;确定所述N个图标区域中待放置的应用图标;基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。这样,用户可根据喜好自定义不同的桌面图标区域大小,并确定不同桌面图标区域中显示的应用图标,从而可生成具备个性化的桌面布局,相比现有固定格式的桌面布局,本申请提供的桌面布局方法具备更高的自由度,能够满足用户多样化、个性化的桌面布局需求。
本申请实施例中的桌面布局装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的桌面布局装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的桌面布局装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图12所示,本申请实施例还提供一种电子设备1200,包括处理器1201,存储器1202,存储在存储器1202上并可在所述处理器1201上运行的程序或指令,该程序或指令被处理器1201执行时实现上述桌面布局方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图13为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1300包括但不限于:射频单元1301、网络模块1302、音频输出单元1303、输入单元1304、传感器1305、显示单元1306、用户输入单元1307、接口单元1308、存储器1309、以及处理器1310等部件。
本领域技术人员可以理解,电子设备1300还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器1310,用于在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;
确定所述N个图标区域中待放置的应用图标;
基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。
可选的,处理器1310,还用于在接收到第一预设输入的情况下,所述电子设备进入桌面布局设置状态;
其中,在所述电子设备的桌面处于所述桌面布局设置状态下,所述桌面页面上显示有M个处于可选状态的单位块,M为大于1的整数。
可选的,用户输入单元1307,用于接收用户对M个单位块的选择输入;
处理器1310,还用于基于选中的单位块,确定对应的目标图标区域,其 中,所述目标图标区域为所述N个图标区域中的任一图标区域。
可选的,处理器1310,还用于基于选中的单位块,确定四条边界,其中,每条边界均与所选择的单位块中的至少一个单位块的边界重合;
将由所述四条边界组成的矩形区域确定为对应的目标图标区域,其中,所选择的单位块均位于所述目标图标区域内。
可选的,用户输入单元1307,还用于接收用户的第二预设输入;
处理器1310,还用于响应于所述第二预设输入,确定所述N个图标区域中每个图标区域的得分,并获取桌面上各应用图标对应的应用程序的使用参数;
基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标。
可选的,所述使用参数为使用频率;
处理器1310,还用于基于所述每个图标区域的得分和所述桌面上各应用图标的使用频率,并按照得分高的图标区域中放置使用频率高的应用程序的应用图标的规则,确定每个图标区域中待放置的应用图标。
可选的,处理器1310,还用于基于每个图标区域的上边界所在位置,确定对应图标区域的第一位置得分;
基于每个图标区域中所包括的单位块数量,确定对应图标区域的面积得分;
将每个图标区域的第一位置得分和面积得分之和确定为对应图标区域的总得分。
可选的,处理器1310,还用于对于所述N个图标区域中总得分不同的图标区域,按照各图标区域的总得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
对于所述N个图标区域中总得分相同的图标区域,按照各图标区域的第一位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
对于所述N个图标区域中总得分和第一位置得分均相同的图标区域,按照各图标区域的第二位置得分和所述桌面上各应用图标对应的应用程序的使 用参数,确定对应图标区域中待放置的应用图标,其中,图标区域的第二位置得分基于图标区域的下边界所在位置确定。
可选的,处理器1310,还用于基于用户对所述N个图标区域中的图标区域的图标选择输入,确定所述N个图标区域中待放置的应用图标。
可选的,用户输入单元1307,还用于接收用户对所述N个图标区域中的第一图标区域的触控输入;
显示单元1306,用于响应于所述触控输入,在与所述第一图标区域关联的目标区域显示Q个待选应用图标,其中,Q为正整数;
用户输入单元1307,还用于接收用户对所述Q个待选应用图标中的目标应用图标的选择输入;
处理器1310,还用于响应于所述选择输入,将所述目标应用图标确定为所述第一图标区域中待放置的应用图标;
其中,所述第一图标区域为所述N个图标区域中的任一图标区域。
可选的,用户输入单元1307,还用于接收用户在所述目标桌面布局对应的目标桌面页面上的第三预设输入;
处理器1310,还用于响应于所述第三预设输入,进入桌面图标编辑状态,其中,所述桌面图标编辑状态为可对所述目标桌面页面上各图标区域中的应用图标进行更换或删除的状态;
在接收到第四预设输入的情况下,解散所述目标桌面布局。
可选的,显示单元1306,还用于在第二图标区域中的应用图标对应的应用程序接收到通知消息的情况下,在所述第二图标区域中显示所述通知消息,其中,所述第二图标区域为所述N个图标区域中面积大于预设面积阈值的图标区域。
本申请实施例中的电子设备,在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;确定所述N个图标区域中待放置的应用图标;基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。这样,用户可根据喜好自定义不同的桌面图标区域大小,并确定不同桌面图 标区域中显示的应用图标,从而可生成具备个性化的桌面布局,相比现有固定格式的桌面布局,本申请提供的桌面布局方法具备更高的自由度,能够满足用户多样化、个性化的桌面布局需求。
应理解的是,本申请实施例中,输入单元1304可以包括图形处理器(Graphics Processing Unit,GPU)13041和麦克风13042,图形处理器13041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1306可包括显示面板13061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板13061。用户输入单元1307包括触控面板13071以及其他输入设备13072。触控面板13071,也称为触摸屏。触控面板13071可包括触摸检测装置和触摸控制器两个部分。其他输入设备13072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1309可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1310中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述桌面布局方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述桌面布局方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
应理解以上设备的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如,接收模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上接收模块的功能。其它模块的实现与之类似。此外,这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,各个模块、单元、子单元或子模块可以是被配置成实施以上方法 的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (25)

  1. 一种桌面布局方法,包括:
    在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;
    确定所述N个图标区域中待放置的应用图标;
    基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。
  2. 根据权利要求1所述的方法,其中,所述根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域之前,所述方法还包括:
    在接收到第一预设输入的情况下,所述电子设备进入桌面布局设置状态;
    其中,在所述电子设备的桌面处于所述桌面布局设置状态下,所述桌面页面上显示有M个处于可选状态的单位块,M为大于1的整数。
  3. 根据权利要求2所述的方法,其中,所述根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,包括:
    接收用户对M个单位块的选择输入;
    基于选中的单位块,确定对应的目标图标区域,其中,所述目标图标区域为所述N个图标区域中的任一图标区域。
  4. 根据权利要求3所述的方法,其中,所述基于选中的单位块,确定对应的目标图标区域,包括:
    基于选中的单位块,确定四条边界,其中,每条边界均与所选择的单位块中的至少一个单位块的边界重合;
    将由所述四条边界组成的矩形区域确定为对应的目标图标区域,其中,所选择的单位块均位于所述目标图标区域内。
  5. 根据权利要求1所述的方法,其中,所述确定所述N个图标区域中待放置的应用图标,包括:
    接收用户的第二预设输入;
    响应于所述第二预设输入,确定所述N个图标区域中每个图标区域的得 分,并获取桌面上各应用图标对应的应用程序的使用参数;
    基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标。
  6. 根据权利要求5所述的方法,其中,所述使用参数为使用频率;
    所述基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标,包括:
    基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用频率,并按照得分高的图标区域中放置使用频率高的应用程序的应用图标的规则,确定每个图标区域中待放置的应用图标。
  7. 根据权利要求5所述的方法,其中,所述确定所述N个图标区域中每个图标区域的得分,包括:
    基于每个图标区域的上边界所在位置,确定对应图标区域的第一位置得分;
    基于每个图标区域中所包括的单位块数量,确定对应图标区域的面积得分;
    将每个图标区域的第一位置得分和面积得分之和确定为对应图标区域的总得分。
  8. 根据权利要求7所述的方法,其中,所述基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标,包括:
    对于所述N个图标区域中总得分不同的图标区域,按照各图标区域的总得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
    对于所述N个图标区域中总得分相同的图标区域,按照各图标区域的第一位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
    对于所述N个图标区域中总得分和第一位置得分均相同的图标区域,按照各图标区域的第二位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,其中,图标区域的第二位 置得分基于图标区域的下边界所在位置确定。
  9. 根据权利要求1所述的方法,其中,所述确定所述N个图标区域中待放置的应用图标,包括:
    接收用户对所述N个图标区域中的第一图标区域的触控输入;
    响应于所述触控输入,在与所述第一图标区域关联的目标区域显示Q个待选应用图标,其中,Q为正整数;
    接收用户对所述Q个待选应用图标中的目标应用图标的选择输入;
    响应于所述选择输入,将所述目标应用图标确定为所述第一图标区域中待放置的应用图标;
    其中,所述第一图标区域为所述N个图标区域中的任一图标区域。
  10. 根据权利要求1所述的方法,其中,所述在所述N个图标区域中填充所述应用图标,生成目标桌面布局之后,所述方法还包括:
    在第二图标区域中的应用图标对应的应用程序接收到通知消息的情况下,在所述第二图标区域中显示所述通知消息,其中,所述第二图标区域为所述N个图标区域中面积大于预设面积阈值的图标区域。
  11. 一种桌面布局装置,包括:
    第一确定模块,用于在电子设备的桌面处于桌面布局设置状态下,根据用户的区域选择输入,在所述电子设备的桌面页面上确定N个图标区域,其中,每个图标区域由至少一个单位块区域合并而成,N为大于或等于1的整数;
    第二确定模块,用于确定所述N个图标区域中待放置的应用图标;
    填充模块,用于基于所述待放置的应用图标,在所述N个图标区域中填充所述应用图标,生成目标桌面布局。
  12. 根据权利要求11所述的桌面布局装置,还包括:
    第一处理模块,用于在接收到第一预设输入的情况下,所述电子设备进入桌面布局设置状态;
    其中,在所述电子设备的桌面处于所述桌面布局设置状态下,所述桌面页面上显示有M个处于可选状态的单位块,M为大于1的整数。
  13. 根据权利要求12所述的桌面布局装置,其中,所述第一确定模块包 括:
    第一接收单元,用于接收用户对M个单位块的选择输入;
    第一确定单元,用于基于选中的单位块,确定对应的目标图标区域,其中,所述目标图标区域为所述N个图标区域中的任一图标区域。
  14. 根据权利要求13所述的桌面布局装置,其中,所述第一确定单元包括:
    第一确定子单元,用于基于选中的单位块,确定四条边界,其中,每条边界均与所选择的单位块中的至少一个单位块的边界重合;
    第二确定子单元,用于将由所述四条边界组成的矩形区域确定为对应的目标图标区域,其中,所选择的单位块均位于所述目标图标区域内。
  15. 根据权利要求11所述的桌面布局装置,其中,所述第二确定模块包括:
    第二接收单元,用于接收用户的第二预设输入;
    第二确定单元,用于响应于所述第二预设输入,确定所述N个图标区域中每个图标区域的得分,并获取桌面上各应用图标对应的应用程序的使用参数;
    第三确定单元,用于基于所述每个图标区域的得分和所述桌面上各应用图标对应的应用程序的使用参数,确定每个图标区域中待放置的应用图标。
  16. 根据权利要求15所述的桌面布局装置,其中,所述使用参数为使用频率;
    所述第三确定单元用于基于所述每个图标区域的得分和所述桌面上各应用图标的使用频率,并按照得分高的图标区域中放置使用频率高的应用程序的应用图标的规则,确定每个图标区域中待放置的应用图标。
  17. 根据权利要求15所述的桌面布局装置,其中,所述第二确定单元包括:
    第三确定子单元,用于基于每个图标区域的上边界所在位置,确定对应图标区域的第一位置得分;
    第四确定子单元,用于基于每个图标区域中所包括的单位块数量,确定对应图标区域的面积得分;
    第五确定子单元,用于将每个图标区域的第一位置得分和面积得分之和确定为对应图标区域的总得分。
  18. 根据权利要求17所述的桌面布局装置,其中,所述第三确定单元包括:
    第六确定子单元,用于对于所述N个图标区域中总得分不同的图标区域,按照各图标区域的总得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
    第七确定子单元,用于对于所述N个图标区域中总得分相同的图标区域,按照各图标区域的第一位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标;
    第八确定子单元,用于对于所述N个图标区域中总得分和第一位置得分均相同的图标区域,按照各图标区域的第二位置得分和所述桌面上各应用图标对应的应用程序的使用参数,确定对应图标区域中待放置的应用图标,其中,图标区域的第二位置得分基于图标区域的下边界所在位置确定。
  19. 根据权利要求11所述的桌面布局装置,其中,所述第二确定模块包括:
    第一接收子单元,用于接收用户对所述N个图标区域中的第一图标区域的触控输入;
    显示子单元,用于响应于所述触控输入,在与所述第一图标区域关联的目标区域显示Q个待选应用图标,其中,Q为正整数;
    第二接收子单元,用于接收用户对所述Q个待选应用图标中的目标应用图标的选择输入;
    第九确定子单元,用于响应于所述选择输入,将所述目标应用图标确定为所述第一图标区域中待放置的应用图标;
    其中,所述第一图标区域为所述N个图标区域中的任一图标区域。
  20. 根据权利要求11所述的桌面布局装置,还包括:
    显示模块,用于在第二图标区域中的应用图标对应的应用程序接收到通知消息的情况下,在所述第二图标区域中显示所述通知消息,其中,所述第二图标区域为所述N个图标区域中面积大于预设面积阈值的图标区域。
  21. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-10中任一项所述的桌面布局方法的步骤。
  22. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-10中任一项所述的桌面布局方法的步骤。
  23. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-10中任一项所述的桌面布局方法的步骤。
  24. 一种计算机程序产品,存储在可读存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-10中任一项所述的桌面布局方法的步骤。
  25. 一种桌面布局装置,用于执行如权利要求1-10中任一项所述的桌面布局方法的步骤。
PCT/CN2021/119285 2020-09-25 2021-09-18 桌面布局方法、装置和电子设备 WO2022063074A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21871444.2A EP4220387A4 (en) 2020-09-25 2021-09-18 DESKTOP LAYOUT METHOD AND APPARATUS, AND ELECTRONIC DEVICE
US18/187,118 US20230221846A1 (en) 2020-09-25 2023-03-21 Desktop layout method and apparatus, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011025778.X 2020-09-25
CN202011025778.XA CN112148405A (zh) 2020-09-25 2020-09-25 桌面布局方法、装置和电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/187,118 Continuation US20230221846A1 (en) 2020-09-25 2023-03-21 Desktop layout method and apparatus, and electronic device

Publications (1)

Publication Number Publication Date
WO2022063074A1 true WO2022063074A1 (zh) 2022-03-31

Family

ID=73897288

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119285 WO2022063074A1 (zh) 2020-09-25 2021-09-18 桌面布局方法、装置和电子设备

Country Status (4)

Country Link
US (1) US20230221846A1 (zh)
EP (1) EP4220387A4 (zh)
CN (1) CN112148405A (zh)
WO (1) WO2022063074A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148405A (zh) * 2020-09-25 2020-12-29 维沃移动通信有限公司 桌面布局方法、装置和电子设备
CN113342232A (zh) * 2021-06-30 2021-09-03 维沃移动通信有限公司 图标生成方法、装置、电子设备和可读存储介质
CN113778277A (zh) * 2021-08-27 2021-12-10 维沃移动通信(杭州)有限公司 应用图标管理方法、装置及电子设备
CN114020381B (zh) * 2021-10-29 2024-03-22 青岛海信移动通信技术有限公司 一种终端设备、插件部署方法和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207750A (zh) * 2012-01-17 2013-07-17 腾讯科技(深圳)有限公司 图标缩放的方法及装置
US20140013256A1 (en) * 2011-03-10 2014-01-09 Tencent Technology (Shenzhen) Company Limited Method and system for dynamic modification of desktop layout and computer storage medium thereof
CN103914211A (zh) * 2014-04-04 2014-07-09 华为终端有限公司 界面元素的自动调整方法和装置
CN110442277A (zh) * 2019-07-03 2019-11-12 华为技术有限公司 显示预览窗口信息的方法及电子设备
CN112148405A (zh) * 2020-09-25 2020-12-29 维沃移动通信有限公司 桌面布局方法、装置和电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9104290B2 (en) * 2011-02-11 2015-08-11 Samsung Electronics Co., Ltd. Method for controlling screen of mobile terminal
CN104360798B (zh) * 2014-10-29 2018-05-15 宇龙计算机通信科技(深圳)有限公司 一种桌面布局的方法和终端
CN105094557B (zh) * 2015-07-27 2019-06-25 联想(北京)有限公司 一种显示控制方法及装置、电子设备
CN106843652A (zh) * 2017-01-22 2017-06-13 深圳市金立通信设备有限公司 图标显示方法、及终端设备
CN108121485A (zh) * 2017-11-10 2018-06-05 深圳市金立通信设备有限公司 一种图标整理方法、终端及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140013256A1 (en) * 2011-03-10 2014-01-09 Tencent Technology (Shenzhen) Company Limited Method and system for dynamic modification of desktop layout and computer storage medium thereof
CN103207750A (zh) * 2012-01-17 2013-07-17 腾讯科技(深圳)有限公司 图标缩放的方法及装置
CN103914211A (zh) * 2014-04-04 2014-07-09 华为终端有限公司 界面元素的自动调整方法和装置
CN110442277A (zh) * 2019-07-03 2019-11-12 华为技术有限公司 显示预览窗口信息的方法及电子设备
CN112148405A (zh) * 2020-09-25 2020-12-29 维沃移动通信有限公司 桌面布局方法、装置和电子设备

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP4220387A4 (en) 2024-03-13
EP4220387A1 (en) 2023-08-02
US20230221846A1 (en) 2023-07-13
CN112148405A (zh) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2022063074A1 (zh) 桌面布局方法、装置和电子设备
WO2022012657A1 (zh) 图像编辑方法、装置和电子设备
WO2023046130A1 (zh) 应用图标的显示方法、装置、电子设备及存储介质
CN112148181B (zh) 菜单显示方法、装置、电子设备及存储介质
WO2022048632A1 (zh) 通知消息显示控制方法、装置、电子设备和可读存储介质
WO2022121903A1 (zh) 桌面整理方法、装置及电子设备
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
WO2023072061A1 (zh) 图标显示控制方法、装置、电子设备及存储介质
WO2023045837A1 (zh) 桌面编辑方法和电子设备
WO2023056977A1 (zh) 应用程序启动方法, 装置及电子设备
WO2023066085A1 (zh) 一种数据备份方法及其装置、电子设备和可读存储介质
WO2023046101A1 (zh) 图标显示方法、装置及电子设备
CN113467660A (zh) 信息分享方法和电子设备
CN113568534A (zh) 应用图标的显示方法、装置和电子设备
CN112148167A (zh) 控件设置方法、装置和电子设备
US9959010B1 (en) Method for displaying information, and terminal equipment
WO2022068725A1 (zh) 导航手势的设置方法及装置、电子设备
WO2017012488A1 (zh) 滚动视图显示方法及装置
CN113703623A (zh) 程序图标显示方法、装置、电子设备及介质
WO2022247787A1 (zh) 应用归类方法、装置及电子设备
WO2023030307A1 (zh) 截图方法、装置及电子设备
CN111638828A (zh) 界面显示方法及装置
WO2023025305A1 (zh) 应用图标管理方法、装置及电子设备
WO2022143337A1 (zh) 显示控制方法、装置、电子设备和存储介质
WO2022068720A1 (zh) 图标显示控制方法、装置及电子设备

Legal Events

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

Ref document number: 21871444

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021871444

Country of ref document: EP

Effective date: 20230425