Mobile phone desktop independent page turning folder control method and device, equipment and medium

By generating unique identifiers and independent storage units, and dynamically managing mobile desktop folder groups, the problems of single functions and data aliasing in traditional folder management are solved, and independent data management and view switching of multi-page folder groups are realized, thus improving the user experience.

CN120687419APending Publication Date: 2025-09-23朱哲圻
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510794854.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-14
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

Traditional mobile phone desktop folder management functions are limited and cannot achieve independent page turning and dynamic editing of multiple pages, resulting in complex operations and data aliasing, which cannot meet user needs.

Method used

By generating a unique identifier, an independent storage unit is created, the page list field and the current active page pointer field are initialized, and a flippable folder group instance containing independent pages is generated. The target page identifier is dynamically updated by parsing the user's sliding direction to achieve independent data management and view switching of multi-page folder groups.

Benefits of technology

It realizes independent data management of multi-page folder groups, solves the problems of single function and data aliasing of traditional folders, and ensures the smoothness of user interaction and non-interference of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120687419A_ABST
    Figure CN120687419A_ABST
Patent Text Reader

Abstract

The invention relates to a mobile phone desktop independent page turning folder control method and device, equipment and a medium. According to the method, a unique identifier is generated in response to a user adding instruction, an independent storage unit bound with the unique identifier is created, and the incidence relation of a page list field, a current active page pointer field and a page identifier is initialized in the independent storage unit; generating a page turning folder group instance containing independent pages on the basis of the page list data in the storage unit, binding the content of each page with a page identifier, dynamically updating a target page identifier by analyzing the sliding direction of a user, reading icon arrangement data of a corresponding page and switching a view, therefore, independent data management, dynamic page turning operation and accurate view switching of the multi-page folder group are realized, the problems of single function and data aliasing of a traditional folder are solved, and the fluency of non-interference of multi-folder group operation and user interaction is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of mobile terminal user interface and interaction technology, and in particular relates to a method, device, equipment and medium for controlling independent page-turning folders on a mobile phone desktop. Background Art

[0002] When using mobile devices, users often need to categorize and manage application icons for quick access. Traditional mobile desktop management functions usually organize applications through folders, but these folders are relatively simple and cannot meet users' needs for multi-page management, dynamic editing, and independent folder groups. In existing technologies, although some systems support simple folder classification, they lack the ability to manage multi-page independent folder groups. As a result, users still face complex operations and data aliasing when they need to manage a large number of applications.

[0003] Furthermore, existing technologies often lack sophisticated data management for folders, making data conflicts between folder instances unfeasible and preventing truly independent management. For example, when a user attempts to create multiple folder groups, the data within these groups may interfere with each other, leading to operational confusion or data loss. Furthermore, existing technologies lack a dynamic management mechanism for pages within folders, preventing users from freely adding, deleting, or editing pages as needed. This significantly limits the flexibility and practicality of folders.

[0004] Therefore, there is an urgent need for a technical solution that can support independent page-turning folder groups, realize dynamic management of folder groups through unique data identifiers and independent storage mechanisms, and improve user experience. Summary of the Invention

[0005] Based on this, it is necessary to provide a method, device, equipment and medium for controlling independent page-turning folders on a mobile phone desktop to address the above technical problems.

[0006] In a first aspect, the present application provides a method for controlling independent page-turning folders on a mobile phone desktop, comprising:

[0007] S1. In response to an add instruction triggered by a user on the mobile phone desktop, a unique identifier is generated, and an independent storage unit is created based on the unique identifier. The independent storage unit initializes an association between a page list field, a current active page pointer field, and a page identifier;

[0008] S2. Generate a flippable folder group instance containing at least one independent page according to the page list data in the independent storage unit, wherein the display content of the independent page is bound to the page identifier;

[0009] S3. In response to the user's page turning operation on the folder group instance, the target page identifier is updated based on the sliding direction of the page turning operation and the current active page pointer field, the icon arrangement data of the corresponding page is read from the independent storage unit according to the target page identifier, and the target page view is dynamically switched.

[0010] In a second aspect, the present application also provides a mobile phone desktop independent page-turning folder control device, comprising:

[0011] A storage management module is used to generate a unique identifier in response to an add instruction triggered by a user on the mobile phone desktop, and to create an independent storage unit based on the unique identifier, and to initialize the association between the page list field, the current active page pointer field, and the page identifier in the independent storage unit;

[0012] A folder group generating module, configured to generate a flippable folder group instance containing at least one independent page according to the page list data in the independent storage unit, wherein the display content of the independent page is bound to the page identifier;

[0013] The page switching module is used to respond to the user's page turning operation on the folder group instance, update the target page identifier based on the sliding direction of the page turning operation and the current active page pointer field, read the icon arrangement data of the corresponding page from the independent storage unit according to the target page identifier, and dynamically switch to the target page view.

