CN117724782A - Desktop layout switching method and electronic equipment - Google Patents

Desktop layout switching method and electronic equipment Download PDF

Info

Publication number
CN117724782A
CN117724782A CN202310843502.XA CN202310843502A CN117724782A CN 117724782 A CN117724782 A CN 117724782A CN 202310843502 A CN202310843502 A CN 202310843502A CN 117724782 A CN117724782 A CN 117724782A
Authority
CN
China
Prior art keywords
desktop
layout
data
displaying
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310843502.XA
Other languages
Chinese (zh)
Inventor
惠凯迪
宋杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310843502.XA priority Critical patent/CN117724782A/en
Publication of CN117724782A publication Critical patent/CN117724782A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a desktop layout switching method and electronic equipment, which relate to the field of terminals and can provide a desktop restoration function for a user when the user switches to a previously used desktop layout so that the desktop is more suitable for the use habit of the user. In addition, the desktop layout switching method can enable the user to visually see the display effect of each desktop layout when the desktop layout is switched, so that the use experience of the user is improved. The method comprises the following steps: and responding to the operation of the first control, and acquiring the desktop data of the current desktop and the desktop data of the initial desktop. And when the desktop data of the current desktop are the same as the desktop data of the initial desktop, acquiring the desktop data of the first desktop. And displaying a preview interface of the first desktop according to the desktop data of the first desktop.

Description

