Movatterモバイル変換


[0]ホーム

URL:


CN111273826B - Desktop icon management method, device, equipment and storage medium - Google Patents

Desktop icon management method, device, equipment and storage medium
Download PDF

Info

Publication number
CN111273826B
CN111273826BCN202010027945.8ACN202010027945ACN111273826BCN 111273826 BCN111273826 BCN 111273826BCN 202010027945 ACN202010027945 ACN 202010027945ACN 111273826 BCN111273826 BCN 111273826B
Authority
CN
China
Prior art keywords
icon
display position
desktop
search direction
invalid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010027945.8A
Other languages
Chinese (zh)
Other versions
CN111273826A (en
Inventor
王家宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co LtdfiledCriticalGuangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010027945.8ApriorityCriticalpatent/CN111273826B/en
Publication of CN111273826ApublicationCriticalpatent/CN111273826A/en
Application grantedgrantedCritical
Publication of CN111273826BpublicationCriticalpatent/CN111273826B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种桌面图标管理方法、装置、设备及存储介质,涉及交互智能设备技术领域,其包括:接收用于将选择的元素移到至桌面一目标显示位置的第一触控操作;响应于第一触控操作,在桌面中显示元素的第一图标;如果目标显示位置已显示有第二图标,则根据第一图标放置前的悬停位置与目标显示位置的相对位置关系确定初始的查找方向;如果初始的查找方向上未查找到空白显示位置,则按照与初始的查找方向对应的方向更新策略更新查找方向,并继续查找一空白显示位置;根据空白显示位置的查找方向移动第二图标,将第一图标放置在目标显示位置中。采用上述方法可以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题。

The embodiment of the present application discloses a desktop icon management method, device, device, and storage medium, which relate to the technical field of interactive smart devices, and include: receiving a first touch for moving a selected element to a target display position on the desktop Operation: in response to the first touch operation, display the first icon of the element on the desktop; if the target display position has already displayed the second icon, then according to the relative positional relationship between the hovering position before the first icon is placed and the target display position Determine the initial search direction; if no blank display position is found in the initial search direction, update the search direction according to the direction update strategy corresponding to the initial search direction, and continue to search for a blank display position; according to the search direction of the blank display position The second icon is moved to place the first icon in the target display position. The above-mentioned method can solve the technical problem in the prior art that adding icons to the desktop cannot be realized flexibly and reasonably.

Description

Translated fromChinese
桌面图标管理方法、装置、设备及存储介质Desktop icon management method, device, equipment and storage medium

技术领域Technical Field

本申请实施例涉及交互智能设备技术领域,尤其涉及一种桌面图标管理方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of interactive intelligent devices, and in particular to a desktop icon management method, apparatus, device and storage medium.

背景技术Background Art

随着智能技术的发展,智能设备被广泛应用于日常生活的各类场景。智能设备中可以安装不同类型的应用程序,以便于用户通过应用程序实现期望的功能。现有技术中,为了便于用户启动应用程序,可以将应用程序的快捷启动方式显示在智能设备的桌面中,其中,快捷启动方式可以通过图标的方式呈现,且用户可以根据自身需求在桌面中设置图标的显示位置。发明人在实现本发明的过程中,发现现有技术存在如下缺陷:当用户在桌面中添加某个应用程序的图标时,若图标的显示位置上已经显示有其他的图标,则会将添加的图标显示在桌面的空位上,这样会导致添加的图标无法显示在用户期望的位置上。或者是,按照固定的方向挪动其他的图标,当固定的方向上没有空余位置时,会出现无法在桌面中添加图标的情况。With the development of intelligent technology, intelligent devices are widely used in various scenarios of daily life. Different types of applications can be installed in intelligent devices so that users can realize the desired functions through applications. In the prior art, in order to facilitate users to start applications, the shortcut launch method of the application can be displayed on the desktop of the intelligent device, wherein the shortcut launch method can be presented in the form of an icon, and the user can set the display position of the icon on the desktop according to their own needs. In the process of implementing the present invention, the inventor found that the prior art has the following defects: when the user adds an icon of an application to the desktop, if other icons are already displayed at the display position of the icon, the added icon will be displayed on the empty space on the desktop, which will cause the added icon to be unable to be displayed at the desired position of the user. Alternatively, other icons are moved in a fixed direction. When there is no free space in the fixed direction, it will be impossible to add icons to the desktop.

综上,如何灵活、合理地实现在桌面中添加图标,成为了亟需解决的技术问题。In summary, how to flexibly and reasonably implement adding icons to the desktop has become a technical problem that needs to be solved urgently.

发明内容Summary of the invention

本申请提供了一种桌面图标管理方法、装置、设备及存储介质,以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题。The present application provides a desktop icon management method, device, equipment and storage medium to solve the technical problem in the prior art that it is impossible to flexibly and reasonably add icons to the desktop.

第一方面,本申请实施例提供了一种桌面图标管理方法,包括:In a first aspect, an embodiment of the present application provides a desktop icon management method, comprising:

接收第一触控操作,所述第一触控操作用于将选择的元素移到至桌面的一目标显示位置;Receiving a first touch operation, wherein the first touch operation is used to move a selected element to a target display position on the desktop;

响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态;In response to the first touch operation, displaying a first icon corresponding to the element on the desktop, wherein the first icon is in an unplaced state;

如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向;If a second icon is already displayed at the target display position, determining an initial search direction according to a relative positional relationship between a hovering position of the first icon before placement and the target display position;

如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置;If no blank display position is found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and a blank display position is searched in the updated search direction;

移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。The second icon is moved to place the first icon in the target display position, and the moving direction of the second icon is determined according to the search direction of the blank display position.

进一步的,所述元素在移动前位于其他应用程序的操作界面内。Furthermore, the element is located in the operation interface of other applications before being moved.

进一步的,所述如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置包括:Further, if no blank display position is found in the initial search direction, updating the search direction according to a direction update strategy corresponding to the initial search direction, and searching for a blank display position in the updated search direction includes:

如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标;If no invalid icon is found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and an invalid icon is searched in the updated search direction;

删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。The invalid icon found is deleted, and the display position of the invalid icon in the desktop is determined as the blank display position found.

进一步的,所述在更新的查找方向上查找一无效图标时,还包括:Further, when searching for an invalid icon in the updated search direction, the method further includes:

弹出图标删除窗口,所述图标删除窗口中显示有位于当前的查找方向上的至少一个无效图标;An icon deletion window pops up, wherein at least one invalid icon located in the current search direction is displayed in the icon deletion window;

根据作用于所述图标删除窗口的第二触控操作,确定用户选定的无效图标;determining an invalid icon selected by a user according to a second touch operation applied to the icon deletion window;

所述删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置包括:The step of deleting the invalid icon found and determining the display position of the invalid icon on the desktop as the blank display position found includes:

删除所述用户选定的无效图标;Deleting the invalid icon selected by the user;

按照所述查找方向确定第一个被删除的无效图标,并将所述第一个被删除的无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。The first deleted invalid icon is determined according to the search direction, and the display position of the first deleted invalid icon in the desktop is determined as the found blank display position.

进一步的,所述如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标包括:Further, if no invalid icon is found in the initial search direction, updating the search direction according to a direction update strategy corresponding to the initial search direction, and searching for an invalid icon in the updated search direction includes:

所述桌面中不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标;When there is no blank display position on the desktop, confirm whether an invalid icon is found in the initial search direction;

如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标。If no invalid icon is found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and an invalid icon is searched in the updated search direction.

进一步的,所述如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标包括;Further, if no invalid icon is found in the initial search direction, updating the search direction according to a direction update strategy corresponding to the initial search direction, and searching for an invalid icon in the updated search direction includes:

所述初始的查找方向上不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标;When there is no blank display position in the initial search direction, confirm whether an invalid icon is found in the initial search direction;

如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向;If no invalid icon is found in the initial search direction, updating the search direction according to the direction update strategy corresponding to the initial search direction;

如果更新的查找方向上不存在空白显示位置,则在更新的查找方向上查找一无效图标。If there is no blank display position in the updated search direction, an invalid icon is searched in the updated search direction.

进一步的,所述无效图标为无法正常启动的图标。Furthermore, the invalid icon is an icon that cannot be started normally.

进一步的,所述初始的查找方向为水平向左或水平向右,所述方向更新策略为将所述初始的查找方向的反方向更新为查找方向。Furthermore, the initial search direction is horizontally to the left or horizontally to the right, and the direction update strategy is to update the opposite direction of the initial search direction as the search direction.

进一步的,所述初始的查找方向为竖直向上或竖直向下,所述方向更新策略为按照方向优先级顺序变更查找方向;Further, the initial search direction is vertically upward or vertically downward, and the direction update strategy is to change the search direction according to the direction priority order;

所述方向优先级由高到低依次为:所述初始的查找方向的反方向、设定的水平方向、所述设定的水平方向的反方向。The direction priorities are from high to low: the opposite direction of the initial search direction, the set horizontal direction, and the opposite direction of the set horizontal direction.

进一步的,所述查找方向为水平向右时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置右侧的全部显示位置,以及位于所述目标显示位置所在行下方的全部显示位置,所述下方的全部显示位置中所述空白显示位置的查找顺序为从左至右及从上至下;Further, when the search direction is horizontally to the right, the display positions in the search direction include all display positions on the right side of the target display position in the row where the target display position is located, and all display positions below the row where the target display position is located, and the search order of the blank display positions in all the display positions below is from left to right and from top to bottom;

所述查找方向为水平向左时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置左侧的全部显示位置,以及位于所述目标显示位置所在行上方的全部显示位置,所述上方的全部显示位置中所述空白显示位置的查找顺序为从右至左及从下至上。When the search direction is horizontally to the left, the display positions in the search direction include all display positions on the left side of the target display position in the row where the target display position is located, and all display positions above the row where the target display position is located, and the search order of the blank display positions in all the display positions above is from right to left and from bottom to top.

进一步的,所述第二图标与所述空白显示位置之间存在至少一个第三图标,Furthermore, there is at least one third icon between the second icon and the blank display position.

所述移动所述第二图标时,还包括:The moving of the second icon further includes:

按照所述第二图标的移动方向,顺序移动至少一个所述第三图标。At least one of the third icons is moved sequentially according to the moving direction of the second icon.

进一步的,所述将所述第一图标放置在所述目标显示位置中之后,还包括:Furthermore, after placing the first icon in the target display position, the method further includes:

更新所述第一图标的显示参数。Update the display parameters of the first icon.

进一步的,所述第一触控操作为拖拽操作;Furthermore, the first touch operation is a drag operation;

所述响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标时,还包括:When, in response to the first touch operation, a first icon corresponding to the element is displayed on the desktop, the method further includes:

控制所述第一图标跟随所述第一触控操作移动;Controlling the first icon to move following the first touch operation;

确认所述第一触控操作停止时,根据所述第一图标放置前的悬停位置确定所述目标显示位置。When it is confirmed that the first touch operation stops, the target display position is determined according to the hovering position of the first icon before it is placed.

进一步的,所述桌面包含多个预设的用于放置图标的显示位置,每个所述显示位置分为多个子区域,所述子区域包括上区域、下区域、左区域及右区域中的至少两个;Further, the desktop includes a plurality of preset display positions for placing icons, each of the display positions is divided into a plurality of sub-areas, and the sub-areas include at least two of an upper area, a lower area, a left area, and a right area;

所述根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向包括:The determining of the initial search direction according to the relative position relationship between the hovering position of the first icon before placement and the target display position comprises:

确定所述第一图标放置前的悬停位置落入在所述目标显示位置中的子区域;Determine that a hovering position of the first icon before placement falls within a sub-area within the target display position;

根据所述子区域确定所述空白显示位置初始的查找方向。An initial search direction of the blank display position is determined according to the sub-area.

进一步的,所述确定所述第一图标放置前的悬停位置落入在所述目标显示位置中的子区域包括:Further, the determining that the hovering position of the first icon before being placed falls within a sub-area of the target display position includes:

获取所述第一图标放置前悬停位置的中心点位置;Obtain the center point position of the hovering position of the first icon before placement;

确认所述中心点位置所落入的所述目标显示位置中的子区域,并将所述子区域作为所述第一图标放置前的悬停位置所落入的子区域。A sub-region in the target display position where the center point position falls is identified, and the sub-region is used as the sub-region where the hovering position before the first icon is placed falls.

进一步的,所述响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标包括:Further, in response to the first touch operation, displaying a first icon corresponding to the element on the desktop includes:

检测到所述第一触控操作由所述其他应用程序移动至所述桌面时,向所述桌面发送所述元素的参数;When detecting that the first touch operation is moved from the other application to the desktop, sending the parameter of the element to the desktop;

所述桌面根据所述参数确定所述元素符合添加类型时,在所述桌面中显示对应于所述元素的第一图标。When the desktop determines, according to the parameter, that the element meets the adding type, a first icon corresponding to the element is displayed on the desktop.

进一步的,所述接收第一触控操作之后,还包括:Furthermore, after receiving the first touch operation, the method further includes:

根据所述第一图标的宽度和长度生成拖拽view容器;Generate a drag view container according to the width and length of the first icon;

将所述第一图标添加至所述拖拽view容器;Add the first icon to the drag view container;

所述检测到所述第一触控操作由所述其他应用程序移动至所述桌面时,还包括:When the first touch operation is detected to be moved from the other application to the desktop, the method further includes:

向所述桌面发送所述第一触控操作的拖拽参数以及所述拖拽view容器。Sending the drag parameter of the first touch operation and the drag view container to the desktop.

进一步的,所述第一触控操作作用于所述其他应用程序操作界面内的功能按键,所述功能按键用于将所述操作界面内的元素移动至所述桌面中。Furthermore, the first touch operation acts on a function button in the operation interface of the other application program, and the function button is used to move elements in the operation interface to the desktop.

第二方面,本申请实施例还提供了一种桌面图标管理装置,包括:In a second aspect, the embodiment of the present application further provides a desktop icon management device, including:

接收模块,用于接收第一触控操作,所述第一触控操作用于将选择的元素移到至桌面的一目标显示位置;A receiving module, configured to receive a first touch operation, wherein the first touch operation is configured to move a selected element to a target display position on the desktop;

显示模块,用于响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态;A display module, configured to display a first icon corresponding to the element on the desktop in response to the first touch operation, wherein the first icon is in an unplaced state;

方向确定模块,用于如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向;a direction determination module, configured to determine an initial search direction according to a relative positional relationship between a hovering position of the first icon before placement and the target display position if a second icon has been displayed at the target display position;

查找模块,用于如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置;A search module, configured to update the search direction according to a direction update strategy corresponding to the initial search direction if no blank display position is found in the initial search direction, and search for a blank display position in the updated search direction;

移动模块,用于移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。A moving module is used to move the second icon and place the first icon in the target display position, and the moving direction of the second icon is determined according to the search direction of the blank display position.

第三方面,本申请实施例还提供了一种桌面图标管理设备,包括:In a third aspect, the embodiment of the present application further provides a desktop icon management device, including:

一个或多个处理器;one or more processors;

存储器,用于存储一个或多个程序;A memory for storing one or more programs;

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的桌面图标管理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the desktop icon management method as described in the first aspect.

第四方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的桌面图标管理方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the desktop icon management method as described in the first aspect.

上述桌面图标管理方法、装置、设备及存储介质,通过接收并响应用于将选择的元素移至桌面目标显示位置的第一触控操作,在桌面中显示元素的第一图标,且在目标显示位置已显示有第二图标时,通过第一图标放置前的悬停位置与目标显示位置的相对位置关系确定初始的查找方向,并在初始的查找方向上查找空白显示位置,如果初始的查找方向上不存在空白显示位置,则更换查找方向,并继续查找空白显示位置,之后,在查找到空白显示位置时,将当前的查找方向作为第二图标的移动方向并移动第二图标,之后,将第一图标放置在目标显示位置的技术方案,可以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题,在目标显示位置上已经有第二图标时,可以通过目标显示位置与第一图标悬停位置之间的相对位置关系确定初始的查找方向,并在初始的查找方向上不存在空白显示位置时,更换查找方向,进而根据查找方向得到第二图标的移动方向,而非采用固定的移动方向,也使得图标移动更加灵活。并且,在添加过程中通过显示处于未放置状态的第一图标,使得用户确定该元素可以添加至桌面中,还可以使用户明确第一图标在桌面中的位置进而使用户将第一图标放置在期望的目标显示位置上。The above-mentioned desktop icon management method, device, equipment and storage medium display the first icon of the element on the desktop by receiving and responding to the first touch operation for moving the selected element to the target display position of the desktop. When the second icon is already displayed at the target display position, the initial search direction is determined by the relative position relationship between the hovering position of the first icon before placement and the target display position, and a blank display position is searched in the initial search direction. If there is no blank display position in the initial search direction, the search direction is changed and the blank display position is continued to be searched. Afterwards, when the blank display position is found, the current search direction is used as the moving direction of the second icon and the second icon is moved. Afterwards, the technical solution of placing the first icon at the target display position can solve the technical problem in the prior art that it is impossible to flexibly and reasonably implement adding icons to the desktop. When there is already a second icon at the target display position, the initial search direction can be determined by the relative position relationship between the target display position and the hovering position of the first icon. When there is no blank display position in the initial search direction, the search direction is changed, and then the moving direction of the second icon is obtained according to the search direction, rather than using a fixed moving direction, which also makes the icon movement more flexible. Moreover, during the adding process, by displaying the first icon in an unplaced state, the user can determine that the element can be added to the desktop, and the user can also clearly know the position of the first icon on the desktop and place the first icon at the desired target display position.

进一步的,元素在移动前位于其他应用程序的操作界面内,通过第一触控操作可以实现将其他应用程序内的元素添加至桌面中,使得桌面元素添加方式更加灵活。Furthermore, the element is located in the operation interface of other applications before being moved. Through the first touch operation, the element in other applications can be added to the desktop, making the desktop element adding method more flexible.

同时,通过对显示位置进行区域划分,可以准确确定初始的查找方向,进而使得图标管理更加准确。At the same time, by dividing the display position into areas, the initial search direction can be accurately determined, thereby making icon management more accurate.

进一步的,遍历查找方向上的各显示位置,存在空白显示位置时移动第二图标,也使得图标移动更加灵活,并且可以结合查找无效图标的方式得到空白显示位置,使得查找方式灵活多变,适用于不同的桌面图标排列情况。Furthermore, by traversing each display position in the search direction and moving the second icon when a blank display position exists, icon movement is made more flexible, and the blank display position can be obtained by combining the method of searching for invalid icons, making the search method flexible and changeable, and suitable for different desktop icon arrangements.

进一步的,通过拖拽view容器以及拖拽接口实现将元素由其他应用程序拖拽至桌面中,增强了桌面添加元素时的灵活性。Furthermore, elements can be dragged from other applications to the desktop by dragging the view container and the drag interface, which enhances the flexibility of adding elements to the desktop.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请一个实施例提供的一种桌面图标管理方法的流程图;FIG1 is a flowchart of a desktop icon management method provided by an embodiment of the present application;

图2为本申请一个实施例提供的一种桌面图标管理方法的流程图;FIG2 is a flowchart of a desktop icon management method provided by an embodiment of the present application;

图3为本申请一个实施例提供的桌面第一示意图;FIG3 is a first schematic diagram of a desktop provided by an embodiment of the present application;

图4为本申请一个实施例提供的桌面第二示意图;FIG4 is a second schematic diagram of a desktop provided by an embodiment of the present application;

图5为本申请一个实施例提供的桌面第三示意图;FIG5 is a third schematic diagram of a desktop provided by an embodiment of the present application;

图6为本申请一个实施例提供的桌面第四示意图;FIG6 is a fourth schematic diagram of a desktop provided by an embodiment of the present application;

图7为本申请一个实施例提供的图标删除窗口的示意图;FIG7 is a schematic diagram of an icon deletion window provided by an embodiment of the present application;

图8为本申请一个实施例提供的桌面第五示意图;FIG8 is a fifth schematic diagram of a desktop provided by an embodiment of the present application;

图9为本申请一个实施例提供的桌面第六示意图;FIG9 is a sixth schematic diagram of a desktop provided by an embodiment of the present application;

图10为本申请一个实施例提供的一种桌面图标管理方法的流程图;FIG10 is a flowchart of a desktop icon management method provided by an embodiment of the present application;

图11为本申请一个实施例提供的一种显示位置区域示意图;FIG11 is a schematic diagram of a display position area provided by an embodiment of the present application;

图12为本申请一个实施例提供的初始的查找方向第一示意图;FIG12 is a first schematic diagram of an initial search direction provided by an embodiment of the present application;

图13为本申请一个实施例提供的初始的查找方向第二示意图;FIG13 is a second schematic diagram of an initial search direction provided by an embodiment of the present application;

图14为本申请一个实施例提供的一种桌面图标管理方法的流程图;FIG14 is a flowchart of a desktop icon management method provided by an embodiment of the present application;

图15为本申请一个实施例提供的一种桌面图标管理方法的流程图;FIG15 is a flowchart of a desktop icon management method provided by an embodiment of the present application;

图16为本申请一个实施例提供的一种桌面图标管理方法装置的结构示意图;FIG16 is a schematic diagram of the structure of a desktop icon management method and device provided by an embodiment of the present application;

图17为本申请一个实施例提供的一种桌面图标管理方法设备的结构示意图。FIG. 17 is a schematic diagram of the structure of a desktop icon management method and device provided in one embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或操作或对象与另一个实体或操作或对象区分开来,而不一定要求或者暗示这些实体或操作或对象之前存在任何这种实际的关系或顺序。例如,第一图标和第二图标的“第一”和“第二”用来区分两个不同的图标。It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation or object from another entity or operation or object, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations or objects. For example, the "first" and "second" of the first icon and the second icon are used to distinguish two different icons.

本申请实施例中提供的桌面图标管理方法可以由桌面图标管理设备执行,该桌面图标管理设备可以通过软件和/或硬件的方式实现,该桌面图标管理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。例如,桌面图标管理设备可以是电脑、手机、平板或智能交互平板等智能设备。The desktop icon management method provided in the embodiments of the present application can be executed by a desktop icon management device, which can be implemented by software and/or hardware, and can be composed of two or more physical entities or one physical entity. For example, the desktop icon management device can be a computer, a mobile phone, a tablet, or an intelligent interactive tablet or other intelligent device.

为了便于理解,实施例中以智能交互平板为桌面图标管理设备进行示例性描述。其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其可以集成投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。For ease of understanding, the embodiments are described by taking the smart interactive tablet as a desktop icon management device. The smart interactive tablet can be an integrated device that controls the content displayed on the display tablet and realizes human-computer interaction through touch technology, and can integrate one or more functions such as a projector, an electronic whiteboard, a screen, a sound system, a television, and a video conferencing terminal.

一般而言,智能交互平板包括至少一块显示屏。例如,智能交互平板配置有一块具有触控功能的显示屏,且该显示屏可以是电容屏、电阻屏或者电磁屏。进一步的,用户可以通过手指或触控笔触控显示屏的方式实现触控操作,相应的,智能交互平板检测触控位置,并根据触控位置对应的显示内容确定响应方案,进而进行响应,以实现触控功能。例如,根据触控位置确定对应的显示内容为某个功能的控件,此时,响应方案为执行该功能。可以理解的是,实际应用中,用户还可以通过键盘、鼠标、物理按键等方式实现控制操作。Generally speaking, a smart interactive tablet includes at least one display screen. For example, the smart interactive tablet is equipped with a display screen with a touch function, and the display screen can be a capacitive screen, a resistive screen or an electromagnetic screen. Furthermore, the user can implement touch operations by touching the display screen with a finger or a stylus. Accordingly, the smart interactive tablet detects the touch position, and determines a response scheme according to the display content corresponding to the touch position, and then responds to implement the touch function. For example, according to the touch position, the corresponding display content is determined to be a control of a certain function. At this time, the response scheme is to execute the function. It can be understood that in actual applications, users can also implement control operations through keyboards, mice, physical buttons, etc.

典型的,智能交互平板安装有至少一类操作系统,其中,操作系统包括但不限定于安卓系统、Linux系统及Windows系统。实施例中,以操作系统为安卓系统为例。进一步的,智能交互平板可以基于操作系统安装至少一个应用程序。其中,该应用程序可以为操作系统自带的应用程序,也可以为从第三方设备或者服务器中下载的应用程序,桌面图标管理设备也可以为应用程序本身。Typically, the smart interactive tablet is installed with at least one type of operating system, wherein the operating system includes but is not limited to the Android system, the Linux system and the Windows system. In the embodiment, the operating system is taken as an example of the Android system. Furthermore, the smart interactive tablet can install at least one application based on the operating system. Among them, the application can be an application that comes with the operating system, or an application downloaded from a third-party device or server, and the desktop icon management device can also be the application itself.

一个实施例中,智能交互平板中至少安装有桌面应用和其他应用程序。通过桌面应用可以显示桌面,桌面为视窗操作系统平台,桌面应用为控制桌面的应用程序。一个实施例中,桌面可以包含至少一个显示页,当桌面包含多个显示页时,用户可以通过左右滑动或上下滑动等方式更换当前的显示页。典型的,桌面可以显示智能交互平板中安装的应用程序的图标,以便于通过图标快捷启动应用程序。此外,桌面还可以显示有功能图标(如时间图标、日历图标等),以便于通过功能图标快捷启动对应的功能,以及显示有文件(如图片、文稿、多媒体等)、文件夹、访问链接等至少一项的图标。可以理解,桌面中显示的图标的样式实施例不做限定。一个实施例中,为了便于对桌面图标的管理,将桌面划分为多个用于放置图标的显示位置,每个显示位置为桌面坐标系下的一块区域,各显示位置的大小可以相同。其中,桌面坐标系是基于桌面建立的坐标系。实施例中,以一个显示位置放置一个图标为例进行表述。实际应用中,当图标较大时,可以多个显示位置放置一个图标,本实施例对此不做限定。In one embodiment, at least desktop applications and other applications are installed in the smart interactive tablet. The desktop can be displayed through the desktop application, the desktop is a Windows operating system platform, and the desktop application is an application that controls the desktop. In one embodiment, the desktop can include at least one display page. When the desktop includes multiple display pages, the user can change the current display page by sliding left and right or sliding up and down. Typically, the desktop can display the icons of the applications installed in the smart interactive tablet, so that the application can be quickly started through the icon. In addition, the desktop can also display function icons (such as time icons, calendar icons, etc.) to facilitate the quick start of the corresponding function through the function icon, and display at least one icon of files (such as pictures, manuscripts, multimedia, etc.), folders, access links, etc. It can be understood that the style of the icons displayed in the desktop is not limited in the embodiment. In one embodiment, in order to facilitate the management of desktop icons, the desktop is divided into multiple display positions for placing icons, each display position is an area under the desktop coordinate system, and the size of each display position can be the same. Among them, the desktop coordinate system is a coordinate system established based on the desktop. In the embodiment, an example of placing an icon in a display position is used for description. In actual applications, when the icon is relatively large, one icon may be placed in multiple display positions, which is not limited in this embodiment.

图1为本申请一个实施例提供的一种桌面图标管理方法的流程图。参考图1,该桌面图标管理方法具体包括:FIG1 is a flowchart of a desktop icon management method provided by an embodiment of the present application. Referring to FIG1 , the desktop icon management method specifically includes:

步骤110、接收第一触控操作,该第一触控操作用于将选择的元素移到至桌面的一目标显示位置。Step 110: Receive a first touch operation, where the first touch operation is used to move the selected element to a target display position on the desktop.

具体的,元素可以被用户执行访问、启动、查看等操作。元素的类型实施例不作限定,例如,元素可以包括已经安装的应用、文件、文件夹、访问链接和/或快捷启动等类型。上述文件可以为:图片、文稿、多媒体或设定应用类型文件(如电子白板应用程序文件)等。快捷启动是指通过操作系统的标准接口,可以注册任意事件,以使用户通过快捷启动执行注册的事件,实施例中,快捷启动用于快捷功能。Specifically, the element can be accessed, started, viewed, and the like by the user. The embodiment of the element type is not limited. For example, the element can include installed applications, files, folders, access links, and/or quick launches. The above-mentioned files can be: pictures, documents, multimedia, or set application type files (such as electronic whiteboard application files), etc. Quick launch means that any event can be registered through the standard interface of the operating system so that the user can execute the registered event through the quick launch. In the embodiment, the quick launch is used for the shortcut function.

一个实施例中,通过第一触控操作可以将元素由其他应用程序向桌面拖拽。具体的,其他应用程序为智能交互平板中安装的除了桌面应用外的应用程序,该应用程序可以为系统开发商设计的应用程序,也可以为第三方应用程序,实施例对此不做限定。进一步的,其他应用程序的操作界面可以全屏覆盖在桌面上,或者非全屏覆盖在部分桌面上。一个实施例中,其他应用程序的操作界面中显示有至少一个元素。可以理解,每个其他应用程序包含的元素数量和元素类型可以根据其他应用程序自身的类型所决定,不同其他应用程序间包含的元素数量和元素类型可以不同。可以理解,实际应用中,第一触控操作还可以对桌面内已显示的元素的图标进行移动,实施例中,以将其他应用程序的元素添加至桌面进行示例性描述。In one embodiment, elements can be dragged from other applications to the desktop through a first touch operation. Specifically, other applications are applications installed in the smart interactive tablet other than desktop applications. The application can be an application designed by the system developer or a third-party application, and the embodiment does not limit this. Furthermore, the operation interface of other applications can be fully covered on the desktop, or partially covered on a portion of the desktop. In one embodiment, at least one element is displayed in the operation interface of other applications. It can be understood that the number of elements and element types contained in each other application can be determined according to the type of the other application itself, and the number of elements and element types contained in different other applications can be different. It can be understood that in actual applications, the first touch operation can also move the icons of elements displayed on the desktop. In the embodiment, an exemplary description is given by adding elements of other applications to the desktop.

一个实施例中,通过第一触控操作可以将其他应用程序内的元素直接添加到桌面中。其中,第一触控操作的触发方式实施例不做限定。例如,通过拖拽方式触发,此时,检测到其他应用程序操作界面内的元素接收到拖拽操作,且该拖拽操作为将元素由操作界面向桌面进行拖拽,则确定用户正在执行将该元素拖拽至桌面的第一触控操作。再如,通过虚拟按键的方式触发,此时,其他应用程序的操作界面中显示有功能按键,该功能按键用于将其他应用程序操作界面内的元素移动至桌面中,功能按键的显示位置以及显示样式实施例不做限定。当检测到该功能按键接收到第一触控操作时,确定用户正在执行将元素添加至桌面的操作。实施例中,以第一触控操作为拖拽操作进行示例性描述。In one embodiment, elements in other applications can be directly added to the desktop through a first touch operation. The triggering method of the first touch operation is not limited in the embodiment. For example, it is triggered by dragging. At this time, it is detected that the element in the operation interface of other applications receives a drag operation, and the drag operation is to drag the element from the operation interface to the desktop, then it is determined that the user is performing the first touch operation of dragging the element to the desktop. For another example, it is triggered by a virtual key. At this time, a function button is displayed in the operation interface of other applications. The function button is used to move the elements in the operation interface of other applications to the desktop. The display position and display style of the function button are not limited in the embodiment. When it is detected that the function button receives the first touch operation, it is determined that the user is performing the operation of adding the element to the desktop. In the embodiment, the first touch operation is exemplarily described as a drag operation.

一个实施例中,目标显示位置是指期望在桌面中显示元素的图标的显示位置。当第一触控操作结束时可以得到目标显示位置。其中,目标显示位置的确定方式可以根据实际情况设定。一个实施例中,当第一触控操作结束时,获取元素的图标在桌面中的坐标,之后,根据该坐标寻找对应的目标显示位置。其中,寻找目标显示位置的手段可以根据实际情况设定。例如,确定图标的中心点所在的坐标,若该坐标与某个显示位置重合,则将该显示位置确定为目标显示位置。若该坐标与任一显示位置均不重合,则将距离该坐标最近的显示位置确定为目标显示位置。又如,确定与图标的坐标存在重合的显示位置,若显示位置只有一个,则将该显示位置确定为目标显示位置。若显示位置为多个,则分别计算每个显示位置与图标的坐标重合区域大小,并选择最大的重合区域对应的显示位置作为目标显示位置。可以理解,实际应用中,目标显示位置也可以为预先设置的一个显示位置。In one embodiment, the target display position refers to the display position of the icon of the element that is expected to be displayed on the desktop. The target display position can be obtained when the first touch operation ends. Among them, the method for determining the target display position can be set according to the actual situation. In one embodiment, when the first touch operation ends, the coordinates of the icon of the element on the desktop are obtained, and then the corresponding target display position is found according to the coordinates. Among them, the means for finding the target display position can be set according to the actual situation. For example, the coordinates of the center point of the icon are determined. If the coordinates coincide with a certain display position, the display position is determined as the target display position. If the coordinates do not coincide with any display position, the display position closest to the coordinates is determined as the target display position. For another example, a display position that coincides with the coordinates of the icon is determined. If there is only one display position, the display position is determined as the target display position. If there are multiple display positions, the size of the area where the coordinates of each display position coincide with the icon is calculated respectively, and the display position corresponding to the largest coincidence area is selected as the target display position. It can be understood that in actual applications, the target display position can also be a pre-set display position.

需说明,本实施例中,以第一触控操作针对一个元素为例进行描述,实际应用中,第一触控操作可以针对至少一个元素,即可以同时将至少一个元素移到至桌面,此时,每个元素对应一个目标显示位置。It should be noted that in this embodiment, the first touch operation is described as an example of an element. In actual applications, the first touch operation can be directed to at least one element, that is, at least one element can be moved to the desktop at the same time. At this time, each element corresponds to a target display position.

步骤120、响应于第一触控操作,在桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态。Step 120: In response to the first touch operation, display a first icon corresponding to the element on the desktop, wherein the first icon is in an unplaced state.

需要说明,本步骤中提及的元素均是指第一触控操作选择的、用于移动至桌面的元素。具体的,接收第一触控操作后,对该第一触控操作进行响应。此时,在桌面中显示元素的图标,实施例中将该图标记为第一图标。其中,第一图标的样式和尺寸可以根据实际情况设定,例如,第一图标可以与元素在其他应用程序操作界面中显示的样式相同、和/或大小相同或等比例缩小。还如,第一图标还可以与元素在桌面中显示时采用的图标的样式相同、和/或大小相同或等比例缩小。再如,第一图标也可以是预先设定向桌面添加过程中显示的尺寸和样式。It should be noted that the elements mentioned in this step all refer to the elements selected by the first touch operation and used to move to the desktop. Specifically, after receiving the first touch operation, the first touch operation is responded to. At this time, the icon of the element is displayed on the desktop, and the figure is marked as the first icon in the embodiment. Among them, the style and size of the first icon can be set according to actual conditions. For example, the first icon can be the same style as the element displayed in other application operation interfaces, and/or the same size or proportionally reduced. For example, the first icon can also be the same style as the icon used when the element is displayed on the desktop, and/or the same size or proportionally reduced. For another example, the first icon can also be a pre-set size and style displayed during the addition process to the desktop.

可选的,预先设定从其他应用程序向桌面可添加元素的添加类型,并在响应第一触控操作时,确定当前的元素是否符合添加类型,若符合添加类型,则在桌面中显示元素的第一图标,否则,提示用户无法向桌面添加该元素。Optionally, the addition types of elements that can be added to the desktop from other applications are pre-set, and in response to the first touch operation, it is determined whether the current element meets the addition type; if it meets the addition type, the first icon of the element is displayed on the desktop; otherwise, the user is prompted that the element cannot be added to the desktop.

一个实施例中,当元素由其他应用程序向桌面添加时,为了使用户明确元素可以添加至桌面中,设定在检测到元素由其他应用程序拖拽到桌面时,才在桌面上显示对应于所述元素的第一图标。由于此时用户可能继续在桌面中拖拽图标,因此,第一图标以未放置状态进行显示。可以理解,未放置状态是指图标并未放置在桌面中,可以跟随第一触控操作移动。可选的,为了有别于放置状态,可以在未放置状态时更改图标的透明图、颜色等参数。In one embodiment, when an element is added to the desktop by other applications, in order to make it clear to the user that the element can be added to the desktop, it is set that the first icon corresponding to the element is displayed on the desktop only when it is detected that the element is dragged to the desktop by other applications. Since the user may continue to drag the icon on the desktop at this time, the first icon is displayed in an unplaced state. It can be understood that the unplaced state means that the icon is not placed on the desktop and can be moved following the first touch operation. Optionally, in order to distinguish it from the placed state, the icon's transparency, color and other parameters can be changed in the unplaced state.

可以理解,接收第一触控操作的过程可以由其他应用程序执行,响应第一触控操作的过程可以由其他应用程序和桌面应用协同执行。即其他应用程序确定向桌面添加元素时,与桌面应用进行通信,以使桌面应用显示元素的第一图标。It is understandable that the process of receiving the first touch operation can be performed by other applications, and the process of responding to the first touch operation can be performed by other applications and the desktop application in collaboration. That is, when other applications determine to add an element to the desktop, they communicate with the desktop application so that the desktop application displays the first icon of the element.

步骤130、如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向。Step 130: If a second icon is already displayed at the target display position, determine an initial search direction according to a relative positional relationship between a hovering position of the first icon before placement and the target display position.

可选的,当检测到第一触控操作结束时,确定目标显示位置,之后,确定目标显示位置是否为空白,若是空白,则说明目标显示位置未被占用,此时,可以直接将第一图标放置在目标显示位置上。若不是空白,则说明目标显示位置已经显示了其他的图标,此时,需要采用移动策略移动目标显示位置上的图标。实施例中,将目标显示位置已经显示的图标记为第二图标。移动第二图标的移动策略可以根据实际情况设定。一个实施例中,移动策略为确定第二图标的移动方向,之后,根据该移动方向移动第二图标。其中,移动方向可以为第一触控操作结束前的触控方向,也可以根据桌面中空白显示位置的查找方向确定,还可以采用其他的方式确定。实施例中,以根据桌面中空白显示位置的查找方向确定移动方向进行示例性描述,即设定当桌面中存在空白显示位置时才会移动第二图标,其中,空白显示位置是指未显示任何图标的显示位置。此时,为了放置第一图标,需要先查找一空白显示位置。Optionally, when the first touch operation is detected to be over, the target display position is determined, and then it is determined whether the target display position is blank. If it is blank, it means that the target display position is not occupied. At this time, the first icon can be directly placed on the target display position. If it is not blank, it means that other icons have been displayed at the target display position. At this time, it is necessary to adopt a moving strategy to move the icon at the target display position. In an embodiment, the image mark already displayed at the target display position is marked as the second icon. The moving strategy for moving the second icon can be set according to actual conditions. In one embodiment, the moving strategy is to determine the moving direction of the second icon, and then move the second icon according to the moving direction. Among them, the moving direction can be the touch direction before the first touch operation ends, or it can be determined according to the search direction of the blank display position in the desktop, or it can be determined in other ways. In an embodiment, an exemplary description is made by determining the moving direction according to the search direction of the blank display position in the desktop, that is, it is set that the second icon will be moved only when there is a blank display position in the desktop, wherein the blank display position refers to the display position where no icon is displayed. At this time, in order to place the first icon, it is necessary to find a blank display position first.

可选的,在查找空白显示位置时,需要先确定空白显示位置的查找方向。一个实施例中,根据第一图标放置前的悬停位置与目标显示位置之间的相对位置关系确定空白显示位置的查找方向,并将该查找方向记为初始的查找方向。初始的查找方向为空白显示位置的第一个查找方向,后续过程中,还可以结合实际情况变更查找方向。Optionally, when searching for a blank display position, it is necessary to first determine the search direction of the blank display position. In one embodiment, the search direction of the blank display position is determined based on the relative position relationship between the hovering position before the first icon is placed and the target display position, and the search direction is recorded as the initial search direction. The initial search direction is the first search direction of the blank display position, and in the subsequent process, the search direction can also be changed according to the actual situation.

一个实施例中,第一图标放置前的悬停位置是指第一图标在桌面中处于未放置状态时的最后一个采样时刻采样到的位置,下一个采样时刻第一图标变更为放置状态。可以理解,悬停位置同样为一块坐标区域。可选的,当检测到第一触控操作结束时,获取第一图标当前在桌面中的位置作为放置前的悬停位置。In one embodiment, the hover position of the first icon before placement refers to the position sampled at the last sampling moment when the first icon was in an unplaced state on the desktop, and the first icon changes to a placed state at the next sampling moment. It can be understood that the hover position is also a coordinate area. Optionally, when the end of the first touch operation is detected, the current position of the first icon on the desktop is obtained as the hover position before placement.

可选的,放置前的悬停位置与目标显示位置之间的相对位置关系包括:悬停位置位于目标显示位置的上方、悬停位置位于目标显示位置的下方、悬停位置位于目标显示位置的左方以及悬停位置位于目标显示位置的右方。相应的,初始的查找方向包括水平向左、水平向右、竖直向上、竖直向下。每个相对位置关系对应一个初始的查找方向。其中,相对位置关系与初始查找方向的对应关系的确定方式实施例不做限定。例如,悬停位置位于目标显示位置的上方,说明第一图标当前处于目标显示位置的上方,此时,设定初始的查找方向为竖直向下,即查找方向与相对位置关系反方向,此时,在目标显示位置竖直向下的方向上查找空白显示位置。再如,悬停位置位于目标显示位置上方,设定移动方向可以为竖直向上,即移动方向与相对位置关系同方向。Optionally, the relative position relationship between the hovering position before placement and the target display position includes: the hovering position is located above the target display position, the hovering position is located below the target display position, the hovering position is located to the left of the target display position, and the hovering position is located to the right of the target display position. Correspondingly, the initial search direction includes horizontally to the left, horizontally to the right, vertically upward, and vertically downward. Each relative position relationship corresponds to an initial search direction. Among them, the embodiment of the method for determining the corresponding relationship between the relative position relationship and the initial search direction is not limited. For example, the hovering position is located above the target display position, indicating that the first icon is currently above the target display position. At this time, the initial search direction is set to vertically downward, that is, the search direction is in the opposite direction to the relative position relationship. At this time, a blank display position is searched in the vertical downward direction of the target display position. For another example, the hovering position is located above the target display position, and the moving direction can be set to vertically upward, that is, the moving direction is in the same direction as the relative position relationship.

步骤140、如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置。Step 140: If no blank display position is found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and a blank display position is searched in the updated search direction.

确定初始的查找方向后,在初始的查找方向上查找空白显示位置。如果在初始的查找方向上查找到空白显示位置,则可以将初始的查找方向确定为第二图标的移动方向,执行步骤150。如果在初始的查找方向上未查找到空白显示位置,则确认无法在初始的查找方向上移动第二图标。此时,可以更新查找方向,以将其他方向作为新的查找方向,并再次寻找空白显示位置。其中,查找方向可以结合实际情况多次更新,不同的初始查找方向可以对应不同的方向更新策略,方向更新策略的原则是按照方向更新策略更新查找方向后,可以遍历到桌面的全部显示位置。可选的,查找空白显示位置时,可以是以目标显示位置为起点,依次遍历当前的查找方向上的各显示位置,以确定是否存在空白显示位置。若按照方向更新策略将全部的查找方向均更新后,仍未找到空白显示位置,则可以提示用户无法向桌面添加该元素。After determining the initial search direction, search for a blank display position in the initial search direction. If a blank display position is found in the initial search direction, the initial search direction can be determined as the moving direction of the second icon, and step 150 is performed. If a blank display position is not found in the initial search direction, it is confirmed that the second icon cannot be moved in the initial search direction. At this time, the search direction can be updated to use other directions as new search directions, and the blank display position is searched again. Among them, the search direction can be updated multiple times in combination with actual conditions, and different initial search directions can correspond to different direction update strategies. The principle of the direction update strategy is that after updating the search direction according to the direction update strategy, all display positions on the desktop can be traversed. Optionally, when searching for a blank display position, the target display position can be used as the starting point, and each display position on the current search direction can be traversed in turn to determine whether there is a blank display position. If a blank display position is still not found after all search directions are updated according to the direction update strategy, the user can be prompted that the element cannot be added to the desktop.

一个实施例中,查找空白位置显示时,可以采用查找空白的显示位置和/或删除图标的方式。其中,查找空白的显示位置是指依次遍历当前的查找方向上各显示位置,若第一次遍历到未显示图标的显示位置,则确定在该查找方向上查找到空白显示位置。In one embodiment, when searching for blank positions for display, a method of searching for blank display positions and/or deleting icons may be used. Searching for blank display positions means sequentially traversing each display position in the current search direction, and if a display position where no icon is displayed is traversed for the first time, it is determined that a blank display position is found in the search direction.

可选的,删除图标的方式是指依次遍历当前的查找方向上各显示位置上显示的图标,若遍历到无效图标,则删除无效图标,并将第一个删除的无效图标的显示位置确定为查找到的空白显示位置,其中,无效图标是指无法正常启动的图标。例如,若元素被删除了,但是图标还保留在桌面中,则可以将该图标认为是无效图标。再如,U盘没有插入成功时,桌面显示的U盘快捷打开方式的图标为无效图标。又如,某个元素被执行重命名、移动存储路径或位置、和/或删除等操作后,该元素执行操作前的图标仍然保留在桌面中,此时,通过相应的图标无法启动或查看该元素,因此,该图标可以被认为是无效图标。在删除无效图标时,可以是自动删除第一个查找到的无效图标,还可以是询问用户是否删除查找到的无效图标,并在用户确定删除无效图标时,删除无效图标。Optionally, the way to delete an icon refers to sequentially traversing the icons displayed at each display position in the current search direction. If an invalid icon is traversed, the invalid icon is deleted, and the display position of the first invalid icon deleted is determined as the blank display position found, wherein an invalid icon refers to an icon that cannot be started normally. For example, if an element is deleted, but the icon is still retained on the desktop, the icon can be considered as an invalid icon. For another example, when the U disk is not successfully inserted, the icon of the U disk shortcut opening method displayed on the desktop is an invalid icon. For another example, after an element is renamed, the storage path or location is moved, and/or deleted, the icon before the element is executed is still retained on the desktop. At this time, the element cannot be started or viewed through the corresponding icon, so the icon can be considered as an invalid icon. When deleting an invalid icon, it can be automatically deleted. The first invalid icon found can also be asked whether the user deletes the invalid icon found, and when the user determines to delete the invalid icon, the invalid icon is deleted.

还可选的,删除图标的方式还可以是根据查找方向上全部图标的使用频率,删除频率最低的一个图标。Alternatively, the method of deleting the icon may be to delete the icon with the lowest usage frequency according to the usage frequency of all icons in the search direction.

实施例中,以删除无效图标作为删除图标的执行手段为例。采用删除图标的策略以使桌面中出现空白显示位置。可以理解,当同时采用查找空白的显示位置和删除图标的方式时,实施例中不限定删除图标和查找空白的显示位置的具体执行逻辑。例如,先在初始的查找方向上查找空白的显示位置,若查找到空白的显示位置,则将初始的查找方向作为第二图标的移动方向,执行步骤150。若未查找到空白的显示位置,则在初始的查找方向上查找无效图标,若查找到无效图标,则删除无效图标,并得到空白显示位置,将初始的查找方向作为第二图标的移动方向,执行步骤150。若未查找到无效图标,则按照方向更新策略更新查找方向。之后,在更新的查找方向上查找空白的显示位置。若查找到空白的显示位置,则将当前的查找方向作为第二图标的移动方向,执行步骤150。若未查找到空白的显示位置,则在更新的查找方向上查找无效图标。若查找到无效图标,则删除无效图标,并得到空白显示位置,将当前的查找方向作为第二图标的移动方向,执行步骤150。若未查找到无效图标,则按照方向更新策略再次更新查找方向,并再次执行相应的查找过程,直到查找到空白显示位置为止。若查找方向全部更新后,还未查找到空白显示位置,则可以提示用户无法向桌面添加该元素。再如,先在初始的查找方向上查找空白的显示位置,若不存在空白的显示位置,则按照对应的方向更新策略更新查找方向,之后,在更新的查找方向上查找空白的显示位置,若不存在空白的显示位置,则按照方向更新策略再次更新查找方向,并继续查找空白的显示位置,若查找方向全部更新后,仍未查找到空白的显示位置,则在初始的查找方向上查找无效图标,若查找到无效图标,则删除无效图标,并得到空白显示位置,若未查找到无效图标,则按照方向更新策略更新查找方向,之后,在更新的查找方向上继续查找无效图标,若查找到无效图标,则删除无效图标,并得到空白显示位置,若未查找到无效图标,则按照方向更新策略再次更新查找方向,并再次查找无效图标,直到查找到无效图标为止。若查找方向全部更新后,还未查找到无效图标,则可以提示用户无法向桌面添加该元素。In the embodiment, deleting an invalid icon is taken as an example as an execution means of deleting an icon. A strategy of deleting icons is adopted to make a blank display position appear in the desktop. It can be understood that when the method of finding a blank display position and deleting icons is adopted at the same time, the specific execution logic of deleting icons and finding a blank display position is not limited in the embodiment. For example, a blank display position is first searched in the initial search direction. If a blank display position is found, the initial search direction is used as the moving direction of the second icon, and step 150 is executed. If a blank display position is not found, an invalid icon is searched in the initial search direction. If an invalid icon is found, the invalid icon is deleted, and a blank display position is obtained, and the initial search direction is used as the moving direction of the second icon, and step 150 is executed. If an invalid icon is not found, the search direction is updated according to the direction update strategy. Afterwards, a blank display position is searched in the updated search direction. If a blank display position is found, the current search direction is used as the moving direction of the second icon, and step 150 is executed. If a blank display position is not found, an invalid icon is searched in the updated search direction. If an invalid icon is found, the invalid icon is deleted, and a blank display position is obtained. The current search direction is used as the moving direction of the second icon, and step 150 is executed. If an invalid icon is not found, the search direction is updated again according to the direction update strategy, and the corresponding search process is executed again until a blank display position is found. If a blank display position is not found after all search directions are updated, the user can be prompted that the element cannot be added to the desktop. For another example, first search for a blank display position in the initial search direction. If there is no blank display position, update the search direction according to the corresponding direction update strategy. Then, search for a blank display position in the updated search direction. If there is no blank display position, update the search direction again according to the direction update strategy, and continue to search for a blank display position. If a blank display position is still not found after all the search directions are updated, search for an invalid icon in the initial search direction. If an invalid icon is found, delete the invalid icon and obtain a blank display position. If no invalid icon is found, update the search direction according to the direction update strategy. Then, continue to search for an invalid icon in the updated search direction. If an invalid icon is found, delete the invalid icon and obtain a blank display position. If no invalid icon is found, update the search direction again according to the direction update strategy, and search for an invalid icon again until an invalid icon is found. If an invalid icon is not found after all the search directions are updated, the user can be prompted that the element cannot be added to the desktop.

另一个实施例中,若当前的查找方向上没有空白显示位置,则可以将该查找方向上的最后一个图标删除或移动至相邻显示页中,以使查找方向上存在空白显示位置。其中,当前的查找方向可以是初始的查找方向,也可以是最后更新的查找方向,也可以是设定的查找方向。In another embodiment, if there is no blank display position in the current search direction, the last icon in the search direction can be deleted or moved to an adjacent display page so that there is a blank display position in the search direction. The current search direction can be an initial search direction, a last updated search direction, or a set search direction.

步骤150、移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。Step 150: Move the second icon to place the first icon in the target display position, and the moving direction of the second icon is determined according to the search direction of the blank display position.

当查找到空白显示位置时,将当前的查找方向确定为第二图标的移动方向,之后,根据该移动方向移动第二图标,以空出目标显示位置放置第一图标。When a blank display position is found, the current search direction is determined as the moving direction of the second icon, and then the second icon is moved according to the moving direction to empty the target display position for placing the first icon.

可选的,移动第二图标时,移动方向上可能存在其他图标,例如,移动方向为竖直向上,且第二图标上方还有其他相邻图标,此时,在移动第二图标时,会与移动方向上的其他图标在显示位置上发生冲突。那么,在移动第二图标时,需要沿着移动方向,将其他会发生冲突的图标一同移动,即顺序将第二图标和移动方向上会发生冲突的其他图标均向上移动一个显示位置。或者是,越过其他图标,将第二图标放置在空白显示位置上。Optionally, when moving the second icon, there may be other icons in the moving direction. For example, the moving direction is vertically upward, and there are other adjacent icons above the second icon. In this case, when moving the second icon, it will conflict with other icons in the moving direction in terms of display position. Then, when moving the second icon, it is necessary to move other conflicting icons along the moving direction, that is, sequentially move the second icon and other conflicting icons in the moving direction upward by one display position. Alternatively, the second icon is placed in a blank display position, bypassing other icons.

示例性的,移动第二图标后,空出的目标显示位置可以放置第一图标。放置后第一图标属于放置状态。可选的,如果第一图标与元素在桌面中放置后显示时采用的图标的样式或尺寸不同,则以桌面中采用的图标为准,修改第一图标。举例而言,元素为图片时,将元素拖拽至桌面时,第一图标为第一尺寸的缩略图,图片在桌面中显示的图标为第二尺寸的缩略图,那么,在放置第一图标时,将其更改为第二尺寸的缩略图。又如,元素为网页链接,将元素拖拽至桌面时,第一图标为链接地址,网页链接在桌面中显示的图标为网页标志以及网页名称,此时,在放置第一图标时,将其更改为网页标志以及网页名称。还可选的,在放置第一图标后,还可以更新第一图标的显示参数。例如,由前述描述可知,为了区别放置状态,在非放置状态时更改了第一图标的透明度、颜色等参数,那么,此时可以恢复第一图标的透明度、颜色等参数。Exemplarily, after the second icon is moved, the vacated target display position can be used to place the first icon. After placement, the first icon is in a placement state. Optionally, if the first icon is different from the style or size of the icon used when the element is placed on the desktop and displayed, the icon used on the desktop shall prevail and the first icon shall be modified. For example, when the element is a picture, when the element is dragged to the desktop, the first icon is a thumbnail of the first size, and the icon of the picture displayed on the desktop is a thumbnail of the second size. Then, when the first icon is placed, it is changed to a thumbnail of the second size. For another example, when the element is a web link, when the element is dragged to the desktop, the first icon is a link address, and the icon displayed on the desktop of the web link is a web page logo and a web page name. At this time, when the first icon is placed, it is changed to a web page logo and a web page name. Optionally, after the first icon is placed, the display parameters of the first icon can also be updated. For example, it can be seen from the above description that in order to distinguish the placement state, the transparency, color and other parameters of the first icon are changed in the non-placement state, so the transparency, color and other parameters of the first icon can be restored at this time.

上述,通过接收并响应用于将选择的元素移至桌面目标显示位置的第一触控操作,在桌面中显示元素的第一图标,且在第一图标的目标显示位置已显示有第二图标时,通过第一图标放置前的悬停位置与目标显示位置的相对位置关系确定空白显示位置的初始查找方向,如果初始的查找方向上未查找到空白显示位置,则按照与初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上继续查找一空白显示位置,之后,根据空白显示位置的查找方向移动第二图标,并将第一图标放置在目标显示位置的技术方案,可以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题,并且,在目标显示位置上已经有第二图标时,可以通过目标显示位置与第一图标悬停位置之间的相对位置关系确空白显示位置的初始查找方向,之后,若初始的查找方向上未查找到空白显示位置,则可以通过变更查找方向的方式查找空白显示位置,之后,将查找到空白显示位置的查找方向作为第二图标的移动方向,而非采用固定的移动方向,也使得图标移动更加灵活,并且,用户可以根据实际需求调整第一图标悬停位置与目标显示位置的相对位置关系,提升了用户的使用体验。同时,在添加过程中通过显示处于未放置状态的第一图标,使得用户确定该元素可以添加至桌面中,还可以使用户明确第一图标在桌面中的位置进而使用户将第一图标放置在期望的目标显示位置上。In the above, by receiving and responding to a first touch operation for moving a selected element to a target display position on the desktop, a first icon of the element is displayed on the desktop, and when a second icon is already displayed at the target display position of the first icon, an initial search direction of a blank display position is determined by a relative positional relationship between a hovering position of the first icon before placement and the target display position; if a blank display position is not found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and a blank display position is continuously searched in the updated search direction; thereafter, the second icon is moved according to the search direction of the blank display position, and the first icon is placed at the target display position. The technical solution can solve the problems of the prior art. The technical problem of not being able to flexibly and reasonably implement adding icons to the desktop during the operation is solved. Moreover, when there is already a second icon at the target display position, the initial search direction of the blank display position can be determined by the relative position relationship between the target display position and the hovering position of the first icon. Afterwards, if the blank display position is not found in the initial search direction, the blank display position can be found by changing the search direction. Afterwards, the search direction of the blank display position is used as the moving direction of the second icon instead of a fixed moving direction. This also makes the icon movement more flexible. Furthermore, the user can adjust the relative position relationship between the hovering position of the first icon and the target display position according to actual needs, thereby improving the user experience. At the same time, during the adding process, by displaying the first icon in an unplaced state, the user can determine that the element can be added to the desktop. The user can also be clear about the position of the first icon on the desktop and place the first icon at the desired target display position.

图2为本申请一个实施例提供的一种桌面图标管理方法的流程图。本实施例是在上述实施例的基础上进行具体化。参考图2,本实施例包含桌面图标管理方法包括:FIG2 is a flowchart of a desktop icon management method provided by an embodiment of the present application. This embodiment is concretized on the basis of the above embodiment. Referring to FIG2, this embodiment includes a desktop icon management method comprising:

步骤210、接收第一触控操作,第一触控操作用于将选择的元素移到至桌面的一目标显示位置。Step 210: Receive a first touch operation, where the first touch operation is used to move the selected element to a target display position on the desktop.

实施例中,元素在移动前位于其他应用程序的操作界面内。第一触控操作用于从其他应用程序向桌面添加元素。In an embodiment, the element is located in the operation interface of other application programs before being moved. The first touch operation is used to add an element from other application programs to the desktop.

步骤220、响应于第一触控操作,在桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态。Step 220: In response to the first touch operation, display a first icon corresponding to the element on the desktop, wherein the first icon is in an unplaced state.

步骤230、如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向。Step 230: If a second icon is already displayed at the target display position, determine an initial search direction according to a relative positional relationship between a hovering position of the first icon before placement and the target display position.

步骤240、如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标。Step 240: If no invalid icon is found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and an invalid icon is searched in the updated search direction.

本实施例中设定仅有在桌面中存在空白显示位置时,才可以移动第二图标。此时,需要查找空白显示位置。在查找空白显示位置时,结合查找无效图标的方式得到空白显示位置。此时,该步骤可以包括下述任一方案:In this embodiment, it is set that the second icon can be moved only when there is a blank display position on the desktop. At this time, it is necessary to find a blank display position. When finding a blank display position, the blank display position is obtained by combining the method of finding an invalid icon. At this time, this step can include any of the following solutions:

方案一、采用先查找空白显示位置,再查找无效图标的方式得到空白显示位置。此时,本步骤包括步骤241-步骤242:Solution 1: first find a blank display position, then find an invalid icon to get a blank display position. In this case, this step includes step 241-step 242:

步骤241、所述桌面中不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标。Step 241: When there is no blank display position on the desktop, confirm whether an invalid icon is found in the initial search direction.

具体的,先在桌面中查找空白显示位置,即在未删除图标前,在桌面中查找未显示图标的空白显示位置。其中,查找空白显示位置时,可以是先在初始的查找方向上查找空白的显示位置,若查找到空白显示位置,则将初始的查找方向作为移动方向,并执行步骤260。若初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上继续查找空白显示位置。若某次更新后的查找方向上查找到空白显示位置,则将当前的查找方向确定为第二图标的移动方向,执行步骤260。若查找方向全部更新后,仍未查找到空白的显示位置,则确定桌面中不存在空白显示位置,此时,采用删除无效图标的策略。采用删除无效图标的策略时,先查找无效图标。无效图标的查找方式与上述空白显示位置的查找方式相同。即先确认初始的查找方向上是否查找到无效图标。Specifically, first search for a blank display position on the desktop, that is, before deleting the icon, search for a blank display position where no icon is displayed on the desktop. Wherein, when searching for a blank display position, it can be to first search for a blank display position in the initial search direction. If a blank display position is found, the initial search direction is used as the moving direction, and step 260 is executed. If a blank display position is not found in the initial search direction, the search direction is updated according to the direction update strategy corresponding to the initial search direction, and the blank display position is continued to be searched in the updated search direction. If a blank display position is found in the search direction after a certain update, the current search direction is determined as the moving direction of the second icon, and step 260 is executed. If a blank display position is still not found after all the search directions are updated, it is determined that there is no blank display position on the desktop. At this time, the strategy of deleting invalid icons is adopted. When the strategy of deleting invalid icons is adopted, invalid icons are first searched. The search method for invalid icons is the same as the search method for the blank display position described above. That is, first confirm whether an invalid icon is found in the initial search direction.

可以理解,不同的查找方向上遍历显示位置的顺序可能不同。查找方向为竖直向上时,查找方向上的显示位置包括:与目标显示位置处于同一列且位于目标显示位置之上的全部显示位置。举例而言,图3为本申请一个实施例提供的桌面第一示意图。参考图3,查找方向为竖直向上时,目标显示位置21所在列的各显示位置中,位于目标显示位置21上方的显示位置为查找方向上的显示位置,即图3中圈出的区域22为查找方向上的显示位置。需要说明,区域22仅便于理解,实际应用中不会出现在桌面中。It is understandable that the order of traversing display positions in different search directions may be different. When the search direction is vertically upward, the display positions in the search direction include: all display positions that are in the same column as the target display position and above the target display position. For example, Figure 3 is a first schematic diagram of a desktop provided by an embodiment of the present application. Referring to Figure 3, when the search direction is vertically upward, among the display positions in the column where the target display position 21 is located, the display position above the target display position 21 is the display position in the search direction, that is, the circled area 22 in Figure 3 is the display position in the search direction. It should be noted that area 22 is only for ease of understanding and will not appear on the desktop in actual applications.

查找方向为竖直向下时,查找方向上的显示位置包括:与目标显示位置处于同一列且位于目标显示位置之下的全部显示位置。举例而言,图4为本申请一个实施例提供的桌面第二示意图。参考图4,查找方向为竖直向下时,目标显示位置23所在列的各显示位置中,位于目标显示位置23下方的显示位置为查找方向上的显示位置,即图4中圈出的区域24为查找方向上的显示位置。需要说明,区域24仅便于理解,实际应用中不会出现在桌面中。When the search direction is vertically downward, the display positions in the search direction include: all display positions that are in the same column as the target display position and below the target display position. For example, FIG4 is a second schematic diagram of a desktop provided by an embodiment of the present application. Referring to FIG4, when the search direction is vertically downward, among the display positions in the column where the target display position 23 is located, the display position below the target display position 23 is the display position in the search direction, that is, the circled area 24 in FIG4 is the display position in the search direction. It should be noted that area 24 is only for ease of understanding and will not appear on the desktop in actual applications.

查找方向为水平向右时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置右侧的全部显示位置,以及位于所述目标显示位置所在行下方的全部显示位置,所述下方的全部显示位置中所述空白显示位置的查找顺序为从左至右及从上至下。When the search direction is horizontally to the right, the display positions in the search direction include all display positions to the right of the target display position in the row where the target display position is located, and all display positions below the row where the target display position is located, and the search order of the blank display positions in all the display positions below is from left to right and from top to bottom.

一个实施例中,当查找方向为水平向右时,查找方向上的显示位置除了位于目标显示位置所在行中,还位于所在行的下方,且所在行下方的各显示位置在查找方向上遵从从左至右及从上至下的顺序。举例而言,图5为本申请一个实施例提供的桌面第三示意图。参考图5,查找方向为水平向右时,目标显示位置25所在行中位于目标显示位置右侧的各显示位置均属于查找方向上的显示位置,且所在行下方的各显示位置也属于查找方向上的显示位置。在查找空白显示位置时,各显示位置的查找顺序如图5的箭头所示。此时,箭头经过的显示位置均为查找方向上的显示位置。可以理解,图5中箭头仅是为了便于理解显示位置以及查找顺序,实际应用中不会出现在桌面中。In one embodiment, when the search direction is horizontal to the right, the display position in the search direction is located not only in the row where the target display position is located, but also below the row, and the display positions below the row follow the order from left to right and from top to bottom in the search direction. For example, FIG5 is a third schematic diagram of a desktop provided by an embodiment of the present application. Referring to FIG5, when the search direction is horizontal to the right, each display position located to the right of the target display position in the row where the target display position 25 is located belongs to the display position in the search direction, and each display position below the row also belongs to the display position in the search direction. When searching for a blank display position, the search order of each display position is shown in the arrow of FIG5. At this time, the display positions passed by the arrow are all display positions in the search direction. It can be understood that the arrows in FIG5 are only for the convenience of understanding the display positions and the search order, and will not appear on the desktop in actual applications.

可以理解,上述查找顺序仅为一个可选示例,实际应用中,查找顺序还可以为其他的顺序。如查找顺序为先按照从左至右的顺序查找与目标显示位置同一行且位于目标显示位置右侧的各显示位置,之后,下一行按照从右至左的顺序查找各显示位置,下两行按照从左至右的顺序查找各显示位置,依次类推。It is understandable that the above search order is only an optional example, and in actual applications, the search order can also be other orders. For example, the search order is to first search for each display position in the same row as the target display position and to the right of the target display position from left to right, then search for each display position in the next row from right to left, and search for each display position in the next two rows from left to right, and so on.

所述查找方向为水平向左时,所述查找方向上的显示位置包括目标显示位置所在行中位于所述目标显示位置左侧的全部显示位置,以及位于所述目标显示位置所在行上方的全部显示位置,所述上方的全部显示位置中所述空白显示位置的查找顺序为从右至左及从下至上。When the search direction is horizontally to the left, the display positions in the search direction include all display positions on the left side of the target display position in the row where the target display position is located, and all display positions above the row where the target display position is located, and the search order of the blank display positions in all the display positions above is from right to left and from bottom to top.

一个实施例中,当查找方向为水平向左时,查找方向上的显示位置除了位于目标显示位置所在行中,还位于所在行的上方,且所在行上方的各显示位置在查找方向上遵从从右至左及从下至上的顺序。举例而言,图6为本申请一个实施例提供的桌面第四示意图。参考图6,查找方向为水平向左时,目标显示位置26所在行中位于目标显示位置左侧的各显示位置均属于查找方向上的显示位置,且所在行上方的各显示位置也属于查找方向上的显示位置,且在查找空白显示位置时,各显示位置的查找顺序如图6中带箭头的连线所示。此时,箭头经过的显示位置均为查找方向上的显示位置。可以理解,图6中带箭头的连线仅是为了便于理解显示位置以及查找顺序,实际应用中不会出现在桌面中。In one embodiment, when the search direction is horizontal to the left, the display position in the search direction is not only located in the row where the target display position is located, but also located above the row, and the display positions above the row follow the order from right to left and from bottom to top in the search direction. For example, FIG6 is a fourth schematic diagram of a desktop provided by an embodiment of the present application. Referring to FIG6, when the search direction is horizontal to the left, the display positions on the left side of the target display position in the row where the target display position 26 is located all belong to the display positions in the search direction, and the display positions above the row also belong to the display positions in the search direction, and when searching for a blank display position, the search order of each display position is shown by the arrowed lines in FIG6. At this time, the display positions passed by the arrows are all display positions in the search direction. It can be understood that the arrowed lines in FIG6 are only for the convenience of understanding the display positions and the search order, and will not appear on the desktop in actual applications.

可以理解,上述查找顺序仅为一个可选示例,实际应用中,查找顺序还可以为其他的顺序。如查找顺序为先按照从右至左的顺序查找与目标显示位置同一行且位于目标显示位置左侧的各显示位置,之后,上一行按照从左至右的顺序查找各显示位置,上两行按照从右至左的顺序查找各显示位置,依次类推。It is understandable that the above search order is only an optional example, and in actual applications, the search order can also be other orders. For example, the search order is to first search for each display position in the same row as the target display position and on the left side of the target display position from right to left, then search for each display position in the previous row from left to right, and search for each display position in the previous two rows from right to left, and so on.

需说明,在同一查找方向查找空白显示位置和查找无效图标时,遍历显示位置的顺序相同。例如,查找方向为水平向左时,均按照图6中连线的方向查找空白显示位置及无效图标。It should be noted that when searching for blank display positions and invalid icons in the same search direction, the order of traversing the display positions is the same. For example, when the search direction is horizontally to the left, the blank display positions and invalid icons are searched in the direction of the connecting line in FIG. 6 .

步骤242、如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标。Step 242: If no invalid icon is found in the initial search direction, the search direction is updated according to the direction update strategy corresponding to the initial search direction, and an invalid icon is searched in the updated search direction.

具体的,初始的查找方向上未查找到无效图标,则按照方向更新策略更新查找方向。此时,采用的方向更新策略与步骤241中查找空白显示位置时采用的方向更新策略相同。Specifically, if no invalid icon is found in the initial search direction, the search direction is updated according to the direction update strategy. At this time, the direction update strategy used is the same as the direction update strategy used when searching for a blank display position in step 241.

一个实施例中,方向更新策略用于设定查找方向的更改逻辑。初始的查找方向不同时,对应的方向更新策略可以不同。In one embodiment, the direction update strategy is used to set the change logic of the search direction. When the initial search direction is different, the corresponding direction update strategy may be different.

一个实施例中,所述初始的查找方向为水平向左或水平向右,所述方向更新策略为将所述初始的查找方向的反方向更新为查找方向。例如,初始的查找方向为水平向右,反方向为水平向左,若水平向右的方向上不存在无效图标,则将水平向左作为更新的查找方向,并查找该方向上的无效图标。可以理解,若初始的查找方向为水平向右,反方向为水平向左,那么由前述描述可知,遍历水平向右方向上的各显示位置和遍历反方向上的各显示位置时,已经遍历了桌面的全部显示位置。同样的,若初始的查找方向为水平向左,反方向为水平向右,那么遍历水平向左方向上的各显示位置和遍历反方向上的各显示位置时,也已经遍历了桌面的全部显示位置。In one embodiment, the initial search direction is horizontally to the left or horizontally to the right, and the direction update strategy is to update the reverse direction of the initial search direction as the search direction. For example, the initial search direction is horizontally to the right, and the reverse direction is horizontally to the left. If there is no invalid icon in the horizontal right direction, the horizontal left direction is used as the updated search direction, and the invalid icon in this direction is searched. It can be understood that if the initial search direction is horizontally to the right, and the reverse direction is horizontally to the left, then from the above description, when traversing each display position in the horizontal right direction and traversing each display position in the reverse direction, all display positions of the desktop have been traversed. Similarly, if the initial search direction is horizontally to the left, and the reverse direction is horizontally to the right, then when traversing each display position in the horizontal left direction and traversing each display position in the reverse direction, all display positions of the desktop have been traversed.

一个实施例中,初始的查找方向为竖直向上或竖直向下,所述方向更新策略为按照方向优先级顺序变更查找方向,方向优先级由高到低依次为:所述初始的查找方向的反方向、设定的水平方向、所述设定的水平方向的反方向。例如,初始的查找方向为竖直向上,反方向为竖直向下,那么竖直向上的方向上不存在无效图标时,将查找方向变更为竖直向下,之后,查找竖直向下的方向上是否存在无效图标。可以理解,遍历竖直向上的方向以及竖直向下的方向后,只会遍历目标显示位置所在列的全部显示位置。此时,若所在列中不存在无效图标,则可以遍历桌面中其他未被遍历到的图标。即按照方向优先级将设定的水平方向作为变更后的查找方向。其中,水平方向包括水平向左和水平向右,可以将其中任一个方向作为设定水平方向。若设定水平方向上也不存在无效图标,则可以按照方向优先级,将设定的水平方向的反方向作为变更后的查找方向,并再次查找无效图标。需要说明,设定水平方向以及设定水平方向的反方向上无效图标的查找方式与步骤241中提及的查找方式相同,在此不做赘述。In one embodiment, the initial search direction is vertically upward or vertically downward, and the direction update strategy is to change the search direction according to the direction priority order, and the direction priority is from high to low: the reverse direction of the initial search direction, the set horizontal direction, and the reverse direction of the set horizontal direction. For example, if the initial search direction is vertically upward and the reverse direction is vertically downward, then when there is no invalid icon in the vertically upward direction, the search direction is changed to vertically downward, and then, whether there is an invalid icon in the vertically downward direction is searched. It can be understood that after traversing the vertically upward direction and the vertically downward direction, only all display positions of the column where the target display position is located will be traversed. At this time, if there is no invalid icon in the column, other icons that have not been traversed in the desktop can be traversed. That is, the set horizontal direction is used as the changed search direction according to the direction priority. Among them, the horizontal direction includes horizontal left and horizontal right, and any of them can be used as the set horizontal direction. If there is no invalid icon in the set horizontal direction, the reverse direction of the set horizontal direction can be used as the changed search direction according to the direction priority, and the invalid icon can be searched again. It should be noted that the search method for invalid icons in the horizontal direction and the direction opposite to the horizontal direction is the same as the search method mentioned in step 241, and will not be repeated here.

方案二、采用在同一查找方向上先查找空白显示位置,后查找无效图标的方式得到空白显示位置。此时,步骤240具体包括步骤243-步骤245:Solution 2: Find the blank display position first and then find the invalid icon in the same search direction to get the blank display position. In this case, step 240 specifically includes steps 243 to 245:

步骤243、所述初始的查找方向上不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标。Step 243: When there is no blank display position in the initial search direction, confirm whether an invalid icon is found in the initial search direction.

具体的,查找无效图标前,先在初始的查找方向上查找空白显示位置,若查找到空白显示位置,则将初始的查找方向确定为移动方向,并执行步骤260。若未查找到空白显示位置,则在初始的查找方向上查找无效图标,若查找到无效图标,则执行步骤250,若未查找到无效图标,则执行步骤244。Specifically, before searching for an invalid icon, a blank display position is first searched in the initial search direction. If a blank display position is found, the initial search direction is determined as the moving direction, and step 260 is executed. If no blank display position is found, an invalid icon is searched in the initial search direction. If an invalid icon is found, step 250 is executed. If no invalid icon is found, step 244 is executed.

步骤244、如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向。Step 244: If no invalid icon is found in the initial search direction, update the search direction according to the direction update strategy corresponding to the initial search direction.

具体的,初始的查找方向上未查找到无效图标时,确定初始的查找方向上无法移动第二图标,此时,确定与初始的查找方向对应的方向更新策略。其中,不同的初始的查找方向对应不同的方向更新策略,本方案中各初始的查找方向对应的方向更新策略与方案一中提及的初始的查找方向对应的方向更新策略相同,在此不做赘述。Specifically, when no invalid icon is found in the initial search direction, it is determined that the second icon cannot be moved in the initial search direction. At this time, a direction update strategy corresponding to the initial search direction is determined. Different initial search directions correspond to different direction update strategies. The direction update strategies corresponding to the initial search directions in this solution are the same as the direction update strategies corresponding to the initial search directions mentioned in Solution 1, and are not described in detail here.

进一步的,更新查找方向后,在当前更新的查找方向上查找空白显示位置,如果在当前更新的查找方向上查找到空白的显示位置,则将当前更新的查找方向作为移动方向,并执行步骤260,如果在当前更新的查找方向上未查找到空白的显示位置,则执行步骤245。Further, after updating the search direction, a blank display position is searched for in the currently updated search direction. If a blank display position is found in the currently updated search direction, the currently updated search direction is used as the moving direction and step 260 is executed. If no blank display position is found in the currently updated search direction, step 245 is executed.

步骤245、如果更新的查找方向上不存在空白显示位置,则在更新的查找方向上查找一无效图标。Step 245: If there is no blank display position in the updated search direction, search for an invalid icon in the updated search direction.

示例性的,如果在当前更新的查找方向上未查找到空白显示位置,则在当前更新的查找方向上查找无效图标。如果查找到无效图标,则执行步骤250,如果未查找到无效图标,可以根据方向更新策略继续更新查找方向,若更新全部查找方向后,仍未查找到空白显示位置及无效图标,则提示用户无法添加该元素。Exemplarily, if no blank display position is found in the currently updated search direction, an invalid icon is searched in the currently updated search direction. If an invalid icon is found, step 250 is executed. If no invalid icon is found, the search direction can be updated according to the direction update strategy. If no blank display position and invalid icon are found after all search directions are updated, the user is prompted that the element cannot be added.

可以理解,本方案中各查找方向上空白显示位置及无效图标的查找方式与上述方案一中提及的空白显示位置及无效图标的查找方式相同,在此不做赘述。It can be understood that the method for searching for blank display positions and invalid icons in each search direction in this solution is the same as the method for searching for blank display positions and invalid icons mentioned in the above-mentioned solution one, and will not be repeated here.

步骤250、删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。Step 250: Delete the invalid icon found, and determine the display position of the invalid icon in the desktop as the blank display position found.

可选的,无效图标的删除数量大于或等于待添加的元素的数量。一个实施例中,待添加元素为一个,因此,删除图标时,可以自动删除第一个查找到的无效图标,并将该无效图标在桌面中的显示位置确定为查找到的空白显示位置。或者是,自动删除当前查找方向上查找到的全部无效图标,并将第一个查找到的无效图标在桌面中的显示位置作为查找到的空白显示位置。可选的,在删除无效图标前,可以弹出提示框,以提示用户是否删除查找到的无效图标,并在用户确定删除无效图标时,对该无效图标进行删除。Optionally, the number of invalid icons to be deleted is greater than or equal to the number of elements to be added. In one embodiment, there is one element to be added, so when deleting an icon, the first invalid icon found can be automatically deleted, and the display position of the invalid icon on the desktop is determined as the blank display position found. Alternatively, all invalid icons found in the current search direction are automatically deleted, and the display position of the first invalid icon found on the desktop is determined as the blank display position found. Optionally, before deleting an invalid icon, a prompt box can be popped up to prompt the user whether to delete the invalid icon found, and when the user decides to delete the invalid icon, the invalid icon is deleted.

另一个实施例中,由用户选择删除的无效图标。此时,在更新的查找方向上查找一无效图标时,还包括:弹出图标删除窗口,所述图标删除窗口中显示有位于当前更新的查找方向上的至少一个无效图标;根据作用于所述图标删除窗口的第二触控操作,确定用户选定的无效图标。相应的,所述删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置包括:删除所述用户选定的无效图标;按照所述查找方向确定第一个被删除的无效图标,并将所述第一个被删除的无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。In another embodiment, the invalid icon is selected for deletion by the user. At this time, when searching for an invalid icon in the updated search direction, it also includes: popping up an icon deletion window, displaying at least one invalid icon located in the currently updated search direction in the icon deletion window; determining the invalid icon selected by the user according to the second touch operation acting on the icon deletion window. Correspondingly, deleting the invalid icon found and determining the display position of the invalid icon in the desktop as the blank display position found includes: deleting the invalid icon selected by the user; determining the first invalid icon to be deleted according to the search direction, and determining the display position of the first invalid icon to be deleted in the desktop as the blank display position found.

具体的,若在当前的查找方向上查找到至少一个无效图标,则弹出图标删除窗口。一个实施例中,图标删除窗口显示有在当前查找方向上查找到的全部无效图标。可选的,图标删除窗口中显示的无效图标可以是桌面中对应无效图标的缩略图。可以理解,图标删除窗口的显示样式可以根据实际情况设定。例如,图标删除窗口中除了显示无效图标外,还显示有无效图标的数量以及当前待添加的元素的数量,以提示用户删除无效图标的最小数量,该最小数量等于待添加的元素的数量。Specifically, if at least one invalid icon is found in the current search direction, an icon deletion window pops up. In one embodiment, the icon deletion window displays all invalid icons found in the current search direction. Optionally, the invalid icons displayed in the icon deletion window can be thumbnails of corresponding invalid icons in the desktop. It is understandable that the display style of the icon deletion window can be set according to actual conditions. For example, in addition to displaying invalid icons, the icon deletion window also displays the number of invalid icons and the number of elements currently to be added, so as to prompt the user to delete the minimum number of invalid icons, which is equal to the number of elements to be added.

可选的,当无效图标数量较多时,可以在图标删除窗口中显示设定数量的无效图标,之后,用户可以通过在图标删除窗口中执行滑动操作的方式更换显示其他的无效图标。可以理解,滑动操作仅为一种可行方式,实际应用中,还可以通过其他方式更换图标删除窗口中显示的无效图标。Optionally, when there are a large number of invalid icons, a set number of invalid icons can be displayed in the icon deletion window, and then the user can replace other invalid icons by performing a sliding operation in the icon deletion window. It can be understood that the sliding operation is only a feasible method, and in actual applications, the invalid icons displayed in the icon deletion window can also be replaced by other methods.

示例性的,第二触控操作用于使智能交互平板明确用户在图标删除窗口中选定的无效图标。第二触控操作的触发方式实施例不做限定。一个实施例中,图标删除窗口中每个无效图标包含选定状态和未选定状态,且选定状态和未选定状态区分显示,以对用户进行选定提示。可选的,弹出图标删除窗口时,图标删除窗口内所有无效图标均处于选定状态,或者,所有无效图标均处于未选定状态,或者,排列在前的最小数量的无效图标处于选定状态。进一步的,假设图标删除窗口中某个无效图标处于未选定状态,若检测到该无效图标接收到触控操作,则将该无效图标变为选定状态。可选的,若该无效图标再次接收到触控操作,则将该无效图标再次变更为未选定状态。可以理解,针对无效图标的触控操作可以是单击操作、双击操作或长按操作等。进一步的,图标删除窗口中还显示有表示确定的功能按键。该功能按键的显示样式实施例不做限定。当图标删除窗口中每个无效图标均设置为用户期望的状态(选定状态或未选定状态)后,用户可以通过触控该功能按键的方式通知智能交互平板已经选定无效图标。之后,智能交互平板检测到该功能按键被触控后,可以确定处于选定状态的无效图标为用户选定的无效图标。其中,可以通过单击、双击或长按等方式触控功能按键。Exemplarily, the second touch operation is used to make the smart interactive tablet clear the invalid icon selected by the user in the icon deletion window. The triggering method of the second touch operation is not limited in the embodiment. In one embodiment, each invalid icon in the icon deletion window includes a selected state and an unselected state, and the selected state and the unselected state are displayed separately to prompt the user to select. Optionally, when the icon deletion window pops up, all invalid icons in the icon deletion window are in a selected state, or all invalid icons are in an unselected state, or the smallest number of invalid icons arranged in front are in a selected state. Further, assuming that an invalid icon in the icon deletion window is in an unselected state, if it is detected that the invalid icon receives a touch operation, the invalid icon is changed to a selected state. Optionally, if the invalid icon receives a touch operation again, the invalid icon is changed to an unselected state again. It can be understood that the touch operation for the invalid icon can be a single-click operation, a double-click operation, or a long press operation. Further, a function button indicating confirmation is also displayed in the icon deletion window. The display style of the function button is not limited in the embodiment. When each invalid icon in the icon deletion window is set to the state desired by the user (selected state or unselected state), the user can notify the smart interactive tablet that the invalid icon has been selected by touching the function key. After that, when the smart interactive tablet detects that the function key is touched, it can determine that the invalid icon in the selected state is the invalid icon selected by the user. The function key can be touched by single-clicking, double-clicking, or long pressing.

可以理解,上述调整无效图标选定状态的触控操作以及作用于功能按键的触控操作均可以认为是第二触控操作。即第二触控操作可以包含至少一个触控操作。It can be understood that the touch operation of adjusting the selection state of the invalid icon and the touch operation acting on the function key can be considered as the second touch operation. That is, the second touch operation can include at least one touch operation.

一个实施例中,确定用户选定的无效图标后,在桌面中删除对应的无效图标。此时,桌面中包含至少一个空白显示位置。可以理解,如果被删除的无效图标的数量为一个,则可以直接将被删除的无效图标在桌面上的显示位置确定为查找到的空白显示位置。如果被删除的无效图标的数量为多个,则在多个被删除的无效图标中,将按照当前的查找方向第一个被查找到的无效图标在桌面上的显示位置确定为查找到的空白显示位置。In one embodiment, after determining the invalid icon selected by the user, the corresponding invalid icon is deleted from the desktop. At this time, the desktop contains at least one blank display position. It is understandable that if the number of invalid icons deleted is one, the display position of the deleted invalid icon on the desktop can be directly determined as the blank display position found. If the number of invalid icons deleted is multiple, then among the multiple invalid icons deleted, the display position of the first invalid icon found according to the current search direction on the desktop is determined as the blank display position found.

举例而言,图7为本申请一个实施例提供的图标删除窗口的示意图。参考图7,该图标删除窗口中显示有无效图标27、无效图标28以及无效图标29,其中,无效图标27以及无效图标28处于选定状态,无效图标29处于未选定状态。图标删除窗口还显示有表示确定的功能按键2010,其中,功能按键2010中显示处于选定状态的无效图标的数量以及待添加的元素的数量。当无效图标的数量大于或等于待添加的元素的数量时,该功能按键2010处于可被触控操作的状态,当无效图标的数量小于待添加的元素的数量时,该功能按键2010处于不可被触控操作的状态。可以理解,可以通过修改功能按键2010中字母和/或数字的显示颜色等方式区分可被触控操作的状态和不可被触控操作的状态。可选的,图标删除窗口中还显示有退出按键2011。当检测到退出按键2011接收到单击、双击或长按等触控操作时,确定退出图标删除窗口。此时,确定没有无效图标被删除,并提示用户无法在桌面中添加第一图标。For example, FIG. 7 is a schematic diagram of an icon deletion window provided by an embodiment of the present application. Referring to FIG. 7, the icon deletion window displays invalid icons 27, invalid icons 28, and invalid icons 29, wherein invalid icons 27 and invalid icons 28 are in a selected state, and invalid icon 29 is in an unselected state. The icon deletion window also displays a function key 2010 indicating determination, wherein the function key 2010 displays the number of invalid icons in a selected state and the number of elements to be added. When the number of invalid icons is greater than or equal to the number of elements to be added, the function key 2010 is in a state that can be operated by touch, and when the number of invalid icons is less than the number of elements to be added, the function key 2010 is in a state that cannot be operated by touch. It can be understood that the state that can be operated by touch and the state that cannot be operated by touch can be distinguished by modifying the display color of letters and/or numbers in the function key 2010. Optionally, an exit key 2011 is also displayed in the icon deletion window. When it is detected that the exit key 2011 receives a touch operation such as a single click, a double click, or a long press, it is determined to exit the icon deletion window. At this point, it is determined that no invalid icon is deleted, and the user is prompted that the first icon cannot be added to the desktop.

步骤260、移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。Step 260: Move the second icon and place the first icon in the target display position. The moving direction of the second icon is determined according to the search direction of the blank display position.

一个实施例中,在当前的查找方向上查找到空白显示位置时,将当前的查找方向作为第二图标的移动方向,并将第二图标沿移动方向移动一个位置,以空出目标显示位置,进而将第一图标放置在目标显示位置。可以想到,实际应用中虽然移动方向上存在空白显示位置,但是该空白显示位置与第二图标之间可能还存在其他图标,此时,将第二图标移动一个位置后会与相邻的图标位置冲突。为了防止位置冲突的情况,设定第二图标与空白显示位置之间存在至少一个第三图标,移动第二图标时,还包括:按照所述第二图标的移动方向,顺序移动至少一个所述第三图标。其中,将第二图标与空白显示位置之间的图标记为第三图标。在移动第二图标时,同步移动第三图标,且各第三图标均沿移动方向移动一个显示位置,此时,与空白显示位置相邻的第三图标移动后放置空白显示位置中。例如,图8为本申请一个实施例提供的桌面第五示意图,其中,移动方向为竖直向上,目标显示位置上放置第二图标2012,第二图标2012的移动方向上存在空白显示位置2013,且空白显示位置2013与第二图标2012之间存在第三图标2014。第一图标2015处于未放置状态。图9为本申请一个实施例提供的桌面第六示意图。图9是基于图8放置第一图标2015后的桌面示意图。参考图9,第二图标2012和第三图标2014均向上移动了一个显示位置,第一图标2015放置在目标显示位置上。In one embodiment, when a blank display position is found in the current search direction, the current search direction is used as the moving direction of the second icon, and the second icon is moved one position along the moving direction to empty the target display position, and then the first icon is placed at the target display position. It can be imagined that in actual applications, although there is a blank display position in the moving direction, there may be other icons between the blank display position and the second icon. At this time, moving the second icon by one position will conflict with the adjacent icon position. In order to prevent the situation of position conflict, it is set that there is at least one third icon between the second icon and the blank display position. When moving the second icon, it also includes: sequentially moving at least one of the third icons according to the moving direction of the second icon. Among them, the figure between the second icon and the blank display position is marked as the third icon. When moving the second icon, the third icon is moved synchronously, and each third icon is moved by one display position along the moving direction. At this time, the third icon adjacent to the blank display position is moved and placed in the blank display position. For example, FIG8 is a fifth schematic diagram of a desktop provided by an embodiment of the present application, wherein the moving direction is vertically upward, a second icon 2012 is placed at the target display position, a blank display position 2013 exists in the moving direction of the second icon 2012, and a third icon 2014 exists between the blank display position 2013 and the second icon 2012. The first icon 2015 is in an unplaced state. FIG9 is a sixth schematic diagram of a desktop provided by an embodiment of the present application. FIG9 is a schematic diagram of a desktop after the first icon 2015 is placed based on FIG8. Referring to FIG9, the second icon 2012 and the third icon 2014 are both moved upward by one display position, and the first icon 2015 is placed at the target display position.

一个实施例中,无论目标显示位置是否为空白,将第一图标放置在目标显示位置中之后,均还包括:更新第一图标的显示参数。其中,显示参数包括透明度、尺寸、颜色、样式等至少一种。更新显示参数是为了与第一图标的未放置状态进行区分。示例性的,预先设置第一图标处于放置状态时显示参数设置规则以及第一图标处于未放置状态时显示参数设置规则,举例而言,元素为应用时,第一图标处于放置状态时的透明度低于未放置状态时的透明度;元素为图片时,第一图标处于放置状态时的尺寸小于未放置状态时的尺寸。元素为文件夹或文件时,第一图标处于放置状态时的颜色深于处于未放置状态时的颜色。第一图标为访问链接时,第一图标处于放置状态时的样式为访问链接对象属性的图标以及对象名称、处于未放置状态时的样式为访问链接地址。之后,根据上述显示参数设置规则更换第一图标的显示参数。In one embodiment, regardless of whether the target display position is blank, after placing the first icon in the target display position, the method further includes: updating the display parameters of the first icon. The display parameters include at least one of transparency, size, color, style, etc. The display parameters are updated to distinguish the first icon from the unplaced state. Exemplarily, the display parameter setting rules when the first icon is in the placed state and the display parameter setting rules when the first icon is in the unplaced state are pre-set. For example, when the element is an application, the transparency of the first icon in the placed state is lower than the transparency when it is not placed; when the element is a picture, the size of the first icon in the placed state is smaller than the size when it is not placed. When the element is a folder or a file, the color of the first icon in the placed state is darker than the color when it is not placed. When the first icon is an access link, the style of the first icon in the placed state is the icon of the access link object attribute and the object name, and the style of the first icon in the unplaced state is the access link address. Afterwards, the display parameters of the first icon are changed according to the above display parameter setting rules.

上述,通过接收并响应用于在桌面中添加位于其他应用程序内的元素的第一触控操作,在桌面中显示元素对应的第一图标,且第一图标处于未放置状态,之后,若目标显示位置上已显示有第二图标时,则通过目标显示位置与第一图标放置前悬停位置之间的相对位置关系确定空白显示位置的初始查找方向,并在初始的查找方向上查找空白显示位置,如果初始的查找方向上未查找到空白显示位置,则按照相应的方向更新策略更新查找方向,并在更新后的查找方向上继续查找空白显示位置,并在查找到空白显示位置时,将查找方向作为第二图标的移动方向,并在移动方向上移动第二图标,同时,将第一图标放置在目标显示位置的技术方案,可以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题,实现将其他应用程序内的元素添加至桌面中,且在添加过程中通过显示处于未放置状态的第一图标,以提示用户该元素可以添加至桌面中,还可以使用户明确第一图标在桌面中的位置进而将第一图标放置在期望的目标显示位置上。同时,在目标显示位置上已经有第二图标时,可以结合更改查找方向以及查找无效图标的方式得到空白显示位置,使得空白显示位置查找方式灵活多变,适用于不同的桌面图标排列情况。同时,在查找到无效图标后,可以采用自动或用户选择的方式删除无效图标,使得无效图标删除方式更加灵活。In the above, by receiving and responding to a first touch operation for adding an element located in other applications to the desktop, a first icon corresponding to the element is displayed on the desktop, and the first icon is in an unplaced state. Afterwards, if a second icon is already displayed at the target display position, the initial search direction of the blank display position is determined by the relative position relationship between the target display position and the hovering position before the first icon is placed, and the blank display position is searched in the initial search direction. If the blank display position is not found in the initial search direction, the search direction is updated according to the corresponding direction update strategy, and the blank display position is continued to be searched in the updated search direction. When the blank display position is found, the search direction is used as the moving direction of the second icon, and the second icon is moved in the moving direction. At the same time, the technical solution of placing the first icon at the target display position can solve the technical problem that the prior art cannot flexibly and reasonably realize adding icons to the desktop, and realizes adding elements in other applications to the desktop. In the process of adding, the first icon in an unplaced state is displayed to prompt the user that the element can be added to the desktop, and the user can also be clear about the position of the first icon in the desktop and place the first icon at the desired target display position. At the same time, when there is already a second icon at the target display position, a blank display position can be obtained by combining the change of the search direction and the method of searching for invalid icons, so that the blank display position search method is flexible and changeable, and is suitable for different desktop icon arrangements. At the same time, after the invalid icon is found, the invalid icon can be deleted automatically or by user selection, making the invalid icon deletion method more flexible.

图10为本申请一个实施例提供的一种桌面图标管理方法的流程图。本实施例提供的桌面图标管理方法是在上述实施例的基础上进行具体化。本实施例中,第一触控操作为拖拽操作。Fig. 10 is a flowchart of a desktop icon management method provided by an embodiment of the present application. The desktop icon management method provided by this embodiment is specific based on the above embodiment. In this embodiment, the first touch operation is a drag operation.

进一步的,桌面包含多个预设的用于放置图标的显示位置,每个显示位置分为多个子区域,子区域包括上区域、下区域、左区域及右区域中的至少两个。实施例中,以显示位置包括上区域、下区域、左区域及右区域为例进行描述。一般而言,显示位置的形状可以为正方形或矩形。以正方形为例,连接正方形的对角线后,便可以得到四个子区域,且四个子区域按照所在位置可以分别对应上区域、下区域、左区域及右区域。此时,可以基于子区域确定空白显示位置的初始查找方向。具体的,参考图10,本实施例提供的桌面图标管理方法具体包括:Furthermore, the desktop includes a plurality of preset display positions for placing icons, each display position is divided into a plurality of sub-areas, and the sub-areas include at least two of the upper area, the lower area, the left area and the right area. In the embodiment, the display position includes the upper area, the lower area, the left area and the right area as an example for description. Generally speaking, the shape of the display position can be a square or a rectangle. Taking a square as an example, after connecting the diagonal lines of the square, four sub-areas can be obtained, and the four sub-areas can correspond to the upper area, the lower area, the left area and the right area respectively according to their locations. At this time, the initial search direction of the blank display position can be determined based on the sub-area. Specifically, with reference to Figure 10, the desktop icon management method provided in this embodiment specifically includes:

步骤310、接收第一触控操作,第一触控操作用于将选择的元素移到至桌面的一目标显示位置。Step 310: Receive a first touch operation, where the first touch operation is used to move the selected element to a target display position on the desktop.

实施例中以元素在移动前位于其他应用程序的操作界面内为例进行描述。In the embodiment, description is made by taking an example that an element is located in an operation interface of another application before being moved.

步骤320、响应于第一触控操作,在桌面中显示对应于元素的第一图标,控制第一图标跟随所述第一触控操作移动,所述第一图标处于未放置状态。Step 320: In response to the first touch operation, display a first icon corresponding to the element on the desktop, control the first icon to move following the first touch operation, and the first icon is in an unplaced state.

具体的,在拖拽元素的过程中,其他应用程序可以实时获取拖拽操作的拖拽位置,当通过拖拽位置确定拖拽操作由其他应用程序移动到桌面时,通知桌面,以在桌面显示元素的第一图标。之后,若桌面应用继续在桌面上检测到该拖拽操作,则控制第一图标跟随拖拽操作移动。可选的,根据拖拽位置确定拖拽操作还未移动到桌面时,也可以在其他应用程序的操作界面中显示第一图标,并控制第一图标跟随第一触控操作移动。可选的,当第一图标跟随拖拽操作移动时,第一图标的位置与拖拽位置之间的相对位置关系固定。Specifically, in the process of dragging an element, other applications can obtain the drag position of the drag operation in real time. When it is determined through the drag position that the drag operation is moved from other applications to the desktop, the desktop is notified to display the first icon of the element on the desktop. Afterwards, if the desktop application continues to detect the drag operation on the desktop, the first icon is controlled to move with the drag operation. Optionally, when it is determined based on the drag position that the drag operation has not yet moved to the desktop, the first icon can also be displayed in the operation interface of other applications, and the first icon can be controlled to move with the first touch operation. Optionally, when the first icon moves with the drag operation, the relative position relationship between the position of the first icon and the drag position is fixed.

一个实施例中,设定仅有部分类型的元素可以被拖拽至桌面中。此时,响应于所述第一触控操作,在所述桌面中显示对应于元素的第一图标包括步骤321-步骤322:In one embodiment, it is set that only certain types of elements can be dragged to the desktop. At this time, in response to the first touch operation, displaying a first icon corresponding to the element on the desktop includes steps 321-322:

步骤321、检测到所述第一触控操作由所述其他应用程序移动至所述桌面时,向所述桌面发送所述元素的参数。Step 321: When detecting that the first touch operation is moved from the other application to the desktop, send the parameter of the element to the desktop.

其中,元素的参数可以由其他应用程序通过拖拽接口(View.startDragAndDrop)发送至桌面(桌面应用)中。参数包括通用参数和元素参数,通用参数适用于全部元素,元素参数具有类型性,即不同类型的元素对应的元素参数可能不同。Among them, the parameters of the element can be sent to the desktop (desktop application) by other applications through the drag interface (View.startDragAndDrop). Parameters include common parameters and element parameters. Common parameters apply to all elements, and element parameters have types, that is, different types of elements may correspond to different element parameters.

例如,参数包括但不限定于表1中提及的数据:For example, the parameters include but are not limited to the data mentioned in Table 1:

表1Table 1

其中,表1中,文件类型、应用类型以及一键快捷功能(即快捷功能)属于元素参数。当元素类型不同时,可以在表1中选择相适应的通用参数以及元素参数发送至桌面。例如,元素的类型为应用时,需要发送的参数如下表2所示:In Table 1, file type, application type, and one-key shortcut function (i.e., shortcut function) are element parameters. When the element type is different, you can select the corresponding general parameters and element parameters in Table 1 and send them to the desktop. For example, when the element type is application, the parameters to be sent are shown in Table 2 below:

表2Table 2

再如,元素的类型为本地的文件或文件夹时,需要发送的参数如下表3所示:For another example, when the element type is a local file or folder, the parameters that need to be sent are shown in Table 3 below:

表3Table 3

又如,元素的类型为U盘中的文件或文件夹时,需要发送的参数如下表4所示:For another example, when the element type is a file or folder in a USB flash drive, the parameters that need to be sent are shown in Table 4 below:

表4Table 4

还如,元素的类型为云盘(云存储器)中的文件或文件夹时,需要发送的参数如下表5所示:For example, when the element type is a file or folder in a cloud disk (cloud storage), the parameters that need to be sent are shown in Table 5 below:

表5Table 5

步骤322、所述桌面根据所述参数确定所述元素符合添加类型时,在所述桌面中显示对应于所述元素的第一图标,第一图标为未放置状态。Step 322: When the desktop determines that the element meets the adding type according to the parameter, a first icon corresponding to the element is displayed on the desktop, and the first icon is in an unplaced state.

具体的,桌面获取到参数后,根据参数可以得到元素类型(即label),之后,可以确认该元素类型是否符合添加类型,其中,添加类型是指可以向桌面添加的元素类型,其可以由桌面应用设定。当元素符合添加类型时,桌面可以通过参数确定元素所在路径、桌面创建时应用icon资源Id等数据,并根据参数将第一图标显示在桌面中。Specifically, after the desktop obtains the parameters, it can obtain the element type (i.e. label) according to the parameters, and then confirm whether the element type meets the add type, where the add type refers to the element type that can be added to the desktop, which can be set by the desktop application. When the element meets the add type, the desktop can determine the path of the element, the icon resource Id applied when the desktop is created, and other data through the parameters, and display the first icon on the desktop according to the parameters.

一个实施例中,在拖拽的过程中,通过拖拽view容器盛放第一图标。此时,在接收第一触控操作之后,还包括:根据所述第一图标的宽度和长度生成拖拽view容器;将所述第一图标添加至所述拖拽view容器。In one embodiment, during the dragging process, the first icon is placed in a drag view container. At this time, after receiving the first touch operation, the method further includes: generating a drag view container according to the width and length of the first icon; and adding the first icon to the drag view container.

其中,view容器也可以称为视图容器,实施例中,通过拖拽view容器盛放第一图标,以实现在桌面中显示第一图标。具体的,其他应用程序中所有允许被拖拽的view均需要监听用户的触控事件,每个view中盛放一个元素。当检测到用户选择某个view时,生成该view对应的拖拽view容器。在生成拖拽view容器时,具体包括:生成一个拖拽view容器的根布局,即选中拖拽view容器,当检测到用户选择某个view时,通过系统View.getWidth()、View.getHeight()、View.getX()、View.getY()方法,获取被选择View的宽度、高度、x轴以及y轴的坐标位置。之后,按照获取宽度、高度、x轴以及y轴的坐标位置,将对应内容添加至拖拽view容器中,即实现将第一图标添加至拖拽view容器。Among them, the view container can also be called a view container. In an embodiment, the first icon is placed in the view container by dragging it to realize the display of the first icon on the desktop. Specifically, all views in other applications that are allowed to be dragged need to monitor the user's touch events, and each view contains an element. When it is detected that the user selects a certain view, a drag view container corresponding to the view is generated. When generating a drag view container, it specifically includes: generating a root layout of a drag view container, that is, selecting the drag view container, and when it is detected that the user selects a certain view, the width, height, x-axis and y-axis coordinate positions of the selected View are obtained through the system View.getWidth(), View.getHeight(), View.getX(), View.getY() methods. Afterwards, according to the obtained width, height, x-axis and y-axis coordinate positions, the corresponding content is added to the drag view container, that is, the first icon is added to the drag view container.

相应的,检测到第一触控操作由其他应用程序移动至桌面时,还包括:向所述桌面发送所述第一触控操作的拖拽参数以及拖拽view容器。其中,将拖拽参数以及拖拽view容器传入View.startDragAndDrop接口,以实现将元素由其他应用程序拖拽至桌面中。Correspondingly, when detecting that the first touch operation is moved from other applications to the desktop, it also includes: sending the drag parameter of the first touch operation and the drag view container to the desktop. The drag parameter and the drag view container are passed to the View.startDragAndDrop interface to realize dragging elements from other applications to the desktop.

步骤330、确认所述第一触控操作停止时,根据第一图标放置前的悬停位置确定所述目标显示位置。Step 330: When it is confirmed that the first touch operation stops, the target display position is determined according to the hovering position of the first icon before it is placed.

具体的,当检测到第一触控操作停止时,桌面应用获取第一图标在桌面中的悬停位置,并记为放置前的悬停位置。之后,确定放置前的悬停位置在桌面中落入的显示位置,并将该显示位置记为目标显示位置。若放置前的悬停位置在桌面中未落入任何显示位置,则选择与放置前的悬停位置距离最近的显示位置,并记为目标显示位置。其中,距离计算方式可以根据实际情况设定,如计算显示位置中心点与放置前的悬停位置中心点的距离,并记为显示位置与放置前的悬停位置的距离。可以理解,在确定目标显示位置时,还可以是检测到第一触控操作停止时,确定第一触控操作的停止位置,之后,根据停止位置确定目标显示位置。其中,根据停止位置确定目标显示位置时,可以是选择与停止位置距离最近的显示位置,并记为目标显示位置;还可以是确定与停止位置重合度最高的显示位置,并记为目标显示位置。一般而言,第一触控操作停止时,停止位置会落入一个显示位置内。Specifically, when it is detected that the first touch operation stops, the desktop application obtains the hovering position of the first icon in the desktop and records it as the hovering position before placement. Afterwards, the display position where the hovering position before placement falls in the desktop is determined, and the display position is recorded as the target display position. If the hovering position before placement does not fall into any display position in the desktop, the display position closest to the hovering position before placement is selected and recorded as the target display position. Among them, the distance calculation method can be set according to actual conditions, such as calculating the distance between the center point of the display position and the center point of the hovering position before placement, and recording it as the distance between the display position and the hovering position before placement. It can be understood that when determining the target display position, it can also be when the first touch operation stops, the stop position of the first touch operation is determined, and then the target display position is determined according to the stop position. Among them, when determining the target display position according to the stop position, it can be to select the display position closest to the stop position and record it as the target display position; it can also be to determine the display position with the highest overlap with the stop position and record it as the target display position. Generally speaking, when the first touch operation stops, the stop position will fall into a display position.

步骤340、如果所述目标显示位置已显示有第二图标,则确定所述第一图标放置前的悬停位置落入在所述目标显示位置中的子区域。Step 340: If a second icon is already displayed at the target display position, determine whether the hovering position of the first icon before placement falls within a sub-area of the target display position.

具体的,确定第一图标放置前的悬停位置所落入的目标显示位置中的子区域的方式可以为:将第一图标放置前的悬停位置的中心点落入的子区域确定为第一图标放置前的悬停位置落入的子区域;或者是,选择被第一图标放置前的悬停位置覆盖最多的子区域作为第一图标放置前的悬停位置落入的子区域。实施例中,以通过第一图标放置前的悬停位置的中心点确定第一图标落入的子区域为例进行描述,此时,确定第一图标放置前的悬停位置落入在所述目标显示位置中的子区域包括:步骤341-步骤342:Specifically, the method for determining the sub-region in the target display position where the hovering position before the first icon is placed falls can be: determining the sub-region where the center point of the hovering position before the first icon is placed falls as the sub-region where the hovering position before the first icon is placed falls; or, selecting the sub-region covered the most by the hovering position before the first icon is placed as the sub-region where the hovering position before the first icon is placed falls. In the embodiment, the method for determining the sub-region where the first icon falls by the center point of the hovering position before the first icon is placed is described as an example. At this time, determining the sub-region where the hovering position before the first icon is placed falls in the target display position includes: Step 341-Step 342:

步骤341、获取所述第一图标放置前悬停位置的中心点位置。Step 341: Obtain the center point position of the hovering position of the first icon before placement.

具体的,确定放置第一图标前包含第一图标悬停位置的最小矩形区域(也可能为最小正方形区域)的中心点在桌面的位置,并记为第一图标放置前悬停位置的中心点位置。Specifically, the position of the center point of the smallest rectangular area (or smallest square area) containing the hovering position of the first icon before the first icon is placed on the desktop is determined and recorded as the center point position of the hovering position of the first icon before placement.

步骤342、确认所述中心点位置所落入的所述目标显示位置中的子区域,并将所述子区域作为所述第一图标放置前的悬停位置所落入的子区域。Step 342: confirm the sub-region in the target display position where the center point position falls, and use the sub-region as the sub-region where the hovering position of the first icon falls before being placed.

具体的,根据中心点位置确定中心点落入的子区域,并将该子区域作为第一图标放置前悬停位置所落入的子区域。若中心点未落入任何子区域,则可以确定距离中心点最近的子区域,并作为第一图标放置前悬停位置所落入的子区域。或者是,若中心点未落入任何子区域,则提示用户无法在桌面中添加元素。Specifically, the sub-region where the center point falls is determined according to the position of the center point, and the sub-region is used as the sub-region where the hovering position falls before the first icon is placed. If the center point does not fall into any sub-region, the sub-region closest to the center point can be determined and used as the sub-region where the hovering position falls before the first icon is placed. Alternatively, if the center point does not fall into any sub-region, the user is prompted that the element cannot be added to the desktop.

步骤350、根据所述子区域确定所述空白显示位置初始的查找方向。Step 350: Determine an initial search direction of the blank display position according to the sub-area.

一个实施例中,将子区域相反的方向作为空白显示位置初始的查找方向。例如,子区域为左区域时,初始的查找方向为水平向右,子区域为上区域,初始的查找方向为竖直向下。In one embodiment, the opposite direction of the sub-region is used as the initial search direction of the blank display position. For example, when the sub-region is the left region, the initial search direction is horizontally to the right, and when the sub-region is the upper region, the initial search direction is vertically downward.

举例而言,图11为本申请一个实施例提供的一种显示位置区域示意图。参考图11,显示位置被分为上区域31、下区域32、左区域33以及右区域34。图12为本申请一个实施例提供的初始的查找方向第一示意图。参考图12,第一图标35放置前悬停位置的中心点36落入上区域,此时,初始的查找方向为竖直向下。图13为本申请一个实施例提供的初始的查找方向第二示意图。参考图13,第一图标35放置前悬停位置的中心点36落入右区域,此时,初始的查找方向为水平向左。可以理解,图12及图13中所示的箭头、中心点以及子区域划分线用于解释初始的查找方向确定方案,实际应用中可以不显示在桌面中。For example, Figure 11 is a schematic diagram of a display position area provided by an embodiment of the present application. Referring to Figure 11, the display position is divided into an upper area 31, a lower area 32, a left area 33 and a right area 34. Figure 12 is a first schematic diagram of an initial search direction provided by an embodiment of the present application. Referring to Figure 12, the center point 36 of the hovering position before the first icon 35 is placed falls into the upper area. At this time, the initial search direction is vertically downward. Figure 13 is a second schematic diagram of the initial search direction provided by an embodiment of the present application. Referring to Figure 13, the center point 36 of the hovering position before the first icon 35 is placed falls into the right area. At this time, the initial search direction is horizontally to the left. It can be understood that the arrows, center points and sub-area dividing lines shown in Figures 12 and 13 are used to explain the initial search direction determination scheme, and may not be displayed on the desktop in actual applications.

可选的,也可以设定子区域相同的方向作为初始的查找方向。例如,子区域为左区域时,初始的查找方向为水平向左,子区域为上区域,初始的查找方向为竖直向上。Optionally, the same direction of the sub-regions may be set as the initial search direction. For example, when the sub-region is the left region, the initial search direction is horizontally to the left, and when the sub-region is the upper region, the initial search direction is vertically upward.

步骤360、如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置。Step 360: If no blank display position is found in the initial search direction, the search direction is updated according to a direction update strategy corresponding to the initial search direction, and a blank display position is searched in the updated search direction.

步骤370、移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。Step 370: Move the second icon and place the first icon in the target display position. The moving direction of the second icon is determined according to the search direction of the blank display position.

上述,通过接收并响应用于在桌面中添加位于其他应用程序内的元素的第一触控操作,在桌面中显示元素的第一图标,控制第一图标跟随第一触控操作移动,且第一图标处于未放置状态,之后,确认第一触控操作停止时,根据第一图标放置前悬停位置确定第一图标在桌面上的目标显示位置,并在目标显示位置上存在第二图标时,通过确定第一图标放置前的悬停位置所落入的目标显示位置的子区域确定空白显示位置初始的查找方向,进而在初始的查找方向上查找空白显示位置,如果初始的查找方向上未查找到空白显示位置,则按照相应的方向更新策略更新查找方向,之后,在更新后的查找方向上继续查找空白显示位置,并在查找到空白显示位置时,将查找方向作为第二图标的移动方向并移动第二图标,之后,将第一图标放置在目标显示位置的技术方案,可以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题,通过对显示位置划分区域,可以实现准确确定移动方向,且移动方向灵活,使得图标管理变得灵活。同时,预先设定添加类型,可以实现将其他应用程序(尤其第三方应用程序)内的元素添加至桌面中。同时,通过拖拽view容器以及拖拽接口实现将元素由其他应用程序拖拽至桌面中,增强了桌面添加元素时的灵活性,提升了用户的使用体验。In the above, by receiving and responding to a first touch operation for adding an element located in other applications to the desktop, a first icon of the element is displayed on the desktop, the first icon is controlled to move following the first touch operation, and the first icon is in an unplaced state. Afterwards, when it is confirmed that the first touch operation stops, the target display position of the first icon on the desktop is determined according to the hovering position of the first icon before placement, and when there is a second icon at the target display position, the initial search direction of the blank display position is determined by determining the sub-area of the target display position where the hovering position of the first icon before placement falls, and then the blank display position is searched in the initial search direction. If the blank display position is not found in the initial search direction, the search direction is updated according to the corresponding direction update strategy. Afterwards, the blank display position is continued to be searched in the updated search direction, and when the blank display position is found, the search direction is used as the moving direction of the second icon and the second icon is moved. Afterwards, the technical solution of placing the first icon at the target display position can solve the technical problem that the prior art cannot flexibly and reasonably implement the addition of icons to the desktop. By dividing the display position into areas, the moving direction can be accurately determined, and the moving direction is flexible, making icon management flexible. At the same time, by pre-setting the adding type, you can add elements from other applications (especially third-party applications) to the desktop. At the same time, by dragging the view container and the drag interface, you can drag elements from other applications to the desktop, which enhances the flexibility of adding elements to the desktop and improves the user experience.

在上述实施例的基础上,还可以通过桌面添加功能按键实现元素添加。此时,设定第一触控操作作用于其他应用程序操作界面内的功能按键,所述功能按键用于将所述操作界面内的元素移动至所述桌面中。On the basis of the above embodiment, the element addition can also be realized by adding a function key on the desktop. At this time, the first touch operation is set to act on a function key in the operation interface of other application programs, and the function key is used to move the element in the operation interface to the desktop.

其中,功能按键的显示位置以及显示样式实施例不做限定,可以理解,功能按键可以为多个,例如,功能按键为两个,一个用于添加快捷功能,另一个用于添加其他类型的元素。当检测到功能按键接收到第一触控操作(如单击操作或双击操作等)时,在其他应用程序中获取元素,并添加至桌面中。其中,其他应用程序的当前操作界面中若包含多个元素时,可以选择第一个元素作为添加至桌面中的元素,或者,提示用户选择一个或多个元素作为添加至桌面中的元素。之后,在桌面中查找空白显示位置,并将元素的第一图标放置在空白显示位置中,且在桌面不存在空白显示位置时,通过查找无效图标的方式得到空白显示位置。或者是,提示用户在桌面中选定目标显示位置,并按照上述方式将第一图标放置在目标显示位置中。Among them, the display position and display style of the function button are not limited in the embodiment. It can be understood that there can be multiple function buttons, for example, there are two function buttons, one for adding shortcut functions and the other for adding other types of elements. When it is detected that the function button receives a first touch operation (such as a single-click operation or a double-click operation, etc.), the element is obtained in other applications and added to the desktop. Among them, if the current operation interface of other applications contains multiple elements, the first element can be selected as the element added to the desktop, or the user is prompted to select one or more elements as elements added to the desktop. After that, a blank display position is found in the desktop, and the first icon of the element is placed in the blank display position, and when there is no blank display position on the desktop, the blank display position is obtained by finding an invalid icon. Alternatively, the user is prompted to select a target display position on the desktop, and the first icon is placed in the target display position in the above manner.

在上述实施例的基础上,还可以是在检测到元素接入时,自动在桌面中显示第一图标。如当检测到U盘接入时,自动在桌面中显示U盘文件夹的第一图标。On the basis of the above embodiment, when the element access is detected, the first icon can be automatically displayed on the desktop. For example, when the USB flash drive access is detected, the first icon of the USB flash drive folder can be automatically displayed on the desktop.

图14为本申请一个实施例提供的一种桌面图标管理方法的流程图。参考图14,本实施例提供的桌面图标管理方法具体包括:FIG14 is a flowchart of a desktop icon management method provided by an embodiment of the present application. Referring to FIG14 , the desktop icon management method provided by the present embodiment specifically includes:

步骤401、接收第一触控操作,第一触控操作用于在桌面中添加位于第三方应用程序内的元素。Step 401: Receive a first touch operation, where the first touch operation is used to add an element located in a third-party application to the desktop.

步骤402、检测到第一触控操作由第三方应用程序移动至桌面时,向桌面发送元素的参数。Step 402: When it is detected that the first touch operation is moved from the third-party application to the desktop, parameters of the element are sent to the desktop.

步骤403、桌面根据参数确定元素是否符合添加类型。桌面根据参数确定元素符合添加类型时,执行步骤404。否则,执行步骤418。Step 403: The desktop determines whether the element meets the added type according to the parameters. If the desktop determines that the element meets the added type according to the parameters, step 404 is executed. Otherwise, step 418 is executed.

步骤404、在桌面中显示元素的第一图标,控制第一图标跟随第一触控操作移动。Step 404: Display a first icon of the element on the desktop, and control the first icon to move following the first touch operation.

其中,第一图标处于未放置状态。Among them, the first icon is in an unplaced state.

步骤405、确认第一触控操作停止时,根据第一图标放置前的悬停位置确定第一图标在桌面上的目标显示位置。Step 405: When it is confirmed that the first touch operation stops, determine the target display position of the first icon on the desktop according to the hovering position of the first icon before placement.

步骤406、确认目标显示位置上是否为空白。若是,则执行步骤407。否则,执行步骤408。Step 406: confirm whether the target display position is blank. If yes, execute step 407. Otherwise, execute step 408.

步骤407、将第一图标放置在目标显示位置上。Step 407: Place the first icon at the target display position.

步骤408、确定第一图标放置前的悬停位置所落入的目标显示位置中子区域。Step 408: Determine the sub-region of the target display position where the hovering position of the first icon before placement falls.

步骤409、根据子区域确定空白显示位置初始的查找方向为水平向右。Step 409: Determine the initial search direction of the blank display position according to the sub-area as horizontal rightward.

步骤410、判断水平向右的方向上是否存在空白显示位置。若存在空白显示位置,则执行步骤411,否则,执行步骤412。Step 410: Determine whether there is a blank display position in the horizontal right direction. If there is a blank display position, execute step 411; otherwise, execute step 412.

步骤411、移动第二图标,将第一图标放置在目标显示位置上。Step 411: Move the second icon and place the first icon at the target display position.

若空白显示位置和第二图标之间存在第三图标,则按照移动方向顺序移动第三图标。If there is a third icon between the blank display position and the second icon, the third icon is moved in sequence according to the moving direction.

步骤412、将查找方向变更为水平向左,判断水平向左的方向上是否存在空白显示位置。若存在空白显示位置,则返回执行步骤411,否则,执行步骤413。Step 412, change the search direction to horizontal left, and determine whether there is a blank display position in the horizontal left direction. If there is a blank display position, return to step 411, otherwise, execute step 413.

步骤413、确定水平向右的方向上是否存在无效图标。若是,则执行步骤414。否则,执行步骤417。Step 413: Determine whether there is an invalid icon in the horizontal right direction. If yes, execute step 414. Otherwise, execute step 417.

步骤414、弹出图标删除窗口。Step 414: an icon deletion window pops up.

步骤415、根据作用于图标删除窗口的第二触控操作,确定用户在图标删除窗口中选定的无效图标。Step 415: Determine the invalid icon selected by the user in the icon deletion window according to the second touch operation applied to the icon deletion window.

步骤416、删除选定的无效图标。返回执行步骤411。Step 416: Delete the selected invalid icon and return to step 411.

此时,将查找方向上第一个被删除的无效图标的显示位置作为查找到的空白显示位置。At this time, the display position of the first invalid icon deleted in the search direction is used as the found blank display position.

步骤417、确定水平向左的方向上是否存在无效图标。若是,返回执行步骤414。否则,执行步骤418。Step 417: Determine whether there is an invalid icon in the horizontal left direction. If yes, return to step 414. Otherwise, execute step 418.

步骤418、提示用户无法在桌面中添加第一图标。Step 418: Prompt the user that the first icon cannot be added to the desktop.

可以理解的是,由于实施例与上述实施例应用场景相同,实现手段相同,技术效果相同。因此,未在一个实施例中描述的技术细节,可参见上述其他实施例。It is understandable that since the embodiment has the same application scenario, the same implementation means, and the same technical effect as the above embodiment, the technical details not described in one embodiment may refer to the above other embodiments.

通过上述方案,可以灵活的将第三方应用中的元素的第一图标添加至桌面中,以使用户通过第一图标获取该元素。Through the above solution, the first icon of the element in the third-party application can be flexibly added to the desktop, so that the user can obtain the element through the first icon.

图15为本申请一个实施例提供的一种桌面图标管理方法的流程图。参考图15,本实施例提供的桌面图标管理方法具体包括:FIG15 is a flowchart of a desktop icon management method provided by an embodiment of the present application. Referring to FIG15 , the desktop icon management method provided by the present embodiment specifically includes:

步骤501、接收第一触控操作,第一触控操作用于在桌面中添加位于第三方应用程序内的元素。Step 501: Receive a first touch operation, where the first touch operation is used to add an element located in a third-party application to the desktop.

步骤502、检测到第一触控操作由第三方应用程序移动至桌面时,向桌面发送元素的参数。Step 502: When it is detected that the first touch operation is moved from the third-party application to the desktop, parameters of the element are sent to the desktop.

步骤503、桌面根据参数确定元素是否符合添加类型。桌面根据参数确定元素符合添加类型时,执行步骤504。否则,执行步骤522。Step 503: The desktop determines whether the element meets the added type according to the parameters. If the desktop determines that the element meets the added type according to the parameters, step 504 is executed. Otherwise, step 522 is executed.

步骤504、在桌面中显示元素的第一图标,控制第一图标跟随第一触控操作移动。Step 504: Display a first icon of the element on the desktop, and control the first icon to move following the first touch operation.

其中,第一图标处于未放置状态。Among them, the first icon is in an unplaced state.

步骤505、确认第一触控操作停止时,根据第一图标放置前的悬停位置确定第一图标在桌面上的目标显示位置。Step 505: When it is confirmed that the first touch operation stops, determine the target display position of the first icon on the desktop according to the hovering position of the first icon before placement.

步骤506、确认目标显示位置上是否为空白。若是,则执行步骤507。否则,执行步骤508。Step 506: confirm whether the target display position is blank. If yes, execute step 507. Otherwise, execute step 508.

步骤507、将第一图标放置在目标显示位置上。Step 507: Place the first icon at the target display position.

步骤508、确定第一图标放置前的悬停位置所落入的目标显示位置中子区域。Step 508: Determine the sub-area of the target display position where the hovering position of the first icon before placement falls.

步骤509、根据子区域确定空白显示位置初始的查找方向为竖直向上。Step 509: Determine the initial search direction of the blank display position as vertically upward according to the sub-area.

步骤510、判断竖直向上的方向上是否存在空白显示位置。若存在空白显示位置,则执行步骤511,否则,执行步骤512。Step 510: Determine whether there is a blank display position in the vertical upward direction. If there is a blank display position, execute step 511; otherwise, execute step 512.

步骤511、移动第二图标,将第一图标放置在目标显示位置上。Step 511: Move the second icon and place the first icon at the target display position.

此时,第二图标的移动方向为空白显示位置的查找方向。At this time, the moving direction of the second icon is the search direction of the blank display position.

步骤512、将查找方向变更为竖直向下,判断竖直向下的方向上是否存在空白显示位置。若存在空白显示位置,则返回执行步骤511,否则,执行步骤513。Step 512: Change the search direction to vertically downward, and determine whether there is a blank display position in the vertically downward direction. If there is a blank display position, return to step 511, otherwise, execute step 513.

步骤513、将查找方向变更为水平向右,判断水平向右的方向上是否存在空白显示位置。若存在空白显示位置,则返回执行步骤511,否则,执行步骤514。Step 513, change the search direction to horizontal rightward, and determine whether there is a blank display position in the horizontal rightward direction. If there is a blank display position, return to step 511, otherwise, execute step 514.

步骤514、将查找方向变更为水平向左,判断水平向左的方向上是否存在空白显示位置。若存在空白显示位置,则返回执行步骤511,否则,执行步骤515。Step 514: Change the search direction to horizontal left, and determine whether there is a blank display position in the horizontal left direction. If there is a blank display position, return to step 511, otherwise, execute step 515.

步骤515、确定竖直向上的方向上是否存在无效图标。若是,则执行步骤516。否则,执行步骤519。Step 515: Determine whether there is an invalid icon in the vertically upward direction. If yes, execute step 516. Otherwise, execute step 519.

步骤516、弹出图标删除窗口。Step 516: an icon deletion window pops up.

步骤517、根据作用于图标删除窗口的第二触控操作,确定用户在图标删除窗口中选定的无效图标。Step 517: Determine the invalid icon selected by the user in the icon deletion window according to the second touch operation applied to the icon deletion window.

步骤518、删除选定的无效图标。返回执行步骤511。Step 518: Delete the selected invalid icon and return to step 511.

此时,将查找方向上第一个被删除的无效图标的显示位置作为查找到的空白显示位置。At this time, the display position of the first invalid icon deleted in the search direction is used as the found blank display position.

步骤519、确定竖直向下的方向上是否存在无效图标。若是,则返回执行步骤516。否则,执行步骤520。Step 519: Determine whether there is an invalid icon in the vertical downward direction. If yes, return to step 516. Otherwise, execute step 520.

步骤520、确定水平向右的方向上是否存在无效图标。若是,则返回执行步骤516。否则,执行步骤521。Step 520: Determine whether there is an invalid icon in the horizontal right direction. If yes, return to step 516. Otherwise, execute step 521.

步骤521、确定水平向左的方向上是否存在无效图标。若是,则返回执行步骤516。否则,执行步骤522。Step 521, determine whether there is an invalid icon in the horizontal left direction. If yes, return to step 516. Otherwise, execute step 522.

步骤522、提示用户无法在桌面中添加第一图标。Step 522: Prompt the user that the first icon cannot be added to the desktop.

可以理解的是,由于实施例与上述实施例应用场景相同,实现手段相同,技术效果相同。因此,未在一个实施例中描述的技术细节,可参见上述其他实施例。It is understandable that since the embodiment has the same application scenario, the same implementation means, and the same technical effect as the above embodiment, the technical details not described in one embodiment may refer to the above other embodiments.

通过上述方案,可以灵活的将第三方应用中的元素的第一图标添加至桌面中,以使用户通过第一图标获取该元素。Through the above solution, the first icon of the element in the third-party application can be flexibly added to the desktop, so that the user can obtain the element through the first icon.

图16为本申请一个实施例提供的一种桌面图标管理装置的结构示意图。参考图16,桌面图标管理装置包括:接收模块601、显示模块602、方向确定模块603、查找模块604以及移动模块605。FIG16 is a schematic diagram of the structure of a desktop icon management device provided by an embodiment of the present application. Referring to FIG16 , the desktop icon management device includes: a receiving module 601 , a display module 602 , a direction determination module 603 , a search module 604 and a movement module 605 .

其中,接收模块601,用于接收第一触控操作,所述第一触控操作用于将选择的元素移至桌面的一目标显示位置;显示模块602,用于响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态;方向确定模块603,用于如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向;查找模块604,用于如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置;移动模块605,用于移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。Among them, the receiving module 601 is used to receive a first touch operation, and the first touch operation is used to move the selected element to a target display position on the desktop; the display module 602 is used to display a first icon corresponding to the element on the desktop in response to the first touch operation, and the first icon is in an unplaced state; the direction determination module 603 is used to determine the initial search direction according to the relative position relationship between the hovering position of the first icon before placement and the target display position if a second icon is already displayed at the target display position; the search module 604 is used to update the search direction according to the direction update strategy corresponding to the initial search direction if a blank display position is not found in the initial search direction, and search for a blank display position in the updated search direction; the moving module 605 is used to move the second icon and place the first icon in the target display position, and the moving direction of the second icon is determined according to the search direction of the blank display position.

上述,通过接收并响应用于将选择的元素移至桌面目标显示位置的第一触控操作,在桌面中显示元素的第一图标,且在目标显示位置已显示有第二图标时,通过第一图标放置前的悬停位置与目标显示位置的相对位置关系确定初始的查找方向,并在初始的查找方向上查找空白显示位置,如果初始的查找方向上不存在空白显示位置,则更换查找方向,并继续查找空白显示位置,之后,在查找到空白显示位置时,将当前的查找方向作为第二图标的移动方向并移动第二图标,之后,将第一图标放置在目标显示位置的技术方案,可以解决现有技术中无法灵活、合理地实现在桌面中添加图标的技术问题,在目标显示位置上已经有第二图标时,可以通过目标显示位置与第一图标悬停位置之间的相对位置关系确定初始的查找方向,并在初始的查找方向上不存在空白显示位置时,更换查找方向,进而根据查找方向得到第二图标的移动方向,而非采用固定的移动方向,也使得图标移动更加灵活。并且,在添加过程中通过显示处于未放置状态的第一图标,使得用户确定该元素可以添加至桌面中,还可以使用户明确第一图标在桌面中的位置进而使用户将第一图标放置在期望的目标显示位置上。In the above, by receiving and responding to a first touch operation for moving a selected element to a target display position on the desktop, a first icon of the element is displayed on the desktop, and when a second icon is already displayed at the target display position, an initial search direction is determined by the relative position relationship between the hovering position of the first icon before placement and the target display position, and a blank display position is searched for in the initial search direction. If there is no blank display position in the initial search direction, the search direction is changed, and the blank display position is continued to be searched. Afterwards, when a blank display position is found, the current search direction is used as the moving direction of the second icon and the second icon is moved. Afterwards, the technical solution of placing the first icon at the target display position can solve the technical problem in the prior art that it is impossible to flexibly and reasonably implement adding icons to the desktop. When there is already a second icon at the target display position, the initial search direction can be determined by the relative position relationship between the target display position and the hovering position of the first icon, and when there is no blank display position in the initial search direction, the search direction is changed, and then the moving direction of the second icon is obtained according to the search direction, rather than adopting a fixed moving direction, which also makes the icon movement more flexible. Moreover, during the adding process, by displaying the first icon in an unplaced state, the user can determine that the element can be added to the desktop, and the user can also clearly know the position of the first icon on the desktop and place the first icon at the desired target display position.

在上述实施例的基础上,所述元素在移动前位于其他应用程序的操作界面内。Based on the above embodiment, the element is located in the operation interface of other applications before being moved.

在上述实施例的基础上,查找模块604包括:无效图标查找单元,用于如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标;删除单元,用于删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。Based on the above embodiment, the search module 604 includes: an invalid icon search unit, which is used to update the search direction according to the direction update strategy corresponding to the initial search direction if no invalid icon is found in the initial search direction, and search for an invalid icon in the updated search direction; a deletion unit, which is used to delete the invalid icon found, and determine the display position of the invalid icon in the desktop as the blank display position found.

在上述实施例的基础上,无效图标查找单元包括:第一图标查找子单元,用于如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向在更新的查找方向上查找一无效图标;窗口弹出子单元,用于弹出图标删除窗口,所述图标删除窗口中显示有位于当前更新的查找方向上的至少一个无效图标;图标确定子单元,用于根据作用于所述图标删除窗口的第二触控操作,确定用户选定的无效图标。相应的,删除单元包括:图标删除子单元,用于删除所述用户选定的无效图标;位置确定子单元,用于按照所述查找方向确定第一个被删除的无效图标,并将所述第一个被删除的无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。On the basis of the above embodiment, the invalid icon search unit includes: a first icon search subunit, which is used to update the search direction according to the direction update strategy corresponding to the initial search direction if the invalid icon is not found in the initial search direction, and search for an invalid icon in the updated search direction; a window pop-up subunit, which is used to pop up an icon deletion window, and the icon deletion window displays at least one invalid icon located in the currently updated search direction; an icon determination subunit, which is used to determine the invalid icon selected by the user according to the second touch operation acting on the icon deletion window. Correspondingly, the deletion unit includes: an icon deletion subunit, which is used to delete the invalid icon selected by the user; a position determination subunit, which is used to determine the first invalid icon to be deleted according to the search direction, and determine the display position of the first invalid icon to be deleted in the desktop as the blank display position found.

在上述实施例的基础上,无效图标查找单元包括:第一图标确认子单元,用于所述桌面中不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标;第二图标查找子单元,用于如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标。Based on the above embodiment, the invalid icon search unit includes: a first icon confirmation subunit, which is used to confirm whether an invalid icon is found in the initial search direction when there is no blank display position in the desktop; a second icon search subunit, which is used to update the search direction according to the direction update strategy corresponding to the initial search direction if an invalid icon is not found in the initial search direction, and search for an invalid icon in the updated search direction.

在上述实施例的基础上,无效图标查找单元包括:第二图标确认子单元,用于所述初始的查找方向上不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标;方向更新子单元,用于如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向;第三图标查找子单元,用于如果更新的查找方向上不存在空白显示位置,则在更新的查找方向上查找一无效图标。Based on the above embodiment, the invalid icon search unit includes: a second icon confirmation subunit, which is used to confirm whether an invalid icon is found in the initial search direction when there is no blank display position in the initial search direction; a direction update subunit, which is used to update the search direction according to the direction update strategy corresponding to the initial search direction if no invalid icon is found in the initial search direction; and a third icon search subunit, which is used to search for an invalid icon in the updated search direction if there is no blank display position in the updated search direction.

在上述实施例的基础上,所述无效图标为无法正常启动的图标。Based on the above embodiment, the invalid icon is an icon that cannot be started normally.

在上述实施例的基础上,所述初始的查找方向为水平向左或水平向右,所述方向更新策略为将所述初始的查找方向的反方向更新为查找方向。On the basis of the above embodiment, the initial search direction is horizontally to the left or horizontally to the right, and the direction update strategy is to update the opposite direction of the initial search direction as the search direction.

在上述实施例的基础上,所述初始的查找方向为竖直向上或竖直向下,所述方向更新策略为按照方向优先级顺序变更查找方向;所述方向优先级由高到低依次为:所述初始的查找方向的反方向、设定的水平方向、所述设定的水平方向的反方向。Based on the above embodiment, the initial search direction is vertically upward or vertically downward, and the direction update strategy is to change the search direction according to the direction priority order; the direction priority is from high to low: the opposite direction of the initial search direction, the set horizontal direction, and the opposite direction of the set horizontal direction.

在上述实施例的基础上,所述查找方向为水平向右时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置右侧的全部显示位置,以及位于所述目标显示位置所在行下方的全部显示位置,所述下方的全部显示位置中所述空白显示位置的查找顺序为从左至右及从上至下;所述查找方向为水平向左时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置左侧的全部显示位置,以及位于所述目标显示位置所在行上方的全部显示位置,所述上方的全部显示位置中所述空白显示位置的查找顺序为从右至左及从下至上。On the basis of the above embodiment, when the search direction is horizontally to the right, the display positions in the search direction include all display positions in the row where the target display position is located to the right of the target display position, and all display positions below the row where the target display position is located, and the search order of the blank display positions in all the display positions below is from left to right and from top to bottom; when the search direction is horizontally to the left, the display positions in the search direction include all display positions in the row where the target display position is located to the left of the target display position, and all display positions above the row where the target display position is located, and the search order of the blank display positions in all the display positions above is from right to left and from bottom to top.

在上述实施例的基础上,所述第二图标与所述空白显示位置之间存在至少一个第三图标,移动模块605具体用于:移动所述第二图标,按照所述第二图标的移动方向,顺序移动至少一个所述第三图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。Based on the above embodiment, there is at least one third icon between the second icon and the blank display position, and the moving module 605 is specifically used to: move the second icon, sequentially move at least one of the third icons according to the moving direction of the second icon, and place the first icon in the target display position. The moving direction of the second icon is determined according to the search direction of the blank display position.

在上述实施例的基础上,还包括:参数更新模块,用于将所述第一图标放置在所述目标显示位置之后,更新所述第一图标的显示参数。Based on the above embodiment, it further includes: a parameter updating module, which is used to update the display parameters of the first icon after placing the first icon at the target display position.

在上述实施例的基础上,所述第一触控操作为拖拽操作,显示模块602包括:图标显示单元,用于响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态;跟随移动单元,用于控制所述第一图标跟随所述第一触控操作移动;位置确定单元,用于确认所述第一触控操作停止时,根据所述第一图标放置前的悬停位置确定所目标显示位置。Based on the above embodiment, the first touch operation is a drag operation, and the display module 602 includes: an icon display unit, which is used to display a first icon corresponding to the element in the desktop in response to the first touch operation, and the first icon is in an unplaced state; a follow-up movement unit, which is used to control the first icon to move following the first touch operation; and a position determination unit, which is used to determine the target display position according to the hovering position of the first icon before it is placed when confirming that the first touch operation has stopped.

在上述实施例的基础上,所述桌面包含多个预设的用于放置图标的显示位置,每个所述显示位置分为多个子区域,所述子区域包括上区域、下区域、左区域及右区域中的至少两个;相应的,方向确定模块603包括:区域确定单元,用于如果所述目标显示位置已显示有第二图标,则确定所述第一图标放置前的悬停位置落入在所述目标显示位置中的子区域;方向确定单元,用于根据所述子区域确定所述空白显示位置初始的查找方向。Based on the above embodiment, the desktop includes multiple preset display positions for placing icons, each of the display positions is divided into multiple sub-areas, and the sub-areas include at least two of the upper area, the lower area, the left area and the right area; accordingly, the direction determination module 603 includes: an area determination unit, which is used to determine that the hovering position of the first icon before placement falls into the sub-area of the target display position if the target display position already displays a second icon; a direction determination unit, which is used to determine the initial search direction of the blank display position according to the sub-area.

在上述实施例的基础上,区域确定单元包括:位置获取子单元,用于如果所述目标显示位置已显示有第二图标,则获取所述第一图标放置前悬停位置的中心点位置;区域获取子单元,用于确认所述中心点位置所落入的所述目标显示位置中的子区域,并将所述子区域作为所述第一图标放置前的悬停位置所落入的子区域。Based on the above embodiment, the area determination unit includes: a position acquisition subunit, which is used to obtain the center point position of the hovering position before the first icon is placed if the target display position already displays a second icon; and an area acquisition subunit, which is used to confirm the sub-area in the target display position where the center point position falls, and use the sub-area as the sub-area where the hovering position before the first icon is placed falls.

在上述实施例的基础上,显示模块602包括:参数发送单元,用于检测到所述第一触控操作由所述其他应用程序移动至所述桌面时,向所述桌面发送所述元素的参数;图标显示单元,用于所述桌面根据所述参数确定所述元素符合添加类型时,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态。Based on the above embodiment, the display module 602 includes: a parameter sending unit, which is used to send the parameters of the element to the desktop when it detects that the first touch operation is moved from the other application to the desktop; an icon display unit, which is used to display the first icon corresponding to the element in the desktop when the desktop determines that the element meets the adding type according to the parameters, and the first icon is in an unplaced state.

在上述实施例的基础上,还包括:容器生成模块,用于在接收第一触控操作之后,根据所述元素的第一图标的宽度和长度生成拖拽view容器;图标添加模块,用于将所述第一图标添加至所述拖拽view容器。相应的,参数发送单元具体用于:检测到所述第一触控操作由所述其他应用移动程序至所述桌面时,向所述桌面发送所述元素的参数、所述第一触控操作的拖拽参数以及所述拖拽view容器。Based on the above embodiment, it further includes: a container generation module, which is used to generate a drag view container according to the width and length of the first icon of the element after receiving the first touch operation; an icon adding module, which is used to add the first icon to the drag view container. Accordingly, the parameter sending unit is specifically used to: when detecting that the first touch operation is from the other application to the desktop, send the parameters of the element, the drag parameters of the first touch operation and the drag view container to the desktop.

在上述实施例的基础上,所述第一触控操作作用于所述其他应用程序操作界面内的功能按键,所述功能按键用于将所述操作界面内的元素移动至所述桌面中。Based on the above embodiment, the first touch operation acts on a function button in the operation interface of the other application program, and the function button is used to move an element in the operation interface to the desktop.

上述提供的桌面图标管理装置可用于执行上述对应实施例提供的桌面图标管理方法,具备相应的功能和有益效果。The desktop icon management device provided above can be used to execute the desktop icon management method provided in the above corresponding embodiment, and has corresponding functions and beneficial effects.

值得注意的是,上述桌面图标管理装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the embodiment of the above-mentioned desktop icon management device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

图17为本发明一个实施例提供的一种桌面图标管理设备的结构示意图。本实施例中,以智能交互平板为桌面图标管理设备为例,进行描述。如图17所示,该智能交互平板70包括至少一个处理器71、至少一个网络接口72、用户接口73、存储器74以及至少一个通信总线75。FIG17 is a schematic diagram of the structure of a desktop icon management device provided by an embodiment of the present invention. In this embodiment, a smart interactive tablet is used as an example for description. As shown in FIG17 , the smart interactive tablet 70 includes at least one processor 71, at least one network interface 72, a user interface 73, a memory 74, and at least one communication bus 75.

其中,通信总线75用于实现这些组件之间的连接通信。The communication bus 75 is used to realize the connection and communication between these components.

其中,用户接口72可以包括显示屏、摄像头,可选用户接口73还可以包括标准的有线接口、无线接口。The user interface 72 may include a display screen and a camera, and the optional user interface 73 may also include a standard wired interface and a wireless interface.

其中,网络接口72可选包括标准的有线接口、无线接口(如Wi-Fi接口)。The network interface 72 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

其中,处理器71可以包括一个或多个处理核心。处理器71利用各种接口和线路连接整个智能交互平板70内的各个部分,通过运行或执行存储在处理器71内的指令、程序、代码集或指令集,以及调用存储在存储器74内的数据,执行智能交互平板70的各种功能和处理数据。可选的,处理器71可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable logic arrays,PLA)中的至少一种硬件形式来实现。处理器71可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器71中,单独通过一块芯片进行实现。Among them, the processor 71 may include one or more processing cores. The processor 71 uses various interfaces and lines to connect the various parts of the entire smart interactive tablet 70, and executes various functions and processes data of the smart interactive tablet 70 by running or executing instructions, programs, code sets or instruction sets stored in the processor 71, and calling data stored in the memory 74. Optionally, the processor 71 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic arrays (Programmable logic arrays, PLA). The processor 71 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 71, and it can be implemented separately through a chip.