[0014] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements a method for controlling independent page-turning folders on a mobile phone desktop as in the first aspect.

[0015] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for controlling independent page-turning folders on a mobile phone desktop as in the first aspect.

[0016] The above-mentioned method, device, equipment and medium for controlling independent page-turning folders on the mobile phone desktop generate a unique identifier in response to a user-added instruction and create an independent storage unit bound to it, initialize the association relationship between the page list field, the current active page pointer field and the page identifier in the independent storage unit, generate a page-turning folder group instance containing independent pages based on the page list data in the storage unit, bind the content of each page to the page identifier, and dynamically update the target page identifier by parsing the user's sliding direction, read the icon arrangement data of the corresponding page and switch the view, thereby realizing independent data management of multi-page folder groups, dynamic page-turning operations and precise view switching, solving the problems of single function and data aliasing of traditional folders, and ensuring non-interference of multi-folder group operations and smooth user interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A flowchart of a method for controlling independent page-turning folders on a mobile phone desktop provided by the present invention;

[0019] Figure 2 A schematic diagram of a flow chart for editing and managing folder group icons in an optional embodiment of the present invention;

[0020] Figure 3 This is a structural schematic diagram of a mobile phone desktop independent page-turning folder control device provided by the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0022] refer to Figure 1 , which presents a flow chart of a method for controlling independent page-turning folders on a mobile phone desktop provided by the present application, the method comprising the following steps:

[0023] S1. In response to the add instruction triggered by the user on the mobile phone desktop, a unique identifier is generated, and an independent storage unit is created based on the unique identifier. The independent storage unit initializes the association relationship between the page list field, the current active page pointer field, and the page identifier.

[0024] Specifically, in generating unique identifiers, in addition to utilizing timestamps and the device's random number generator, multiple factors, such as the user's current device ID, specific desktop layout parameters, and user operating habits, are combined using the UUID (Universally Unique Identifier) ​​algorithm. This algorithm performs multiple hash operations and encryption processes to ensure that the generated unique identifier is not only globally unique but also secure.

[0025] When creating an independent storage unit, a dedicated partition is allocated within the mobile device's storage system. This partition uses a specialized file system structure, such as a SQLite database or a custom binary file format. Strict access control mechanisms are implemented within the independent storage unit, ensuring that only authorized system processes or application components can read and write to it.

[0026] When the page list field is initialized, a certain number of nodes are pre-allocated to store metadata for each individual page. This metadata includes details such as the page's unique identifier, creation time, last modification time, total number of icons within the page, and icon layout. Each node also reserves space for storing page status information, such as whether the page is locked, hidden, or has a password set, among other advanced properties.

[0027] The currently active page pointer field is initialized to point to a default starting page, which can be the first independent page in a folder group. This pointer field is stored as a long integer value or a memory address, depending on the phone's system architecture and design. Updates to the pointer field trigger a series of cache refreshes to ensure that the target page's data is quickly retrieved from the cache when switching pages, reducing frequent disk reads and improving system responsiveness.

[0028] S2. Generate a flippable folder group instance containing at least one independent page according to the page list data in the independent storage unit, and bind the display content of the independent page to the page identifier.

[0029] Specifically, when parsing page list data, the page list stored in the independent storage unit is parsed item by item according to the predefined format and protocol. For the initial properties of each independent page, a variety of configurable templates are provided for users to choose from, such as a standard grid layout template, a list layout template, and a free drag layout template. Users can initialize the page size, background color, layout parameters, and other detailed information for each independent page according to the definitions in the template through the settings interface provided by the mobile phone system or by selecting the corresponding template when creating a folder group.

[0030] When allocating display memory space for each independent page, a dynamic calculation is performed based on the page size and the expected number of icons it will contain. For example, for a standard grid layout page, the required memory size is estimated based on the number of rows and columns in the grid, and the corresponding area in the graphics card's video memory is allocated. Furthermore, a separate rendering context is created for each independent page to ensure that drawing operations on each page do not interfere with each other.

[0031] When binding display content to page identifiers, a two-way binding mechanism based on memory mapping and caching can be used. The icon layout data for each individual page is indexed by the page identifier during storage, forming an efficient lookup table. During display, the page identifier is used to quickly locate the corresponding lookup table entry, then the icon data is loaded into memory and drawn to the screen by the rendering engine. When the user modifies the page content, the corresponding data in the lookup table is updated immediately, and the modified data is reflected in the storage unit through the memory refresh mechanism.

[0032] S3. In response to the user's page turning operation on the folder group instance, the target page identifier is updated based on the sliding direction of the page turning operation and the current active page pointer field, the icon arrangement data of the corresponding page is read from the independent storage unit according to the target page identifier, and the target page view is dynamically switched.