Desktop layout switching method and electronic equipment
Technical Field
The embodiment of the application relates to the field of terminals, in particular to a desktop layout switching method and electronic equipment.
Background
The desktop layout of the electronic device refers to the number of rows and columns in the desktop, where standard icons can be arranged, and is generally expressed in the form of column x row. For example, a desktop layout of 4×6 means that the number of columns in the desktop in which standard icons can be arranged is 4 and the number of rows is 6.
In practice, electronic devices often need to be switched between different desktop layouts. For example, the electronic device may switch the desktop layout from 4×6 to 5×6 in response to a user operation. And when the electronic equipment is switched each time, the icons in the 4 multiplied by 6 desktop are arranged into the 5 multiplied by 6 desktop according to the native logic of the android system.
However, the desktop layout switching method can only realize basic desktop layout switching functions, and cannot meet the personalized requirements of users.
Disclosure of Invention
The embodiment of the application provides a desktop layout switching method and electronic equipment, wherein when a user switches to a desktop layout used before, a desktop restoration function is provided for the user under a certain condition, so that the desktop is more fit with the use habit of the user. In addition, the desktop layout switching method can enable the user to visually see the display effect of each desktop layout when the desktop layout is switched, so that the use experience of the user is improved.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, a desktop layout switching method is provided, and is applied to an electronic device, where the method includes: and displaying a preview interface of the current desktop and a plurality of layout controls. Each layout control is used to indicate a different desktop layout. The plurality of layout controls include a first control corresponding to the first desktop layout. The first desktop layout is different from the desktop layout of the current desktop. And responding to the operation of the first control, and acquiring desktop data of the current desktop and desktop data of an initial desktop of the current desktop. The initial desktop is the desktop when the electronic device switches to the desktop layout of the current desktop. Desktop data is used to indicate page distributions and icon distributions in the desktop. And when the desktop data of the current desktop are the same as the desktop data of the initial desktop, acquiring the desktop data of the first desktop. The first desktop is the desktop when the electronic device is in the first desktop layout before switching to the current desktop. And displaying a preview interface of the first desktop according to the desktop data of the first desktop.
Based on the scheme, when the user switches to the first desktop layout used before on the premise of not changing the current desktop, the preview interface of the first desktop can be displayed in the display screen as long as desktop data of the first desktop corresponding to the first desktop layout is stored in the electronic device. Therefore, the switched desktop can be more fit with the use habit of the user. In addition, the desktop layout switching method can enable the user to visually see the display effect of each desktop layout when the desktop layout is switched, so that the use experience of the user is improved
In one possible design, a confirmation control is also included in the display of the electronic device. After displaying the preview interface of the first desktop according to the desktop data of the first desktop, the method further includes: in response to an operation for the confirmation control, a first desktop is displayed in a display screen of the electronic device. Based on this approach, the desktop can be switched to the desired desktop layout by the validation control.
In one possible design, the method further comprises: when the desktop data of the initial desktop fails to be acquired, or when the desktop data of the current desktop is different from the desktop data of the initial desktop, or when the desktop data of the first desktop fails to be acquired, generating the desktop data of the second desktop according to a preset rule. The desktop layout of the second desktop is the first desktop layout. And displaying a preview interface of the second desktop according to the desktop data of the second desktop. Based on the scheme, the situation that the switched desktop omits the newly added icons or pages of the user can be avoided, and the use experience of the user can be improved.
In one possible design, displaying a preview interface of the second desktop according to desktop data of the second desktop includes: and performing first processing on the desktop data of the second desktop. The first process is to make no gaps between icons in pages in the second desktop. And displaying a preview interface of the second desktop according to the processed desktop data of the second desktop. Based on the scheme, the switched desktop can be tidier, and the use experience of a user is improved.
In one possible design, after generating the desktop data of the second desktop according to the preset rule when the desktop data of the initial desktop fails to be acquired, the method further includes: desktop data of the second desktop is stored. Based on the scheme, when the desktop in the display screen is switched to the second desktop, the desktop data of the second desktop can be used as the desktop data of the initial desktop when the desktop layout is switched next time, so that the subsequent desktop layout switching is facilitated.
In one possible design, after generating the desktop data of the second desktop according to the preset rule when the desktop data of the current desktop is different from the desktop data of the initial desktop or when the desktop data of the first desktop fails to be acquired, the method further includes: and storing the desktop data of the current desktop and the desktop data of the second desktop, and deleting the desktop data of the initial desktop. Based on the scheme, the desktop data of the current desktop can be used as backup data when the desktop layout corresponding to the current desktop is switched to next time, so that the habit of a user is reserved when the desktop layout corresponding to the current desktop is switched to next time.
In one possible design, a cancel control is also displayed in the display of the electronic device. The method further comprises the steps of:
in response to an operation for canceling the control, a current desktop is displayed in a display screen of the electronic device. Based on the scheme, the user can conveniently finish the desktop layout switching process.
In a second aspect, a desktop layout switching method is provided and is applied to an electronic device. The method comprises the following steps: and displaying the first desktop, wherein the desktop layout of the first desktop is the first desktop layout. Responding to the operation of switching desktop layout by a user, displaying a preview interface of the first desktop and a plurality of layout controls, wherein each layout control is used for indicating different desktop layouts. The plurality of layout controls include a first control corresponding to the second desktop layout. And responding to the operation of the first control, and displaying the second desktop based on the stored layout mode of the second desktop. The desktop layout of the second desktop is the second desktop layout. The layout mode is used for indicating page distribution and icon distribution in the desktop. And responding to the editing operation of the user on the second desktop, displaying a third desktop, wherein the layout modes of the third desktop and the second desktop are different, and the desktop layout of the third interface is the same as the second desktop layout. And responding to the operation of switching the desktop layout by the user, displaying a preview interface of the third desktop and a plurality of layout controls, wherein the plurality of layout controls comprise second controls corresponding to the fourth desktop layout. And responding to the operation of the user on the second control, and displaying the fourth desktop based on the third desktop and the fourth desktop layout.
In one possible design, displaying the second desktop based on the stored layout of the second desktop includes: and acquiring a layout mode of the first desktop and a layout mode of an initial desktop of the first desktop. The initial desktop is the desktop when the electronic device switches to the first desktop layout. And when the layout mode of the first desktop is the same as that of the initial desktop, acquiring the layout mode of the second desktop. And displaying the second desktop according to the layout mode of the second desktop.
In one possible design, displaying the second desktop according to the layout manner of the second desktop includes: and displaying a preview interface of the second desktop according to the layout mode of the second desktop. The preview interface of the second desktop includes a confirmation control. The second desktop is displayed in response to operation of the confirmation control.
In one possible design, displaying the fourth desktop based on the third desktop and the fourth desktop layout, includes: and generating a layout mode of the fourth desktop according to a preset rule based on the layout of the third desktop and the fourth desktop. And displaying the fourth desktop according to the layout mode of the fourth desktop.
In one possible design, displaying the fourth desktop according to the layout manner of the fourth desktop includes: and displaying a preview interface of the fourth desktop according to the layout mode of the fourth desktop. The preview interface of the fourth desktop includes a confirmation control. The fourth desktop is displayed in response to operation of the confirmation control.
In one possible design, after displaying the fourth desktop based on the third desktop and the fourth desktop layout, the method further comprises: and storing the layout mode of the third desktop and the layout mode of the fourth desktop, and deleting the layout mode of the second desktop.
In a third aspect, an electronic device is provided that includes a display screen, one or more processors, and one or more memories. The display screen is coupled to the one or more processors. One or more memories are coupled to the one or more processors, the one or more memories storing computer instructions. The one or more processors, when executing the computer instructions, cause the electronic device to perform the desktop layout switching method of any of the first or second aspects, the display screen displaying the preview interface of any of the first or second aspects.
In a fourth aspect, a system on a chip is provided, the chip comprising processing circuitry and an interface. The processing circuitry is configured to invoke and run a computer program stored in a storage medium from the storage medium to perform the desktop layout switching method of any of the first aspect or the second aspect and possible designs thereof.
In a fifth aspect, there is provided a computer readable storage medium comprising computer instructions which, when executed, perform a desktop layout switching method as in any of the first or second aspects and possible designs thereof.
In a sixth aspect, a computer program product is provided, comprising instructions in the computer program product, which when run on a computer, causes the computer to perform the desktop layout switching method according to the instructions as in the first or second aspect and any of its possible designs.
It should be appreciated that the technical features of the technical solutions provided in the second aspect, the third aspect, the fourth aspect, the fifth aspect, and the sixth aspect may all correspond to the desktop layout switching method provided in the first aspect and the possible designs thereof, so that the beneficial effects that can be achieved are similar, and are not repeated herein.
Drawings
FIG. 1 is a schematic diagram of a desktop of a mobile phone;
FIG. 2 is a schematic diagram of a desktop extension interface;
FIG. 3 is a schematic diagram of an interface for setting desktop parameters;
FIG. 4 is a schematic view of a pop-up window with a desktop layout;
FIG. 5 is a schematic diagram of a desktop after switching;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a display screen according to an embodiment of the present application;
fig. 8 is a flowchart of a desktop layout switching method according to an embodiment of the present application;
Fig. 9 is a schematic view of a preview interface of a first desktop according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a preview interface of a second desktop according to an embodiment of the present disclosure;
FIG. 11 is a schematic view of a first desktop according to an embodiment of the present disclosure;
FIG. 12 is a schematic view of a preview interface of a second desktop according to an embodiment of the present disclosure;
fig. 13 is an interaction schematic diagram of a desktop layout switching method according to an embodiment of the present application;
fig. 14 is a schematic diagram of a composition of still another electronic device according to an embodiment of the present disclosure;
fig. 15 is a schematic diagram of a chip system according to an embodiment of the present application.
Detailed Description
The terms "first," "second," and "third," etc. in the embodiments of the present application are used for distinguishing between different objects and not for defining a particular order. Furthermore, the words "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In order to facilitate understanding of the embodiments of the present application, the following description first refers to the application context of the embodiments of the present application.
In electronic devices such as mobile phones and tablets, switching the desktop layout can change the number of standard icons which can be contained in each row and each column of each page of the desktop, so that the number of standard icons which can be contained in each page of the desktop is changed. Thus, to meet the user's needs, electronic devices often need to switch between different desktop layouts.
The standard icon refers to an icon of an application, and the icon may refer to an icon of an application, an icon of a desktop component corresponding to the application, an icon of a file, an icon of a folder, an icon of a web page, and the like, which are not particularly limited herein. In addition, in the embodiment of the application, the desktop may include a plurality of pages, and the pages may be switched to each other to display different or partially different icons.
Fig. 1 is a schematic diagram of a desktop of a mobile phone. Wherein the hand in fig. 1 is used to indicate the operation of the user. As shown in FIG. 1, the desktop includes a page 101, a page identifier 102, and a bottom display bar 103.
The page 101 is used to hold icons. The layout of page 101 corresponds to the desktop layout of the current desktop. For example, if the desktop layout of the current desktop is 4×5, as shown in fig. 1, the standard icons that can be accommodated in each row of the page 101 are 4, and the standard icons that can be accommodated in each column are 5.
The page identifier 102 is used to identify the location of the current page in each page in the current desktop. Illustratively, the page identifier may be a black circle and a plurality of circles arranged horizontally. The number of circles is used for identifying the number of pages of the current desktop, the order of the circles is used for identifying the page order of the current desktop, and the position of the black circle is used for identifying the position of the current page in each page of the current desktop. Taking fig. 1 as an example, the page identifier in the desktop includes three circles, which represents that the current desktop includes three pages. The black circle is located in the second circle from left to right, and represents that the current page is the second page from left to right of the current desktop, i.e. one page exists on the left side and the right side of the current page.
When the electronic device displays the desktop shown in fig. 1, the electronic device may enter a page on the left side of the current page in response to a right-sliding operation of the user on the current page. Correspondingly, the position of the black circle in the page identity 101 is changed to the first circle from left to right. The electronic device may also enter a page to the right of the current page in response to a left-sliding operation of the user on the current page, where the position of the black circle in the page identifier 101 is changed to a third circle from left to right.
It should be appreciated that the above description of page identification is merely exemplary. The page identifier may also be displayed in other forms in the embodiments of the present application. For example, the page logo includes a highlighted area, a plurality of circles arranged horizontally, and a house-like pentagon. The total number of circles and house-like pentagons represents the number of pages of the current desktop. The page corresponding to the house-shaped pentagon represents the main page of each page in the current desktop. The position of the highlight region represents the position of the current page in each page of the current desktop. The present application is not particularly limited thereto.
The bottom display column 103 is used to display application icons. The bottom display bar 103 is not included in the page 101 and has a more fixed display form. In other words, unless the user changes the bottom display field, the number of standard icons that the bottom display field 103 can accommodate may not change, or the icons displayed by the bottom display field 103 may not change, at the time of desktop layout switching.
In a page as shown in fig. 1, the electronic device may enter a desktop extension interface as shown in fig. 2 in response to a long press operation for the page space.
The desktop extension interface may include a preview interface of the current desktop, wallpaper controls, card controls, switching effect controls, desktop setting controls, and the like. The preview interface of the current desktop may display a preview of the current page and a partial preview of the adjacent page. The wallpaper control is used for entering a setting interface of the wallpaper. The card control is used to enter the setup interface of the desktop assembly. The switching effect control is used for entering an interface for setting the page switching effect. The desktop setting control is used to enter an interface for setting desktop parameters.
The electronic device may enter an interface for setting desktop parameters as shown in fig. 3 in response to a click operation of the user on the desktop control setting control.
The interface for setting the desktop parameters can include desktop layout control, locked layout control, and the like. The locked layout control is used for locking or unlocking the current desktop layout. The lock layout control is opened to indicate that the current desktop layout is locked, and the user cannot change the desktop layout and cannot move the icons of the pages in the current desktop. The locked layout control is closed, and the representative user can normally change the layout of the desktop and can normally move icons of pages in the current desktop. The desktop layout control is used to select a desktop layout.
The electronic device may enter a pop-up window setting the desktop layout as shown in fig. 4 in response to a user clicking operation on the desktop layout control.
As shown in FIG. 4, a pop-up window setting the desktop layout may include a cancel control and a plurality of desktop layout controls. Where desktop layout controls such as 4 x 4 controls, 4 x 5 controls, 5 x 6 controls, and the like. The electronic device can respond to clicking operation of a user on a certain desktop layout control, and switch the current desktop layout to the desktop layout corresponding to the desktop layout control.
For example, the electronic device may switch the current desktop layout to 5×6 according to a rule for switching desktop layouts preset by the android system in response to a click operation of the user on the 5×6 control.
Illustratively, the switched desktop may be as shown in fig. 5. As shown in fig. 5, the electronic device may add a blank column at the rightmost side of the current page and a blank row below the current page, thereby implementing switching from the 4×5 desktop layout to the 5×6 desktop layout.
After the switching is finished, if the user is not satisfied with the switched desktop layout, the electronic device can be controlled to switch the desktop layout from 5×6 to 4×5 according to the rule of switching the desktop layout preset by the android system through steps similar to those shown in fig. 1 to 4. That is, the desktop of the 4×5 desktop layout is newly generated from the desktop of the 5×6 desktop layout, and thus may not be the same as the desktop shown in fig. 1.
Based on the above description, it can be seen that the conventional desktop layout switching method can only implement the basic desktop layout switching function, and the user can only view the desktop layout after the desktop layout switching is completed, and cannot meet more personalized requirements of the user.
In order to solve the problem, the embodiment of the application provides a desktop layout switching method, which can provide a desktop restoration function for a user under a certain condition when the user changes the current desktop and switches to the desktop layout used before, so that the desktop is more suitable for the use habit of the user. In addition, the desktop layout switching method can enable the user to visually see the display effect of each desktop layout when the desktop layout is switched, so that the use experience of the user is improved.
The following describes the schemes provided in the embodiments of the present application in detail with reference to the accompanying drawings. It should be noted that, the desktop layout switching method and the electronic device provided in the embodiments of the present application may be applied to an electronic device of a user. The electronic device may be a device having a desktop display function. For example, the electronic device may be a mobile phone, a tablet computer, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR), a Virtual Reality (VR) device, a media player, or the like, or may be a wearable electronic device such as a smart watch. The embodiment of the present application does not particularly limit the specific form of the apparatus.
As an example, please refer to fig. 6, which is a schematic diagram illustrating a composition of an electronic device 600 according to an embodiment of the present application. The desktop layout switching method provided in the embodiment of the present application can be applied to an electronic device 600 as shown in fig. 6.
As shown in fig. 6, the electronic device 600 may include a processor 601, a display 603, a communication module 602, and the like.
The processor 601 may include one or more processing units, for example: the processor 601 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video stream codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors 601.
The controller may be a neural hub and command center of the electronic device 600. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 601 for storing instructions and data. In some embodiments, the memory in the processor 601 is a cache memory. The memory may hold instructions or data that the processor 601 has just used or recycled. If the processor 601 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 601 is reduced, thus improving the efficiency of the system.
In some embodiments, the processor 601 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor 601 interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface 611, among others.
The electronic device 600 implements display functions through a GPU, a display screen 603, and an application processor 601, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 603 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 601 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 603 is used to display images, video streams, and the like. For example, the electronic device 600 may display, through the display screen 603, each interface that needs to be displayed when performing desktop switching in the desktop layout switching method provided in the embodiments of the present application.
The communication module 602 may include an antenna 1, an antenna 2, a mobile communication module 602A, and/or a wireless communication module 602B. Taking the communication module 602 as an example, the antenna 1, the antenna 2, the mobile communication module 602A and the wireless communication module 602B are all included.
The wireless communication function of the electronic device 600 may be implemented by the antenna 1, the antenna 2, the mobile communication module 602A, the wireless communication module 602B, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 600 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 602A may provide a solution for wireless communication, including 2G/3G/4G/5G, as applied to the electronic device 600.
The wireless communication module 602B may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied to the electronic device 600.
As shown in fig. 6, in some implementations, the electronic device 600 may further include an external memory interface 610, an internal memory 604, a universal serial bus (universal serial bus, USB) interface 611, a charge management module 612, a power management module 613, a battery 614, an audio module 606, a speaker 606A, a receiver 606B, a microphone 606C, an earphone interface 606D, a sensor module 605, keys 609, a motor, an indicator 608, a camera 607, and a subscriber identity module (subscriber identification module, SIM) card interface, etc.
The charge management module 612 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 613 is used to connect the battery 614, the charge management module 612 and the processor 601. The power management module 613 receives input from the battery 614 and/or the charge management module 612 and provides power to the processor 601, the internal memory 604, the external memory, the display 603, the camera 607, the wireless communication module 602B, and the like. The power management module 613 may also be configured to monitor battery 614 capacity, number of battery 614 cycles, battery 614 health (leakage, impedance), and the like.
The external memory interface 610 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 600. The external memory card communicates with the processor 601 through an external memory interface 610 to implement data storage functions. For example, files such as music, video streams, etc. are stored in an external memory card.
The internal memory 604 may be used to store computer-executable program code, including instructions. The processor 601 executes instructions stored in the internal memory 604 to thereby perform various functional applications and data processing of the electronic device 600.
Electronic device 600 may implement audio functionality through audio module 606, speaker 606A, receiver 606B, microphone 606C, ear-headphone interface 606D, and application processor 601, among others. Such as music playing, recording, etc.
The keys 609 include a power on key, a volume key, etc. The keys 609 may be mechanical keys 609. Or may be a touch key 609. The electronic device 600 may receive key 609 inputs, generating key signal inputs related to user settings and function controls of the electronic device 600.
The indicator 608 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface is used for connecting the SIM card. The electronic device 600 interacts with the network through the SIM card to perform functions such as talking and data communication.
The sensor module 605 in the electronic device 600 may include components such as touch sensors, pressure sensors, gyroscopic sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, ambient light sensors, fingerprint sensors, temperature sensors, bone conduction sensors, etc. to enable sensing and/or acquisition of different signals.
It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 600. In other embodiments, electronic device 600 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The desktop layout switching method provided by the embodiment of the application can be applied to the electronic device shown in fig. 6. The display screen of the electronic device may display a preview interface of the current desktop and a plurality of layout controls.
A method of entering a preview interface of a current desktop of an electronic device will be described herein by taking the current desktop of the electronic device as the desktop shown in fig. 1 as an example.
In one possible design, the user may press a long-term on the blank of the page in the current desktop, entering the interface shown in FIG. 2. The desktop setting control of FIG. 2 is then clicked on, entering the interface shown in FIG. 3. And finally clicking the desktop layout control in fig. 3 to enter the preview interface of the current desktop.
In another possible design, the user may also click on the setup control in FIG. 1 to enter the setup interface, and then click on the desktop setup control in the setup interface to enter the interface shown in FIG. 3. And finally clicking the desktop layout control in fig. 3 to enter the preview interface of the current desktop.
Fig. 7 is a schematic diagram of a display screen according to an embodiment of the present application. As shown in fig. 7, the display screen may display a preview interface 701 of the current desktop, a plurality of layout controls 702, a cancel control 703, a confirm control 704, and a page identifier 705. Different layout controls are used to indicate different desktop layouts. For ease of illustration, FIG. 7 illustrates that the plurality of layout controls includes a 4X 5 control, a 5X 5 control, and a 5X 6 control. In addition, the description of the layout control 702 may refer to the description of the desktop layout control in the foregoing embodiment, and the description of the page identifier 705 may also refer to the foregoing embodiment, which is not repeated herein.
As can be seen from fig. 7, the desktop layout of the current desktop is 4×5. In one possible design, the 4×5 controls in fig. 7 may be identified by highlighting, shading, etc. to identify the current desktop layout of the desktop.
Based on the preview interface of the current desktop, the embodiment of the application provides a desktop layout switching method. Please refer to fig. 8, which is a flowchart of the method. As shown in fig. 8, the method may include the following steps.
S801, in response to the operation for the first control, whether desktop data of the initial desktop exist or not is judged. If so, S802a is performed. If not, S802b is performed.
The first control corresponds to a first desktop layout. The first desktop layout is different from the desktop layout of the current desktop. That is, the first control is not a layout control corresponding to the desktop layout of the current desktop.
For example, the preview interface of the current desktop is shown in fig. 7, that is, the layout control corresponding to the current desktop is a 4×5 control. The first control may be a 5 x 5 control or a 5 x 6 control. Correspondingly, the first desktop layout is 4×5, that is, the number of standard icons accommodated in each row is 4, and the number of standard icons accommodated in each column is 5.
The operation for the first control may be clicking, long pressing, double clicking, etc., which is not limited herein.
The current desktop refers to the desktop currently being displayed. The initial desktop refers to the desktop when the electronic device switches to the desktop layout of the current desktop. For example, the desktop layout corresponding to the desktop when the electronic device is turned on is 5×6, and the desktop when the electronic device is switched to 4×5 is the initial desktop. The current desktop may differ from the initial desktop in that the page distribution and icon distribution in the current desktop may be different from the initial desktop. In other words, the user may perform operations of adding pages, deleting pages, adding icons, deleting icons, moving icons, and the like in the initial desktop, so as to obtain the current desktop.
Desktop data is used to indicate page distribution and icon distribution in the desktop. The page distribution refers to the arrangement of each page in the desktop, and the icon distribution refers to the arrangement of each icon in each page.
For example, the desktop data may include page data and icon data. The page data is used for indicating page distribution in the desktop, and the icon data is used for indicating icon distribution in the desktop. In some possible designs, both page data and icon data may be recorded and stored by way of tables. Wherein, the table for recording page data may be referred to as a table top layout screen table, and the table for recording icon data may be referred to as a table top layout arrangement table.
Desktop data of the initial desktop can be generated when the electronic device is switched to the desktop layout of the current desktop and stored in a preset address. Thus, the electronic device can judge whether the desktop data of the initial desktop exist according to whether the preset address stores the data. If the preset address stores data, judging that the desktop data of the initial desktop exist, otherwise, judging that the desktop data of the initial desktop do not exist.
The following describes the case where desktop data of the initial desktop exists.
S802a, judging whether the desktop data of the current desktop are the same as the desktop data of the initial desktop. If so, S803a is performed. If not, S802b is performed.
The desktop data of the current desktop is the same as the desktop data of the initial desktop, and the operations of adding pages, deleting pages, adding icons, deleting icons, moving icons and the like are described that the user does not perform in the initial desktop. Otherwise, it is explained that the user may perform the above operation.
The following describes a case where the desktop data of the current desktop is the same as the desktop data of the initial desktop.
S803a, judging whether desktop data of the first desktop exist or not. If so, S804a is performed. If not, S802b is performed.
The first desktop is the desktop when the electronic device is in the first desktop layout before switching to the current desktop. Still taking the desktop shown in fig. 1 as the current desktop, the first desktop layout is exemplified by 5×6. Before the electronic device switches to the desktop shown in fig. 1, the desktop when the desktop layout is 5×6 is the first desktop. In the embodiment of the application, the electronic device may store desktop data corresponding to the desktop in advance when the user controls the electronic device to be in different desktop layouts. Or, the electronic device may determine whether the desktop data of the current desktop is the same as the desktop data of the initial desktop when the desktop layout is switched, and if not, backup the desktop data of the current desktop, and delete the desktop data of the initial desktop. Thus, desktop data under different desktop layouts can be stored in the electronic device so as to be acquired when needed.
As an example, the electronic device may determine whether the desktop data of the first desktop is present by using a method similar to that for determining whether the desktop data of the initial desktop is present, which is not described herein.
The presence of desktop data for the first desktop is described below.
Desktop data of the first desktop exists, which indicates that the user controls the electronic device to be in the first desktop layout before, and the first desktop may keep the use preference or the use habit of the user. Therefore, the first desktop layout is loaded according to the desktop data of the first desktop, so that the desktop can be more fit with the use habit of the user, and the use experience of the user can be improved.
S804a, displaying a preview interface of the first desktop according to the desktop data of the first desktop.
In the embodiment of the application, the electronic device may load the preview interface of the first desktop in the display screen through a built-in LoaderTask function. The LoaderTask function is a function used in the electronic device to load a corresponding desktop or interface in the display screen according to desktop data.
Fig. 9 is a schematic diagram of a preview interface of a first desktop according to an embodiment of the present application. The user may display a preview interface of the first desktop as shown in fig. 9 in the display screen by clicking on the 5 x 6 control in fig. 7 through S801a-S804 a.
It should be understood that fig. 9 is merely illustrative, and the icon distribution and the page distribution of the first desktop may not be the distributions shown in fig. 9, which are not specifically limited herein.
The following describes a case where the desktop data of the initial desktop does not exist, or the desktop data of the current desktop is different from the desktop data of the initial desktop, or the desktop data of the first desktop does not exist. As is clear from the above description, S802b is performed in each of these three cases.
S802b, generating desktop data of the second desktop according to preset rules.
If the desktop data of the initial desktop does not exist, it cannot be determined whether the desktop data of the current desktop is changed compared with the desktop data of the initial desktop. If a change, such as adding an icon or page, is made, the previously backed up first desktop cannot display the change, such as adding an icon or page. Therefore, in this case, the embodiment of the application generates the desktop data of the second desktop according to the preset rules such as the desktop layout switching logic of the android system based on the desktop data of the current desktop, so as to ensure that the electronic device can correctly display all icons and pages, thereby improving the use experience of the user.
The desktop data of the current desktop are the same as the desktop data of the initial desktop, and will not be described again.
If the desktop data of the first desktop does not exist, a preview interface of the first desktop cannot be displayed. Therefore, based on the desktop data of the current desktop, the embodiment of the application generates the desktop data of the second desktop according to the preset rules such as the desktop layout switching logic of the android system, so as to ensure that the electronic equipment can be correctly switched to the first desktop layout.
As described above, the desktop layout of the second desktop is the first desktop layout. The preset rules may be android system native desktop layout switching logic.
Taking a standard icon as an example, the space occupied by the standard icon is 1. In some possible designs, when the desktop layout increases the number of rows and columns, the preset rule may be that the icon distribution and the page distribution are unchanged, the space corresponding to the number of columns is increased at the end of each row, and the space corresponding to the number of rows is increased at the end of each column. Taking the desktop shown in fig. 1 as an example of a current desktop, when the 4×5 desktop layout is switched to the 5×6 desktop layout according to a preset rule, 1 space may be added at the end of each row, and one space may be added at the end of each column. I.e., the desktop shown in fig. 1 is switched to the desktop shown in fig. 5.
In other possible designs, the preset rule may be to sequentially arrange the icons in the desktop before switching in the desktop layout after switching. Therefore, the desktop after the desktop layout is switched is tidy, and the use experience of a user is improved.
In this embodiment of the present invention, when obtaining desktop data of an initial desktop fails, after the electronic device generates desktop data of a second desktop according to a preset rule, the desktop data of the second desktop may be stored as a backup. It should be appreciated that the desktop data of the second desktop may be, after the switching is completed, the desktop data of the initial desktop at the next desktop layout switching. Specifically, after the desktop layout switching is completed, the current desktop is changed into the second desktop, so that the desktop data of the second desktop is the desktop data of the initial desktop when the desktop layout switching is performed again.
When the desktop data of the current desktop is different from the desktop data of the initial desktop or when the acquisition of the desktop data of the first desktop fails, after generating the desktop data of the second desktop according to a preset rule, the electronic device may store the desktop data of the current desktop and the desktop data of the second desktop, and delete the desktop data of the initial desktop. As described above, the desktop data of the current desktop may be used as the desktop data of the initial desktop at the next desktop layout switching, and the desktop data of the current desktop may be used as the backup desktop data at the next switching to the current desktop, for restoring the icon distribution and the page distribution of the current desktop.
The process of generating desktop data for the second desktop will be briefly described herein. In this embodiment of the present application, the layout networks CellX and CellY may be generated according to a desktop layout index (may be referred to as index, and may be pre-built in the electronic device) of the second desktop, where CellX and CellY represent each grid in the layout network. Then, the electronic device can generate a desktop layout list and a desktop layout screen list according to CellX and CellY, and input the information such as the identification, the position and the like of each icon. Thus, the desktop data of the second desktop can be obtained.
S803b, displaying a preview interface of the second desktop according to desktop data of the second desktop.
In the embodiment of the application, the electronic device may load the preview interface of the second desktop in the display screen through a built-in LoaderTask function.
For example, when the preview interface of the current desktop is shown in fig. 7, the preview interface of the second desktop may be shown in fig. 10, that is, the icon distribution and the page distribution in fig. 7 are unchanged, the space of the corresponding column number is increased at the end of each row, and the space of the corresponding row number is increased at the end of each row.
In addition, as shown in FIG. 7, a confirmation control 704 and a cancel control 703 may also be included in the display of the electronic device.
When the preview interface of the current desktop as shown in fig. 7 is displayed in the display screen, the electronic device may display the current desktop as shown in fig. 1 in the display screen of the electronic device in response to an operation for the confirm control or cancel control.
When the preview interface of the first desktop as shown in fig. 9 is displayed in the display screen, the electronic device may display the first desktop as shown in fig. 11 in the display screen of the electronic device in response to an operation for the confirmation control.
When the preview interface of the first desktop as shown in fig. 9 is displayed in the display screen, the electronic device may display the current desktop as shown in fig. 1 in the display screen of the electronic device in response to an operation for the cancel control.
Similarly, when the preview interface of the second desktop shown in fig. 10 is displayed in the display screen, the electronic device may display the current desktop shown in fig. 1 in the display screen of the electronic device in response to an operation for canceling the control.
When the preview interface of the second desktop as shown in fig. 10 is displayed in the display screen, the electronic device may display the second desktop as shown in fig. 5 in the display screen of the electronic device in response to an operation for the confirmation control.
The operations for confirming the control or canceling the control above may be clicking, double clicking, long pressing, etc., which are not particularly limited in this application.
In addition, in some possible embodiments, returning, undoing, entering a multitasking, etc. may also produce an effect equivalent to an operation on a cancel control. Wherein the return operation or undo operation may be sliding left at the right edge of the display screen, the enter multitasking operation may be sliding up at the bottom of the display screen, etc. Illustratively, when the preview interface of the second desktop as shown in fig. 10 is displayed in the display screen, the electronic device may enter a multitasking operation, etc. in response to a return operation, a cancel operation, etc., display the current desktop as shown in fig. 1 in the display screen of the electronic device.
It should be noted that, the desktop data for generating the second desktop may include a vacancy. That is, gaps may be included between icons in the second desktop, resulting in an insufficiently clean distribution of icons, which may affect the user experience.
In order to solve the problem, after generating the desktop data of the second desktop according to the preset rule in S802b, the embodiment of the present application may first traverse the data indicating the icon distribution in the desktop data, so as to eliminate the gaps between the icons in the page. For example, when the desktop data includes a desktop layout arrangement table and a desktop layout screen table, the electronic device may traverse the desktop layout arrangement table to determine a vacancy in the desktop layout table. And then sequentially filling the icons in the page to the empty positions, and marking the empty positions as occupied positions so as to avoid overlapping with other icons. Finally, the electronic device may release the position before the icon moves marked as empty, releasing the position.
In the embodiment of the present application, the above-described processing procedure may be referred to as a first process. It should be appreciated that the desktop data of the second desktop has no gaps between icons in the new desktop data obtained after the first processing. Thus, the preview interface of the second desktop based on the new desktop data load may be as shown in FIG. 12, i.e., there is no room between icons. Therefore, the icons in the second desktop can be distributed more neatly, and the use experience of a user is improved.
In addition, after the electronic device performs the first processing on the desktop data of the second desktop, the processed desktop data of the second desktop may be stored, so as to be used as the desktop data of the initial desktop in the subsequent desktop layout switching.
The above describes a desktop layout switching method and an electronic device provided in the embodiments of the present application. Based on the above description, the method can provide the desktop restore function for the user when the user switches to the desktop layout used before, so that the desktop is more suitable for the use habit of the user. In addition, the desktop layout switching method can enable the user to visually see the display effect of each desktop layout when the desktop layout is switched, so that the use experience of the user is improved.
The desktop layout switching method provided in the embodiment of the present application is described again from the viewpoint of internal implementation. Fig. 13 is an interaction schematic diagram of a desktop layout switching method according to an embodiment of the present application. As shown in fig. 13, the method may include the following steps.
S1301, the first control sends a first parameter to the switching management class in response to being clicked.
The first parameter may be used to indicate a grid number, a page number, etc. corresponding to the first control, and may also be referred to as desktop data of the first desktop. Wherein the grid number is the desktop layout, such as a 4 x 5 grid, a 5 x 5 grid, etc. The number of pages may indicate that the display screen is single screen or swiped, the number of pages in the desktop, etc.
S1302, the switching management class sends the first parameter to the desktop cache class.
The desktop cache class updates the desktop cache through the first parameter so as to prepare to display the desktop layout corresponding to the first parameter in the display screen.
S1303, the desktop cache class returns the second parameter to the switching management class.
The second parameter may be used to indicate the grid number, page number, etc. of the current desktop, and may also be referred to as desktop data of the current desktop.
S1304, the handover management class sends the second parameter to the database.
S1305, the database executes the first judgment.
The first determination is used to determine whether desktop data for the initial desktop exists. And the desktop data processing unit is also used for judging whether the desktop data of the current desktop are the same as the desktop data of the initial desktop when the desktop data of the initial desktop exist. And the desktop data processing unit is also used for judging whether the desktop data of the first desktop exist or not when the desktop data of the current desktop are the same as the desktop data of the initial desktop.
S1306, the database sends the judging result to the switching management class.
And executing S1307a-S1310a when the desktop data of the initial desktop does not exist or when the desktop data of the initial desktop is different from the desktop data of the current desktop or the desktop data of the first desktop does not exist.
And S1307a, the switching management class generates desktop data of the second desktop according to preset rules.
S1308a, the switching management class performs a first process on the desktop data of the second desktop.
The first process may be described with reference to the foregoing embodiments, and will not be described herein.
And S1309a, the switching management class sends the processed desktop data of the second desktop to the database.
And S1310a, backing up the desktop data of the processed second desktop by the database.
S1311a, sending the processed desktop data of the second desktop to the view layer.
And S1312a, loading a preview interface of the second desktop in the display screen according to the desktop data of the second desktop by the view layer.
When the judging result is that the desktop data of the initial desktop exist, the desktop data of the initial desktop are the same as the desktop data of the current desktop, and the desktop data of the first desktop exist, the judging result comprises the desktop data of the first desktop. The electronic device may perform S1307b-S1308b described below.
S1307b, send the desktop data of the first desktop to the view layer.
And 1308b, loading a preview interface of the first desktop in the display screen according to the desktop data of the first desktop by the view layer.
Thus, the desktop layout switching method provided by the embodiment of the application is completed.
The desktop layout switching method provided by the embodiment of the application is described below from the viewpoint of interface display.
First, the electronic device may display a first desktop. The desktop layout of the first desktop is the first desktop layout. Illustratively, the first desktop layout may be 4×5.
And then, the electronic equipment can respond to the operation of switching the desktop layout by the user, and a preview interface of the first desktop and a plurality of layout controls are displayed, wherein the plurality of layout controls comprise a first control corresponding to the second desktop layout. The operation of switching the desktop by the user may be the operation shown in fig. 1 to 3.
The electronic device may then display the second desktop based on the stored layout of the second desktop in response to the operation of the first control. The desktop layout of the second desktop is the second desktop layout. The layout manner is the desktop data described in the foregoing embodiments, and will not be described herein. It should be appreciated that the second desktop is directly displayed here, because after the electronic device switches to the desktop layout of the first desktop, the first desktop is not changed any more, and there is no case of adding icons or pages, so that the layout mode of backing up the second desktop can be directly enabled to load the second desktop.
And then, responding to the editing operation of the user on the second desktop, displaying a third desktop, wherein the layout modes of the third desktop and the second desktop are different, and the desktop layout of the third interface is the same as the second desktop layout. The editing operation may be adding an icon, deleting an icon, adding a page, deleting a page, moving an icon, and the like. That is, the third desktop is a desktop on which the second desktop is subjected to the editing operation.
And responding to the operation of switching the desktop layout by the user, displaying a preview interface of the third desktop and a plurality of layout controls, wherein the plurality of layout controls comprise second controls corresponding to the fourth desktop layout. The operation of switching the desktop layout may refer to the foregoing embodiments, and will not be described herein.
And responding to the operation of the user on the second control, and displaying the fourth desktop based on the third desktop and the fourth desktop layout. It should be appreciated that when the electronic device switches to the second desktop layout, the initial desktop is the second desktop. And then the second desktop is changed into a third desktop through editing operation of a user. That is, the layout of the third desktop is different from the layout of the second desktop, so that the layout of the fourth desktop may be generated according to a preset rule based on the layout of the third desktop and the fourth desktop, and the fourth desktop may be displayed according to the layout of the fourth desktop.
The desktop layout switching method provided by the embodiment of the application is an interface display process in the electronic equipment in the executing process.
By this point, those skilled in the art should clearly and clearly understand the desktop control scheme provided in the embodiments of the present application. The above description has been made mainly from the point of view of the electronic device. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Referring to fig. 14, a schematic diagram of an electronic device 1400 according to an embodiment of the present disclosure is provided. The electronic device 1400 may be any of the above examples, for example, the electronic device 1400 may be a mobile phone, a computer, or the like. For example, as shown in fig. 14, the electronic device 1400 may include: processor 1401, memory 1402, display 1403. A display 1403 is connected to the processor 1401. The memory 1402 is used to store computer-executable instructions. For example, in some embodiments, the processor 1401, when executing the instructions stored in the memory 1402, may cause the electronic device 1400 to perform any of the functions of the electronic device in the embodiments described above to implement any of the desktop layout switching methods in the examples above. The electronic device may also be caused to display any of the display interfaces of the previous embodiments.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
Fig. 15 shows a schematic diagram of the composition of a chip system 1500. The chip system 1500 may be provided in an electronic device. For example, the system-on-chip 1500 may be provided in a cell phone. By way of example, the chip system 1500 may include: a processor 1501 and a communication interface 1502 for supporting the electronic device to implement the functions referred to in the above embodiments. In one possible design, the chip system 1500 also includes memory to hold the necessary program instructions and data for the electronic device. The chip system can be composed of chips, and can also comprise chips and other discrete devices. It should be noted that, in some implementations of the present application, the communication interface 1502 may also be referred to as an interface circuit.
It should be noted that, all relevant contents of each step related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein.
The embodiments of the present application may divide functional modules of devices involved therein according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
The functions or acts or operations or steps and the like in the embodiments described above may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Although the present application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the present application. It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to include such modifications and variations as well.

Claims (14)

1. The desktop layout switching method is characterized by being applied to the electronic equipment, and comprises the following steps:
displaying a preview interface of the current desktop and a plurality of layout controls; each layout control is used for indicating different desktop layouts; the plurality of layout controls comprise first controls corresponding to the first desktop layout; the first desktop layout is different from the desktop layout of the current desktop;
Responding to the operation of the first control, and acquiring desktop data of the current desktop and desktop data of an initial desktop of the current desktop; the initial desktop is the desktop when the electronic equipment is switched to the desktop layout of the current desktop; the desktop data are used for indicating page distribution and icon distribution in the desktop;
acquiring desktop data of a first desktop when the desktop data of the current desktop are the same as the desktop data of the initial desktop; the first desktop is a desktop when the electronic device is in the first desktop layout before being switched to the current desktop;
and displaying a preview interface of the first desktop according to the desktop data of the first desktop.
2. The desktop layout switching method according to claim 1, further comprising:
generating desktop data of a second desktop according to a preset rule when the desktop data of the initial desktop fails to be acquired, or when the desktop data of the current desktop is different from the desktop data of the initial desktop, or when the desktop data of a first desktop fails to be acquired; the desktop layout of the second desktop is the first desktop layout; and displaying a preview interface of the second desktop according to the desktop data of the second desktop.
3. The desktop layout switching method according to claim 2, wherein the displaying the preview interface of the second desktop according to the desktop data of the second desktop includes:
performing first processing on desktop data of the second desktop; the first process is used for enabling no gaps exist among icons in each page in the second desktop;
and displaying a preview interface of the second desktop according to the processed desktop data of the second desktop.
4. The desktop layout switching method according to claim 2, wherein after generating the desktop data of the second desktop according to the preset rule when the obtaining of the desktop data of the initial desktop fails, the method further comprises:
and storing desktop data of the second desktop.
5. The desktop layout switching method according to claim 2, wherein after generating the desktop data of the second desktop according to the preset rule when the desktop data of the current desktop is different from the desktop data of the initial desktop or when the acquisition of the desktop data of the first desktop fails, the method further comprises:
and storing the desktop data of the current desktop and the desktop data of the second desktop, and deleting the desktop data of the initial desktop.
6. The desktop layout switching method is characterized by being applied to electronic equipment; the desktop layout switching method comprises the following steps:
displaying a first desktop, wherein the desktop layout of the first desktop is the first desktop layout;
responding to the operation of switching desktop layout by a user, displaying a preview interface of the first desktop and a plurality of layout controls, wherein each layout control is used for indicating different desktop layouts; the plurality of layout controls comprise first controls corresponding to the second desktop layout;
responding to the operation of the first control, and displaying a second desktop based on the stored layout mode of the second desktop; the desktop layout of the second desktop is the second desktop layout; the layout mode is used for indicating page distribution and icon distribution in the desktop;
responding to the editing operation of the user on the second desktop, displaying a third desktop, wherein the layout modes of the third desktop and the second desktop are different, and the desktop layout of the third interface is the same as the second desktop layout;
responding to the operation of switching desktop layout by a user, displaying a preview interface of the third desktop and the plurality of layout controls, wherein the plurality of layout controls comprise second controls corresponding to a fourth desktop layout;
And responding to the operation of the user on the second control, and displaying a fourth desktop based on the third desktop and the fourth desktop layout.
7. The desktop layout switching method according to claim 6, wherein the displaying the second desktop based on the stored layout manner of the second desktop includes:
acquiring a layout mode of the first desktop and a layout mode of an initial desktop of the first desktop; the initial desktop is the desktop when the electronic equipment is switched to the first desktop layout;
when the layout mode of the first desktop is the same as that of the initial desktop, acquiring the layout mode of the second desktop;
and displaying the second desktop according to the layout mode of the second desktop.
8. The desktop layout switching method according to claim 7, wherein displaying the second desktop according to the layout manner of the second desktop includes:
displaying a preview interface of the second desktop according to the layout mode of the second desktop; the preview interface of the second desktop comprises a confirmation control;
and responding to the operation of the confirmation control, and displaying the second desktop.
9. The desktop layout switching method according to any one of claims 6 to 8, wherein the displaying a fourth desktop based on the third desktop and the fourth desktop layout includes:
Generating a layout mode of the fourth desktop according to a preset rule based on the third desktop and the fourth desktop layout;
and displaying the fourth desktop according to the layout mode of the fourth desktop.
10. The desktop layout switching method according to claim 9, wherein displaying the fourth desktop according to the layout manner of the fourth desktop includes:
displaying a preview interface of the fourth desktop according to the layout mode of the fourth desktop; the preview interface of the fourth desktop comprises a confirmation control;
and responding to the operation of the confirmation control, and displaying the fourth desktop.
11. An electronic device comprising a display screen, one or more processors, and one or more memories; the display screen is connected with the one or more processors; the one or more memories coupled to the one or more processors, the one or more memories storing computer instructions;
the one or more processors, when executing the computer instructions, cause the electronic device to perform the desktop layout switching method of any of claims 1-5 or claims 6-10, the display screen displaying the preview interface of any of claims 1-5 or claims 6-10.
12. A chip system, wherein the chip comprises a processing circuit and an interface; the processing circuit is configured to call up and run a computer program stored in a storage medium from the storage medium to perform the desktop layout switching method according to any one of claims 1-5 or claims 6-10.
13. A computer readable storage medium comprising computer instructions which, when executed, perform the desktop layout switching method of any of claims 1-5 or claims 6-10.
14. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the desktop layout switching method according to any of claims 1-5 or 6-10 according to the instructions.
CN202310843502.XA 2023-07-10 2023-07-10 Desktop layout switching method and electronic equipment Pending CN117724782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310843502.XA CN117724782A (en) 2023-07-10 2023-07-10 Desktop layout switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310843502.XA CN117724782A (en) 2023-07-10 2023-07-10 Desktop layout switching method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117724782A true CN117724782A (en) 2024-03-19