其中,存储器74可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器74包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器74可用于存储指令、程序、代码、代码集或指令集。存储器74可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器74可选的还可以是至少一个位于远离前述处理器71的存储装置。如图17所示,作为一种计算机存储介质的存储器74中可以包括操作系统、网络通信模块、用户接口模块以及智能交互平板的操作应用程序。Among them, the memory 74 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 74 includes a non-transitory computer-readable storage medium. The memory 74 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 74 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 74 may also be optionally at least one storage device located away from the aforementioned processor 71. As shown in Figure 17, the memory 74 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application for a smart interactive tablet.

在图17所示的智能交互平板70中,用户接口73主要用于为用户提供输入的接口,获取用户输入的数据;而处理器71可以用于调用存储器74中存储的智能交互平板的操作应用程序,并具体执行上述实施例中桌面图标管理方法中的相关操作。In the smart interactive tablet 70 shown in Figure 17, the user interface 73 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 71 can be used to call the operating application of the smart interactive tablet stored in the memory 74, and specifically execute the relevant operations in the desktop icon management method in the above embodiment.

在一个实施例中,所述智能交互平板的操作系统为安卓系统。In one embodiment, the operating system of the smart interactive tablet is Android.

上述智能交互平板可以用于执行任意桌面图标管理方法,具备相应的功能和有益效果。The above-mentioned intelligent interactive tablet can be used to execute any desktop icon management method, and has corresponding functions and beneficial effects.