[0033] Specifically, when identifying the sliding direction of a page-turning operation, the touch screen's multi-touch data is comprehensively considered, including information such as the starting position of the touch point, movement trajectory, movement speed, and acceleration. This data can be analyzed using a Kalman filter algorithm to determine the user's sliding intention. For example, by calculating the vector direction and speed change of the touch point movement, it can be used to distinguish whether the user intends to quickly turn the page or slowly browse the page content, thereby adjusting the speed and effect of the page switching animation.

[0034] In practical applications, a mathematical model for touchscreen sliding operations is first established. The x- and y-direction positions of the touch point are assumed to be elements of the state variables, while the velocity and acceleration are also included in the state vector. Then, based on the touch point data (measurements) collected by the touchscreen, a Kalman filter algorithm is used to continuously update the state estimate. The velocity and acceleration information in the state estimate can be used to calculate the sliding direction vector. For example, when the x-direction velocity of the touch point is positive and its absolute value is greater than the y-direction velocity, the primary sliding direction can be determined to be rightward. Conversely, if the x-direction velocity is negative and its absolute value is greater, the sliding direction is leftward. The estimated sliding speed can be directly used to measure the sliding speed. The speed value can affect the speed of the page transition animation. For example, a higher sliding speed can trigger a faster page transition animation, while a slower sliding speed can make the page transition smoother.

[0035] The target page identifier can be calculated based on the value and sliding direction of the current active page pointer, as well as the order and number of pages in the folder group. If there are multiple independent pages in the folder group, and the page order is cyclic (i.e., the next page after the last page is the first page), then the corresponding cyclic calculation is performed. At the same time, the visibility status of the page can also be taken into account. For example, if the target page is set to hidden, it will be automatically skipped and the calculation will continue with the next visible page as the target page.

[0036] When reading icon layout data, the complete icon dataset for that page is extracted from a separate storage unit based on the target page identifier. This data includes detailed information such as each icon's image resource path, its absolute coordinate position on the page, its size, its scale factor, and the corresponding application package name or file path. This data is then loaded into memory and preprocessed as necessary, such as decoding the image resource and calculating the actual display size of the icon on screen.

[0037] When dynamically switching to the target page view, the animation rendering process is started. First, based on the icon layout data of the current active page and the target page, the motion trajectory and transformation parameters of each icon during the animation are calculated. Then, through frame-by-frame rendering, the icon of the current active page is gradually moved off the screen, while the icon of the target page is gradually moved onto the screen. During the animation process, the screen display content is continuously updated and adjusted in real time based on the user's touch operation. For example, if the user changes the sliding direction during the animation, the current animation is immediately interrupted and the page is switched in the opposite direction.

[0038] The above-mentioned method for controlling independent page-turning folders on a mobile phone desktop generates a unique identifier in response to a user-added instruction and creates an independent storage unit bound to it, initializes the association between the page list field, the current active page pointer field and the page identifier in the independent storage unit, generates a page-turning folder group instance containing independent pages based on the page list data in the storage unit, binds the content of each page to the page identifier, and dynamically updates the target page identifier by parsing the user's sliding direction, reads the icon layout data of the corresponding page and switches the view, thereby realizing independent data management of multi-page folder groups, dynamic page-turning operations and precise view switching, solving the problems of single function and data aliasing of traditional folders, and ensuring non-interference of multi-folder group operations and smooth user interaction.

[0039] In an optional embodiment, S1 includes the following steps:

[0040] S11 . In response to a user long pressing a blank area of ​​the desktop, generating a desktop editing interface.

[0041] Specifically, when the user long-presses a blank area on the desktop, the mobile phone system detects the long-press operation and recognizes it as a trigger signal to enter the desktop editing mode. The mobile phone system immediately starts the process of generating the desktop editing interface, which may involve the following aspects:

[0042] 1) Interface Layout Adjustment: Temporarily alter the desktop layout, making appropriate visual adjustments to normally displayed elements such as app icons and folders, such as adding a semi-transparent background or a slight zoom effect, to highlight the current editing mode. These elements will also be made interactive, allowing users to perform actions such as dragging and deleting.

[0043] 2) Edit Control Display: A pop-up edit control bar appears at a specific location on the screen (such as the bottom or side). These controls include buttons for adding folder groups, deleting folders, adjusting icon layout, etc. The control design follows the overall design style of the system, with clear icons and labels to facilitate user understanding of their functions.

[0044] 3) Visual Feedback: Provide users with clear visual feedback, such as displaying a dotted grid or highlighted border in a blank area of ​​the desktop, to indicate that they are currently in editing mode. As users operate within the editing interface, the interface display is updated in real time. For example, when the Add Folder Group button is clicked, an animation effect appears to indicate that the operation has been recognized and is being processed.

[0045] S12: In response to the user triggering an operation of adding a page-turning folder group in the desktop editing interface, an initial folder group instance is generated.

[0046] Specifically, the phone system allocates an area in memory for storing and managing the relevant data and status information of the new folder group. At the same time, a placeholder area is created on the screen for the new folder group. For example, a folder icon with a default icon and name (such as "New Folder Group") is displayed in a designated location on the desktop (such as the last row of the desktop or a user-specified location). This placeholder icon has a special visual indicator to remind the user that this is a newly created, editable folder group.

