Desktop generation and operation methods for mobile terminal and corresponding devices thereof
Abstract
Disclosed is a desktop generation method for a mobile terminal. The method comprises: creating a block object, the block object containing attribute information; invoking a drawing function, drawing a plurality of blocks according to the attribute information about the block object, and distributing the plurality of blocks on the screen of a mobile terminal without superposition so as to form a desktop; and when the shortcut of an application program is required to be displayed on the desktop, displaying a shortcut icon and/or a program name of the shortcut of the application program in an idle block on the desktop, the idle block being a block in which the shortcut of the application program is not displayed. Also disclosed are a desktop generation device of a mobile terminal, a desktop operation method for a mobile terminal and a corresponding device thereof. The embodiments of the present application can improve the tolerance of an application program, and reduce the manufacturing difficulty of the icon of the application program.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A desktop generation method for a mobile terminal, comprising:
creating a block class object, wherein the block class object comprises attribute information; drawing, by calling a drawing function, a plurality of blocks based on the attribute information of the block class object, wherein the plurality of blocks are distributed on a whole screen of the mobile terminal without overlap to form a desktop, the plurality of blocks including at least one block that is an idle block, on which no shortcut for an application program is currently presented; and presenting, in a first block that has been an idle block on the desktop, a shortcut icon and/or program name of a shortcut for an application program in a case that the shortcut for the application program is required to be presented on the desktop, wherein the application program is associated with the first block and wherein the shortcut icon and/or program name is a different shape and/or size than the first block such that it is not co-extensive with the first block, a location of the first block being a trigger region such that a user click on the first block is detected as a trigger to perform an operation on the application program.
2 . The method according to claim 1 , wherein presenting, in an idle block on the desktop, a shortcut icon and/or program name of a shortcut for an application program in a case that the shortcut for the application program is required to be presented on the desktop comprises:
monitoring a message of requiring creating a shortcut for an application program on the desktop which is sent from an operating system of the mobile terminal; reading a shortcut icon and/or program name of the application program for which the shortcut is required to be created on the desktop; detecting an idle block on the desktop and presenting the shortcut icon and/or program name of the application program in an idle block.
3 . The method according to claim 1 , wherein the block is a rectangular block, the number of the plurality of blocks is N×M, wherein N is the number of the blocks on the desktop of the mobile terminal in a transverse direction, M is the number of the blocks on the desktop of the mobile terminal in a longitudinal direction, and N and M each are natural numbers greater than or equal to 2.
4 . The method according to claim 3 , wherein the blocks are spaced apart by a preset distance.
5 . The method according to claim 3 , wherein each block of the plurality of blocks is not transparent and is visible for a user.
6 . A desktop operation method for a mobile terminal, comprising:
performing an action in a predetermined action manner to present a plurality of desktops generated on a screen of the mobile terminal, wherein each of the plurality of desktop comprises a plurality of blocks distributed on a whole screen of the mobile terminal without overlap, the plurality of blocks including at least one block that is an idle block, on which no shortcut for an application program is currently presented, wherein a shortcut icon and/or program name of a shortcut for an application program is presented in a first block that has been an idle block on the desktop in a case that the shortcut for the application program is required to be presented on the desktop, and wherein the application program is associated with the first block; receiving an operation message by taking the desktop or a block comprised in the desktop as an operation object, and performing a corresponding operation on the operation object based on a type of the operation message.
7 . The method according to claim 6 , wherein each of plurality of desktops is generated by:
creating a block class object, wherein the block class object comprises attribute information; and drawing, by calling a drawing function, the plurality of blocks based on the attribute information of the block class object.
8 . The method according to claim 6 , wherein the shortcut icon and/or program name is a different shape and/or size than the first block such that it is not co-extensive with the first block, a location of the first block being a trigger region such that a user click on the first block is detected as a trigger to perform an operation on the application program.
9 . The method according to claim 6 , wherein the operation object is the desktop, the type of the operation message is integral movement of the desktop, and performing the corresponding operation on the operation object based on the type of the operation message comprises:
detecting whether the operation message of integral movement is received by one of the plurality of desktops; and creating a list corresponding to the one desktop for recording sequence numbers of blocks comprised in the one desktop and position information of the blocks in the one desktop, in a case that the operation message of integral movement is received by the one desktop; and detecting a target position to which the one desktop is to be moved integrally, and drawing the desktop at the target position by calling a drawing function, based on the sequence numbers of the blocks and the position information of the blocks in the desktop recorded in the list.
10 . The method according to claim 6 , wherein the operation object is the block in the desktop, the type of the operation message is selecting a block in one or more desktops and moving the selected block to a target desktop, and performing the corresponding operation on the operation object based on the type of the operation message comprises:
detecting whether the operation message of selecting and moving is received by a block in the screen of the mobile terminal; and recording in a list a sequence number of the block and position information of the block in the desktop where the block is located, in a case that the operation message of selecting and moving is received by the block, wherein the list is created when the operation message of selecting and moving is received by a block in the screen of the mobile terminal for the first time; and detecting a target position to which the block is to be moved, and interchanging positions of an idle block on a desktop where the target position is located and the block in the list, based on the sequence number of the block and the position information of the block in the desktop where the block is located recorded in the list.
11 . The method according to claim 10 , wherein it is detected whether there is an idle block in the desktop where the target position is located in a case that the target position to which the block is to be moved is detected; and in a case that there is an idle block and the number of the idle blocks is greater than or equal to the number of the blocks recorded in the list, positions of the idle block and the block in the list are interchanged based on the sequence number of the block and the position information of the block in the desktop recorded in the list.
12 . The method according to claim 6 , wherein the operation object is the block in the desktop, the type of the operation message is selecting a block in one or more desktops and moving the selected block to a target desktop, and performing the corresponding operation on the operation object based on the type of the operation message comprises:
receiving an operation message of selecting and moving two or more blocks of the plurality of blocks; selecting one of the clicked two or more blocks and converging the rest of the selected two or more blocks around the one of the selected two or more blocks; and moving the two or more selected blocks simultaneously to a target position of the target desktop.
13 . The method according to claim 6 , wherein the operation object is the block in the desktop, the type of the operation message is displaying and hiding of the desktop, and performing the corresponding operation on the operation object based on the type of the operation message comprises:
detecting whether the operation message of displaying and hiding is received by one of the plurality of desktops; changing an attribute value of a visible attribute of a block in the one desktop to an opposite attribute value, in a case that the operation message of displaying and hiding is received by the one desktop; refreshing the desktop, and drawing the block in the desktop by calling a drawing function to display the desktop and the block in the desktop or not drawing the block in the desktop by calling the drawing function to hide the desktop and the block in the desktop based on the attribute value.
14 . A desktop generation apparatus for a mobile terminal, comprising a processor and a non-transitory storage medium having a plurality of instructions stored thereon that, when executed by the processor, cause the processor to:
create a block class object, wherein the block class object comprises attribute information; draw a plurality of blocks by calling a drawing function based on the attribute information of the block class object, wherein the plurality of blocks are distributed on a whole screen of the mobile terminal without overlap to form a desktop, the plurality of blocks including at least one block that is an idle block, on which no shortcut for an application program is currently presented; and present, in a first block that has been an idle block on the desktop, a shortcut icon and/or program name of a shortcut for an application program in a case that the shortcut for the application program is required to be presented on the desktop, wherein the application program is associated with the first block and wherein the shortcut icon and/or program name is a different shape and/or size than the first block such that it is not co-extensive with the first block, a location of the first block being a trigger region such that a user click on the first block is detected as a trigger to perform an operation on the application program.
15 . The apparatus according to claim 14 , wherein the instructions further cause the processor to:
monitor a message of requiring creating a shortcut for an application program on the desktop which is sent from an operating system of the mobile terminal; read a shortcut icon and/or program name of the application program for which the shortcut is required to be created on the desktop; detect an idle block on the desktop; and present the shortcut icon and/or program name of the application program in an idle block, in a case that it is detected that there is an idle block on the desktop.
16 . A desktop operation apparatus for a mobile terminal, comprising a processor and a non-transitory storage medium having a plurality of instructions stored thereon that, when executed by the processor, cause the processor to:
perform an action in a predetermined action manner to present a plurality of desktops generated on a screen of the mobile terminal, wherein each of the plurality of desktop comprises a plurality of blocks distributed on a whole screen of the mobile terminal without overlap, the plurality of blocks including at least one block that is an idle block, on which no shortcut for an application program is currently presented, wherein a shortcut icon and/or program name of a shortcut for an application program is presented in a first block that has been an idle block on the desktop in a case that the shortcut for the application program is required to be presented on the desktop, and wherein the application program is associated with the first block; receive an operation message taking the desktop or a block comprised in the desktop as an operation object; and perform a corresponding operation on the operation object based on a type of the operation message.
17 . The apparatus according to claim 16 , wherein the operation object is the desktop, the type of the operation message is integral movement of the desktop, and wherein the instructions further cause the processor to:
detect whether the operation message of integral movement is received by one of the plurality of desktops, and trigger the list creating subunit in a case that the operation message of integral movement is received by the one desktop; create a list corresponding to the one desktop for recording sequence numbers of blocks comprised in the one desktop and position information of the blocks in the one desktop; detect a target position to which the one desktop is to be moved integrally; and draw the desktop at the target position by calling a drawing position, based on the sequence numbers of the blocks and the position information of the blocks in the desktop recorded in the list.
18 . The apparatus according to claim 16 , wherein the operation object is the block in the desktop, the type of the operation message is selecting a block in one or more desktops and moving the selected block to a target desktop, and wherein the instructions further cause the processor to:
detect whether the operation message of selecting and moving is received by a block in the screen of the mobile terminal, and trigger the block information recording subunit in a case that the operation message of selecting and moving is received by the block; record in a list a sequence number of the block and position information of the block in the desktop; create the list when the operation message of selecting and moving is received by a block in the screen of the mobile terminal for the first time; detect a target position to which the block is to be moved; and interchange positions of an idle block and the block in the list, based on the sequence number of the block and the position information of the block in the desktop recorded in the list.
19 . The apparatus according to claim 18 , wherein the instructions further cause the processor to detect whether there is an idle block in a desktop where the target position is located, in a case that the target position to which the block is to be moved is detected; and
trigger the position interchanging subunit in a case that there is an idle block and the number of the idle blocks is greater than or equal to the number of the blocks recorded in the list.
20 . The apparatus according to claim 16 , wherein the operation object is the block in the desktop, the type of the operation message is displaying and hiding of the desktop, and the instructions further cause the processor to:
detect whether the operation message of displaying and hiding is received by one of the plurality of desktops, and trigger the block attribute adjusting subunit in a case that the operation message of displaying and hiding is received by the one desktop; change an attribute value of a visible attribute of a block in the one desktop to an opposite attribute value; and draw the block in the desktop by calling a drawing function to display the desktop and the block in the desktop or not draw the block in the desktop by calling the drawing function to hide the desktop and the block in the desktop based on the attribute value, after the desktop is refreshed.Join the waitlist — get patent alerts
Track US2021004141A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.