Family

ID=90205825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310843502.XA Pending CN117724782A (en) 2023-07-10 2023-07-10 Desktop layout switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117724782A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095250A (en) * 2016-07-29 2016-11-09 维沃移动通信有限公司 The method of application icon layout and mobile terminal
CN106126041A (en) * 2016-06-30 2016-11-16 努比亚技术有限公司 The desktop icon management method of a kind of mobile terminal and mobile terminal
CN110750317A (en) * 2019-08-31 2020-02-04 华为技术有限公司 Desktop editing method and electronic equipment
CN112799563A (en) * 2021-02-10 2021-05-14 联想(北京)有限公司 Information processing method, system and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126041A (en) * 2016-06-30 2016-11-16 努比亚技术有限公司 The desktop icon management method of a kind of mobile terminal and mobile terminal
CN106095250A (en) * 2016-07-29 2016-11-09 维沃移动通信有限公司 The method of application icon layout and mobile terminal
CN110750317A (en) * 2019-08-31 2020-02-04 华为技术有限公司 Desktop editing method and electronic equipment
CN112799563A (en) * 2021-02-10 2021-05-14 联想(北京)有限公司 Information processing method, system and storage medium

Similar Documents

Publication Publication Date Title
US9104290B2 (en) Method for controlling screen of mobile terminal
US9760331B2 (en) Sharing a screen between electronic devices
EP2940572A1 (en) Method and electronic device for managing display objects
US10042596B2 (en) Electronic device and method for controlling the same
US20240192986A1 (en) Application handoff method and apparatus
CN110069203B (en) Electronic device and method of operating electronic device
CN113325996B (en) Split screen display method and device
EP3992786A1 (en) Display method and electronic device
KR20150026022A (en) Apparatas and method for supplying content according to field attribute
CN111147660B (en) Control operation method and electronic equipment
KR20160005609A (en) Method for displaying graphic user interface and electronic device supporting the same
US9792183B2 (en) Method, apparatus, and recording medium for interworking with external terminal
KR20140141046A (en) display apparatus and contol method thereof
KR20140090112A (en) Method and apparatus for pairing electronic devices
CN108696642B (en) Method for arranging icons and mobile terminal
US20200348804A1 (en) Sectional user interface for controlling a mobile terminal
CN112230910B (en) Page generation method, device and equipment of embedded program and storage medium
CN117724782A (en) Desktop layout switching method and electronic equipment
KR20150115169A (en) Electronic apparatus and dispalying method thereof
CN113642010B (en) Method for acquiring data of extended storage device and mobile terminal
CN113301422A (en) Method, terminal and storage medium for acquiring video cover
CN114070892A (en) Data transmission method and device
EP4394569A1 (en) Photo hiding method and apparatus
CN114356477B (en) Terminal equipment and application program calling method
CN114995701B (en) Suspended window control method and related device

Legal Events

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