WO2018049723A1 - Method of moving icon based on grid algorithm - Google Patents

Method of moving icon based on grid algorithm Download PDF

Info

Publication number
WO2018049723A1
WO2018049723A1 PCT/CN2016/105743 CN2016105743W WO2018049723A1 WO 2018049723 A1 WO2018049723 A1 WO 2018049723A1 CN 2016105743 W CN2016105743 W CN 2016105743W WO 2018049723 A1 WO2018049723 A1 WO 2018049723A1
Authority
WO
WIPO (PCT)
Prior art keywords
icon
icons
main interface
page
grid
Prior art date
Application number
PCT/CN2016/105743
Other languages
French (fr)
Chinese (zh)
Inventor
张峰
Original Assignee
上海葡萄纬度科技有限公司
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 上海葡萄纬度科技有限公司 filed Critical 上海葡萄纬度科技有限公司
Publication of WO2018049723A1 publication Critical patent/WO2018049723A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to a method for moving an icon based on a grid algorithm.
  • the Android version adopts the method of leaving the location in advance, waiting for the user to add an icon to the empty location. If the icon is not added, the location is blank.
  • the shortcoming of the above method is that the icon position is preset in advance, and the number of icons placed on each page is determined, and the user cannot freely add and set the number of icons of each page according to his own needs.
  • the present invention provides an icon moving method based on a grid algorithm, and the technical solution is as follows:
  • a method for moving icons based on a grid algorithm comprising:
  • 1) adding a new icon in the main interface, and causing the icon existing on the main interface to move on the page includes:
  • the main interface Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
  • b) according to the number of icons calculated in a), causing the remaining icons to move on the page includes:
  • the main interface is divided into n grids, and the value of n is equal to the number of icons, and the position of each grid is calculated;
  • the main interface is divided into n grids, and the value of n is equal to the number of icons, and the calculation is performed.
  • the specific formula for the position of each grid is:
  • x (i) x / n ⁇ i + x / (n ⁇ 2)
  • x (i) represents the center point of the i-th grid, and the value of i is 1, 2...n, where n is a positive integer.
  • 2) deleting an icon from the main interface, causing the remaining icons to move on the page includes:
  • the main interface Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
  • B) according to the number of icons calculated by A), causing the remaining icons to move on the page includes:
  • the invention solves the problem by recalculating the number of grids, the position of each grid, and placing each icon correspondingly to a new grid position by adding or deleting icons on the same page by using a grid algorithm.
  • the main interface has a fixed position of each page, and the number of icons is limited.
  • FIG. 1 is a flow chart of a method for moving a new icon based on a grid algorithm according to the present invention.
  • FIG. 2 is a flow chart of moving a position of an icon based on a calculated number of icons based on a grid algorithm of the present invention.
  • a method for moving icons based on a grid algorithm comprising:
  • a method for moving an icon based on a grid algorithm includes the following steps:
  • FIG. 1 is a flow chart of a method for moving a new icon based on a grid algorithm according to the present invention.
  • the main interface Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
  • FIG. 2 is a flow chart of moving a position of an icon according to a calculated number of icons based on a grid algorithm according to the present invention
  • the remaining icons are moved to the position on the page, including:
  • x (i) x / n ⁇ i + x / (n ⁇ 2)
  • x (i) represents the center point of the i-th grid, i has a value of 1, 2...n, and n is a positive integer;
  • the main interface Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
  • a method for moving icons based on a grid algorithm comprising:
  • a method for moving an icon based on a grid algorithm includes the following steps:
  • FIG. 1 is a flow chart of a method for moving a new icon based on a grid algorithm according to the present invention.
  • the main interface Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
  • FIG. 2 is a flow chart of moving a position of an icon according to a calculated number of icons based on a grid algorithm according to the present invention
  • the remaining icons are moved to the position on the page, including:
  • x (i) x / n ⁇ i + x / (n ⁇ 2)
  • x (i) represents the center point of the i-th grid, i has a value of 1, 2...n, and n is a positive integer;
  • the main interface Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
  • the invention solves the problem by recalculating the number of grids, the position of each grid, and placing each icon correspondingly to a new grid position by adding or deleting icons on the same page by using a grid algorithm.
  • the main interface has a fixed position of each page, and the number of icons is limited.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method of moving an icon based on a grid algorithm, comprising: adding a new icon to a main interface, such that an icon originally existing in the main interface moves position in a home page; deleting an icon in the main interface, so as to cause remaining icons move position in the home page; and moving icons on a same page of the main interface, so as to exchange icon positions. Before adding a new icon to the main interface, the main interface re-computes the number of icons existing after adding or deleting an icon. The main interface is evenly divided into n or N grid cells, the value of n or N being equal to the number of icons, and a position of each of the grid cells is computed. The order of a new icon list and a new position for each icon in the home page are computed according to the existing order of icons on the home page and the position of a newly added or deleted icon, and each icon is then moved to a corresponding grid position. The method solves the issue of having fixed icon positions in each page of the main interface and limitations on the configuration of the number of icons.

Description

一种基于网格算法的图标移动方法Icon moving method based on grid algorithm 技术领域Technical field
本发明涉及计算机应用技术领域,特别涉及一种基于网格算法的图标移动方法。The present invention relates to the field of computer application technologies, and in particular, to a method for moving an icon based on a grid algorithm.
背景技术Background technique
对于移动操作系统包括平板电脑和手机而言,由于Android的开放性所致,国内大部分手机和平板电脑的厂商都采用基于Android操作系统的二次开发的操作系统。For mobile operating systems, including tablets and mobile phones, due to the openness of Android, most domestic mobile phone and tablet manufacturers use the operating system based on the Android operating system.
目前智能手机上常常安装大量的应用软件,用户可以根据个人喜好、使用习惯等对图标位置进行调整。目前Android版本采用的做法是事先把位置留出来,等待用户往这个空位置上加入图标,如果没有加入图标,这个位置就是空白的。At present, a large number of application software are often installed on the smartphone, and the user can adjust the position of the icon according to personal preference and usage habits. At present, the Android version adopts the method of leaving the location in advance, waiting for the user to add an icon to the empty location. If the icon is not added, the location is blank.
技术问题technical problem
上述做法的缺陷是图标位置是事先预置好的,每页放置的图标个数是确定的,用户不能按照自己的需求随意的添加、设置每页的图标个数。The shortcoming of the above method is that the icon position is preset in advance, and the number of icons placed on each page is determined, and the user cannot freely add and set the number of icons of each page according to his own needs.
因此,计算机应用技术领域急需一种基于网格算法的图标移动方法,通过网格算法,在同一页上增加或者删除图标后,能够重新计算网格的数量,每个网格的位置,以及将每个图标对应的放置到新的网格位置,解决了现有技术中主界面每页图标位置固定,图标数量设置有限的问题。Therefore, there is an urgent need in the field of computer application technology for an icon movement method based on a grid algorithm. After adding or deleting an icon on the same page by a grid algorithm, the number of grids, the position of each grid, and The corresponding mapping of each icon to the new grid position solves the problem that the position of each page icon of the main interface in the prior art is fixed and the number of icons is limited.
技术解决方案Technical solution
本发明为了解决上述问题,提供了一种基于网格算法的图标移动方法,技术方案如下:In order to solve the above problems, the present invention provides an icon moving method based on a grid algorithm, and the technical solution is as follows:
一种基于网格算法的图标移动方法,包括:A method for moving icons based on a grid algorithm, comprising:
1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置;1) Add a new icon in the main interface to cause the icon existing on the main interface to move on the page;
2)从主界面中删除图标,促使剩余图标在本页移动位置;2) Delete the icon from the main interface, causing the remaining icons to move on the page;
3)在主界面的同一页移动图标,则交换图标位置。3) Move the icon on the same page of the main interface to exchange the icon position.
优选的,在上述的一种基于网格算法的图标移动方法中,1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置包括:Preferably, in the above method for moving the icon based on the grid algorithm, 1) adding a new icon in the main interface, and causing the icon existing on the main interface to move on the page includes:
a)在主界面加入新的图标之前,主界面重新计算加入新的图标之后的图标个数;a) Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
b)根据a)算出的图标个数,促使剩余图标在本页移动位置。 b) According to the number of icons calculated in a), the remaining icons are moved to the position on the page.
优选的,在上述的一种基于网格算法的图标移动方法中,b)根据a)算出的图标个数,促使剩余图标在本页移动位置包括:Preferably, in the above-mentioned grid algorithm-based icon moving method, b) according to the number of icons calculated in a), causing the remaining icons to move on the page includes:
c)根据a)算出的图标个数,将主界面均分成n个网格,n的取值等同于图标个数,计算出每个网格的位置;c) According to the number of icons calculated in a), the main interface is divided into n grids, and the value of n is equal to the number of icons, and the position of each grid is calculated;
d)按照本页已有的图标顺序,以及新加入图标的位置,计算出新的图标列表的顺序;d) Calculate the order of the new icon list according to the order of the icons already on the page and the location of the newly added icon;
e)根据c)每个网格的位置以及d)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可。e) According to c) the position of each grid and d) the order of the new icon list, calculate the new position of each icon on the page, and move each icon on the page to the corresponding grid position.
优选的,在上述的一种基于网格算法的图标移动方法中,c)根据a)算出的图标个数,将主界面均分成n个网格,n的取值等同于图标个数,计算出每个网格的位置的具体公式为:Preferably, in the above-mentioned grid moving method based on the grid algorithm, c) according to the number of icons calculated in a), the main interface is divided into n grids, and the value of n is equal to the number of icons, and the calculation is performed. The specific formula for the position of each grid is:
假设主界面的宽是x,需要分割成n个网格,则计算每个网格的中心点,具体公式为:Assuming that the width of the main interface is x and needs to be divided into n grids, the center point of each grid is calculated. The specific formula is:
x(i)=x/n×i+x/(n×2)x (i) = x / n × i + x / (n × 2)
其中,x(i)表示第i个网格的中心点,i的取值为1,2…n,n为正整数。Where x (i) represents the center point of the i-th grid, and the value of i is 1, 2...n, where n is a positive integer.
优选的,在上述的一种基于网格算法的图标移动方法中,2)从主界面中删除图标,促使剩余图标在本页移动位置包括:Preferably, in the above-mentioned grid algorithm-based icon moving method, 2) deleting an icon from the main interface, causing the remaining icons to move on the page includes:
A)在主界面删除图标之前,主界面重新计算删除之后的图标个数;A) Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
B)根据A)算出的图标个数,促使剩余图标在本页移动位置。B) According to the number of icons calculated in A), the remaining icons are moved to the position on the page.
优选的,在上述的一种基于网格算法的图标移动方法中,B)根据A)算出的图标个数,促使剩余图标在本页移动位置包括:Preferably, in the above-mentioned grid algorithm-based icon moving method, B) according to the number of icons calculated by A), causing the remaining icons to move on the page includes:
C)根据A)算出的图标个数,将主界面均分成N个网格,N的取值等同于图标个数,计算出每个网格的位置;C) According to the number of icons calculated by A), the main interface is divided into N grids, and the value of N is equal to the number of icons, and the position of each grid is calculated;
D)按照本页已有的图标顺序,以及删除图标的位置,计算出新的图标列表的顺序;D) Calculate the order of the new icon list according to the order of the icons already on the page and the position of the deleted icon;
E)根据C)每个网格的位置以及D)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可。E) According to C) the position of each grid and D) the order of the new icon list, calculate the new position of each icon on the page, and move each icon on this page to the corresponding grid position.
有益效果 Beneficial effect
本发明通过网格算法,在同一页上增加或者删除图标后,能够重新计算网格的数量,每个网格的位置,以及将每个图标对应的放置到新的网格位置,解决了现有技术中主界面每页图标位置固定,图标数量设置有限的问题。The invention solves the problem by recalculating the number of grids, the position of each grid, and placing each icon correspondingly to a new grid position by adding or deleting icons on the same page by using a grid algorithm. In the technology, the main interface has a fixed position of each page, and the number of icons is limited.
附图说明DRAWINGS
下面结合附图和具体实施方式来详细说明本发明:The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
图1是本发明一种基于网格算法的加入新的图标移动方法的流程图。1 is a flow chart of a method for moving a new icon based on a grid algorithm according to the present invention.
图2是本发明一种基于网格算法的根据算出图标个数移动图标位置的流程图。2 is a flow chart of moving a position of an icon based on a calculated number of icons based on a grid algorithm of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
实施例1:Example 1:
一种基于网格算法的图标移动方法,包括:A method for moving icons based on a grid algorithm, comprising:
1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置;1) Add a new icon in the main interface to cause the icon existing on the main interface to move on the page;
2)从主界面中删除图标,促使剩余图标在本页移动位置;2) Delete the icon from the main interface, causing the remaining icons to move on the page;
3)在主界面的同一页移动图标,则交换图标位置。3) Move the icon on the same page of the main interface to exchange the icon position.
实施例2:Example 2:
一种基于网格算法的图标移动方法,包括如下步骤:A method for moving an icon based on a grid algorithm includes the following steps:
图1是本发明一种基于网格算法的加入新的图标移动方法的流程图。1 is a flow chart of a method for moving a new icon based on a grid algorithm according to the present invention.
如图1所示,1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置,具体包括:As shown in FIG. 1 , 1) adding a new icon in the main interface, causing the icon existing on the main interface to move on the page, including:
a)在主界面加入新的图标之前,主界面重新计算加入新的图标之后的图标个数;a) Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
图2是本发明一种基于网格算法的根据算出图标个数移动图标位置的流程图;2 is a flow chart of moving a position of an icon according to a calculated number of icons based on a grid algorithm according to the present invention;
如图2所示,b)根据a)算出的图标个数,促使剩余图标在本页移动位置,具体包括:As shown in FIG. 2, b) according to the number of icons calculated in a), the remaining icons are moved to the position on the page, including:
c)根据a)算出的图标个数,将主界面均分成n个网格,n的取值等同于图标个数,计算出每个网格的位置,具体公式为:c) According to the number of icons calculated in a), divide the main interface into n grids, and the value of n is equal to the number of icons, and calculate the position of each grid. The specific formula is:
首先,假设主界面的宽是x,需要分割成n个网格,则计算每个网格的中心点,具体公式为:First, assuming that the width of the main interface is x and needs to be divided into n grids, the center point of each grid is calculated. The specific formula is:
x(i)=x/n×i+x/(n×2)x (i) = x / n × i + x / (n × 2)
其中,x(i)表示第i个网格的中心点,i的取值为1,2…n,n为正整数;Where x (i) represents the center point of the i-th grid, i has a value of 1, 2...n, and n is a positive integer;
d)按照本页已有的图标顺序,以及新加入图标的位置,计算出新的图标列表的顺序; d) Calculate the order of the new icon list according to the order of the icons already on the page and the location of the newly added icon;
e)根据c)每个网格的位置以及d)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可;e) Calculate the new position of each icon on the page according to the position of each grid and the order of the new icon list, and move each icon on the page to the corresponding grid position;
2)从主界面中删除图标,促使剩余图标在本页移动位置,具体包括:2) Delete the icon from the main interface, causing the remaining icons to move on the page, including:
A)在主界面删除图标之前,主界面重新计算删除之后的图标个数;A) Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
B)根据A)算出的图标个数,促使剩余图标在本页移动位置,具体包括:B) According to the number of icons calculated in A), the remaining icons are moved to the position on the page, including:
C)根据A)算出的图标个数,将主界面均分成N个网格,N的取值等同于图标个数,计算出每个网格的位置;C) According to the number of icons calculated by A), the main interface is divided into N grids, and the value of N is equal to the number of icons, and the position of each grid is calculated;
D)按照本页已有的图标顺序,以及删除图标的位置,计算出新的图标列表的顺序;D) Calculate the order of the new icon list according to the order of the icons already on the page and the position of the deleted icon;
E)根据C)每个网格的位置以及D)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可;E) According to C) the position of each grid and D) the order of the new icon list, calculate the new position of each icon on the page, and move each icon on the page to the corresponding grid position;
3)在主界面的同一页移动图标,则交换图标位置。3) Move the icon on the same page of the main interface to exchange the icon position.
本发明的实施方式Embodiments of the invention
为了使本发明技术实现的措施、创作特征、达成目的与功效易于明白了解,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例1:Example 1:
一种基于网格算法的图标移动方法,包括:A method for moving icons based on a grid algorithm, comprising:
1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置;1) Add a new icon in the main interface to cause the icon existing on the main interface to move on the page;
2)从主界面中删除图标,促使剩余图标在本页移动位置;2) Delete the icon from the main interface, causing the remaining icons to move on the page;
3)在主界面的同一页移动图标,则交换图标位置。3) Move the icon on the same page of the main interface to exchange the icon position.
实施例2:Example 2:
一种基于网格算法的图标移动方法,包括如下步骤:A method for moving an icon based on a grid algorithm includes the following steps:
图1是本发明一种基于网格算法的加入新的图标移动方法的流程图。1 is a flow chart of a method for moving a new icon based on a grid algorithm according to the present invention.
如图1所示,1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置,具体包括:As shown in FIG. 1 , 1) adding a new icon in the main interface, causing the icon existing on the main interface to move on the page, including:
a)在主界面加入新的图标之前,主界面重新计算加入新的图标之后的图标个数;a) Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
图2是本发明一种基于网格算法的根据算出图标个数移动图标位置的流程图; 2 is a flow chart of moving a position of an icon according to a calculated number of icons based on a grid algorithm according to the present invention;
如图2所示,b)根据a)算出的图标个数,促使剩余图标在本页移动位置,具体包括:As shown in FIG. 2, b) according to the number of icons calculated in a), the remaining icons are moved to the position on the page, including:
c)根据a)算出的图标个数,将主界面均分成n个网格,n的取值等同于图标个数,计算出每个网格的位置,具体公式为:c) According to the number of icons calculated in a), divide the main interface into n grids, and the value of n is equal to the number of icons, and calculate the position of each grid. The specific formula is:
首先,假设主界面的宽是x,需要分割成n个网格,则计算每个网格的中心点,具体公式为:First, assuming that the width of the main interface is x and needs to be divided into n grids, the center point of each grid is calculated. The specific formula is:
x(i)=x/n×i+x/(n×2)x (i) = x / n × i + x / (n × 2)
其中,x(i)表示第i个网格的中心点,i的取值为1,2…n,n为正整数;Where x (i) represents the center point of the i-th grid, i has a value of 1, 2...n, and n is a positive integer;
d)按照本页已有的图标顺序,以及新加入图标的位置,计算出新的图标列表的顺序;d) Calculate the order of the new icon list according to the order of the icons already on the page and the location of the newly added icon;
e)根据c)每个网格的位置以及d)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可;e) Calculate the new position of each icon on the page according to the position of each grid and the order of the new icon list, and move each icon on the page to the corresponding grid position;
2)从主界面中删除图标,促使剩余图标在本页移动位置,具体包括:2) Delete the icon from the main interface, causing the remaining icons to move on the page, including:
A)在主界面删除图标之前,主界面重新计算删除之后的图标个数;A) Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
B)根据A)算出的图标个数,促使剩余图标在本页移动位置,具体包括:B) According to the number of icons calculated in A), the remaining icons are moved to the position on the page, including:
C)根据A)算出的图标个数,将主界面均分成N个网格,N的取值等同于图标个数,计算出每个网格的位置;C) According to the number of icons calculated by A), the main interface is divided into N grids, and the value of N is equal to the number of icons, and the position of each grid is calculated;
D)按照本页已有的图标顺序,以及删除图标的位置,计算出新的图标列表的顺序;D) Calculate the order of the new icon list according to the order of the icons already on the page and the position of the deleted icon;
E)根据C)每个网格的位置以及D)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可;E) According to C) the position of each grid and D) the order of the new icon list, calculate the new position of each icon on the page, and move each icon on the page to the corresponding grid position;
3)在主界面的同一页移动图标,则交换图标位置。3) Move the icon on the same page of the main interface to exchange the icon position.
本发明通过网格算法,在同一页上增加或者删除图标后,能够重新计算网格的数量,每个网格的位置,以及将每个图标对应的放置到新的网格位置,解决了现有技术中主界面每页图标位置固定,图标数量设置有限的问题。The invention solves the problem by recalculating the number of grids, the position of each grid, and placing each icon correspondingly to a new grid position by adding or deleting icons on the same page by using a grid algorithm. In the technology, the main interface has a fixed position of each page, and the number of icons is limited.
以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是说明本发明的原理,在不脱离本发明精神和范围的前提下本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等同物界定。 The basic principles, main features, and advantages of the present invention are shown and described above. It should be understood by those skilled in the art that the present invention is not limited by the foregoing embodiments, and that the present invention is described in the foregoing description and the description of the present invention. Such changes and modifications are intended to fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and their equivalents.
工业实用性Industrial applicability
所属领域技术人员根据上文的记载容易得知,本发明技术方案适合在工业中制造并在生产、生活中使用,因此本发明具备工业实用性。 It is easily known to those skilled in the art from the above description that the technical solution of the present invention is suitable for industrial production and is used in production and life, and therefore the present invention has industrial applicability.

Claims (6)

  1. 一种基于网格算法的图标移动方法,其特征在于,包括:A method for moving an icon based on a grid algorithm, comprising:
    1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置;1) Add a new icon in the main interface to cause the icon existing on the main interface to move on the page;
    2)从主界面中删除图标,促使剩余图标在本页移动位置;2) Delete the icon from the main interface, causing the remaining icons to move on the page;
    3)在主界面的同一页移动图标,则交换图标位置。3) Move the icon on the same page of the main interface to exchange the icon position.
  2. 根据权利要求1所述的一种基于网格算法的图标移动方法,其特征在于,所述1)在主界面中加入新的图标,促使主界面原本存在的图标在本页移动位置包括:The method for moving an icon based on a grid algorithm according to claim 1, wherein the 1) adding a new icon to the main interface, causing the icon existing on the main interface to move on the page includes:
    a)在主界面加入新的图标之前,主界面重新计算加入新的图标之后的图标个数;a) Before adding a new icon to the main interface, the main interface recalculates the number of icons after adding a new icon;
    b)根据所述a)算出的图标个数,促使剩余图标在本页移动位置。b) According to the number of icons calculated in the a), the remaining icons are moved to the position on the page.
  3. 根据权利要求2所述的一种基于网格算法的图标移动方法,其特征在于,所述b)根据a)算出的图标个数,促使剩余图标在本页移动位置包括:The method for moving an icon based on a grid algorithm according to claim 2, wherein the b) causing the remaining icons to move on the page according to the number of icons calculated in a) comprises:
    c)根据所述a)算出的图标个数,将主界面均分成n个网格,n的取值等同于图标个数,计算出每个网格的位置;c) according to the number of icons calculated in the a), the main interface is divided into n grids, the value of n is equal to the number of icons, and the position of each grid is calculated;
    d)按照本页已有的图标顺序,以及新加入图标的位置,计算出新的图标列表的顺序;d) Calculate the order of the new icon list according to the order of the icons already on the page and the location of the newly added icon;
    e)根据所述c)每个网格的位置以及所述d)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可。e) calculating a new position of each icon on the page according to the position of each grid and the order of the d) new icon list, and moving each icon of the page to the corresponding grid position Just fine.
  4. 根据权利要求3所述的一种基于网格算法的图标移动方法,其特征在于,所述c)根据a)算出的图标个数,将主界面均分成n个网格,n的取值等同于图标个数,计算出每个网格的位置的具体公式为:The method for moving an icon based on a grid algorithm according to claim 3, wherein the c) divides the main interface into n grids according to the number of icons calculated in a), and the value of n is equal. For the number of icons, the specific formula for calculating the position of each grid is:
    假设主界面的宽是x,需要分割成n个网格,则计算每个网格的中心点,具体公式为:Assuming that the width of the main interface is x and needs to be divided into n grids, the center point of each grid is calculated. The specific formula is:
    x(i)=x/n×i+x/(n×2)x (i) = x / n × i + x / (n × 2)
    其中,x(i)表示第i个网格的中心点,i的取值为1,2…n,n为正整数。Where x (i) represents the center point of the i-th grid, and the value of i is 1, 2...n, where n is a positive integer.
  5. 根据权利要求2所述的一种基于网格算法的图标移动方法,其特征在于,所述2)从主界面中删除图标,促使剩余图标在本页移动位置包括:The method for moving an icon based on a grid algorithm according to claim 2, wherein the 2) deleting an icon from the main interface, causing the remaining icons to move on the page comprises:
    A)在主界面删除图标之前,主界面重新计算删除之后的图标个数;A) Before deleting the icon on the main interface, the main interface recalculates the number of icons after deletion;
    B)根据所述A)算出的图标个数,促使剩余图标在本页移动位置。 B) According to the number of icons calculated in the above A), the remaining icons are caused to move on the page.
  6. 根据权利要求5所述的一种基于网格算法的图标移动方法,其特征在于,所述B)根据A)算出的图标个数,促使剩余图标在本页移动位置包括:The method for moving an icon based on a grid algorithm according to claim 5, wherein the B) the number of icons calculated according to A), causing the remaining icons to move on the page includes:
    C)根据所述A)算出的图标个数,将主界面均分成N个网格,N的取值等同于图标个数,计算出每个网格的位置;C) according to the number of icons calculated in the above A), the main interface is divided into N grids, and the value of N is equal to the number of icons, and the position of each grid is calculated;
    D)按照本页已有的图标顺序,以及删除图标的位置,计算出新的图标列表的顺序;D) Calculate the order of the new icon list according to the order of the icons already on the page and the position of the deleted icon;
    E)根据所述C)每个网格的位置以及所述D)新的图标列表的顺序,计算出本页每个图标新的位置,将本页的每个图标移动到对应的网格位置即可。 E) calculating a new position of each icon on the page according to the C) position of each grid and the order of the D) new icon list, and moving each icon of the page to the corresponding grid position Just fine.
PCT/CN2016/105743 2016-09-19 2016-11-14 Method of moving icon based on grid algorithm WO2018049723A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610832855.XA CN106484219B (en) 2016-09-19 2016-09-19 Icon moving method based on grid algorithm
CN201610832855.X 2016-09-19

Publications (1)

Publication Number Publication Date
WO2018049723A1 true WO2018049723A1 (en) 2018-03-22

Family

ID=58268742

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/105743 WO2018049723A1 (en) 2016-09-19 2016-11-14 Method of moving icon based on grid algorithm

Country Status (2)

Country Link
CN (1) CN106484219B (en)
WO (1) WO2018049723A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179873B (en) * 2017-06-13 2020-02-11 中科创达软件科技(深圳)有限公司 One-hand operation method and device based on application program interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833418A (en) * 2010-04-28 2010-09-15 华为终端有限公司 Method and device for adding icon in interface and mobile terminal
CN102789353A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Method and device for operating desktop objects on touch screen mobile devices
CN104423841A (en) * 2013-09-11 2015-03-18 中兴通讯股份有限公司 Method and device for dragging icon

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834430A (en) * 2014-02-12 2015-08-12 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for moving icons

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833418A (en) * 2010-04-28 2010-09-15 华为终端有限公司 Method and device for adding icon in interface and mobile terminal
CN102789353A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Method and device for operating desktop objects on touch screen mobile devices
CN104423841A (en) * 2013-09-11 2015-03-18 中兴通讯股份有限公司 Method and device for dragging icon

Also Published As

Publication number Publication date
CN106484219B (en) 2021-02-26
CN106484219A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
WO2016050091A1 (en) Method for adjusting layout of application icons on terminal, and terminal
CN102053776B (en) Desktop management system and method
US8792309B2 (en) Alarm method and device
WO2017166680A1 (en) Method and apparatus for managing application programs, and electronic device
JP6140847B2 (en) Touch type terminal and positioning method of prompt box thereof
JP6128363B2 (en) Data reporting method and apparatus, and terminal device
UA116478C2 (en) MOBILE OPERATING SYSTEM
US20170346893A1 (en) Peer-to-peer data migration
TWI517737B (en) Indoor positioning method, indoor positioning system, and computer-readable medium
JP2016509390A5 (en)
WO2017032080A1 (en) Method and device for address book control and mobile terminal
WO2021057064A1 (en) Data interaction conversion method and apparatus based on artificial intelligence, device, and medium
CN102855648A (en) Method and device for processing image
CN103699319A (en) Desktop icon arranging method and device
WO2018049723A1 (en) Method of moving icon based on grid algorithm
US20200356266A1 (en) Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device
WO2017088309A1 (en) Method and apparatus for moving icon, and computer storage medium
WO2015176376A1 (en) Method and device for automatically adjusting valid touch point, and computer storage medium
WO2011098661A1 (en) Method and apparatus for providing utilization of data profiling for radio resource management
WO2016110011A1 (en) Terminal, power saving method thereof, storage medium
US20120317408A1 (en) Method and Apparatus for Changing an Operational Characteristic of a Device in Order to Adjust the Power Consumption Level
US10609214B2 (en) Intelligent subscriber profile control and management
CN111144845B (en) Mobile terminal meeting reminding method and device
CN104752150A (en) Method for establishing technological process
WO2017124376A1 (en) App operating method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16916103

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16916103

Country of ref document: EP

Kind code of ref document: A1