File list sorting method and apparatus
Patent Information
- Application Number
- CN202511762354.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-27
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2045-11-27
AI Technical Summary
此过程不仅容易因操作疲劳或屏幕滚动过快导致定位不准、操作中断,而且一次仅能对单个列表项进行操作,导致现有方式的处理效率较低
[0008]根据本申请实施例的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现本申请的上述方法。
Smart Images

Figure CN121579431B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method and apparatus for sorting file lists. Background Technology
[0002] With the widespread adoption of mobile office and cloud computing technologies, accessing cloud computers and managing files via mobile devices has become a common need. Currently, sorting files in a terminal file list (such as files in a cloud computer or cloud drive) typically involves long-pressing and dragging list items.
[0003] However, when faced with long lists, users need to press and hold the screen for an extended period and drag to scroll and find the target location. This process is not only prone to inaccurate positioning and interruption due to user fatigue or excessively fast screen scrolling, but also allows only one item to be operated on at a time, resulting in low processing efficiency of the existing method. Summary of the Invention
[0004] This application provides a method and apparatus for sorting a file list.
[0005] According to a first aspect of the embodiments of this application, a method for sorting a file list is provided, the method comprising: In response to a user's file sorting command triggered on the terminal, enter file sorting mode; In the file sorting mode, the items in the file list are presented on the interface in the form of a grid sequence, and a virtual abacus control is displayed on one side of the interface, wherein the beads of the virtual abacus control correspond one-to-one with the file grid in the grid sequence; Receive user selection operation for at least one file raster, and highlight the selected file raster and its corresponding beads; Receive user operations on the virtual abacus control or associated control area, and determine the target location for file insertion or categorization based on the operations; The selected files are inserted and sorted at the target location, or categorized into the folder corresponding to the target location.
[0006] According to a second aspect of the embodiments of this application, a file list sorting apparatus is provided, the apparatus comprising: The mode processing module is used to enter the file sorting mode in response to the file sorting command triggered by the user on the terminal; The interface display module is used to present the items in the file list in the form of a grid sequence on the interface in the file sorting mode, and to display a virtual abacus control on one side of the interface, wherein the beads of the virtual abacus control correspond one-to-one with the file grid in the grid sequence; The operation processing module is used to receive the user's selection operation on at least one file raster and highlight the selected file raster and the corresponding beads; The location determination module is used to receive user operations on the virtual abacus control or associated control area, and determine the target location for file insertion or classification based on the operations. The file processing module is used to insert and sort the selected files at the target location, or to categorize them into the folder corresponding to the target location.
[0007] According to a third aspect of the embodiments of this application, an electronic device is provided. The electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the program to implement the method described above.
[0008] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the methods described above in this application.
[0009] According to a fifth aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described above in this application.
[0010] The file list sorting method and apparatus provided in this application improves the efficiency of operation by rasterizing the file list and establishing a one-to-one mapping relationship with a virtual abacus control; the user controls the automatic scrolling of the list for rough positioning through pressure sensing, and achieves precise insertion and sorting of selected files or quick folder classification by using the unique method of reserving insertion space by moving the beads. Attached Figure Description
[0011] Further details, features, and advantages of this application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which: Figure 1 A flowchart illustrating a file list sorting method provided in an exemplary embodiment of this application; Figure 2 A schematic diagram of a scenario provided for an exemplary embodiment of this application; Figure 3 Another scenario illustration provided for an exemplary embodiment of this application; Figure 4 Another scenario illustration provided for an exemplary embodiment of this application; Figure 5 Another scenario illustration provided for an exemplary embodiment of this application; Figure 6 Another scenario illustration provided for an exemplary embodiment of this application; Figure 7 A schematic block diagram of the functional modules of a file list sorting device provided in an exemplary embodiment of this application; Figure 8 A structural block diagram of an electronic device provided in an exemplary embodiment of this application; Figure 9 A structural block diagram of a computer system provided for an exemplary embodiment of this application. Detailed Implementation
[0012] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.
[0013] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.
[0014] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this application are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0015] It should be noted that the terms "a" and "a plurality of" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more". The names of the messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0016] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0017] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this application's technical solution, based on the prompt message.
[0018] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device. It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation of this application; other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.
[0019] This application first provides a method for sorting a file list. This embodiment uses an example of applying this method to a mobile terminal (such as a smartphone or tablet) equipped with a touchscreen and pressure sensor for illustration. Figure 1 As shown, the method may include the following steps: In step S110, in response to the file sorting command triggered by the user on the terminal, the file sorting mode is entered.
[0020] Specifically, when users access files in a cloud computer or cloud drive using a mobile device, they can trigger a file sorting command by using a specific gesture if they wish to customize the sorting or categorization of the file list. In one specific implementation, the user can trigger this command by long-pressing any area of the file list. When the mobile terminal detects through its built-in pressure sensor that the pressure applied during the long press exceeds a preset threshold for a certain duration, it determines that the user has triggered a file sorting command, and the system interface then switches to file sorting mode.
[0021] In step S120, in file sorting mode, the items in the file list are presented on the interface in the form of a grid sequence, and a virtual abacus control is displayed on one side of the interface, wherein the beads of the virtual abacus control correspond one-to-one with the file grid in the grid sequence.
[0022] After entering file sorting mode, the system rasterizes the file list. For example... Figure 2 As shown, Figure 2This is a schematic diagram of a scenario provided by an embodiment of this application. The backend processes each file or folder item and displays it as an independent, regularly arranged "file grid," with all file grids forming a complete grid sequence. Simultaneously, a virtual abacus control, approximately equal in height to the screen, is dynamically generated on the right (or left) side of the interface. Each bead on this abacus control corresponds precisely to a file grid on the left. This mapping relationship is the foundation for the entire solution to achieve accurate positioning. A lever is typically also located in the center of the abacus, serving as a positioning pointer.
[0023] In step S130, the user's selection operation on at least one file raster is received, and the selected file raster and its corresponding beads are highlighted.
[0024] Users can now begin selecting target files to sort or categorize. Users make selections by clicking one or more file grids. Upon receiving a selection, the system immediately provides visual feedback: the selected file grid and its corresponding beads on the virtual abacus on the right are simultaneously highlighted (e.g., by changing color or adding a border), as shown below. Figure 3 As shown, Figure 3 This is another scenario illustration provided for an embodiment of this application. This step clarifies the objects of subsequent operations (i.e., "which files" will be moved).
[0025] In step S140, the user's operation on the virtual abacus control or associated control area is received, and the target location for file insertion or classification is determined based on the operation.
[0026] In this embodiment, this step is the core of determining the target location of the file (i.e., "where to move it"), and provides multiple interaction methods: Rough location (by associating control areas): such as Figure 4 As shown, Figure 4 This is another scenario illustration provided for an embodiment of this application. Two pressing areas (area A and area B) are located at the bottom of the interface. When the user presses area A or B, they can control the lever on the abacus to move up or down accordingly, while the file grid sequence on the left scrolls in reverse synchronously. The position of the lever on the abacus visually indicates the approximate position of the currently visible area within the overall file list.
[0027] Precise positioning (through direct bead manipulation): After the user finds the approximate insertion area by scrolling, they can directly move the beads on the virtual abacus with their fingers, just like moving the beads on a real abacus. Figure 5 As shown, Figure 5This is another scenario illustration provided by an embodiment of this application. If a user wishes to insert a selected file between grids E and F, they can move bead Z1 upwards and bead Z2 downwards, thereby "creating" a blank grid area between them. The position of this blank area is the target position. Furthermore, the user can achieve "interval insertion" of files by moving non-adjacent beads (e.g., skipping one bead Z3), thus reserving equidistant insertion positions for multiple files at once.
[0028] In step S150, the selected files are inserted and sorted at the target location, or categorized into the folder corresponding to the target location.
[0029] In this embodiment, for the sorting operation: after the user reserves a blank area by moving the beads, they only need to click on any position in that blank area, and the system will accurately insert all the files selected in step S130 into the file list positions corresponding to that blank area. After completion, the system automatically rearranges all grids to maintain the integrity of the list.
[0030] For categorization operations: such as Figure 6 As shown, Figure 6 This is another scenario illustration provided by an embodiment of this application. If the user's goal is to move the selected files to a certain folder, they only need to click the file grid or bead corresponding to the target folder to confirm. After receiving the confirmation operation, the system will move all the selected files to the target folder.
[0031] In summary, this embodiment, by introducing a virtual abacus control and its unique interactive logic, transforms the complex file list sorting and classification operations into an intuitive, accurate, and engaging "abacus-playing" process. This effectively solves the technical problems of inconvenient operation, inaccurate positioning, and low efficiency of long terminal lists, greatly enhancing the user experience.
[0032] The file list sorting method provided in this application constructs an "select first, locate later" interaction paradigm by rasterizing the file list and establishing a one-to-one mapping relationship with a virtual abacus control. Users can achieve automatic scrolling of the list for rough positioning through pressure-sensitive control, and achieve precise insertion and sorting of selected files or rapid folder categorization by using the unique method of reserving insertion space by moving the beads. This solution effectively solves the technical problems of heavy operational load, inaccurate positioning, and inability to perform batch operations in sorting long lists on the terminal, significantly improving operational efficiency and accuracy, while reducing the cumbersome operation for users and improving the user experience.
[0033] Based on the above embodiments, in another embodiment provided in this application, when receiving user operations on the virtual abacus control or associated control area, the above step S150 may further include the following steps: In step S151, the user's operation on the associated control area is received; wherein, the associated control area includes a first pressing area for controlling the file list to scroll in a first direction and a second pressing area for controlling the file list to scroll in a second direction.
[0034] In step S152, in response to the operation of the first pressing area or the second pressing area, the lever on the virtual abacus control is moved accordingly in the first direction or the second direction, and the grid sequence is scrolled synchronously.
[0035] In this embodiment, in file sorting mode, a specific associated control area is provided at the bottom of the interface, which includes a first pressing area and a second pressing area. The first pressing area is used to control the file list to scroll in one direction (e.g., upward), while the second pressing area is used to control the file list to scroll in the opposite direction (e.g., downward).
[0036] When the user presses the first pressing area, the action triggers, causing the lever on the virtual abacus control to move upwards; conversely, pressing the second pressing area moves the lever downwards. This lever movement is synchronized with the scrolling of the file grid sequence. Specifically, when the lever moves upwards, the grid sequence scrolls downwards (towards the end of the list), bringing more content from below into the visible area; when the lever moves downwards, the grid sequence scrolls upwards (towards the top of the list). The real-time position of the lever on the virtual abacus provides the user with an intuitive visual reference, clearly indicating the approximate position of the currently visible file grid within the entire file list length.
[0037] This method of controlling scrolling and positioning through separate pressing areas allows users to avoid prolonged pressing and dragging of list content when browsing and locating long lists, effectively preventing issues such as obscuring the operation area and accidentally touching file items.
[0038] Based on the above embodiments, in another embodiment provided in this application, the specific method of user operation of the associated control area and its response logic are further optimized. Specifically, the user's operation on the first or second pressing area is mainly a pressing operation. To respond to this operation, this method introduces a pressure sensor built into the mobile terminal to achieve more refined and natural interactive control. Therefore, the method further includes the following steps: In step S160, the pressure applied by the user's finger is detected by the pressure sensor built into the terminal.
[0039] In step S170, when the pressing force is greater than a pressing threshold, it is determined that the pressing operation has been received. The movement speed of the lever is positively correlated with the pressing force.
[0040] In this embodiment, when a user presses their finger on the first or second area, the pressure sensor built into the terminal can detect the pressure intensity (p) of the user's finger in real time. The system determines whether the pressure intensity is greater than a preset pressure threshold. When the pressure intensity is greater than this threshold, a valid pressing operation is determined to have been received, and the scrolling control function is activated. At this time, the movement speed (v) of the lever on the virtual abacus control is positively correlated with the real-time pressure intensity (p) of the user's finger.
[0041] This allows users to dynamically control the scrolling speed of the list without changing the pressing position, simply by adjusting the pressure applied with their fingers: the greater the pressure, the faster the lever moves and the list scrolls, suitable for quickly navigating long lists; the less pressure, the slower the scrolling speed, making it easier to make slow, fine-tuning adjustments near the target position.
[0042] This pressure-sensing-based dynamic speed control mapping establishes a human-computer interaction method that is closer to physical intuition. This allows users to navigate and locate quickly and accurately in lengthy lists of documents in a more refined, effortless, and efficient manner, further reducing the user's workload and improving interaction efficiency and user experience.
[0043] Based on the above embodiments, in another embodiment provided in this application, in order to further optimize the user experience of browsing long lists, especially to reduce hand fatigue caused by prolonged pressing operations, this method also provides an automatic scrolling mode. Therefore, the method may further include the following steps: In step S180, when it is detected that the duration of continuous pressing operation of the user on the first pressing area or the second pressing area exceeds the first preset duration, the automatic scrolling mode is activated.
[0044] The system continuously monitors the user's pressing actions on the first or second pressing area. When the duration of continuous pressing actions on a certain pressing area exceeds a first preset duration (t...), the system will initiate a response. max When the system is in automatic scrolling mode, it will automatically start.
[0045] In step S190, in automatic scrolling mode, the control lever moves at the average speed during the continuous pressing operation period.
[0046] In this embodiment, after entering automatic scrolling mode, the user can release their finger without needing to press again. The system will control the lever on the virtual abacus control and simultaneously move the file grid sequence automatically, according to the average movement speed during the period of continuous pressing before triggering automatic scrolling.
[0047] In this mode, users can free their hands, eliminating the need for continuous pressure. They only need to observe the screen, and when the file list scrolls to near the target area, they can stop automatic scrolling with a simple operation (such as a single or double tap on the screen). This minimizes cognitive and operational load, allowing users to focus on the final, precise location operation. This feature greatly improves the comfort and efficiency of sorting through extremely long lists of files.
[0048] Based on the above embodiments, in another embodiment provided in this application, in order to enable users to stop automatic scrolling in a timely and convenient manner at a position they deem appropriate, this embodiment further refines the automatic scrolling stopping mechanism. Therefore, the method may further include the following steps: In step S191, in automatic scrolling mode, a touch stop command from the user in the file list area is received.
[0049] When in auto-scrolling mode, the system continuously monitors the user's touch input in the file list area (i.e., the file grid display area on the left). Once a specific touch stop command is received, such as a quick double-tap of the area, the system determines that the user wishes to stop the current auto-scrolling.
[0050] In step S192, in response to the touch stop command, the control lever is moved and the grid sequence is stopped from scrolling.
[0051] The system responds to the touch-activated stop command by stopping the movement of the lever on the virtual abacus control and simultaneously stopping the scrolling of the file grid sequence. At this point, the interface will remain stably positioned at the file list location seen when the user triggered the stop command.
[0052] This mechanism allows users to quickly and accurately interrupt scrolling during automatic scrolling without precisely aiming at a specific button or area. They can simply perform a simple, natural double-tap gesture within the main display area of the file list. This further optimizes the controllability and user experience of the automatic scrolling function, ensuring a smooth and efficient sorting process.
[0053] Based on the above embodiments, in another embodiment provided in this application, step S140 may further include the following steps: In step S141, a user's manipulation operation on at least two target beads is received. This manipulation operation controls the creation of one or more blank grid areas between the at least two target beads.
[0054] The system receives user input on at least two target beads on the virtual abacus control. Users move the selected beads up or down with their fingers, creating one or more consecutive blank grid areas between them. This interaction highly simulates the user experience of a real abacus, making it intuitive and engaging.
[0055] In step S142, the position of the blank raster area is determined as the target position for file insertion sorting.
[0056] The embodiment directly determines the logical position of this blank grid area in the file list as the target position for file insertion sorting. This reverse operation logic of "reserving space first, then confirming insertion" is fundamentally different from the paradigm of directly dragging file items to uncertain positions in the prior art. It allows users to clearly foresee the exact position where the file will be placed before finally performing the insertion, thereby achieving unprecedented operational precision and significantly reducing the probability of misoperation.
[0057] Based on the above embodiments, in another embodiment provided in this application, when inserting and sorting the selected file at the target position, step S150 may further include the following steps: In step S153, a touch confirmation operation from the user within the blank grid area is received.
[0058] In step S154, in response to the touch confirmation operation, the selected file is inserted into the file list position corresponding to the blank grid area.
[0059] In this embodiment, the system receives a touch confirmation operation from the user within the blank grid area. This operation can be a simple click gesture, serving as the user's final instruction to insert a file into this position. Subsequently, in response to this touch confirmation operation, the system executes the final sorting logic: inserting all the files selected in step S130 into the logical file list position corresponding to the blank grid area in one go and with precision.
[0060] This embodiment provides users with a final confirmation opportunity, further preventing accidental operations. Simultaneously, it simplifies the complex process of dragging and dropping multiple files into a single click, making batch and precise file insertion exceptionally efficient and reliable. After insertion, the system automatically reorders and renders the file raster sequence, maintaining a clean and consistent list interface.
[0061] Based on the above embodiments, in another embodiment provided in this application, the above-mentioned tossing operation includes tossing the first abacus in a first direction and tossing the second abacus in a second direction, with N abacus beads spaced apart from the first abacus beads and the second abacus beads, so that when inserting a file, the selected file is spaced N file positions apart from the adjacent files in the file list; where N is an integer greater than or equal to 0.
[0062] The embodiment further clarifies the specific operation method of the user moving the beads and the diverse sorting effects achieved. This embodiment elaborates on how to implement the innovative function of interval insertion.
[0063] Specifically, the user's manipulation operation comprises two actions: moving the first bead in a first direction (e.g., upward) and moving the second bead in a second direction (e.g., downward). Crucially, the first and second beads do not necessarily have to be adjacent on the virtual abacus; they can be spaced N beads apart, where N is an integer greater than or equal to 0.
[0064] When N=0, it means that the first abacus bead and the second abacus bead are adjacent. At this time, a continuous blank area is left between the two abacus beads for inserting files. After insertion, there are no gaps between files.
[0065] When N≥1, for example, N=1, it means that the user has left one unmoved bead between the first and second beads. In this case, the moving operation will create equally spaced blank areas in the file list that can accommodate multiple files. Finally, when inserting in step S150, the selected file will be inserted into this reserved space, ensuring that each inserted file maintains an interval of N file positions between itself and adjacent existing files in the file list.
[0066] This design enables flexible, non-continuous, intermittent insertion, allowing users to achieve complex sorting layouts by selecting multiple files at once and performing a single bead-flipping operation. The visual feedback of this interaction and the final file arrangement are similar to permutation and combination diagrams in high school mathematics, highly aligning with users' psychological expectations and operational intuition. This greatly enriches the operational dimensions and capabilities of file sorting on the terminal and significantly improves efficiency in handling complex sorting scenarios.
[0067] Based on the above embodiments, in another embodiment provided in this application, if a user wishes to move the selected file to a specific folder, step S150 may further include the following steps: In step S155, the user's selection confirmation operation for the file raster or beads corresponding to the target folder is received.
[0068] In step S156, in response to the selection confirmation operation, the selected file is moved to the target folder.
[0069] In this embodiment, the specific operation process for categorizing selected files into target folders is clearly defined. This process is similar to insertion sort, also utilizing the intuitive mapping characteristics of the virtual abacus control, but it implements the "move to folder" function in file management.
[0070] Specifically, if a user wants to move selected files to a specific folder, after selecting the files, the user clicks the file grid corresponding to the target folder, or the corresponding bead on the virtual abacus to its right, as a final confirmation operation. The system will provide visual feedback for this operation, such as highlighting the folder item, to clarify the user's selection intention. Subsequently, in response to the confirmation operation, the system executes the categorization logic: moving all files selected in step S130 to the target folder at once.
[0071] This implementation makes batch file categorization extremely simple. Users do not need to enter the target folder or use complex multi-level menus. They can quickly categorize batch files by selecting the files once and confirming the target folder once in a unified sorting mode. This greatly improves the efficiency of file management and ensures the continuity and consistency of the operation process.
[0072] Based on the above embodiments, in another embodiment provided in this application, the method of user operation associated control area is further expanded. In addition to supporting scrolling speed control via pressure intensity, a discrete and precise single-step positioning interaction method is also provided. Therefore, the method may further include the following steps: In step S193, in response to the tap operation, the control lever and grid sequence are moved a distance of one grid height.
[0073] Specifically, receiving user operations on the associated control area includes not only pressing operations, but also tapping operations on the first pressing area or the second pressing area.
[0074] When the system detects a clear tap (such as a quick tap) by the user on any pressing area, it will respond to the tap operation in step S193 by controlling the lever on the virtual abacus control to move precisely up or down by a grid height, and simultaneously controlling the file grid sequence to scroll the position of a file item in the opposite direction.
[0075] This tap-based operation provides a precise, item-by-item adjustment mechanism. Once the user has quickly scrolled to the vicinity of the target area, there's no need for careful, slow adjustments using varying pressure. Simply tap once or multiple times, just like using arrow keys, to move list items one by one to the target position. This provides extremely high positioning accuracy for final file insertion and effectively complements the pressure-sensitive continuous scrolling mode, together creating a complete interactive solution that balances fast navigation over long distances with precise positioning over short distances.
[0076] Based on the above embodiments, in another embodiment provided in this application, the initial interaction method for triggering the file sorting command is optimized and clarified, providing a more reliable and accurate mode initiation mechanism. Therefore, the method may further include the following steps: In step S111, the pressure sensor detects the user's long press operation on the screen content area.
[0077] The system continuously senses user touch operations on the screen content area (i.e., the file list display area) through the pressure sensor built into the mobile terminal. When a touch event is detected, the pressure sensor monitors the pressure applied in real time.
[0078] In step S112, when the perceived pressure intensity continuously exceeds a preset threshold and the pressing duration reaches a second preset duration, a file sorting instruction is triggered, and the file sorting mode is entered.
[0079] In this embodiment, the system judges the sensed signal and only determines it as a valid trigger command when two conditions are met simultaneously: first, the sensed pressure intensity continuously exceeds a preset pressure threshold; second, the pressure intensity exceeding the threshold lasts for a second preset duration. When both conditions are met, the system immediately determines that a file sorting command has been triggered and formally enters the file sorting mode.
[0080] This "dual verification of force and duration" triggering mechanism effectively distinguishes the sorting mode activation operation of this application embodiment from ordinary touch gestures such as screen scrolling and single-click selection. It significantly reduces the probability of false triggering of the mode, ensures the clarity of the interaction intent, and retains the user habit of initiating through the familiar "long press" gesture, making the introduction of new functions natural and with low learning costs.
[0081] It should be noted that the above system can be a mobile terminal device in the user's hand (such as a smartphone or tablet computer) and the software running on it, and the embodiments are not limited to this.
[0082] Based on the above embodiments, this application also provides a scenario embodiment, which may specifically include the following process: (1) When accessing cloud computer files or cloud disk files on the terminal, if users want to customize the sorting and classify the files into the corresponding folders for complex and lengthy files, they can long press the content area of the screen with their finger. The mobile device will sense the user's long press operation through the built-in pressure sensor and enter the file sorting mode.
[0083] (2) After entering file sorting mode, each line of file will be automatically processed into individual grids in the background of the device. Simultaneously, finger-pressing areas A and B appear at the bottom of the grid, and a virtual abacus control of equal height to the screen appears on the right side of the grid. Each bead corresponds one-to-one with a file grid. The user selects the file by clicking on the grid's hotspot. After the user selects multiple files, the corresponding grid and the abacus beads on the right will be highlighted, such as... Figure 3 As shown.
[0084] (3) When the user presses area A or B at the bottom of the grid, lever C on the abacus will move. Pressing area A moves lever C upward, and pressing area B moves lever C downward. The user can also tap areas A and B; each tap moves the lever by the height of one grid cell. The left-side file grid area moves simultaneously with lever C. Lever C mainly acts as a positioning pointer, used to roughly locate the current position of the file list. The pressure p applied by the finger pressing areas A and B is positively correlated with the speed v of lever C's movement. The mapping function is: v = f(p) = a × (1) Where a is a constant, and the maximum value of p is p max p max This is a preset value in the background. The greater the pressure applied by the finger, the faster the lever C moves; conversely, the less pressure applied, the slower the movement.
[0085] The distance d that lever C moves is positively correlated with the moving speed v and the time t that the finger presses.
[0086] Since the pressure applied during the pressing process, p, is not a constant value, v is also not a constant value. Divide the time t into n time intervals, each 0.1s long, with the velocity v1, v2, v3...v in each 0.1s interval. n The average speed v over time period t is obtained by linearly averaging these n speed values. 平均 .
[0087] v 平均 = (v1+v2+v3+...+v n ) / n(2) d = v 平均 ×t(3) (4) Establish a coordinate system in the lower right corner of the screen, such as Figure 4As shown, the initial coordinates of lever C are recorded as (0, y1). When area A or B is pressed, lever C moves. Pressing area A moves the lever upwards, and pressing area B moves it downwards. When area A is pressed, d takes a positive value; when area B is pressed, d takes a negative value. Each time A or B is pressed, C moves one grid height, where h is the height of the grid. The distance the lever moves during each consecutive pressing operation is recorded as d1, d2, d3...dn. The Y-coordinate value y2 of the vertex of the first row of the visible file area on the left side of the screen is obtained.
[0088] In addition, when the user continuously presses area A or B for more than a certain duration t max Afterwards, the user can release their finger, and lever C will move automatically at a speed of t. max The average velocity v over time.
[0089] Once in auto-move mode, users can double-click the left-hand file list area to stop scrolling in the left-hand area.
[0090] (5) While the user is moving lever C, observe the contents of the file list on the left. When the approximate position to be placed is seen, the user can stop moving. The final displacement of lever C is: D=d1+ d2+d3+...+dn. When lever C stops moving, the vertex coordinates of the first row of the file area are y3=y2+D.
[0091] (6) When the page stops, the user finds the location of the file to be inserted and can simulate the interaction of an abacus, using their finger to move the beads on the right side to precisely position and insert the file to be sorted. For example Figure 5 As shown.
[0092] Specifically, if a user wants to insert a selected file between grids E and F, they can flick the bead Z1 corresponding to grid E upwards and the bead Z2 corresponding to grid F downwards. Z1 and Z2 will move up and down by one grid height respectively, creating a free space. The user can then tap anywhere within this free space, and the previously selected file will be directly inserted between E and F. Simultaneously, the grids will be automatically reordered, maintaining the original spacing between adjacent grids.
[0093] Furthermore, if a user wants to insert selected files with a one-file gap between them, they can slide Z1 up, Z3 down, and click anywhere in the first blank area. This will allow the previously selected files to be inserted with a one-file gap between them. Figure 5 As shown.
[0094] Similarly, if a user wants to insert selected files with a gap of two files in between, they can move the first bead, skip two beads, and then move the other bead. The final insertion display is similar to permutations and combinations in high school mathematics, which matches the user's mental model.
[0095] (7) If a user wants to categorize the selected files into a folder W, they can click the corresponding grid or bead, and after clicking OK, the previously selected files will automatically enter that folder, such as... Figure 6 As shown.
[0096] The embodiment uses simulated abacus beads to pre-reserve insertion space gaps before inserting the file, which can achieve operational precision and is very user-friendly. It can avoid the problems of existing terminals dragging and sorting without pre-reserving insertion space, which often leads to misalignment problems, resulting in a high probability of misoperation and a poor user experience.
[0097] The embodiment reduces the number of sorting operations and improves efficiency by introducing intermittent insertion. The use of beads and positioning levers enhances operational visibility. Furthermore, the entire file list area remains unobstructed during user operation, eliminating the need to press on individual file items for sorting, and automatic scrolling significantly frees up the user's hands.
[0098] By dividing each function into corresponding functional modules, this application provides a file list sorting device, which can be a server, a terminal, or a chip applied to a server. Figure 7 A schematic block diagram of the functional modules of a file list sorting device provided for an exemplary embodiment of this application. For example... Figure 7 As shown, the file list sorting device includes: The mode processing module 71 is used to enter the file sorting mode in response to the file sorting command triggered by the user on the terminal; The interface display module 72 is used to present the items in the file list in the form of a grid sequence on the interface in the file sorting mode, and to display a virtual abacus control on one side of the interface, wherein the beads of the virtual abacus control correspond one-to-one with the file grid in the grid sequence. The operation processing module 73 is used to receive the user's selection operation on at least one file raster and highlight the selected file raster and the corresponding beads; The location determination module 74 is used to receive user operations on the virtual abacus control or associated control area, and determine the target location for file insertion or classification based on the operations. The file processing module 75 is used to insert and sort the selected files at the target location, or to classify them into the folder corresponding to the target location.
[0099] In another embodiment provided in this application, the position determination module 74 is specifically used for: Receive user operations on the associated control area; wherein, the associated control area includes a first press area for controlling the file list to scroll in a first direction and a second press area for controlling the file list to scroll in a second direction; In response to an operation on the first pressing area or the second pressing area, the lever on the virtual abacus control is controlled to move accordingly in the first direction or the second direction, and the grid sequence is scrolled synchronously.
[0100] In another embodiment provided in this application, the operation on the first pressing area or the second pressing area includes a pressing operation; the device further includes a pressing operation confirmation module, specifically used for: The pressure of the user's finger is detected by the pressure sensor built into the terminal; When the pressing force is greater than the pressing threshold, it is determined that the pressing operation has been received; wherein, the moving speed of the lever is positively correlated with the pressing force.
[0101] In another embodiment provided in this application, the device further includes an automatic scrolling mode processing module, specifically used for: When it is detected that the duration of continuous pressing operation of the user on the first pressing area or the second pressing area exceeds the first preset duration, the automatic scrolling mode is activated; In the automatic scrolling mode, the lever is controlled to move at the average speed during the continuous pressing operation period.
[0102] In another embodiment provided in this application, the device further includes a lever movement and rolling control module, specifically used for: In the automatic scrolling mode, the system receives a touch stop command from the user in the file list area; In response to the touch stop command, the lever is moved and the grid sequence is stopped from scrolling.
[0103] In another embodiment provided in this application, the position determination module 74 is specifically used for: Receive user manipulation operation on at least two target beads, the manipulation operation being used to control one or more blank grid areas to be left between the at least two target beads; The position of the blank raster region is determined as the target position for file insertion sorting.
[0104] In another embodiment provided in this application, the file processing module 75 is specifically used for: Receives touch confirmation from the user within the blank grid area; In response to the touch confirmation operation, the selected file is inserted into the file list position corresponding to the blank grid area.
[0105] In another embodiment provided in this application, the tossing operation includes tossing the first abacus in a first direction and the second abacus in a second direction, wherein the first abacus and the second abacus are spaced N abacuses apart, so that when inserting a file, the selected file is spaced N file positions apart from adjacent files in the file list; wherein N is an integer greater than or equal to 0.
[0106] In another embodiment provided in this application, the file processing module 75 is specifically used for: Receive confirmation from the user regarding the selection of the file grid or beads corresponding to the target folder; In response to the selection confirmation operation, the selected file is moved to the target folder.
[0107] In another embodiment provided in this application, receiving user operations on the associated control area includes receiving user tap operations on the first pressing area or the second pressing area; the device further includes a sorting mode processing module, specifically used for: In response to the tap operation, the lever and the grid sequence are moved a distance of one grid height.
[0108] In another embodiment provided in this application, the step of entering the file sorting mode in response to a file sorting command triggered by a user on a terminal includes: The pressure sensor detects the user's long press on the screen content area; When the perceived pressure exceeds a preset threshold and the pressing duration reaches a second preset duration, the file sorting instruction is triggered, and the file sorting mode is entered.
[0109] Regarding the apparatus, which corresponds to the method embodiments described above, please refer to the description of the method embodiments for details, which will not be repeated here.
[0110] This application also provides an electronic device, including: at least one processor; a memory for storing executable instructions of the at least one processor; wherein the at least one processor is configured to execute the instructions to implement the method disclosed in the embodiments of this application.
[0111] Figure 8 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this application. For example... Figure 8As shown, the electronic device 1800 includes at least one processor 1801 and a memory 1802 coupled to the processor 1801. The processor 1801 can perform the corresponding steps in the methods disclosed in the embodiments of this application.
[0112] The processor 1801 described above can also be called a central processing unit (CPU), which can be an integrated circuit chip with signal processing capabilities. Each step in the method disclosed in this application can be implemented by the integrated logic circuitry in the hardware of the processor 1801 or by instructions in software form. The processor 1801 can be a general-purpose processor, a digital signal processor (DSP), an ASIC (Application Specific Integrated Circuit), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in the memory 1802, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The processor 1801 reads information from the memory 1802 and, in conjunction with its hardware, completes the steps of the above method.
[0113] Furthermore, the various operations / processes according to this application, when implemented via software and / or firmware, can be transmitted from a storage medium or network to a computer system with a dedicated hardware architecture, such as... Figure 9 The computer system 1900 shown is equipped with the programs that constitute the software. When various programs are installed, the computer system is able to perform various functions, including those described above. Figure 9 A structural block diagram of a computer system provided for an exemplary embodiment of this application.
[0114] Computer System 1900 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.
[0115] like Figure 9 As shown, the computer system 1900 includes a computing unit 1901, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 1902 or a computer program loaded from a storage unit 1908 into a random access memory (RAM) 1903. The RAM 1903 may also store various programs and data required for the operation of the computer system 1900. The computing unit 1901, ROM 1902, and RAM 1903 are interconnected via a bus 1904. An input / output (I / O) interface 1905 is also connected to the bus 1904.
[0116] Multiple components in computer system 1900 are connected to I / O interface 1905, including: input unit 1906, output unit 1907, storage unit 1908, and communication unit 1909. Input unit 1906 can be any type of device capable of inputting information into computer system 1900. Input unit 1906 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of the electronic device. Output unit 1907 can be any type of device capable of presenting information and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 1908 may include, but is not limited to, hard disks and optical disks. Communication unit 1909 allows computer system 1900 to exchange information / data with other devices via a network such as the Internet, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth™ devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.
[0117] The computing unit 1901 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1901 performs the various methods and processes described above. For example, in some embodiments, the methods disclosed in the embodiments of this application can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 1908. In some embodiments, part or all of the computer program can be loaded and / or installed on an electronic device via ROM 1902 and / or communication unit 1909. In some embodiments, the computing unit 1901 can be configured to perform the methods disclosed in the embodiments of this application by any other suitable means (e.g., by means of firmware).
[0118] This application also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform the methods disclosed in this application.
[0119] The computer-readable storage medium in this application embodiment may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The aforementioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specifically, the aforementioned computer-readable storage medium may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
[0120] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0121] This application also provides a computer program product, including a computer program, wherein the computer program, when executed by a processor, implements the methods disclosed in the embodiments of this application.
[0122] In embodiments of this application, computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer.
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0124] The modules, components, or units described in the embodiments of this application can be implemented in software or hardware. The names of the modules, components, or units do not necessarily constitute a limitation on the module, component, or unit itself.
[0125] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that can be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0126] The above description is merely an embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
[0127] While specific embodiments of this application have been described in detail by way of examples, those skilled in the art should understand that the above examples are for illustrative purposes only and are not intended to limit the scope of this application. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this application. The scope of this application is defined by the appended claims.
Claims
1. A method for sorting a file list, characterized in that, The method includes: In response to a user's file sorting command triggered on the terminal, enter file sorting mode; In the file sorting mode, the items in the file list are presented on the interface in the form of a grid sequence, and a virtual abacus control is displayed on one side of the interface, wherein the beads of the virtual abacus control correspond one-to-one with the file grid in the grid sequence; Receive user selection operation for at least one file raster, and highlight the selected file raster and its corresponding beads; The system receives user operations on the virtual abacus control or associated control area, and determines the target position for file insertion or categorization based on the operations. Specifically, receiving user operations on the associated control area and determining the target position for file insertion or categorization based on the operations includes: receiving user operations on the associated control area; wherein the associated control area includes a first pressing area for controlling the file list to scroll in a first direction and a second pressing area for controlling the file list to scroll in a second direction; in response to an operation on the first pressing area or the second pressing area, the system controls the lever on the virtual abacus control to move accordingly in the first direction or the second direction, and synchronously controls the scrolling of the grid sequence. The selected files are inserted and sorted at the target location, or categorized into the folder corresponding to the target location.
2. The method according to claim 1, characterized in that, The operation on the first pressing area or the second pressing area includes a pressing operation; the method further includes: The pressure of the user's finger is detected by the pressure sensor built into the terminal; When the pressing force is greater than the pressing threshold, it is determined that the pressing operation has been received; wherein, the moving speed of the lever is positively correlated with the pressing force.
3. The method according to claim 1, characterized in that, The method further includes: When it is detected that the duration of continuous pressing operation of the user on the first pressing area or the second pressing area exceeds the first preset duration, the automatic scrolling mode is activated; In the automatic scrolling mode, the lever is controlled to move at the average speed during the continuous pressing operation period.
4. The method according to claim 3, characterized in that, The method further includes: In the automatic scrolling mode, the system receives a touch stop command from the user in the file list area; In response to the touch stop command, the lever is moved and the grid sequence is stopped from scrolling.
5. The method according to claim 1, characterized in that, The step of receiving user operations on the virtual abacus control and determining the target location for file insertion or categorization based on the operations includes: Receive user manipulation operation on at least two target beads, the manipulation operation being used to control one or more blank grid areas to be left between the at least two target beads; The position of the blank raster region is determined as the target position for file insertion sorting.
6. The method according to claim 5, characterized in that, The step of inserting and sorting the selected files at the target position includes: Receives touch confirmation from the user within the blank grid area; In response to the touch confirmation operation, the selected file is inserted into the file list position corresponding to the blank grid area.
7. The method according to claim 5, characterized in that, The tossing operation includes tossing the first abacus in a first direction and the second abacus in a second direction, with N abacus beads spaced apart from the first abacus beads and the second abacus beads, so that when inserting a file, the selected file is spaced N file positions apart from adjacent files in the file list; where N is an integer greater than or equal to 0.
8. The method according to claim 1, characterized in that, The step of categorizing the selected files into the folder corresponding to the target location includes: Receive confirmation from the user regarding the selection of the file grid or beads corresponding to the target folder; In response to the selection confirmation operation, the selected file is moved to the target folder.
9. The method according to claim 1, characterized in that, The method of receiving user operations on the associated control area includes receiving user tap operations on the first or second press area; the method further includes: In response to the tap operation, the lever and the grid sequence are moved a distance of one grid height.
10. The method according to claim 1, characterized in that, The process of entering file sorting mode in response to a file sorting command triggered by the user on the terminal includes: The device uses a pressure sensor to detect long-press operations by the user on the screen content area. When the perceived pressure exceeds a preset threshold and the pressing duration reaches a second preset duration, the file sorting instruction is triggered, and the file sorting mode is entered.
11. A file list sorting device, characterized in that, The device includes: The mode processing module is used to enter the file sorting mode in response to the file sorting command triggered by the user on the terminal; The interface display module is used to present the items in the file list in the form of a grid sequence on the interface in the file sorting mode, and to display a virtual abacus control on one side of the interface, wherein the beads of the virtual abacus control correspond one-to-one with the file grid in the grid sequence. The operation processing module is used to receive the user's selection operation on at least one file raster and highlight the selected file raster and the corresponding beads; A position determination module is used to receive user operations on the virtual abacus control or associated control area, and determine the target position for file insertion or categorization based on the operations; wherein, receiving user operations on the associated control area and determining the target position for file insertion or categorization based on the operations includes: receiving user operations on the associated control area; wherein, the associated control area includes a first pressing area for controlling the file list to scroll in a first direction and a second pressing area for controlling the file list to scroll in a second direction; in response to the operation on the first pressing area or the second pressing area, controlling the lever on the virtual abacus control to move accordingly in the first direction or in the second direction, and synchronously controlling the scrolling of the grid sequence; The file processing module is used to insert and sort the selected files at the target location, or to categorize them into the folder corresponding to the target location.
12. An electronic device, characterized in that, include: At least one processor; Memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the method as described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the method as described in any one of claims 1-10.
14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-10.
Citation Information
Patent Citations
Method and device for moving icons
CN107329644A
Electronic device and folder configuring method therefor
WO2020141763A1