[0047] Add a default, standalone page for the initial folder group. On this default page, arrange a certain number of empty icon slots based on a preset layout template (such as a standard grid layout). These slots are used for subsequent user drag-and-drop of app or file icons. You can also assign a default background image or color to the folder group to enhance its visual distinction.

[0048] Setting the initial interactive state of a folder group to editable allows users to immediately perform further customization operations on the folder group, such as renaming the folder group, adjusting the page layout, and adding or deleting pages. The mobile phone system stores the folder group's editing state information in memory and associates it with the current user's operation context, allowing subsequent updates based on user operations.

[0049] S13. Assign a unique identifier to the initial folder group instance, and bind the unique identifier to the initialized page list field in the independent storage unit.

[0050] Specifically, the mobile phone system invokes a preset unique identifier generation algorithm (such as the UUID algorithm) to generate a globally unique identifier. This unique identifier is assigned to the initial folder group instance and stored in the folder group's attribute data structure. This attribute data structure is associated with the folder group instance in memory and is used to store various attributes and status information of the folder group, such as the folder group name, creation time, and last modification time.

[0051] A new entry is created in the page list field of the independent storage unit to represent the initial folder group. The generated unique identifier is bound to this new entry by creating an index or associated record in the independent storage unit's database or file system. This binding ensures that subsequent unique identifiers can be used to quickly and accurately locate the corresponding folder group's data location in the independent storage unit.

[0052] The assigned unique identifier and binding relationship are synchronized to a separate storage unit to ensure data persistence. During the synchronization process, a transaction processing mechanism is used to ensure data consistency and integrity. For example, if a system crash or other abnormality occurs during synchronization, the mobile system can roll back the unfinished binding operation using the transaction log during recovery, avoiding data inconsistencies. Simultaneously, the folder group's in-memory status information is updated to include the newly assigned unique identifier, allowing subsequent operations to correctly reference the folder group.

[0053] In an optional embodiment, S2 includes the following steps:

[0054] S21. In response to the user's editing operation on the initial folder group instance, enter the internal editing mode of the folder group.

[0055] Specifically, the system continuously monitors user touch operations on the folder group instance. When a long press event is detected and the event meets a preset duration threshold (for example, more than 500 milliseconds), it determines that the user intends to enter internal editing mode. At the same time, the system verifies the legitimacy of the user's operation, such as checking whether the folder group is in an editable state and whether the user has the corresponding permissions.

[0056] Initiate a smooth interface transition animation, transitioning the folder group from the desktop editing interface to the internal editing mode view. The animation effect can be that the folder icon gradually enlarges and takes the center of the screen, while the editing toolbar and page navigation controls appear around it. During the animation, temporarily disable interaction with other desktop elements to prevent users from accidentally operating them.

[0057] In internal editing mode, the detailed layout and content information of the folder group is loaded, including displaying thumbnails or labels of all current independent pages, setting page switching controls (such as the page number indicator at the bottom or the page switching button on the side), and initializing the page editing toolbar, which contains function buttons such as adding new pages, deleting pages, and adjusting page order. At the same time, the status information of the folder group is updated, marking it as being in internal editing mode, and storing this status information in memory so that subsequent operations can correctly identify the current editing context.

[0058] S22. In response to an add new page instruction triggered by the user in the internal editing mode, a new page instance is generated and a page identifier is assigned.

[0059] Specifically, a memory area is allocated for the new page to store its layout information, icon location data, and status information. Simultaneously, a placeholder area is created on the screen for the new page. For example, it can be displayed as a blank page with a default background color or pattern at the end of the folder group page list or at a designated location. This placeholder page has a special visual indicator to indicate to the user that it is a newly created, editable page.

[0060] A page identifier generation algorithm (which can be based on a combination of timestamps and random numbers, or a variant using the UUID algorithm) is called to generate a unique page identifier. This page identifier is associated with the newly created page instance by adding an identifier field to the page instance's data structure and storing the generated identifier in that field. This data structure is used to store various page attributes and status information, such as the page name, creation time, last modification time, and icon layout mode.

[0061] Arrange a certain number of empty icon slots on the new page based on a preset layout template (such as a standard grid layout or a free drag layout). These empty slots are used for subsequent user drag-and-drop of application or file icons. Assign initial position coordinates and size parameters to each empty icon slot, and store this information in the page instance's data structure. Also, set a default background color or image for the new page to enhance its visual distinction and aesthetics.

[0062] Set the initial interactive state of a new page to editable, allowing users to immediately perform further customization operations on the page, such as adjusting the page background, adding or removing icons, and setting page transition animations. Store the page's editing state information in memory and associate it with the current user's operation context so that it can be updated accordingly based on the user's operation.

