This application claims priority to Chinese Patent Application No. 201410444510.8 filed on Sep. 3, 2014, and Chinese Patent Application No. 201510506671.X filed on Aug. 18, 2015, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to electronic devices, and more specifically relates to, an electronic device with touch screen and a method for moving application functional interface.
Generally, each of electronic devices displays a graphic user interface (GUI). The GUI includes a lot of icons representing application programs installed on the electronic device. An application functional interface is displayed when a user operates or touches the icon.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts have been exaggerated to better illustrate details and features of the present disclosure.
Several definitions that apply throughout this disclosure will now be presented.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. Several definitions that apply throughout this disclosure will now be presented. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the word “module,” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable storage medium or other computer storage device. The term “comprising,” when utilized, means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in the so-described combination, group, series and the like.
The electronic device 2 displays a main desktop interface. The main desktop interface has a plurality of application functional interfaces. The application functional interface moving system 1 can generate an intermediate interface of the main desktop interface and displays the intermediate interface. The intermediate interface is a thumbnail interface of the main desktop interface and includes a plurality of icons. Each of the icons associates with an application functional interface of the main desktop interface. A user can select one of the icons from the intermediate interface; the application functional interface moving system 1 can determine an application functional interface associated with the selected icon. The determined application functional interface needs to be moved. The application functional interface moving system 1 obtains a move operation applied on the selected icon for moving the selected icon from a current place to a first place on the intermediate interface, and determines a destination position of the application functional interface associated with the selected icon when the move operation applied on the selected icon is released in the first place. The application functional interface moving system 1 further updates the application functional interface associated with the selected icon to the destination position, and displays the updated main desktop interface.
In at least one embodiment, the storage device 22 can include various types of non-transitory computer-readable storage mediums. For example, the storage device 22 can be an internal storage system, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 22 can also be an external storage system, such as a hard disk, a storage card, or a data storage medium. The at least one processor 23 can be a central processing unit (CPU), a microprocessor, or other data processor chip that performs functions of the application functional interface moving system 1 in the electronic device 2.
In at least one embodiment, an application functional interface 31 can be added on or deleted from the main desktop interface 30 in response to an operation. If an application functional interface 31 is added on the main desktop interface 30, an association relationship between the application functional interface 31 and an information source of the electronic device 2 is established. If an application functional interface 31 is deleted from the main desktop interface 30, an association relationship between the application functional interface 31 and the information source of the electronic device 2 is released, the association relationship is further deleted from the relationship stored in the storage device 22.
It is be to understand, in at least one embodiment, the display area of the touch screen 21 is limited, and the entire of the main desktop interface 30 needs a number of touch screens 21, such as N, cooperating with each other to be wholly displayed. Hereinafter, it is referred as the main desktop interface 30 contains N screens.
At block 40, the recognition module recognizes whether a request to move an application functional interface is made. If yes, the process goes to block 41; if no, the process goes back to block 40.
At block 41, the recognition module recognizes attributes of the main desktop interface.
In the illustrated embodiment, the attributes of the main desktop interface 30 includes, but is not limited to, screens of the main desktop interface, quantities of the application functional interfaces contained by the main desktop interface 30, a size of each of the application functional interfaces occupied on the main desktop interface, and a position of each of the application functional interfaces located on the main desktop interface.
At block 42, the generating module generates an intermediate interface of the main desktop interface, and displays the generated intermediate interface on the touch screen.
In the illustrated embodiment, the area of the intermediate interface equal to the area of the display area of the touch screen 21. The generating module 12 generates the intermediate interface by minifying the main desktop interface 30 according to the attributions of the main desktop interface 30 recognized by the recognition module 11.
At block 43, the determination module selects an icon from the intermediate interface which needs to be moved, and determines an application functional interface associated with the selected icon. The determined application functional interface also needs to be moved.
In other embodiments, after the application functional interface which needs to be moved is determined, the determination module 13 determines other application functional interfaces on the main desktop interface 30, which have same size as the application functional interface associated with the selected icon. The determination module 13 further marks icons associated with the determined other application functional interfaces on the intermediate interface 50. For example, the determination module 13 highlights the icons associated with the determined other application functional interfaces.
At block 44, the selection module obtains a move operation applied on the selected icon for moving the selected icon from a current place to a first place on the intermediate interface.
At block 45, the determination module determines a destination position of the application functional interface associated with the selected icon when the move operation applied on the selected icon is released in the first place.
In at least one embodiment, the determination module 13 determines a position on the main desktop interface 30 corresponding to the first place is the destination position of the application functional interface which needs to be moved. In other embodiments, the determination module 13 determines the destination position of the application functional interface which needs to be moved based on a sliding distance. In particular, the determination module 13 calculates a distance from an initial position of the application functional interface, which needs to be moved, to the destination position according to a formula D=L×(N+1), the element N denotes screens of the main desktop interface, the element L denotes a distance from the initial position of the main desktop interface corresponding to the current place of the intermediate interface to a position of the main desktop interface corresponding to the first place of the intermediate interface.
At block 46, the determination module determines whether a size of an application functional interface located in the destination position equal to a size of the application functional interface associated with the selected icon. If yes, the process goes to block 47; if no, the process goes to block 49.
In other embodiments, the block 46 can be removed.
At block 47, the update module updates the application functional interface associated with the selected icon to the destination position.
In the illustrated embodiment, when an application functional interface is displayed in the destination position, the update module 15 exchanges the application functional interface in the destination position with the application functional interface associated with the selected icon. When a blank is displayed in the destination position, the update module 15 replaces the blank of the main desktop interface with the application functional interface associated with the selected icon.
At block 48, the display module displays the updated main desktop interface.
In other embedment, the display module 16 synchronously closes or hides the intermediate interface while displays the updated main desktop interface. In an alternative embodiment, the display module 16 only displays a screen of the updated main desktop interface.
At block 49, the display module displays a prompt message to remind a fail.
The embodiments shown and described above are only examples. Many details are often found in the art and many such details are therefore neither shown nor described. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, especially in matters of shape, size and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims. It will therefore be appreciated that the embodiments described above may be modified within the scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410444510.8 | Sep 2014 | CN | national |
201510506671.X | Aug 2015 | CN | national |