技术领域technical field
本申请涉及移动终端技术,特别涉及动态调整移动终端桌面上应用图标位置的方法和装置。The present application relates to mobile terminal technology, in particular to a method and device for dynamically adjusting the position of application icons on the desktop of a mobile terminal.
背景技术Background technique
目前,诸如手机等移动终端,其屏幕尺寸是越来越大,这给用户带来了很好的视觉体验,比如目前5.7英寸的全高清大屏。At present, the screen size of mobile terminals such as mobile phones is getting larger and larger, which brings users a good visual experience, such as the current 5.7-inch full high-definition large screen.
但是,对于大屏幕尺寸的移动终端,虽然给用户带来了很好的视觉体验,相应地,却影响到用户的单手操作,会导致用户在单手操作时无法触摸到移动终端桌面上的所有应用图标,进而影响一些未被触摸到的应用图标的启动。比如图1所示的手机屏幕,手机屏幕比较大,如果用户用右手单独操作,其不能触摸到手机屏幕上左上角的应用图标比如Settings、Call、Browser等,未被触摸到的应用图标如Settings、Call、Browser等,其启动就比较不方便,同样,如果用户用左手单独操作,就不能触摸到手机屏幕上右上角的应用图标比如Mail、Message、Music等,未被触摸到的应用图标,其启动也不方便。However, for a mobile terminal with a large screen size, although a good visual experience is brought to the user, correspondingly, it affects the user's one-handed operation, which will cause the user to be unable to touch the mobile terminal desktop during one-handed operation. All application icons, and then affect the launch of some application icons that have not been touched. For example, the mobile phone screen shown in Figure 1, the mobile phone screen is relatively large, if the user operates alone with his right hand, he cannot touch the application icons in the upper left corner of the mobile phone screen, such as Settings, Call, Browser, etc., and the untouched application icons such as Settings , Call, Browser, etc., it is inconvenient to start. Similarly, if the user operates alone with the left hand, the application icons in the upper right corner of the mobile phone screen, such as Mail, Message, Music, etc., cannot be touched. Application icons that have not been touched, It is also inconvenient to start.
发明内容Contents of the invention
本申请提供了动态调整移动终端桌面上应用图标位置的方法和装置。通过动态调整移动终端桌面上应用图标位置,保证用户触摸到移动终端桌面上所有应用图标,实现移动终端桌面上应用图标的快速启动。The present application provides a method and a device for dynamically adjusting the position of application icons on the desktop of a mobile terminal. By dynamically adjusting the positions of the application icons on the desktop of the mobile terminal, it is ensured that the user can touch all the application icons on the desktop of the mobile terminal, and the quick start of the application icons on the desktop of the mobile terminal is realized.
本申请提供的技术方案包括:The technical solutions provided by this application include:
一种动态调整移动终端桌面上应用图标位置的方法,包括:A method for dynamically adjusting the position of an application icon on a desktop of a mobile terminal, comprising:
在设定时间内检测移动终端界面上发生的N次手势操作,N大于等于2;Detect N times of gesture operations on the mobile terminal interface within the set time, where N is greater than or equal to 2;
确定所述N次手势操作中是否存在方向重复的两次手势操作;Determine whether there are two gesture operations with repeated directions in the N gesture operations;
当存在两次方向重复的手势操作时,依据所述两次手势操作的方向动态调整移动终端桌面上应用图标位置。When there are two gesture operations with repeated directions, the position of the application icon on the desktop of the mobile terminal is dynamically adjusted according to the directions of the two gesture operations.
一种动态调整移动终端桌面上应用图标位置的装置,包括:A device for dynamically adjusting the position of application icons on the desktop of a mobile terminal, comprising:
检测单元,用于在设定时间内检测移动终端界面上发生的N次手势操作,N大于等于2;The detection unit is used to detect N times of gesture operations occurring on the mobile terminal interface within a set time, where N is greater than or equal to 2;
确定单元,用于确定所述N次手势操作中是否存在方向重复的两次手势操作;A determination unit, configured to determine whether there are two gesture operations with repeated directions in the N gesture operations;
调整单元,用于当所述确定单元确定储存在两次方向重复的手势操作时,依据所述两次手势操作的方向动态调整移动终端桌面上应用图标位置。The adjustment unit is configured to dynamically adjust the position of the application icon on the desktop of the mobile terminal according to the directions of the two gesture operations when the determination unit determines that the gesture operations are repeated in two directions.
由以上技术方案可以看出,本发明中,通过动态调整移动终端桌面上应用图标位置,这样,不管移动终端桌面的屏幕有多大,都可以通过动态调整移动终端桌面上应用图标位置的方式,保证用户触摸到移动终端桌面上所有应用图标,实现移动终端桌面上应用图标的快速启动。As can be seen from the above technical solutions, in the present invention, by dynamically adjusting the position of the application icon on the desktop of the mobile terminal, no matter how big the screen of the desktop of the mobile terminal is, the mode of dynamically adjusting the position of the application icon on the desktop of the mobile terminal can be ensured. The user touches all the application icons on the desktop of the mobile terminal to realize quick start of the application icons on the desktop of the mobile terminal.
附图说明Description of drawings
图1为现有手机桌面结构示意图;Fig. 1 is the structural schematic diagram of existing mobile phone desktop;
图2为本发明提供的方法流程图;Fig. 2 is the method flowchart provided by the present invention;
图3为本发明实施例1提供的流程图;FIG. 3 is a flowchart provided by Embodiment 1 of the present invention;
图4为本发明实施例1提供的应用示意图;Figure 4 is a schematic diagram of the application provided by Embodiment 1 of the present invention;
图5为本发明实施例1提供的另一应用示意图;Fig. 5 is another application schematic diagram provided by Embodiment 1 of the present invention;
图6为本发明实施例2提供的流程图;FIG. 6 is a flowchart provided by Embodiment 2 of the present invention;
图7为本发明实施例2提供的应用示意图;Figure 7 is a schematic diagram of the application provided by Embodiment 2 of the present invention;
图8为本发明实施例2提供的另一应用示意图;Fig. 8 is another application schematic diagram provided by Embodiment 2 of the present invention;
图9为本发明提供的装置结构示意图。Fig. 9 is a schematic structural diagram of the device provided by the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
本发明提供的方法包括图2所示的流程:The method provided by the invention comprises the flow process shown in Figure 2:
参见图2,图2为本发明提供的方法流程图。如图2所示,该流程可包括:Referring to Fig. 2, Fig. 2 is a flow chart of the method provided by the present invention. As shown in Figure 2, the process can include:
步骤201,在设定时间内检测移动终端界面上发生的N次手势操作,N大于等于2。Step 201: Detect N times of gesture operations on the interface of the mobile terminal within a set time, where N is greater than or equal to 2.
作为本发明的优选实施例,这里的手势操作可指用户在移动终端桌面上的滑动操作,或者用户手握移动终端的抖动操作,或者其他操作,本发明并不具体限定。As a preferred embodiment of the present invention, the gesture operation here may refer to the sliding operation of the user on the desktop of the mobile terminal, or the shaking operation of the user holding the mobile terminal, or other operations, which are not specifically limited in the present invention.
步骤202,确定N次手势操作中是否存在方向重复的两次手势操作。Step 202, determine whether there are two gesture operations with repeated directions among the N gesture operations.
在本发明中,当用户在移动终端桌面上执行一次手势操作,移动终端就会检测到该手势操作,也会检测到该手势操作的方向,基于此,本步骤202中,可依据检测到的N次手势操作的方向确定N次手势操作中是否存在方向重复的两次手势操作。这里的方向重复包含了方向相同、近似相同的情况。其中,两次手势操作的方向近似相同,意味着两次手势操作的方向之间的偏差在设定偏差范围比如5%之内,也即,当两次手势操作的方向之间的偏差在设定偏差范围比如5%之内,则意味着两次手势操作的方向近似相同。下文两个实施例举例描述了如何确定N次手势操作中是否存在方向重复的两次手势操作,这里暂不赘述In the present invention, when the user performs a gesture operation on the desktop of the mobile terminal, the mobile terminal will detect the gesture operation and the direction of the gesture operation. Based on this, in step 202, the detected The direction of the N gesture operations determines whether there are two gesture operations with repeated directions in the N gesture operations. The direction repetition here includes the same or approximately the same direction. Wherein, the directions of the two gesture operations are approximately the same, which means that the deviation between the directions of the two gesture operations is within a set deviation range such as 5%, that is, when the deviation between the directions of the two gesture operations is within the set deviation range A certain deviation range, such as within 5%, means that the directions of the two gesture operations are approximately the same. The following two embodiments describe how to determine whether there are two gesture operations with repeated directions in the N gesture operations by way of example, so I won’t go into details here
步骤203,当步骤202中确定出存在方向重复的两次手势操作时,依据所述两次手势操作的方向动态调整移动终端桌面上应用图标位置。Step 203, when it is determined in step 202 that there are two gesture operations with repeated directions, dynamically adjust the position of the application icon on the desktop of the mobile terminal according to the directions of the two gesture operations.
本发明中,当依据两次手势操作的方向动态调整移动终端桌面上应用图标位置,则就能保证用户触摸到之前无法触摸到的应用图标,实现移动终端桌面上应用图标的快速启动。下文两个实施例举例描述了如何依据两次手势操作的方向动态调整移动终端桌面上应用图标位置,这里暂不赘述。In the present invention, when the position of the application icon on the desktop of the mobile terminal is dynamically adjusted according to the direction of the two gesture operations, it can be ensured that the user can touch the application icon that could not be touched before, and the quick start of the application icon on the desktop of the mobile terminal can be realized. The following two embodiments describe how to dynamically adjust the position of the application icon on the desktop of the mobile terminal according to the direction of the two gesture operations by way of example, which will not be repeated here.
至此,完成图2所示的流程。So far, the process shown in FIG. 2 is completed.
通过图2所示的流程可以看出,本发明可动态调整移动终端桌面上应用图标位置,这样,不管移动终端桌面的屏幕有多大,都可以通过动态调整移动终端桌面上应用图标位置的方式,保证用户触摸到移动终端桌面上所有应用图标,实现移动终端桌面上应用图标的快速启动。As can be seen from the process shown in Figure 2, the present invention can dynamically adjust the position of the application icon on the desktop of the mobile terminal, so that no matter how large the screen of the desktop of the mobile terminal is, the position of the application icon on the desktop of the mobile terminal can be dynamically adjusted, Ensure that the user can touch all the application icons on the desktop of the mobile terminal, and realize the quick start of the application icons on the desktop of the mobile terminal.
下面通过两个实施例对图2所示流程进行举例描述:The process shown in Figure 2 is described as an example through two embodiments below:
实施例1:Example 1:
参见图3,图3为本发明实施例1提供的流程图。该流程以手势操作为滑动操作为例,如图3所示,该流程可包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart provided by Embodiment 1 of the present invention. The process takes the gesture operation as a sliding operation as an example, as shown in Figure 3, the process may include the following steps:
步骤301,在设定时间内检测移动终端界面上发生的N次滑动操作,N大于等于2。Step 301: Detect N times of sliding operations on the interface of the mobile terminal within a set time, where N is greater than or equal to 2.
本发明中,当执行实施例1时,在上述的设定时间内用户会连续在移动终端界面上执行N次滑动操作,而移动终端会检测到这N次滑动操作。In the present invention, when implementing Embodiment 1, the user will continuously perform N sliding operations on the mobile terminal interface within the above-mentioned set time, and the mobile terminal will detect these N sliding operations.
这里,作为一个优选实施例,一次滑动操作,可通过以下方式界定:Here, as a preferred embodiment, a sliding operation can be defined in the following way:
手势触摸移动终端界面(记为onTouchDown)、从触摸点开始滑动至滑动结束、手势离开移动终端界面(记为onTouchUp)。Gesture touches the mobile terminal interface (denoted as onTouchDown), slides from the touch point to the end of the slide, and gestures to leave the mobile terminal interface (denoted as onTouchUp).
步骤302,确定每一次滑动操作的滑动轨迹。Step 302, determine the sliding trajectory of each sliding operation.
基于上述界定的滑动操作,则本步骤302中,滑动操作的滑动轨迹是指执行滑动操作时手势触摸移动终端界面、从触摸点开始滑动至手势离开移动终端界面之间的轨迹。Based on the sliding operation defined above, in this step 302, the sliding track of the sliding operation refers to the trajectory between the gesture touching the mobile terminal interface when the sliding operation is performed, the sliding from the touch point to the gesture leaving the mobile terminal interface.
步骤303,判断N次滑动操作中是否存在滑动轨迹平行或近似平行的连续两次滑动操作,如果否,执行步骤304,如果是,执行步骤305。Step 303 , judging whether there are two consecutive sliding operations with parallel or approximately parallel sliding trajectories in the N times of sliding operations, if not, perform step 304 , if yes, perform step 305 .
本发明中,连续两次滑动操作的滑动轨迹是否平行或者近似平行,可采用现有的Hough变换判断。所谓Hough变换,其是一种使用表决原理的参数估计技术,其原理是利用图像空间和Hough参数空间的点-线对偶性,把图像空间中的检测问题转换到参数空间,通过在参数空间里进行简单的累加统计,然后在Hough参数空间寻找累加器峰值的方法检测直线是否平行或者近似平行。这里两次滑动操作的滑动轨迹近似平行,意味着两次滑动操作的滑动轨迹之间的偏差在设定偏差范围比如5%之内,也即,当两次滑动操作的滑动轨迹之间的偏差在设定偏差范围比如5%之内,则意味着两次滑动操作的滑动轨迹近似平行In the present invention, whether the sliding trajectories of two consecutive sliding operations are parallel or approximately parallel can be judged by using the existing Hough transform. The so-called Hough transform is a parameter estimation technique using the voting principle. Its principle is to use the point-line duality between the image space and the Hough parameter space to transform the detection problem in the image space into the parameter space. Perform simple cumulative statistics, and then find the accumulator peak in the Hough parameter space to detect whether the straight lines are parallel or approximately parallel. Here, the sliding trajectories of the two sliding operations are approximately parallel, which means that the deviation between the sliding trajectories of the two sliding operations is within the set deviation range, such as 5%, that is, when the deviation between the sliding trajectories of the two sliding operations Within the set deviation range, such as 5%, it means that the sliding trajectories of the two sliding operations are approximately parallel
通过现有的Hough变换能够判断滑动操作的滑动轨迹是否平行或者近似平行。当判断出不存在滑动轨迹平行或近似平行的连续两次滑动操作,则执行步骤304,反之,当判断出存在滑动轨迹平行或近似平行的连续两次滑动操作,则执行步骤305。Through the existing Hough transform, it can be judged whether the sliding trajectories of the sliding operation are parallel or approximately parallel. When it is determined that there are no two consecutive sliding operations with parallel or approximately parallel sliding trajectories, step 304 is performed; otherwise, when it is determined that there are two consecutive sliding operations with parallel or approximately parallel sliding trajectories, then step 305 is performed.
步骤304,确定N次滑动操作中不存在方向重复的两次滑动操作,结束当前流程。In step 304, it is determined that there are no two sliding operations with repeated directions among the N sliding operations, and the current process ends.
步骤305,利用上述步骤303判断出的连续两次滑动操作的滑动速度计算加速度,在所述加速度大于设定的阈值时,确定所述连续两次滑动操作为方向重复的两次滑动操作。之后执行步骤306。Step 305, calculate the acceleration by using the sliding speeds of the two consecutive sliding operations determined in the above step 303, and determine that the two consecutive sliding operations are two sliding operations with repeated directions when the acceleration is greater than a set threshold. Then step 306 is executed.
本步骤305是在步骤303判断出存在滑动轨迹平行或近似平行的连续两次滑动操作时执行的,为便于描述,这里将滑动轨迹平行或近似平行的连续两次滑动操作称为一对滑动操作,当步骤303判断出多对滑动操作时,可随机选择其中一对滑动操作执行步骤305,当选择的一对滑动操作执行步骤305时,发现计算出的加速度不大于设定的阈值,则重新再选择一对滑动操作,依次类推,直至最终选择出的一对滑动操作执行步骤305时,计算出的加速度大于设定的阈值。这里,设定的阈值可根据实际情况设置,本发明并不具体限定。This step 305 is performed when it is determined in step 303 that there are two consecutive sliding operations with parallel or approximately parallel sliding trajectories. For the convenience of description, two consecutive sliding operations with parallel or approximately parallel sliding trajectories are referred to as a pair of sliding operations. , when step 303 determines that there are multiple pairs of sliding operations, one pair of sliding operations can be randomly selected to perform step 305, and when the selected pair of sliding operations is performed in step 305, it is found that the calculated acceleration is not greater than the set threshold, and then restart Another pair of sliding operations is selected, and so on, until step 305 is executed for the finally selected pair of sliding operations, and the calculated acceleration is greater than the set threshold. Here, the set threshold can be set according to actual conditions, which is not specifically limited in the present invention.
本发明中,利用上述步骤303判断出的连续两次滑动操作的滑动速度计算加速度具体通过下述步骤a1至步骤a2实现:In the present invention, the calculated acceleration of the sliding speed of the two consecutive sliding operations judged by the above step 303 is specifically implemented through the following steps a1 to a2:
步骤a1,计算步骤303判断出的连续两次滑动操作中每一次滑动操作的滑动速度。Step a1 , calculating the sliding speed of each of the two consecutive sliding operations determined in step 303 .
这里,滑动操作的滑动速度是指滑动操作的位移除以执行完该滑动操作的时间得到的数值。Here, the sliding speed of the sliding operation refers to a value obtained by removing bits of the sliding operation to the time required to complete the sliding operation.
其中,滑动操作的位移是指在执行该滑动操作时从手势触摸移动终端界面的触摸点至滑动结束时手势离开移动终端界面时所处的触摸点之间的位移。Wherein, the displacement of the sliding operation refers to the displacement between the touch point where the gesture touches the mobile terminal interface when the sliding operation is performed, and the touch point where the gesture leaves the mobile terminal interface when the sliding ends.
步骤a2,利用上述连续两次滑动操作的滑动速度计算加速度。In step a2, the acceleration is calculated by using the sliding speeds of the above two consecutive sliding operations.
假如上述连续两次滑动操作中其中一次滑动操作的滑动速度为V1,另一次滑动操作的滑动速度为V2,设定时间为t,则计算出的加速度(由a表示)可为:If the sliding speed of one of the above two consecutive sliding operations is V1, the sliding speed of the other sliding operation is V2, and the set time is t, then the calculated acceleration (represented by a) can be:
其中,公式中Δv为连续两次滑动操作的滑动速度的绝对值变化量|V2-V1|,Δt为连续两次滑动操作的时间差。Wherein, Δv in the formula is the absolute value variation |V2-V1| of the sliding speed of two consecutive sliding operations, and Δt is the time difference between two consecutive sliding operations.
步骤302至步骤305是上述步骤202中确定N次手势操作中是否存在方向重复的两次手势操作的具体实现。Steps 302 to 305 are specific implementations of determining in the above step 202 whether there are two gesture operations with repeated directions in the N gesture operations.
步骤306,确定用于应用图标位置调整的中心轴线,将中心轴线两侧的应用图标的位置对调。Step 306, determining a central axis for adjusting the position of the application icons, and swapping the positions of the application icons on both sides of the central axis.
这里,中心轴线与方向重复的两次滑动操作的方向垂直,且经由移动终端桌面的中心。如图4所示,移动终端桌面上有9个应用图标,假如中心轴线如图4所示,为移动终端桌面左下角顶点和右上角顶点之间的连线,则通过将直线两侧的应用图标的位置对调,图4所示的移动终端桌面上的9个应用图标的排列方式就变成了图5所示的排列方式,具体如图5所示。Here, the central axis is perpendicular to the direction of two sliding operations in which the direction is repeated, and passes through the center of the desktop of the mobile terminal. As shown in Figure 4, there are 9 application icons on the desktop of the mobile terminal. If the central axis is shown in Figure 4, which is the connection line between the vertex in the lower left corner and the vertex in the upper right corner of the desktop of the mobile terminal, then by connecting the application icons on both sides of the line The positions of the icons are reversed, and the arrangement of the nine application icons on the desktop of the mobile terminal shown in FIG. 4 becomes the arrangement shown in FIG. 5 , specifically as shown in FIG. 5 .
步骤306是上述步骤203中依据两次手势操作的方向动态调整移动终端桌面上应用图标位置的具体实现。Step 306 is a specific implementation of dynamically adjusting the position of the application icon on the desktop of the mobile terminal according to the directions of the two gesture operations in the above step 203.
至此,完成实施例1的描述。So far, the description of Embodiment 1 is completed.
实施例2:Example 2:
参见图6,图6为本发明实施例2提供的流程图。该流程以手势操作为抖动操作为例,如图6所示,该流程可包括以下步骤:Referring to FIG. 6, FIG. 6 is a flowchart provided by Embodiment 2 of the present invention. The process takes the gesture operation as an example of shaking operation, as shown in Figure 6, the process may include the following steps:
步骤601,在设定时间内检测移动终端界面上发生的N次抖动操作,N大于等于2。Step 601: Detect N times of shaking operations on the interface of the mobile terminal within a set time, where N is greater than or equal to 2.
本发明中,当执行实施例2时,在上述的设定时间内用户会连续手握移动终端执行N次抖动操作,而移动终端会检测到这N次抖动操作。In the present invention, when implementing Embodiment 2, the user will continuously hold the mobile terminal to perform N times of shaking operations within the above-mentioned set time, and the mobile terminal will detect these N times of shaking operations.
步骤602,计算每一次抖动操作对应的重力加速度变化矢量。Step 602, calculating the gravitational acceleration change vector corresponding to each shaking operation.
在实际应用中,移动终端静止时与移动终端被抖动时其重力加速度是发生变化的,该变化不仅指数值,也指在空间(x轴、y轴、z轴组成的坐标空间)中的方向。In practical applications, the gravitational acceleration of the mobile terminal changes when it is stationary and when the mobile terminal is shaken. This change not only refers to the index value, but also refers to the direction in space (coordinate space composed of x-axis, y-axis, and z-axis) .
基于此,抖动操作对应的重力加速度变化矢量是指:抖动操作之前的重力加速度和发生抖动操作时的重力加速度之间的变化矢量。Based on this, the gravitational acceleration change vector corresponding to the shaking operation refers to a change vector between the gravitational acceleration before the shaking operation and the gravitational acceleration when the shaking operation occurs.
步骤603,判断N次抖动操作中是否存在对应的重力加速度变化矢量方向一致或近似一致的连续两次抖动操作,如果否,执行步骤604,如果是,执行步骤605。Step 603 , judging whether there are two consecutive shaking operations in which the direction of the corresponding gravitational acceleration change vector is the same or approximately the same among the N shaking operations, if not, go to step 604 , if yes, go to step 605 .
本步骤603中,两次抖动操作的重力加速度变化矢量方向近似一致,是指两次抖动操作的重力加速度变化矢量方向之间的偏差在一定范围内。该范围可根据实际情况设置,这里不具体限定。In this step 603, the directions of the gravitational acceleration change vectors of the two shaking operations are approximately the same, which means that the deviation between the directions of the gravitational acceleration change vectors of the two shaking operations is within a certain range. This range can be set according to actual conditions, and is not specifically limited here.
步骤604,确定所述N次抖动操作中不存在方向重复的两次抖动操作,结束当前流程。In step 604, it is determined that there are no two shaking operations with repeated directions in the N times of shaking operations, and the current process ends.
步骤605,确定所述连续两次抖动操作为方向重复的两次抖动操作。Step 605, determining that the two consecutive shaking operations are two shaking operations with repeated directions.
步骤602至步骤605是上述步骤202中确定N次手势操作中是否存在方向重复的两次手势操作的具体实现。Steps 602 to 605 are specific implementations of determining in the above step 202 whether there are two gesture operations with repeated directions in the N gesture operations.
步骤606,向用户发出滑动提示,所述滑动提示用于指导用户沿着所述连续两次抖动操作对应的重力加速度变化矢量方向在所述移动终端桌面上执行滑动操作;当检测到所述滑动操作时,沿着所述连续两次抖动操作对应的重力加速度变化矢量方向移动所述移动终端桌面上应用图标的位置。Step 606: Send a sliding prompt to the user, the sliding prompt is used to guide the user to perform a sliding operation on the desktop of the mobile terminal along the direction of the gravitational acceleration change vector corresponding to the two consecutive shaking operations; when the sliding During the operation, the position of the application icon on the desktop of the mobile terminal is moved along the direction of the gravitational acceleration change vector corresponding to the two consecutive shaking operations.
本步骤605是在步骤603判断出存在重力加速度变化矢量方向一致或近似一致的连续两次抖动操作执行的。为便于描述,这里将重力加速度变化矢量方向一致或近似一致的连续两次抖动操作称为一对抖动操作,当步骤603判断出多对抖动操作时,可随机选择其中一对抖动操作执行步骤606。This step 605 is performed when it is determined in step 603 that there are two consecutive shaking operations in which the direction of the gravitational acceleration change vector is the same or approximately the same. For ease of description, two consecutive shaking operations with the same or approximately the same direction of the gravitational acceleration change vector are referred to as a pair of shaking operations. When step 603 determines that there are multiple pairs of shaking operations, one of the pair of shaking operations can be randomly selected to perform step 606 .
在步骤606中,针对选择的一对重力加速度变化矢量方向一致或近似一致的连续两次抖动操作,则会向用户发出滑动提示,滑动提示用于指导用户沿着所述连续两次抖动操作对应的重力加速度变化矢量方向在所述移动终端桌面上执行滑动操作,基于此,用户会沿着该连续两次抖动操作对应的重力加速度变化矢量方向在移动终端桌面上执行滑动操作,当用户执行滑动操作时,移动终端会检测到该滑动操作,当检测到用户在移动终端界面上执行的滑动操作时,则沿着连续两次抖动操作对应的重力加速度变化矢量方向移动所述移动终端桌面上应用图标的位置。In step 606, for the selected pair of two consecutive shaking operations with the same or approximately the same direction of the gravitational acceleration change vector, a sliding prompt will be issued to the user, and the sliding prompt is used to guide the user along the corresponding direction of the two consecutive shaking operations. Perform a sliding operation on the mobile terminal desktop in the direction of the gravitational acceleration change vector. Based on this, the user will perform a sliding operation on the mobile terminal desktop along the direction of the gravitational acceleration change vector corresponding to the two consecutive shaking operations. When the user performs a sliding During operation, the mobile terminal will detect the sliding operation, and when detecting the sliding operation performed by the user on the mobile terminal interface, move the application on the desktop of the mobile terminal along the direction of the gravitational acceleration change vector corresponding to two consecutive shaking operations. The position of the icon.
在本发明中,移动终端桌面上的应用图标是以矩阵的形式排列的,基于此,上述沿着连续两次抖动操作对应的重力加速度变化矢量方向移动所述移动终端桌面上应用图标的位置具体为:In the present invention, the application icons on the desktop of the mobile terminal are arranged in the form of a matrix. Based on this, moving the position of the application icons on the desktop of the mobile terminal along the direction of the gravitational acceleration change vector corresponding to two consecutive shaking operations is specifically for:
以上述矩阵中的行为单位沿着连续两次抖动操作对应的重力加速度变化矢量方向移动移动终端桌面上应用图标的位置。The position of the application icon on the desktop of the mobile terminal is moved along the direction of the gravitational acceleration change vector corresponding to two consecutive shaking operations with the row unit in the above matrix.
比如,如图7所示,移动终端桌面上有12个应用图标,这12个应用图标组成了一个3行4列的矩阵,图7具体示出了矩阵的各行各列。假如上述连续两次抖动操作对应的重力加速度变化矢量方向为图7所示的箭头方向,则当检测到用户按照图7所示的箭头方向执行的滑动操作时,移动终端会按照图7所示的箭头方向将移动终端桌面上第三行的应用图标移动到第二行,第二行的应用图标移动到第一行,第一行的应用图标移动到第三行,具体如图8所示。For example, as shown in FIG. 7 , there are 12 application icons on the desktop of the mobile terminal, and these 12 application icons form a matrix with 3 rows and 4 columns. FIG. 7 specifically shows each row and each column of the matrix. If the direction of the gravitational acceleration change vector corresponding to the above two consecutive shaking operations is the direction of the arrow shown in Figure 7, when the sliding operation performed by the user in the direction of the arrow shown in Figure 7 is detected, the mobile terminal will follow the direction shown in Figure 7 Move the application icons on the third row to the second row on the desktop of the mobile terminal, move the application icons on the second row to the first row, and move the application icons on the first row to the third row on the desktop of the mobile terminal, as shown in Figure 8. .
步骤606是上述步骤203中依据两次手势操作的方向动态调整移动终端桌面上应用图标位置的具体实现。Step 606 is a specific implementation of dynamically adjusting the position of the application icon on the desktop of the mobile terminal according to the direction of the two gesture operations in the above step 203.
至此,完成实施例2的描述。So far, the description of Embodiment 2 is completed.
基于上述的实施例1和实施例2可以看出,本发明中,通过变换移动终端桌面上应用图标位置的方法,能够保证不管移动终端桌面的屏幕有多大,用户都可以触摸到移动终端桌面上所有应用图标,同时实现了移动终端桌面上应用图标的快速启动。Based on the above-mentioned embodiment 1 and embodiment 2, it can be seen that in the present invention, by changing the position of the application icon on the desktop of the mobile terminal, it can be ensured that no matter how big the screen of the desktop of the mobile terminal is, the user can touch the desktop of the mobile terminal. All the application icons realize the quick start of the application icons on the desktop of the mobile terminal at the same time.
下面对本发明提供的装置进行描述:The device provided by the invention is described below:
参见图9,图9为本发明提供的装置结构图。如图9所示,该装置可包括:Referring to Fig. 9, Fig. 9 is a structural diagram of the device provided by the present invention. As shown in Figure 9, the device may include:
检测单元,用于在设定时间内检测移动终端界面上发生的N次手势操作,N大于等于2;The detection unit is used to detect N times of gesture operations occurring on the mobile terminal interface within a set time, where N is greater than or equal to 2;
确定单元,用于确定所述N次手势操作中是否存在方向重复的两次手势操作;A determination unit, configured to determine whether there are two gesture operations with repeated directions in the N gesture operations;
调整单元,用于当所述确定单元确定储存在两次方向重复的手势操作时,依据所述两次手势操作的方向动态调整移动终端桌面上应用图标位置。The adjustment unit is configured to dynamically adjust the position of the application icon on the desktop of the mobile terminal according to the directions of the two gesture operations when the determination unit determines that the gesture operations are repeated in two directions.
优选地,作为一个一个实施例,所述N次手势操作为N次滑动操作;Preferably, as an embodiment, the N gesture operations are N slide operations;
所述确定单元确定N次手势操作中是否存在方向重复的两次手势操作包括:The determining unit determining whether there are two gesture operations with repeated directions in the N gesture operations includes:
确定每一次滑动操作的滑动轨迹;Determine the sliding trajectory of each sliding operation;
判断N次滑动操作中是否存在滑动轨迹平行或近似平行的连续两次滑动操作,Determine whether there are two consecutive sliding operations with parallel or approximately parallel sliding trajectories in the N sliding operations,
如果否,确定所述N次滑动操作中不存在方向重复的两次滑动操作;If not, determine that there are no two sliding operations with repeated directions in the N times of sliding operations;
如果是,利用所述连续两次滑动操作的滑动速度计算加速度,在所述加速度大于设定的阈值时,确定所述连续两次滑动操作为方向重复的两次滑动操作。If so, calculate the acceleration by using the sliding speeds of the two consecutive sliding operations, and determine that the two consecutive sliding operations are two sliding operations with repeated directions when the acceleration is greater than a set threshold.
所述调整单元依据两次手势操作的方向动态调整移动终端桌面上应用图标位置包括:The adjustment unit dynamically adjusts the position of the application icon on the desktop of the mobile terminal according to the direction of the two gesture operations, including:
确定用于应用图标位置调整的中心轴线,所述中心轴线与所述方向重复的两次滑动操作的方向垂直,且经由所述移动终端桌面的中心;determining a central axis for adjusting the position of the application icon, the central axis being perpendicular to the direction of the two sliding operations repeated in the direction, and passing through the center of the desktop of the mobile terminal;
将所述中心轴线两侧的应用图标的位置对调。Swap the positions of the application icons on both sides of the central axis.
优选地,作为另一个实施例,所述N次手势操作为N次抖动操作;Preferably, as another embodiment, the N gesture operations are N shake operations;
所述确定单元确定N次手势操作中是否存在方向重复的两次手势操作包括:The determining unit determining whether there are two gesture operations with repeated directions in the N gesture operations includes:
计算每一次抖动操作对应的重力加速度变化矢量,抖动操作对应的重力加速度变化矢量是指:抖动操作之前的重力加速度和发生抖动操作时的重力加速度之间的变化矢量;Calculate the gravitational acceleration change vector corresponding to each shake operation, the gravitational acceleration change vector corresponding to the shake operation refers to the change vector between the gravitational acceleration before the shake operation and the gravitational acceleration when the shake operation occurs;
判断N次抖动操作中是否存在对应的重力加速度变化矢量方向一致或近似一致的连续两次抖动操作,Judging whether there are two consecutive shaking operations in which the direction of the corresponding gravitational acceleration change vector is consistent or approximately the same in the N shaking operations,
如果否,确定所述N次抖动操作中不存在方向重复的两次抖动操作;If not, determine that there are no two shaking operations with repeated directions in the N times of shaking operations;
如果是,确定所述连续两次抖动操作为方向重复的两次抖动操作。If yes, determine that the two consecutive shaking operations are two shaking operations with repeated directions.
所述调整单元依据两次手势操作的方向动态调整移动终端桌面上应用图标位置包括:The adjustment unit dynamically adjusts the position of the application icon on the desktop of the mobile terminal according to the direction of the two gesture operations, including:
向用户发出滑动提示,所述滑动提示用于指导用户沿着所述连续两次抖动操作对应的重力加速度变化矢量方向在所述移动终端桌面上执行滑动操作;Sending a sliding prompt to the user, the sliding prompt is used to guide the user to perform a sliding operation on the desktop of the mobile terminal along the direction of the gravitational acceleration change vector corresponding to the two consecutive shaking operations;
当检测到所述滑动操作时,沿着所述连续两次抖动操作对应的重力加速度变化矢量方向移动所述移动终端桌面上应用图标的位置。When the sliding operation is detected, the position of the application icon on the desktop of the mobile terminal is moved along the direction of the gravitational acceleration change vector corresponding to the two consecutive shaking operations.
至此,完成图9所示的装置描述。So far, the description of the device shown in FIG. 9 is completed.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910496495.4ACN110187809B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting application icon position on desktop of mobile terminal |
| CN201510958207.4ACN105404447B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting the position of application icons on the desktop of a mobile terminal |
| HK16105723.5AHK1217792B (en) | 2016-05-18 | Method and device for adjusting dynamically application icon on desktop of mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510958207.4ACN105404447B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting the position of application icons on the desktop of a mobile terminal |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910496495.4ADivisionCN110187809B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting application icon position on desktop of mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN105404447Atrue CN105404447A (en) | 2016-03-16 |
| CN105404447B CN105404447B (en) | 2019-09-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910496495.4AActiveCN110187809B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting application icon position on desktop of mobile terminal |
| CN201510958207.4AActiveCN105404447B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting the position of application icons on the desktop of a mobile terminal |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910496495.4AActiveCN110187809B (en) | 2015-12-18 | 2015-12-18 | Method and device for dynamically adjusting application icon position on desktop of mobile terminal |
| Country | Link |
|---|---|
| CN (2) | CN110187809B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105824508A (en)* | 2016-04-01 | 2016-08-03 | 广东欧珀移动通信有限公司 | Display method of terminal interface and terminal equipment |
| CN108196744A (en)* | 2017-12-26 | 2018-06-22 | 维沃移动通信有限公司 | The method of adjustment and mobile terminal of a kind of task interface |
| CN113986071A (en)* | 2020-07-27 | 2022-01-28 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101582999A (en)* | 2006-07-13 | 2009-11-18 | 义隆电子股份有限公司 | Control method using touch control panel remote controller and touch control panel remote controller used by same |
| CN102902557A (en)* | 2012-09-07 | 2013-01-30 | 华为终端有限公司 | Method and equipment for placing data of intelligent terminal to top or bottom |
| CN103150119A (en)* | 2013-03-28 | 2013-06-12 | 珠海金山办公软件有限公司 | Touch screen equipment and method and system for controlling location of spreadsheet |
| CN103488407A (en)* | 2012-06-11 | 2014-01-01 | 联想(北京)有限公司 | Method and equipment for controlling display position of operation object icon |
| CN103809894A (en)* | 2012-11-15 | 2014-05-21 | 华为终端有限公司 | Gesture recognition method and electronic equipment |
| CN104850341A (en)* | 2015-04-24 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Mobile terminal and application icon display method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103135987A (en)* | 2013-02-22 | 2013-06-05 | 北京小米科技有限责任公司 | Dynamic icon display method and device |
| CN103577068A (en)* | 2013-10-15 | 2014-02-12 | 广东欧珀移动通信有限公司 | Method for dynamically adjusting size of desktop icon, and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101582999A (en)* | 2006-07-13 | 2009-11-18 | 义隆电子股份有限公司 | Control method using touch control panel remote controller and touch control panel remote controller used by same |
| CN103488407A (en)* | 2012-06-11 | 2014-01-01 | 联想(北京)有限公司 | Method and equipment for controlling display position of operation object icon |
| CN102902557A (en)* | 2012-09-07 | 2013-01-30 | 华为终端有限公司 | Method and equipment for placing data of intelligent terminal to top or bottom |
| CN103809894A (en)* | 2012-11-15 | 2014-05-21 | 华为终端有限公司 | Gesture recognition method and electronic equipment |
| CN103150119A (en)* | 2013-03-28 | 2013-06-12 | 珠海金山办公软件有限公司 | Touch screen equipment and method and system for controlling location of spreadsheet |
| CN104850341A (en)* | 2015-04-24 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Mobile terminal and application icon display method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105824508A (en)* | 2016-04-01 | 2016-08-03 | 广东欧珀移动通信有限公司 | Display method of terminal interface and terminal equipment |
| CN105824508B (en)* | 2016-04-01 | 2019-03-26 | Oppo广东移动通信有限公司 | A terminal interface display method and terminal device |
| CN108196744A (en)* | 2017-12-26 | 2018-06-22 | 维沃移动通信有限公司 | The method of adjustment and mobile terminal of a kind of task interface |
| CN108196744B (en)* | 2017-12-26 | 2019-07-26 | 维沃移动通信有限公司 | A task interface adjustment method and mobile terminal |
| CN113986071A (en)* | 2020-07-27 | 2022-01-28 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
| US12307150B2 (en) | 2020-07-27 | 2025-05-20 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Device control method and apparatus, storage medium, and electronic device |
| Publication number | Publication date |
|---|---|
| HK1217792A1 (en) | 2017-01-20 |
| CN105404447B (en) | 2019-09-20 |
| CN110187809A (en) | 2019-08-30 |
| CN110187809B (en) | 2023-09-26 |
| Publication | Publication Date | Title |
|---|---|---|
| CN103246441B (en) | The screen display method of terminal device and terminal device | |
| EP2851782A2 (en) | Touch-based method and apparatus for sending information | |
| CN103412720B (en) | Process method and the device thereof of touch control type input signal | |
| CN105843531B (en) | A kind of switching method and apparatus of screen pattern | |
| JP6273081B2 (en) | Content moving method and apparatus using pointing device | |
| CN108170356B (en) | Application split screen method and related product | |
| CN103076974B (en) | A kind of unlock method of touch-screen, device and touch panel device | |
| CN103076953B (en) | A kind of method of subscriber terminal equipment preview picture file and subscriber terminal equipment | |
| US20150242100A1 (en) | Detecting intentional rotation of a mobile device | |
| CN104468874A (en) | Method for switching one-handed operation mode and mobile terminal | |
| CN105404447B (en) | Method and device for dynamically adjusting the position of application icons on the desktop of a mobile terminal | |
| CN105260103A (en) | Picture scaling method and electronic device | |
| CN105681657A (en) | Method and terminal device for photographing and focusing | |
| CN108038359A (en) | Unlocking method and related product | |
| CN104238907A (en) | Interface display method and device and terminal equipment | |
| CN104636068B (en) | The operating method and touch control terminal of application icon | |
| CN102999267B (en) | Method and device for viewing list interface of mobile terminal | |
| US10241659B2 (en) | Method and apparatus for adjusting the image display | |
| JP5985125B2 (en) | Display control system and display control method | |
| EP2846232A1 (en) | Method and device for unlocking touch screen | |
| CN104133627A (en) | Zooming display method and electronic equipment | |
| CN103106033A (en) | Method and device of controlling application interface to move and terminal equipment | |
| CN105426087A (en) | Mobile terminal and slide instruction generation method thereof | |
| US10481778B2 (en) | Display device | |
| CN108390999B (en) | Electronic equipment, drop control method, and related products |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| REG | Reference to a national code | Ref country code:HK Ref legal event code:DE Ref document number:1217792 Country of ref document:HK | |
| GR01 | Patent grant | ||
| GR01 | Patent grant |