[0063] S23. Associate the page identifier with the unique identifier, and update the binding relationship between the page list field and the page identifier in the independent storage unit.

[0064] Specifically, the newly assigned page identifier is associated with the unique identifier of the folder group. This association is achieved by establishing a foreign key relationship or an associated record in the database or file system of the independent storage unit. Specifically, a new record can be added to the page list data table of the independent storage unit, which contains the unique identifier of the folder group, the page identifier of the new page, and other relevant attributes of the page (such as page order, whether it is the default page, etc.). Through this association relationship, the page identifiers of all pages under the folder group can be quickly queried through the unique identifier of the folder group, and the corresponding folder group can be reversely queried through the page identifier.

[0065] Update the page list field in the independent storage unit. In the page list field, add relevant information of the new page, including the page identifier, page order, and page status (such as whether it is visible, whether it is locked, etc.). The update operation involves modifying the storage structure. For example, in an independent storage unit based on the SQLite database, execute SQL insert statements to add new page records and update the corresponding indexes and relationship tables. During the update process, a transaction processing mechanism can be used to ensure data consistency and integrity. If an error or exception occurs during the update process, the transaction can be rolled back to restore to the state before the update to prevent data inconsistency.

[0066] Synchronize the updated binding relationship to the independent storage unit to ensure data persistence. Write the page instance data and association relationship data in the memory to the corresponding location of the independent storage unit, and update the status information of the folder group instance in the memory to include the newly added page identifier and page information. At the same time, other related system components or services (such as desktop display service, folder management service, etc.) can also be notified of messages about page addition and binding relationship updates, so that these components or services can refresh their internal status in time and respond accordingly, such as updating the display content of the folder group, adjusting the status of the page switching control, etc.

[0067] In an optional embodiment, S3 includes the following steps:

[0068] S31. Calculate the target page identifier according to the sliding distance and sliding direction of the user on the interface of the folder group instance and the page list field and the current active page pointer field in the independent storage unit.

[0069] Specifically, the touch screen sensor can be used to obtain raw data of the user's sliding operation, including the starting coordinates, ending coordinates, and intermediate coordinates of the touch point during the sliding process. Based on these coordinate points, the sliding vector direction and sliding distance are calculated. The sliding direction can be determined by calculating the arc tangent values ​​of the x- and y-axis displacements of the touch point, while the sliding distance is the length of the touch point's movement trajectory. For example, the sliding distance can be expressed as the number of pixels in the sliding trajectory, and the sliding direction can be expressed as the angle with the horizontal axis (in degrees or radians).

[0070] Based on the swipe distance and direction, determine whether the user has triggered a page switch. If the swipe distance exceeds a preset threshold (e.g., 30% of the screen width) and the swipe direction is roughly consistent with the page switch direction (usually horizontal), it is assumed that the user intended to switch to another page. The swipe direction can be used to determine whether the page was turned forward or backward.

[0071] The page list field is read from the independent storage unit to obtain the page identifiers, page order, and other related attributes of all pages in the folder group. At the same time, the current active page pointer field is read to determine the page identifier of the currently displayed page and its position in the page list.

[0072] The target page identifier is calculated based on the page switching direction and the order of the page list. If the current page is page N, the target page is page N+1 when turning forward, and page N-1 when turning backward (assuming the page order starts at 0 or 1). The target page is checked to see if it is within the valid range of the page list. If it is out of range (for example, if the current page is on the last page and the page is turned forward), the preset strategy is used to handle it, such as keeping it on the last page or looping to the first page.

[0073] When calculating the target page identifier, special cases can be considered, such as whether the page is locked or hidden. If the target page is locked or hidden, it is automatically skipped and the search continues for the next available page as the target page. The handling of these special cases is also logged to facilitate subsequent debugging and optimization.

[0074] S32: Read icon coordinate arrangement information corresponding to the target page identifier from the independent storage unit.

[0075] Specifically, according to the target page identifier, a query operation is performed in the icon arrangement data table of the independent storage unit. The query statement can perform index query based on the page identifier as the primary key to improve query efficiency.

[0076] Obtain a data structure containing the icon coordinate layout information from the query results. This data structure can be in JSON, XML, or a custom binary format. Parse the data structure to extract the detailed coordinate information for each icon, including the icon's x and y coordinate position on the page, the icon's width and height, and the icon's scale factor.

[0077] Verify the read icon coordinates and layout information to check the integrity and consistency of the data. For example, verify that each icon's coordinates are within the valid range of the page and that the icon's size meets the preset specifications. If errors or inconsistencies are found in the data, repair them according to the preset repair rules, such as adjusting out-of-range coordinate values ​​to the boundary values ​​or replacing the icon with the default size.

[0078] To improve subsequent rendering efficiency, the icon coordinate layout information is cached in memory. Caching strategies can be managed based on a least recently used (LRU) algorithm or timestamps to ensure that cached data is the most frequently used and does not expire. Furthermore, a synchronization mechanism is established between cached data and storage unit data. When the data in the storage unit changes, the corresponding data in the cache is updated promptly.

[0079] S33: Render the target page view based on the icon coordinate arrangement information, and update the current active page pointer field to the target page identifier.

[0080] Specifically, before rendering the target page, a view container is prepared for rendering and residual view elements of the previous page are cleaned up. This includes releasing no longer needed graphics resources and clearing the old page content on the screen to ensure that the new page can be displayed correctly on the screen.

[0081] Based on the icon coordinate layout information read, the icons on the page are drawn one by one. The drawing process involves loading the icon image resources from storage into memory, determining the icon's position on the screen based on the coordinate information, calculating the icon's actual display size (taking into account the scaling factor), and drawing it to the corresponding position in the view container. During the drawing process, the layout rules of the page are followed, such as the order and spacing of icons in a grid layout, and the relative position of icons in a free drag layout.

[0082] To provide a smooth user experience, you can perform page transition animations. These animations can take various forms, including sliding transitions, fades, and page flips. During the animation, the screen content is continuously updated, causing the currently active page to gradually move off the screen and the target page to gradually enter. The duration and effect of the animation can be adjusted based on device performance and user preferences.

[0083] When the page transition animation is complete and the target page is fully displayed on the screen, the current active page pointer field in the independent storage unit is updated to point to the target page identifier. The update operation may involve a write operation to the storage unit to ensure data consistency and integrity. During the update process, a transaction processing mechanism can be used to prevent incomplete data updates due to abnormal conditions.

[0084] After updating the current active page pointer field, synchronize the state change to the folder group instance object in memory so that it can reflect the latest active page information. At the same time, send a notification to other related system components or services (such as the desktop display service and folder management service) to inform them that the page switch has completed, so that these components or services can make corresponding updates based on the new active page state, such as updating the indication state of the page switch control and adjusting the folder group title display.

[0085] refer to Figure 2 In an optional embodiment, the method further includes editing the application icon on the inner page of the folder group instance, including the following steps:

[0086] S41 . In response to a user dragging an application icon to a target page in a page-turning folder group instance, metadata of the application icon is acquired, where the metadata includes a package name and an icon resource path.

[0087] Specifically, touch event listeners on the desktop interface and pages within folder groups continuously monitor user touch operations. When the user long-presses an app icon and begins dragging, this action is recognized as a drag operation. Parameters such as the touch event's coordinate changes and the duration of the operation can be used to determine the start of the drag action and track the icon's position changes during the drag process.

[0088] During the dragging process, the system detects in real time whether the application icon enters the boundary of the page-turning folder group instance and determines the specific target page. This can be achieved by detecting the relative position of the icon and each page area, for example, calculating the overlap ratio between the icon and the target page area. When the overlap exceeds a certain threshold (such as 50%), the target page is determined to be the current page.

[0089] When the drag target page is determined, metadata is extracted from the dragged application icon, including the application package name (which uniquely identifies the application) and the icon resource path (which points to the storage location of the application icon). In Android, this metadata can be obtained by calling the application information management API (such as PackageManager). For example, the PackageManager's getApplicationInfo method can be used to obtain the application package name, and the getDrawable method can be used to obtain the icon resource path.

[0090] S42: Write the metadata into the icon list field associated with the target page identifier in the independent storage unit.

[0091] Specifically, according to the target page identifier, the corresponding target page record location is found in the icon list field of the independent storage unit. The icon list field can be a two-dimensional data structure, in which each page corresponds to a list, storing metadata of all application icons on the page.

[0092] Converting the extracted metadata into the format required by the independent storage unit may involve serializing the application package name and icon resource path so that it can be stored in a database or file system. For example, in an SQLite-based storage unit, the metadata can be stored as a JSON-formatted string containing key-value pairs of package name and icon resource path.

[0093] When writing metadata to the target page record location, you can use a transaction mechanism to ensure data consistency. If an error occurs during the write process (such as insufficient disk space or database lock), the transaction will be rolled back, ensuring that the icon list field remains in its original state and avoiding data inconsistencies.

[0094] S43: Calculate the coordinate data of the application icon in the target page based on a grid coordinate algorithm, and update the coordinate arrangement field of the corresponding page identifier in the independent storage unit.

[0095] Specifically, the grid layout parameters of the target page are obtained, including the number of grid rows, number of columns, cell width and height, grid margins, and icon alignment within cells, etc. These parameters can be stored in a page attribute field of a separate storage unit or predefined in a system configuration file.

[0096] Find available blank cells based on the existing icon layout on the current page. You can determine which cells are unoccupied by iterating over the existing coordinate data in the icon coordinate layout field. For example, for a 4×4 grid layout, check each cell to see if it already has an icon and record the position index of the blank cell.

[0097] Select a blank cell as the placement location for the application icon based on a specific strategy (such as row priority, column priority, or most recently used). Then, calculate the actual coordinates of the cell on the page based on the grid parameters. For example, for the selected cell in the i-th row and j-th column, the coordinates of its upper left corner can be calculated as: x = margin left + j × cell width, y = margin top + i × cell height. At the same time, adjust the center coordinates of the icon according to the alignment method. For example, when centered, the center coordinates of the icon are: x_center = x + cell width / 2, y_center = y + cell height / 2.

[0098] Update the calculated coordinate data into the coordinate arrangement field of the independent storage unit. Before updating, perform a conflict check to ensure that the new coordinates do not overlap with the coordinates of the existing icon. If a conflict occurs, reselect a blank cell and recalculate the coordinates until a suitable placement is found.

[0099] S44. Refresh the current page view according to the updated coordinate arrangement fields.

[0100] Specifically, an update event to the coordinate layout field is detected, triggering a refresh of the page view. The area to refresh is determined based on the scope of the update. If only a single app icon has been added, a refresh of the small area containing the icon can be performed; if a large-scale coordinate adjustment occurs, the entire page can be refreshed.

[0101] During the refresh process, all icons on the page are redrawn according to the updated coordinate arrangement fields. Newly added app icons are drawn at the corresponding positions on the page based on their coordinate data, and transformations such as scaling and rotation may be applied. At the same time, the layout of other icons is adjusted to ensure they are displayed according to the new coordinate arrangement.

[0102] In addition to updating the icon's position, you can also adjust the overall page layout as needed. For example, if adding an icon causes the page content to exceed the visible area, the scroll area can be resized and the scroll bar status updated. Furthermore, you can optimize the page layout by merging adjacent white space and adjusting the spacing between icons to improve the page's visual quality and usability.

[0103] To improve the user experience, you can add some animation effects during the refresh process, such as fading in the new icon or sliding the icon into place. At the same time, you can also provide visual feedback, such as displaying a short highlight effect after the icon is successfully placed, or displaying a prompt message when an error occurs to inform the user of the operation result.

[0104] The above-mentioned method for controlling independent page-turning folders on a mobile phone desktop generates a unique identifier in response to a user-added instruction and creates an independent storage unit bound to it, initializes the association between the page list field, the current active page pointer field and the page identifier in the independent storage unit, generates a page-turning folder group instance containing independent pages based on the page list data in the storage unit, binds the content of each page to the page identifier, and dynamically updates the target page identifier by parsing the user's sliding direction, reads the icon layout data of the corresponding page and switches the view, thereby realizing independent data management of multi-page folder groups, dynamic page-turning operations and precise view switching, solving the problems of single function and data aliasing of traditional folders, and ensuring non-interference of multi-folder group operations and smooth user interaction.

[0105] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0106] Based on the same inventive concept, the embodiments of the present application also provide a device for implementing the aforementioned method for controlling independent page-turning folders on the mobile phone desktop. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the device for controlling independent page-turning folders on the mobile phone desktop provided below can be found in the above-mentioned limitations of the method for controlling independent page-turning folders on the mobile phone desktop, and will not be repeated here.

[0107] In an exemplary embodiment, Figure 3 As shown, a mobile phone desktop independent page turning folder control device 30 is provided, comprising:

[0108] The storage management module 31 is used to generate a unique identifier in response to the add instruction triggered by the user on the mobile phone desktop, and create an independent storage unit based on the unique identifier, and initialize the association relationship between the page list field, the current active page pointer field and the page identifier in the independent storage unit.

[0109] The folder group generating module 32 is used to generate a flippable folder group instance containing at least one independent page according to the page list data in the independent storage unit, and the display content of the independent page is bound to the page identifier.

[0110] The page switching module 33 is used to respond to the user's page turning operation on the folder group instance, update the target page identifier based on the sliding direction of the page turning operation and the current active page pointer field, read the icon arrangement data of the corresponding page from the independent storage unit according to the target page identifier, and dynamically switch to the target page view.

[0111] Optionally, the storage management module includes:

[0112] The editing interface management unit is used to generate a desktop editing interface in response to a user long pressing an operation on a blank area of ​​the desktop.

[0113] The initial folder group management unit is used to generate an initial folder group instance in response to the adding page-turning folder group operation triggered by the user in the desktop editing interface.

[0114] The identifier binding management unit is used to allocate a unique identifier to the initial folder group instance and bind the unique identifier to the initialized page list field in the independent storage unit.

[0115] Optionally, the folder group generation module includes:

[0116] The internal editing mode management unit is used to enter the internal editing mode of the folder group in response to the user's editing operation on the initial folder group instance.

[0117] The new page generation and identification management unit is used to generate a new page instance and allocate a page identifier in response to an add new page instruction triggered by a user in an internal editing mode.

[0118] The identifier association and binding update management unit is used to associate the page identifier with the unique identifier and update the binding relationship between the page list field in the independent storage unit and the page identifier.

[0119] Optionally, the page switching module includes:

[0120] The target page identifier calculation unit is used to calculate the target page identifier according to the sliding distance and sliding direction of the user in the interface of the folder group instance, and according to the page list field and the current active page pointer field in the independent storage unit.

[0121] The icon arrangement information reading unit is used to read the icon coordinate arrangement information corresponding to the target page identifier from the independent storage unit.

[0122] The target page view rendering and pointer updating unit is used to render the target page view based on the icon coordinate arrangement information and update the current active page pointer field to the target page identifier.

[0123] Optionally, the device further includes an icon editing management module, which includes:

[0124] The icon dragging and metadata acquiring unit is used to acquire metadata of the application icon in response to the user dragging the application icon to the target page in the inner page of the page turning folder group instance, and the metadata includes the package name and the icon resource path.

[0125] The metadata writing and icon list updating unit is used to write metadata into the icon list field associated with the target page identifier in the independent storage unit.

[0126] The icon coordinate calculation and arrangement update unit is used to calculate the coordinate data of the application icon in the target page based on the grid coordinate algorithm, and update the coordinate arrangement field of the corresponding page identifier in the independent storage unit.

[0127] The view refresh unit is used to refresh the current page view according to the updated coordinate arrangement field.

[0128] An embodiment of the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0129] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0130] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without expending creative work.

[0131] The above-described embodiments merely represent several implementation methods of the embodiments of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the concept of the embodiments of the present application, and these modifications and improvements fall within the scope of protection of the embodiments of the present application.

Claims

1. A method for controlling independent page-turning folders on a mobile phone desktop, the method comprising: S1. In response to an add instruction triggered by a user on a mobile phone desktop, a unique identifier is generated, and an independent storage unit is created based on the unique identifier. The independent storage unit initializes an association between a page list field, a current active page pointer field, and a page identifier; S2. Generate a flippable folder group instance containing at least one independent page according to the page list data in the independent storage unit, wherein the display content of the independent page is bound to the page identifier; S3. In response to the user's page-turning operation on the folder group instance, the target page identifier is updated based on the sliding direction of the page-turning operation and the current active page pointer field, the icon arrangement data of the corresponding page is read from the independent storage unit according to the target page identifier, and the target page view is dynamically switched.

2. The method according to claim 1, characterized in that Said S1 comprises: S11, in response to a user long pressing an empty area of ​​the desktop, generating a desktop editing interface; S12, generating an initial folder group instance in response to an operation of adding a page-turning folder group triggered by the user in the desktop editing interface; S13. Allocate the unique identifier for the initial folder group instance, and bind the unique identifier to the page list field initialized in the independent storage unit.

3. The method according to claim 2, characterized in that The S2 includes: S21. In response to a user editing operation on the initial folder group instance, entering an internal editing mode of the folder group; S22, in response to an add new page instruction triggered by the user in the internal editing mode, generating a new page instance and assigning the page identifier; S23. Associate the page identifier with the unique identifier, and update the binding relationship between the page list field and the page identifier in the independent storage unit.

4. The method according to claim 1, wherein The S3 includes: S31, calculating a target page identifier according to the page list field and the current active page pointer field in the independent storage unit based on the sliding distance and sliding direction of the user on the interface of the folder group instance; S32, reading the icon coordinate arrangement information corresponding to the target page identifier from the independent storage unit; S33: Render the target page view based on the icon coordinate arrangement information, and update the current active page pointer field to the target page identifier.

5. The method according to any one of claims 1 to 4, characterized in that The method further includes editing an application icon on an inner page of the folder group instance; the editing operation on the application icon on the inner page of the folder group instance includes: S41. In response to a user dragging the application icon to a target page in the inner pages of the flip folder group instance, obtaining metadata of the application icon, the metadata including a package name and an icon resource path; S42, writing the metadata into the icon list field associated with the target page identifier in the independent storage unit; S43, calculating the coordinate data of the application icon in the target page based on a grid coordinate algorithm, and updating the coordinate arrangement field of the corresponding page identifier in the independent storage unit; S44: Refresh the current page view according to the updated coordinate arrangement field.

6. A mobile phone desktop independent page turning folder control device, characterized in that: The device comprises: A storage management module, configured to generate a unique identifier in response to an add instruction triggered by a user on the mobile phone desktop, and to create an independent storage unit based on the unique identifier, wherein the independent storage unit initializes the association between the page list field, the current active page pointer field, and the page identifier; a folder group generating module, configured to generate a flippable folder group instance comprising at least one independent page according to the page list data in the independent storage unit, wherein the display content of the independent page is bound to the page identifier; A page switching module is used to respond to the user's page turning operation on the folder group instance, update the target page identifier based on the sliding direction of the page turning operation and the current active page pointer field, read the icon arrangement data of the corresponding page from the independent storage unit according to the target page identifier, and dynamically switch to the target page view.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.