此外,本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请任意实施例所提供的桌面图标管理方法中的相关操作,且具备相应的功能和有益效果。In addition, an embodiment of the present invention also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the desktop icon management method provided in any embodiment of the present application, and have corresponding functions and beneficial effects.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.

因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。Therefore, the application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the application. It should be understood that each flow and/or box in the flow chart and/or block diagram and the combination of the flow chart and/or box in the flow chart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of a computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and/or one box or multiple boxes of a block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operating steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes of the flowchart and/or one or more blocks of the block diagram.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (21)

Translated fromChinese
1.一种桌面图标管理方法,其特征在于,包括:1. A desktop icon management method, characterized in that, comprising:接收第一触控操作,所述第一触控操作用于将选择的元素移到至桌面的一目标显示位置;receiving a first touch operation, the first touch operation is used to move the selected element to a target display position on the desktop;响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态;In response to the first touch operation, displaying a first icon corresponding to the element on the desktop, where the first icon is in an unplaced state;如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向;If the target display position has already displayed the second icon, then determine the initial search direction according to the relative positional relationship between the hovering position before the first icon is placed and the target display position;如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置,不同的所述初始的查找方向对应不同的方向更新策略;If no blank display position is found in the initial search direction, the search direction is updated according to the direction update strategy corresponding to the initial search direction, and a blank display position is searched in the updated search direction. The initial search direction corresponds to different direction update strategies;移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。The second icon is moved to place the first icon in the target display position, and the moving direction of the second icon is determined according to the search direction of the blank display position.2.根据权利要求1所述的桌面图标管理方法,其特征在于,所述元素在移动前位于其他应用程序的操作界面内。2. The desktop icon management method according to claim 1, wherein the element is located in the operation interface of other application programs before being moved.3.根据权利要求1所述的桌面图标管理方法,其特征在于,所述如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置包括:3. The desktop icon management method according to claim 1, wherein if a blank display position is not found in the initial search direction, update the policy according to the direction corresponding to the initial search direction Finding directions, and finding a blank display position in the updated looking directions includes:如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标;If no invalid icon is found in the initial search direction, update the search direction according to the direction update strategy corresponding to the initial search direction, and search for an invalid icon in the updated search direction;删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。The found invalid icon is deleted, and the display position of the invalid icon on the desktop is determined as the found blank display position.4.根据权利要求3所述的桌面图标管理方法,其特征在于,所述在更新的查找方向上查找一无效图标时,还包括:4. The desktop icon management method according to claim 3, wherein, when searching for an invalid icon in the search direction of the update, further comprising:弹出图标删除窗口,所述图标删除窗口中显示有位于当前的查找方向上的至少一个无效图标;An icon deletion window pops up, and at least one invalid icon located in the current search direction is displayed in the icon deletion window;根据作用于所述图标删除窗口的第二触控操作,确定用户选定的无效图标;determining the invalid icon selected by the user according to the second touch operation acting on the icon deletion window;所述删除查找到的所述无效图标,并将所述无效图标在所述桌面中的显示位置确定为查找到的空白显示位置包括:The deleting the found invalid icon, and determining the display position of the invalid icon on the desktop as the found blank display position includes:删除所述用户选定的无效图标;delete invalid icons selected by said user;按照所述查找方向确定第一个被删除的无效图标,并将所述第一个被删除的无效图标在所述桌面中的显示位置确定为查找到的空白显示位置。Determine the first deleted invalid icon according to the search direction, and determine the display position of the first deleted invalid icon on the desktop as the found blank display position.5.根据权利要求3或4所述的桌面图标管理方法,其特征在于,所述如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标包括:5. The desktop icon management method according to claim 3 or 4, wherein if no invalid icon is found in the initial search direction, then update the policy according to the direction corresponding to the initial search direction Updating the lookup direction and finding an invalid icon in the updated lookup direction includes:所述桌面中不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标;When there is no blank display position in the desktop, confirm whether an invalid icon is found in the initial search direction;如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标。If no invalid icon is found in the initial search direction, update the search direction according to the direction update policy corresponding to the initial search direction, and search for an invalid icon in the updated search direction.6.根据权利要求3或4所述的桌面图标管理方法,其特征在于,所述如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一无效图标包括:6. The desktop icon management method according to claim 3 or 4, wherein if an invalid icon is not found in the initial search direction, update the strategy according to the direction corresponding to the initial search direction Updating the lookup direction and finding an invalid icon in the updated lookup direction includes:所述初始的查找方向上不存在空白显示位置时,确认所述初始的查找方向上是否查找到无效图标;When there is no blank display position in the initial search direction, confirm whether an invalid icon is found in the initial search direction;如果所述初始的查找方向上未查找到无效图标,则按照与所述初始的查找方向对应的方向更新策略更新查找方向;If no invalid icon is found in the initial search direction, update the search direction according to the direction update policy corresponding to the initial search direction;如果更新的查找方向上不存在空白显示位置,则在更新的查找方向上查找一无效图标。If there is no blank display position in the updated search direction, an invalid icon is searched in the updated search direction.7.根据权利要求3或4所述的桌面图标管理方法,其特征在于,所述无效图标为无法正常启动的图标。7. The desktop icon management method according to claim 3 or 4, wherein the invalid icon is an icon that cannot be started normally.8.根据权利要求1所述的桌面图标管理方法,其特征在于,所述初始的查找方向为水平向左或水平向右,所述方向更新策略为将所述初始的查找方向的反方向更新为查找方向。8. The desktop icon management method according to claim 1, wherein the initial search direction is horizontally left or horizontally right, and the direction update strategy is to update the opposite direction of the initial search direction to find directions.9.根据权利要求1所述的桌面图标管理方法,其特征在于,所述初始的查找方向为竖直向上或竖直向下,所述方向更新策略为按照方向优先级顺序变更查找方向;9. The desktop icon management method according to claim 1, wherein the initial search direction is vertically upward or vertically downward, and the direction update strategy is to change the search direction according to the direction priority order;所述方向优先级由高到低依次为:所述初始的查找方向的反方向、设定的水平方向、所述设定的水平方向的反方向。The order of direction priority from high to low is: the reverse direction of the initial search direction, the set horizontal direction, and the reverse direction of the set horizontal direction.10.根据权利要求1或3所述的桌面图标管理方法,其特征在于,所述查找方向为水平向右时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置右侧的全部显示位置,以及位于所述目标显示位置所在行下方的全部显示位置,所述下方的全部显示位置中所述空白显示位置的查找顺序为从左至右及从上至下;10. The desktop icon management method according to claim 1 or 3, wherein when the search direction is horizontally to the right, the display position in the search direction includes the row where the target display position is located in the All display positions on the right side of the target display position, and all display positions below the row where the target display position is located, the search order of the blank display positions in all the display positions below is from left to right and from top to bottom Down;所述查找方向为水平向左时,所述查找方向上的显示位置包括所述目标显示位置所在行中位于所述目标显示位置左侧的全部显示位置,以及位于所述目标显示位置所在行上方的全部显示位置,所述上方的全部显示位置中所述空白显示位置的查找顺序为从右至左及从下至上。When the search direction is horizontal to the left, the display positions in the search direction include all display positions located on the left side of the target display position in the row where the target display position is located, and all display positions located above the row where the target display position is located. All display positions of , and the search order of the blank display positions in all the above display positions is from right to left and from bottom to top.11.根据权利要求1所述的桌面图标管理方法,其特征在于,所述第二图标与所述空白显示位置之间存在至少一个第三图标,11. The desktop icon management method according to claim 1, wherein there is at least one third icon between the second icon and the blank display position,所述移动所述第二图标时,还包括:When moving the second icon, it also includes:按照所述第二图标的移动方向,顺序移动至少一个所述第三图标。At least one of the third icons is moved sequentially according to the moving direction of the second icon.12.根据权利要求1所述的桌面图标管理方法,其特征在于,所述将所述第一图标放置在所述目标显示位置中之后,还包括:12. The desktop icon management method according to claim 1, wherein after placing the first icon in the target display position, further comprising:更新所述第一图标的显示参数。Updating the display parameters of the first icon.13.根据权利要求1所述的桌面图标管理方法,其特征在于,所述第一触控操作为拖拽操作;13. The desktop icon management method according to claim 1, wherein the first touch operation is a drag operation;所述响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标时,还包括:When displaying the first icon corresponding to the element on the desktop in response to the first touch operation, the method further includes:控制所述第一图标跟随所述第一触控操作移动;controlling the first icon to move following the first touch operation;确认所述第一触控操作停止时,根据所述第一图标放置前的悬停位置确定所述目标显示位置。When it is confirmed that the first touch operation stops, the target display position is determined according to the hover position before the first icon is placed.14.根据权利要求1所述的桌面图标管理方法,其特征在于,所述桌面包含多个预设的用于放置图标的显示位置,每个所述显示位置分为多个子区域,所述子区域包括上区域、下区域、左区域及右区域中的至少两个;14. The desktop icon management method according to claim 1, wherein the desktop includes a plurality of preset display positions for placing icons, each of the display positions is divided into a plurality of sub-areas, and the sub-areas The areas include at least two of an upper area, a lower area, a left area, and a right area;所述根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向包括:The determining the initial search direction according to the relative positional relationship between the hover position before placing the first icon and the target display position includes:确定所述第一图标放置前的悬停位置落入在所述目标显示位置中的子区域;determining that the hovering position before placing the first icon falls within the sub-area in the target display position;根据所述子区域确定所述空白显示位置初始的查找方向。An initial search direction for the blank display position is determined according to the sub-area.15.根据权利要求14所述的桌面图标管理方法,其特征在于,所述确定所述第一图标放置前的悬停位置落入在所述目标显示位置中的子区域包括:15. The desktop icon management method according to claim 14, wherein said determining that the hovering position before placing the first icon falls into the sub-area in the target display position comprises:获取所述第一图标放置前悬停位置的中心点位置;Acquiring the position of the center point of the hovering position before the first icon is placed;确认所述中心点位置所落入的所述目标显示位置中的子区域,并将所述子区域作为所述第一图标放置前的悬停位置所落入的子区域。Confirming the sub-area in the target display position where the central point position falls, and using the sub-area as the sub-area where the hovering position before placing the first icon falls.16.根据权利要求2所述的桌面图标管理方法,其特征在于,所述响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标包括:16. The desktop icon management method according to claim 2, wherein the displaying the first icon corresponding to the element on the desktop in response to the first touch operation comprises:检测到所述第一触控操作由所述其他应用程序移动至所述桌面时,向所述桌面发送所述元素的参数;When detecting that the first touch operation is moved to the desktop by the other application, sending parameters of the element to the desktop;所述桌面根据所述参数确定所述元素符合添加类型时,在所述桌面中显示对应于所述元素的第一图标。When the desktop determines that the element meets the add type according to the parameter, displaying a first icon corresponding to the element on the desktop.17.根据权利要求16所述的桌面图标管理方法,其特征在于,所述接收第一触控操作之后,还包括:17. The desktop icon management method according to claim 16, characterized in that, after receiving the first touch operation, further comprising:根据所述第一图标的宽度和长度生成拖拽view容器;generating a drag and drop view container according to the width and length of the first icon;将所述第一图标添加至所述拖拽view容器;adding the first icon to the drag view container;所述检测到所述第一触控操作由所述其他应用程序移动至所述桌面时,还包括:When detecting that the first touch operation is moved from the other application to the desktop, it also includes:向所述桌面发送所述第一触控操作的拖拽参数以及所述拖拽view容器。Sending the drag parameter of the first touch operation and the drag view container to the desktop.18.根据权利要求2所述的桌面图标管理方法,其特征在于,所述第一触控操作作用于所述其他应用程序操作界面内的功能按键,所述功能按键用于将所述操作界面内的元素移动至所述桌面中。18. The desktop icon management method according to claim 2, wherein the first touch operation acts on the function keys in the operation interface of the other application programs, and the function keys are used to control the operation interface The elements within are moved to the desktop.19.一种桌面图标管理装置,其特征在于,包括:19. A desktop icon management device, characterized in that it comprises:接收模块,用于接收第一触控操作,所述第一触控操作用于将选择的元素移到至桌面的一目标显示位置;A receiving module, configured to receive a first touch operation, the first touch operation is used to move the selected element to a target display position on the desktop;显示模块,用于响应于所述第一触控操作,在所述桌面中显示对应于所述元素的第一图标,所述第一图标处于未放置状态;a display module, configured to display a first icon corresponding to the element on the desktop in response to the first touch operation, and the first icon is in an unplaced state;方向确定模块,用于如果所述目标显示位置已显示有第二图标,则根据所述第一图标放置前的悬停位置与所述目标显示位置的相对位置关系确定初始的查找方向;A direction determining module, configured to determine an initial search direction according to the relative positional relationship between the hovering position before placing the first icon and the target display position if the second icon is already displayed at the target display position;查找模块,用于如果所述初始的查找方向上未查找到空白显示位置,则按照与所述初始的查找方向对应的方向更新策略更新查找方向,并在更新的查找方向上查找一空白显示位置,不同的所述初始的查找方向对应不同的方向更新策略;A search module, configured to update the search direction according to the direction update strategy corresponding to the initial search direction if no blank display position is found in the initial search direction, and search for a blank display position in the updated search direction , different initial search directions correspond to different direction update strategies;移动模块,用于移动所述第二图标,将所述第一图标放置在所述目标显示位置中,所述第二图标的移动方向根据所述空白显示位置的查找方向确定。A moving module, configured to move the second icon to place the first icon in the target display position, and the moving direction of the second icon is determined according to the search direction of the blank display position.20.一种桌面图标管理设备,其特征在于,包括:20. A desktop icon management device, characterized in that, comprising:一个或多个处理器;one or more processors;存储器,用于存储一个或多个程序;memory for storing one or more programs;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-18中任一所述的桌面图标管理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the desktop icon management method according to any one of claims 1-18.21.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-18中任一所述的桌面图标管理方法。21. A computer-readable storage medium, on which a computer program is stored, wherein when the program is executed by a processor, the desktop icon management method according to any one of claims 1-18 is implemented.
CN202010027945.8A2020-01-102020-01-10 Desktop icon management method, device, equipment and storage mediumActiveCN111273826B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010027945.8ACN111273826B (en)2020-01-102020-01-10 Desktop icon management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010027945.8ACN111273826B (en)2020-01-102020-01-10 Desktop icon management method, device, equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN111273826A CN111273826A (en)2020-06-12
CN111273826Btrue CN111273826B (en)2023-07-18

Family

ID=71003009

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010027945.8AActiveCN111273826B (en)2020-01-102020-01-10 Desktop icon management method, device, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN111273826B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112947814A (en)*2021-04-072021-06-11维沃移动通信(杭州)有限公司Bill counting method and bill counting device
CN113311969B (en)*2021-05-272024-07-02维沃移动通信有限公司Icon position adjusting method and device, electronic equipment and readable storage medium
CN113703623A (en)*2021-07-192021-11-26维沃移动通信(杭州)有限公司Program icon display method, device, electronic equipment and medium
CN114385058A (en)*2021-12-282022-04-22北京梧桐车联科技有限责任公司View display method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104636031A (en)*2015-03-042015-05-20庞迪Application unloading prompting method and system
CN106020621A (en)*2013-09-162016-10-12北京奇虎科技有限公司Desktop element adjustment method and device for intelligent terminal
CN107817998A (en)*2016-08-282018-03-20上海卓易科技股份有限公司The self-defined aligning method and terminal device of icon

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20150242421A1 (en)*2014-02-212015-08-27Quixey, Inc.Location-Based Searching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106020621A (en)*2013-09-162016-10-12北京奇虎科技有限公司Desktop element adjustment method and device for intelligent terminal
CN104636031A (en)*2015-03-042015-05-20庞迪Application unloading prompting method and system
CN107817998A (en)*2016-08-282018-03-20上海卓易科技股份有限公司The self-defined aligning method and terminal device of icon

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电脑系统:Windows7.2011,(第版本6.1.7601版),全文.*

Also Published As

Publication numberPublication date
CN111273826A (en)2020-06-12

Similar Documents

PublicationPublication DateTitle
CN111273826B (en) Desktop icon management method, device, equipment and storage medium
CN110703966B (en)File sharing method, device and system, corresponding equipment and storage medium
US11150790B2 (en)Application interface management method and apparatus
CN110716680B (en)Control method and device of intelligent interactive panel
CN110568974B (en)Sliding view display method and device and mobile terminal
US10095389B2 (en)Gesture-based on-chart data filtering
CN103106012B (en)User interface for mobile terminal provides method and apparatus
CN108804002B (en) Text annotation method and device for interactive smart device
CN110941373B (en) Interactive method, device, terminal device and storage medium for intelligent interactive tablet
CN112099706A (en) Page display method, apparatus, electronic device, and computer-readable storage medium
CN111783385A (en)Note processing method based on electronic book, electronic equipment and storage medium
CN111324398B (en)Method, device, terminal and storage medium for processing latest content
WO2022247557A1 (en)Content sharing method and apparatus, and terminal and storage medium
CN106776821A (en)A kind of album creating method and terminal
CN110908552B (en)Multi-window operation control method, device, equipment and storage medium
CN113268182A (en)Application icon management method and electronic equipment
CN110347321A (en)A kind of formation gathering method and device
CN111368234B (en)Window adjusting method, device and storage medium
CN110888581A (en) Element delivery method, device, device and storage medium
CN110262714A (en)A kind of information cuing method, device and equipment
WO2025044582A1 (en)Page management method and apparatus for virtual game, electronic device, and storage medium
CN104866620B (en)The implementation method of background formula focus chart, apparatus and system
US11243678B2 (en)Method of panning image
CN113805737B (en) File transfer methods, devices, computer equipment and storage media
WO2023217177A1 (en)Method for processing application window, and storage medium and intelligent interaction tablet computer

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp