CN106681719B - Android-based folder icon display method - Google Patents
Android-based folder icon display method Download PDFInfo
- Publication number
- CN106681719B CN106681719B CN201611201266.8A CN201611201266A CN106681719B CN 106681719 B CN106681719 B CN 106681719B CN 201611201266 A CN201611201266 A CN 201611201266A CN 106681719 B CN106681719 B CN 106681719B
- Authority
- CN
- China
- Prior art keywords
- folder
- icon
- icons
- application
- sub
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
The invention belongs to the technical field of application software, and particularly relates to a folder icon display method based on Android. The invention comprises two aspects: changing the existing folder icon drawing logic; and introducing a set of independent timing drawing functions. According to the method, on the basis of the existing 'nine-square grid' presentation mode, a larger application icon is additionally drawn on the upper layer of the folder icon at regular time, the icon is one of the application icons contained in the folder, the icons of all applications contained in the folder are circularly amplified and displayed, all applications in the folder are clearly and visually presented to a user, and the problem that the icons in the folder are not clearly seen in the existing scheme is solved. The invention can realize the timing switching of the application icons in the folder: and carrying out timed switching amplification display according to the arrangement sequence of the sub-applications.
Description
Technical Field
The invention belongs to the technical field of application software, and particularly relates to a folder icon display method.
Background
Android is one of the most popular operating systems of the current mobile terminal, and various applications (apps) installed by a user are displayed on a system desktop. It is known that as the number of applications to be installed increases, it is inconvenient to find an application page by page. Therefore, the Android system organizes the display of the application icons to a certain extent, namely, the functions of the folders are as follows: for example, a user can place a plurality of applications which are considered to have a certain association in the same folder, and then the user can quickly locate a certain application which the user wants to use by searching a certain specific folder, so that the user can conveniently perform daily operation.
The content presentation mode of the current Android system desktop folder is as follows: a maximum of 9 small icons of applications can be displayed at once within the folder icon. The specific implementation principle is shown in fig. 1: after the system is started, the interface elements (such as application icons, folder icons and the like) on the desktop are loaded, and folder view information is prepared. When a folder icon (each folder icon corresponds to a view file folder icon, java) is loaded, a drawing function in the folder icon is triggered to complete drawing of the folder icon. Assuming that n sub-applications are contained in a folder (here, "sub-applications" are each application contained in the folder), drawing an icon of the ith sub-application (1 = < i < = n, where n is the number of sub-applications contained in the folder) according to a drawing function, and then drawing icons of the (i + 1) th sub-applications until i > n ends the task. In the traversal drawing process, the icons corresponding to the icons are required to be found in sequence, then each icon is zoomed to a certain extent, the drawing position is calculated, and finally the n zoomed small icons are drawn in the folder view in sequence.
The small icons of 9 applications can be displayed at most once in the folder icon, but the size of the folder icon is the same as the size of a normal application icon, so that the small icons of the applications contained in the folder look very small in the range of the size of the folder icon, and a user cannot easily clearly recognize the small icons, so that the method is not a good content presentation mode.
Disclosure of Invention
Aiming at the defects of the Android system in folder display contents, the invention provides a novel Android-based folder icon display method, which can display each application icon in a folder to a user in a clearer and more intuitive mode.
The Android-based folder icon display method provided by the invention is divided into the following two parts:
(1) folder icon rendering logic of the present invention (see FIG. 2): firstly, drawing icons of each sub-application in sequence based on the existing folder icon drawing logic (the display effect is the existing style of 'Sudoku'); on the basis, sequentially selecting icons of all sub-applications in the folder, performing additional amplification drawing, setting the icons to have transparency, and covering the icons on the upper layers of all the sub-application icons in a whole manner, wherein the size of the icons does not exceed the size of the folder icons;
(2) a separate set of timing rendering functions is introduced (see fig. 3): firstly, defining a variable index inside a view file (folder icon. java), setting an initial value to be 0, and marking which sub-application icon is currently displayed in a folder icon; then, a timer function is realized by using a timer interface provided by Android, and the function is used for performing timing plus 1 operation on the variable (for example, every 1 second or every 2 seconds), and simultaneously triggering a folder interface refreshing drawing operation, wherein the drawing logic can refer to the description in the part (1); finally, when the accumulated value of the variable index reaches the value of the application number n contained in the folder, let index =0, continue the above process, and so forth in a loop.
In summary, by using the timing drawing function, a larger application icon (which is one of the application icons contained in the folder) is additionally drawn on the upper layer of the folder icon at regular time, and the application icons are circulated, so that all the applications inside the folder are clearly and intuitively shown to the user.
Fig. 4 shows the implementation effect, and the application icons inside the folder implement timing switching: that is, a small icon of 8 applications is displayed inside the desktop folder icon (since the folder contains only 8 applications, a maximum of 9 small icons can be displayed in practice), on the upper layer of which, a large icon of one application (one of the applications contained inside the folder) is displayed in turn every 2 seconds at a timing, the large icon has transparency and the size does not exceed the size of the folder icon, is overlaid on the upper layer of the folder icon, is displayed above the 8 sub-application icons, and is displayed in a magnified manner by switching at a timing in the order of arrangement of the sub-applications.
The technical scheme of the invention brings beneficial effects
On the basis of the original 'nine-square grid' presentation mode, a larger application icon (which is one of application icons contained in the folder) is additionally drawn on the upper layer of the folder icon at regular time, and icons of all applications contained in the folder are displayed in a circularly enlarged mode, so that the problem that the icons in the folder are not clearly seen in the conventional implementation scheme is solved.
In another scheme, the small icons in the folder are not displayed any more, and all application icons in the folder are displayed in a regularly and circularly traversing and amplifying manner, so that the purpose of the invention can be achieved to a certain extent, and the implementation effect is as shown in fig. 5: on the basis of the implementation scheme of the invention, only the large sub-application icons are circularly displayed, the small nine-square-grid icons at the bottom layer are not drawn any more, the transparency setting of the large sub-application icons is cancelled, but the drawing function is still switched at regular time, a motion effect is added in the icon switching process, namely, the central icon displayed on the upper layer of the folder icon is shifted in a mode of moving from left to right or from top to bottom, the next icon slides in (is displayed), and the previous icon slides out (disappears), so that the display effect of a 'horse race lamp' type is formed.
Drawings
Fig. 1 is a schematic diagram of a prior art related to the present invention.
Fig. 2 shows the implementation logic principle of the Android-based system.
Fig. 3 is a technical scheme diagram of the invention.
Fig. 4 is a diagram of the implementation effect of the invention: and the application icons in the folder realize the timed switching and amplification display.
Fig. 5 is a diagram illustrating the effect of another embodiment of the present invention.
Detailed Description
Firstly, acquiring all applied icons (more than 9, only the first 9 icons are selected) in a folder based on the existing folder icon drawing logic (figure 1), zooming and arranging for a certain time, then drawing in the folder icons, and displaying the icons in the existing 'Sudoku' style;
and a second step of setting a timer function on the basis of the above. A timer function is realized by using a timer interface provided by Android, and the timer function is used for adding 1 to a loop variable in a timed mode (for example, every 1 second or every 2 seconds). Since the onattachedtowwindow () function is a symbolic function of the view loading completion, it is used as a trigger for starting the timer, and the onadetachedfrowwindow () function is a symbolic function of the view removal completion, it is used as a trigger for closing the timer;
and thirdly, selecting an icon of the ith sub-application in the folder (1 = < i < = n, n is the number of the sub-applications contained in the folder), performing additional amplification drawing, setting the transparency of the icon, and enabling the size of the icon not to exceed the size of the folder icon, wherein the large icon covers the upper layers of all the sub-application icons. In the execution process, the drawAllPreviewItems () function is responsible for completing the drawing task of the sub-application icons in the folder view, and the added drawing logic is embodied in the function;
and fourthly, triggering one-time folder interface refreshing drawing operation while adding 1 to the cycle variable at regular time, drawing the icon of the (i + 1) th sub-application, and additionally amplifying the icon and setting various parameters as described in the third step.
And after the drawing is finished, continuing to draw the icon of the next sub-application until i is greater than n, enabling i to be equal to the initial value, continuing to restart the drawing, and repeating the cycle traversing, so that the icons of all applications contained in the folder are switched to be amplified and displayed at regular time, and the problem that the icons in the folder are not clearly seen in the conventional implementation scheme is solved.
Claims (1)
1. A folder icon display method based on Android is characterized by being divided into the following two parts:
(1) constructing a folder icon drawing logic: firstly, drawing icons of each sub-application in sequence based on the existing folder icon drawing logic, wherein the display effect is the existing 'Sudoku' style; on the basis, sequentially selecting icons of all sub-applications in the folder, performing additional amplification drawing, setting the icons to have transparency, and covering the icons on the upper layers of all the sub-application icons in a whole manner, wherein the size of the icons does not exceed the size of the folder icons;
(2) introducing a set of independent timing drawing functions: firstly, defining a variable index inside a view file folder icon, wherein the initial value is set to be 0 and is used for marking which sub-application icon is displayed currently in a folder icon; then, a timer function is realized by using a timer interface provided by Android, the timer function is used for carrying out timing plus 1 operation on the variable, and meanwhile, a folder interface is triggered once to refresh drawing operation, and drawing logic refers to the description in the part (1); finally, when the accumulated value of the variable index reaches the value of the application number n contained in the folder, let index =0, continue the process of part (2), and so on;
the specific operation flow is as follows:
the method comprises the steps that firstly, based on the existing folder icon drawing logic, icons of all applications in a folder are obtained, and if the number of the icons exceeds 9, only the first 9 icons are selected; zooming and arranging, and then drawing in a folder icon, wherein the display effect is the existing style of 'Sudoku';
secondly, on the basis, a timer interface provided by Android is used for realizing a timer function and is used for adding 1 to a cycle variable at regular time; wherein, the onattachedtowwindow () function is a symbolic function of view loading completion, and therefore is used as a trigger for starting the timer, and the onadetachedfrowwindow () function is a symbolic function of view removal completion, and therefore is used as a trigger for closing the timer;
selecting an icon of the ith sub-application in the folder, wherein 1= < i < = n, and n is the number of the sub-applications contained in the folder, performing additional amplification drawing, and setting the transparency of the icon so that the size of the icon does not exceed the size of the folder icon, wherein the large icon covers the upper layers of all the sub-application icons; in the execution process, a drawAllPreviewItems () function is responsible for completing the drawing task of the sub-application icons in the folder view, and an additional drawing logic is also embodied in the function;
step four, adding 1 to the cycle variable at regular time, simultaneously triggering one-time folder interface refreshing drawing operation, drawing the icon of the (i + 1) th sub-application, and additionally amplifying the icon and setting various parameters as described in the step three;
and after the drawing is finished, continuing to draw the icon of the next sub-application until i is greater than n, enabling i to be equal to the initial value, continuing to restart the drawing, and repeating the cycle and traversing to realize the regular switching, amplification and display of all the application icons contained in the folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611201266.8A CN106681719B (en) | 2016-12-22 | 2016-12-22 | Android-based folder icon display method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611201266.8A CN106681719B (en) | 2016-12-22 | 2016-12-22 | Android-based folder icon display method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106681719A CN106681719A (en) | 2017-05-17 |
CN106681719B true CN106681719B (en) | 2021-02-26 |
Family
ID=58871350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611201266.8A Active CN106681719B (en) | 2016-12-22 | 2016-12-22 | Android-based folder icon display method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106681719B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108984060A (en) * | 2018-06-07 | 2018-12-11 | 阿里巴巴集团控股有限公司 | A kind of icon display method and terminal device |
CN113094134B (en) * | 2021-04-06 | 2022-10-18 | 中科美络科技股份有限公司 | Display method and device of software interaction interface suitable for old people |
CN114721761B (en) * | 2022-04-15 | 2023-09-19 | 青岛海信移动通信技术有限公司 | Terminal equipment, application icon management method and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1131063A (en) * | 1997-07-10 | 1999-02-02 | Hitachi Ltd | Automatic icon enlargement method |
CN1263425A (en) * | 1999-02-11 | 2000-08-16 | 索尼国际(欧洲)股份有限公司 | Wireless communication terminal and method for displaying icon on its display device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100830467B1 (en) * | 2006-07-13 | 2008-05-20 | 엘지전자 주식회사 | Display device having touch pannel and Method for processing zoom function of display device thereof |
CN106155457A (en) * | 2015-04-01 | 2016-11-23 | 阿里巴巴集团控股有限公司 | A kind of message prompt method and device |
-
2016
- 2016-12-22 CN CN201611201266.8A patent/CN106681719B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1131063A (en) * | 1997-07-10 | 1999-02-02 | Hitachi Ltd | Automatic icon enlargement method |
CN1263425A (en) * | 1999-02-11 | 2000-08-16 | 索尼国际(欧洲)股份有限公司 | Wireless communication terminal and method for displaying icon on its display device |
Also Published As
Publication number | Publication date |
---|---|
CN106681719A (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11079908B2 (en) | Method and apparatus for adding icon to interface of android system, and mobile terminal | |
CN105278799B (en) | Interface switching method and device | |
RU2600979C2 (en) | Method for quickly processing files of smartphone and smart phone | |
KR101720849B1 (en) | Touch screen hover input handling | |
US9335921B2 (en) | Providing subpages in a touch panel user interface | |
WO2017032005A1 (en) | Operation menu display method and terminal | |
US10627980B2 (en) | Organization mode support mechanisms | |
CN107092421B (en) | Method and device for displaying control of application | |
CN106990883B (en) | Icon moving method, icon moving system and terminal | |
US20140310642A1 (en) | Deferred placement prompt | |
CN106681719B (en) | Android-based folder icon display method | |
CN104572407A (en) | Display method and electronic equipment | |
WO2017215542A1 (en) | Method and device for displaying image | |
WO2015184736A1 (en) | Method and terminal for transforming background picture of touchscreen device | |
CN108614661B (en) | Interactive object display control method based on intelligent terminal and intelligent terminal | |
JP5906344B1 (en) | Information processing apparatus, information display program, and information display method | |
US20130212519A1 (en) | Method and mobile terminal for producing mobile application | |
US9965147B2 (en) | Display method and electronic device | |
US20170205967A1 (en) | Display and interaction method in a user interface | |
CN109032455B (en) | Menu display method and device | |
CN105373427B (en) | A kind of method and device of display application and functional switch | |
CN106227417B (en) | A kind of three-dimensional user interface exchange method, device, display box and its system | |
CN113835578A (en) | Display method and device and electronic equipment | |
CN109032728B (en) | UI (user interface) display method, intelligent terminal and computer-readable storage medium | |
CN105892788A (en) | Interface display method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |