CN103838465A - 一种生动有趣的桌面图标显示方法及装置 - Google Patents
一种生动有趣的桌面图标显示方法及装置 Download PDFInfo
- Publication number
- CN103838465A CN103838465A CN201410084395.8A CN201410084395A CN103838465A CN 103838465 A CN103838465 A CN 103838465A CN 201410084395 A CN201410084395 A CN 201410084395A CN 103838465 A CN103838465 A CN 103838465A
- Authority
- CN
- China
- Prior art keywords
- icon
- desktop
- icons
- collision
- vivid
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title abstract description 18
- 230000001133 acceleration Effects 0.000 claims description 36
- 238000001514 detection method Methods 0.000 claims description 25
- 238000012856 packing Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 15
- 238000013507 mapping Methods 0.000 claims description 9
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000006073 displacement reaction Methods 0.000 claims description 4
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 abstract description 9
- 230000000694 effects Effects 0.000 abstract description 8
- 238000004134 energy conservation Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 208000003464 asthenopia Diseases 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000007774 longterm Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000000354 decomposition reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本发明公开了一种生动有趣的桌面图标显示方法及装置,所述方法包括以下步骤:进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每一个图标;实时检测图标之间是否发生碰撞;若是,则播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;实时检测图标是否碰撞触摸屏的边缘;若是,则播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。实施本发明后,终端的桌面会呈现出炫耀的动态效果,还会发出相应的图标碰撞声音,同时用户还可以与桌面进行互动,随意改变图标的运动状态,趣味性十足,给用户带来了不少娱乐性和良好的使用及操作体验。
Description
技术领域
本发明涉及移动通信技术领域;具体涉及一种生动有趣的桌面图标显示方法及装置。
背景技术
随着终端的不断更新换代,各种电子产品广泛的被应用到现代生活中。以手机、掌上电脑、PAD为代表的终端,已成为人们日常生活中必不可少的工作、生活工具。并且终端越来越智能化,用户可以自由地安装各种应用,现在终端中安装几十个应用已是非常普遍的情况。然而,目前的桌面图标通常是以传统的网格类型一行一列的排列显示,排列方式不能动态地自动改变,导致桌面图标的显示方式枯燥、单调,桌面显示效果不够美观,且不够个性化,用户在长期使用过程中会有视觉疲劳,没有新鲜感,没有乐趣,大大的降低了用户体验。
发明内容
本发明的目的在于克服现有技术的缺点与不足,提供一种生动有趣的桌面图标显示方法及装置。
本发明的目的可以通过采取如下技术方案达到:
提供一种生动有趣的桌面图标显示方法,该方法包括下述步骤:
进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每一个图标;
实时检测图标之间是否发生碰撞;
若检测到两图标之间发生碰撞,则播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;
实时检测图标是否碰撞触摸屏的边缘;
若检测到有图标碰撞触摸屏边缘,则播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。
进一步而言,所述随机分配一个相同或不相同的初方向给当前桌面的每个图标的具体方法为:
定义触摸屏的水平向右方向为x轴正方向、水平向上方向为y轴正方向;
图标的运动方向用图标与x轴正方向的夹角进行表示,那么运动方向的范围是[0°,360°];
初始化桌面图标时,用随机函数分配一个在[0°,360°]内的初方向给当前桌面的每个图标,图标之间的初方向相同或不相同。
进一步而言,所述随机分配一个相同或不相同的初速度给当前桌面的每个图标的具体方法为:
根据触摸屏的分辨率大小确定图标速度范围,其中,所述图标速度具体是指每秒钟图标的像素位移;
初始化桌面图标时,用随机函数分配一个在图标速度范围内的初速度给当前桌面的每个图标。
进一步而言,所述根据动量守恒定律和能量守恒定律算出碰撞后两个图标各自的运动方向和运动速度,具体包括:
当检测到两个图标碰撞时,以该两个图标的连心线为y轴,以碰撞点为原点,并以碰撞点的切线为x轴建立碰撞坐标系;
根据动量守恒定律和能量守恒定律得到方程组:
根据方程组:
进一步而言,还包括
若按住当前桌面的一个图标,该图标的速度变成零;
当直接松开按住的图标时,图标恢复原来的运动状态。
进一步而言,还包括
若按住当前桌面的一个图标后,以甩出的手势甩开图标,那么根据触摸点的运动状态来计算出图标新的速度大小和运动方向。
进一步而言,还包括
实时监听终端的加速传感器,以获取终端的加速度;
将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;
依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。
进一步而言,图标的加速度值范围为:0~40pixel/s2。
提供一种生动有趣的桌面图标显示装置,包括用于显示的触摸屏,还包括:初始模块、第一碰撞检测模块、第一碰撞处理模块、第二碰撞检测模块和第二碰撞处理模块,其中,
所述的初始模块,用于进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每个图标,并触发第一碰撞检测模块和第二碰撞检测模块;
所述的第一碰撞检测模块,用于实时检测图标之间是否发生碰撞,若是,则触发第一碰撞处理模块;
所述的第一碰撞处理模块,用于当第一碰撞检测模块检测到两图标之间发生碰撞时,播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;
所述的第二碰撞检测模块,用于实时检测图标是否碰撞触摸屏的边缘,若是,则触发第二碰撞处理模块;
所述的第二碰撞处理模块,用于当第二碰撞检测模块检测到有图标碰撞触摸屏边缘时,播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。
进一步而言,还包括:手势处理模块,其由初始模块触发,用于当按住当前桌面的一个图标时,将该图标的速度变成零;若直接松开按住的图标,图标恢复原来的运动状态。
进一步而言,所述手势处理模块还用于,当按住当前桌面的一个图标后,以甩出的手势甩开图标时,根据触摸点的运动状态来计算出图标新的速度大小和运动方向。
进一步而言,还包括:监听模块、映射模块和图标变速处理模块,其中
所述的监听模块,由初始模块触发,用于实时监听终端的加速传感器,以获取终端的加速度,然后触发映射模块;
所述的映射模块,用于将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;然后触发图标变速处理模块;
所述的图标变速处理模块,用于依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。
本发明与现有技术相比有益效果在于:
1、本发明通过进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每一个图标,使得当前桌面图标都处于运动状态,显示方式独特,为用户呈现一个超炫的动态桌面,给用户带来了良好的视觉效果;同时还增加了图标显示的新鲜感和乐趣,避免用户在长期使用过程中产生视觉疲劳,提升了用户体验。
2、本发明还实时检测图标之间是否发生碰撞,若是,则播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;同时还实时检测图标是否碰撞触摸屏的边缘,若是,则播放预先存储的第二碰撞音,且图标按照碰撞时的速度弹回。使得桌面图标的显示不仅具有动态效果,还具有生动的声音效果,进一步提升了图标显示的独特性和乐趣,同时满足了用户的视觉体验和听觉体验。
3、通过实现若按住当前桌面的一个图标,该图标的速度变成零;当松开按住的图标时,图标恢复原来的运动状态;若按住当前桌面的一个图标后,以甩出的手势甩开图标,则根据触摸点的运动状态来计算出图标新的速度大小和运动方向。不仅让桌面变得生动有趣,还让桌面可以与用户进行互动,满足了用户的个性化需求,增加了用户的操作乐趣。
4、通过实时监听终端的加速传感器,以获取终端的加速度;将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。比如当摇晃终端时,当前桌面的图标也会随之改变运动状态,此时就像摇瓶子里面的冰块一样,图标做无规律运动同时发出碰撞声音,进一步提升了用户的操作乐趣和使用体验。
5、实施本发明后,终端的桌面会呈现炫耀的动态效果,还会发出图标的碰撞声音,同时用户还可以与桌面进行互动,随意改变图标的运动状态,趣味性十足,给用户带来了不少娱乐性和良好的使用及操作体验。
附图说明
图1是本发明生动有趣的桌面图标显示方法的部分流程示意图之一;
图2是本发明生动有趣的桌面图标显示方法的部分流程示意图之二;
图3是本发明生动有趣的桌面图标显示方法的部分流程示意图之三;
图4是本发明生动有趣的桌面图标显示装置的结构示意框图;
图5是应用本发明后桌面显示状态的图解示意图;
图6是应用本发明后计算两个图标碰撞后各自运动状态的图解示意图。
具体实施方式
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。
在下面的描述中阐述了更多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。
由于在现有技术中,桌面图标的显示方式存在枯燥、单调,桌面显示效果不够美观,个性化不足等缺点,用户在长期使用过程中会有视觉疲劳,没有新鲜感,没有乐趣,从而严重的影响了用户的使用体验。
本发明实施例提供一种生动有趣的桌面图标显示方法及装置,使得桌面会为用户呈现炫耀的动态效果,还会发出图标的碰撞声音,同时用户还可以随意改变图标的运动状态,趣味性十足,给用户带来了不少娱乐性和良好的使用及操作体验。本方法及装置适用于任一具有触摸屏的智能终端上。
实施例1
本发明实施例1提供一种生动有趣的桌面图标显示方法,图1、图2和图3是根据本方法的流程示意图。显然地,在智能终端上应用本方法时,智能终端上预先存储第一碰撞音和第二碰撞音;而启动本方法后,如图1所示,包括下述步骤:
步骤1,进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每个图标;
更具体地,所述初始化桌面图标包括:给每个图标配置位置、图标大小、质量等信息。其中,在本实施例中图标的位置是用图标外接圆的圆心来表示;图标的大小以图标的外接圆半径来表示;另外,由于桌面的图标大小一般都是一样大,而为了便于计算图标的运动状态变化,默认配置每个图标的质量为1。
步骤2,实时检测图标之间是否发生碰撞;
步骤3,若检测到两图标之间发生碰撞,则播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;
步骤4,实时检测图标是否碰撞触摸屏的边缘;
步骤5,若检测到有图标碰撞触摸屏边缘,则播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。
其中,步骤2与步骤4没有先后顺序;所述的第一碰撞音和第二碰撞音可以相同也可以不同。更具体地:
所述随机分配一个相同或不相同的初方向给当前桌面的每个图标的具体方法为:
定义触摸屏的水平向右方向为x轴正方向、水平向上方向为y轴正方向;
图标的运动方向用图标与x轴正方向的夹角进行表示,那么运动方向的范围是[0°,360°];
初始化桌面图标时,用随机函数分配一个在[0°,360°]内的初方向给当前桌面的每个图标,图标之间的初方向相同或不相同。
所述随机分配一个相同或不相同的初速度给当前桌面的每个图标的具体方法为:
根据触摸屏的分辨率大小确定图标速度范围,其中,所述图标速度具体是指每秒钟图标的像素位移;
初始化桌面图标时,用随机函数分配一个在图标速度范围内的初速度给当前桌面的每个图标。比如,以手机为例进行说明:设手机屏幕宽为WIDTH个像素,那么所述的速度范围可以设定为[WIDTH/10,WIDTH/3];其中10和3是指移动WIDTH个像素所需要的时间,所以WIDTH/10表示的就是速度,即从最左边运动到最右边最慢需要10秒,最快需要3秒。
参照图5和图6,需要说明的是,在本实施例中,是认为图标与图标之间的碰撞,以及图标与触摸屏边缘之间的碰撞是没有能量损失,为完全弹性碰撞,因此,若有图标碰撞触摸屏边缘,那么该图标在碰撞触摸屏边缘后,会按照碰撞时的速度弹回;而所述的根据动量守恒定律和能量守恒定律算出碰撞后两个图标各自的运动方向和运动速度,具体包括:
当检测到两个图标碰撞时,以该两个图标的连心线为y轴,以碰撞点为原点,并以碰撞点的切线为x轴建立碰撞坐标系;
根据动量守恒定律和能量守恒定律得到方程组:
算出碰撞后两个图标各自的速度大小;其中,m为一个图标的质量,在本实施例中,优选的所述m为1,而v10和v20分别为两个图标碰撞时的速度,v1和v2分别为两个图标碰撞后的速度;即该方程组即可算出v1和v2的值;
由于动量是矢量,因此可以对动量在x轴和y轴上进行正交分解,那么在x轴和y轴上也会满足动量守恒;即根据方程组:
算出碰撞后两个图标各自的运动方向;其中,θ10和θ20分别为两个图标碰撞时与x轴正向的夹角;θ1和θ2分别为两个图标碰撞后与x轴正向的夹角,即通过该方程组即可算出θ1和θ2的值。
更进一步地,在本实施例中,是把所有图标的位置保存在一个数组里面,那么在图标的运动过程中,开启一个线程专门来处理图标的碰撞检测。当两个图标外接圆的圆心角的长度为它们半径之和时,则说明这两个图标已经碰撞在一起;另外触摸屏的范围是(0,0)(width,height),当图标外接圆的圆心与手机屏幕的距离变为图标外接圆的半径时,说明图标已经碰撞到屏幕的边缘。
作为一种优选的方案,如图2所示,在步骤1之后,进一步还包括:
若按住当前桌面的一个图标,该图标的速度变成零;当直接松开按住的图标时,图标恢复原来的运动状态。
若按住当前桌面的一个图标后,以甩出的手势甩开图标,则根据触摸点的运动状态来计算出图标新的速度大小和运动方向。
具体地,在Android***中,有一个监听手势识别的类GestureDetector.OnGestureListener,通过里面的onFling方法可获取接触屏幕事件、离开屏幕的事件、离开屏幕时x轴方向的速度和y轴方向的速度;因此所述的根据触摸点的运动状态来计算出图标新的速度大小和运动方向具体是指:
在手势甩出去的瞬间,onFling的方法被调用,以获取这个手势在x轴方向的速度和在y轴方向的速度,通过勾股定律即可算出此时图标的速度大小;然后通过反正切函数即可计算出此时图标的运动方向。
作为进一步的优选方案,若在图标甩出后,图标的速度达到最大值,那么,此时的图标自动开始做匀减速运动,直至图标的运动达到预设值后,开始做匀速运动。而所述的预设值可依据实际情况而设定,比如可以设定为20pixel/s。
作为一种优选的方案,如图3所示,在步骤1之后,进一步还包括:
实时监听终端的加速传感器,以获取终端的加速度;
将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;
依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。
比如,当摇晃终端时,由于终端的加速度变化,桌面上图标也会随之来回晃动,并发出相应的碰撞声,此时,就像摇瓶子里面的冰块一样;而当终端往上运动、往下运动或倾斜向一边时,图标会随之向一边移动,呈现如受自然引力般的视觉效果。
在本实施例中,优选的,所述图标的加速度值范围为:0~40pixel/s2(像素每平方秒)。
实时本方法后,终端的桌面会呈现出炫耀的动态效果,还会发出相应的图标碰撞声音,同时用户还可以与桌面进行互动,随意改变图标的运动状态,趣味性十足,给用户带来了不少娱乐性和良好的使用及操作体验。
实施例2
本发明的实施例2提供了应用上述生动有趣的桌面图标显示方法的装置。下面对该装置涉及的各个模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合,图4是本发明实施例2提供的结构示意框图,如图4所示,本发明生动有趣的桌面图标显示装置包括用于显示的触摸屏,还包括:初始模块、第一碰撞检测模块、第一碰撞处理模块、第二碰撞检测模块和第二碰撞处理模块,其中,
所述的初始模块,用于进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每个图标,并触发第一碰撞检测模块和第二碰撞检测模块;
所述的第一碰撞检测模块,用于实时检测图标之间是否发生碰撞,若是,则触发第一碰撞处理模块;
所述的第一碰撞处理模块,用于当第一碰撞检测模块检测到两图标之间发生碰撞时,播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;
所述的第二碰撞检测模块,用于实时检测图标是否碰撞触摸屏的边缘,若是,则触发第二碰撞处理模块;
所述的第二碰撞处理模块,用于当第二碰撞检测模块检测到有图标碰撞触摸屏边缘时,播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。
作为一种优选的方案,所述生动有趣的桌面图标显示装置进一步还包括:手势处理模块,其由初始模块触发,用于当按住当前桌面的一个图标时,将该图标的速度变成零;当直接松开按住的图标时,图标恢复原来的运动状态。
进一步地,所述手势处理模块还用于,当按住当前桌面的一个图标后,以甩出的手势甩开图标时,根据触摸点的运动状态来计算出图标新的速度大小和运动方向。
作为一种优选的方案,所述生动有趣的桌面图标显示装置进一步还包括:监听模块、映射模块和图标变速处理模块,其中
所述的监听模块,由初始模块触发,用于实时监听终端的加速传感器,以获取终端的加速度,然后触发映射模块;
所述的映射模块,用于将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;然后触发图标变速处理模块;
所述的图标变速处理模块,用于依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。
进一步而言,图标的加速度值范围为:0~40pixel/s2。
更具体地说:
所述初始模块在初始化桌面图标时,具体包括:给每个图标配置位置、图标大小、质量等信息。其中,图标的位置是用图标外接圆的圆心来表示;图标的大小以图标的外接圆半径来表示;每个图标的质量都默认为1;而该初始模块在随机分配一个相同或不相同的初方向给当前桌面的每个图标时,具体执行以下步骤:
定义触摸屏的水平向右方向为x轴正方向、水平向上方向为y轴正方向;
图标的运动方向用图标与x轴正方向的夹角进行表示,那么运动方向的范围是[0°,360°];
初始化桌面图标时,用随机函数分配一个在[0°,360°]内的初方向给当前桌面的每个图标,图标之间的初方向相同或不相同。
初始模块在随机分配一个相同或不相同的初速度给当前桌面的每个图标时,具体执行的步骤包括:
根据触摸屏的分辨率大小确定图标速度范围,其中,所述图标速度具体是指每秒钟图标的像素位移;
初始化桌面图标时,用随机函数分配一个在图标速度范围内的初速度给当前桌面的每个图标。
另外,在本发明中,是认定图标与图标之间的碰撞,以及图标与触摸屏边缘之间的碰撞是没有能量损失,为完全弹性碰撞,因此,所述第一碰撞处理模块在根据动量守恒定律和能量守恒定律分别算出两个图标碰撞后的运动方向和运动速度时,具体执行的步骤包括:
当检测到两个图标碰撞时,以该两个图标的连心线为y轴,以碰撞点为原点,并以碰撞点的切线为x轴建立碰撞坐标系;
根据动量守恒定律和能量守恒定律得到方程组:
算出碰撞后两个图标各自的速度大小;其中,m为一个图标的质量,在本实施例中,优选的所述m为1,而v10和v20分别为两个图标碰撞时的速度,v1和v2分别为两个图标碰撞后的速度;
由于动量是矢量,因此可以对其在x轴和y轴上进行正交分解,那么在x轴和y轴上也会满足动量守恒;即根据方程:
值得注意的是,上述装置实施例中,所包括的各个模块和单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能模块和单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
所述的装置可广泛应用于如手机、电子书、个人数字助理(PDA)、掌上电脑或其他具有触摸屏的终端设备中。
另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。
Claims (13)
1.一种生动有趣的桌面图标显示方法,其特征在于,包括下述步骤:
进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每一个图标;
实时检测图标之间是否发生碰撞;
若检测到两图标之间发生碰撞,则播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;
实时检测图标是否碰撞触摸屏的边缘;
若检测到有图标碰撞触摸屏边缘,则播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。
2.根据权利要求1所述的生动有趣的桌面图标显示方法,其特征在于,所述随机分配一个相同或不相同的初方向给当前桌面的每个图标的具体方法为:
定义触摸屏的水平向右方向为x轴正方向、水平向上方向为y轴正方向;
图标的运动方向用图标与x轴正方向的夹角进行表示,那么运动方向的范围是[0°,360°];
初始化桌面图标时,用随机函数分配一个在[0°,360°]内的初方向给当前桌面的每个图标,图标之间的初方向相同或不相同。
3.根据权利要求1所述的生动有趣的桌面图标显示方法,其特征在于,所述随机分配一个相同或不相同的初速度给当前桌面的每个图标的具体方法为:
根据触摸屏的分辨率大小确定图标速度范围,其中,所述图标速度具体是指每秒钟图标的像素位移;
初始化桌面图标时,用随机函数分配一个在图标速度范围内的初速度给当前桌面的每个图标。
4.根据权利要求1所述的生动有趣的桌面图标显示方法,其特征在于,所述根据动量守恒定律和能量守恒定律算出碰撞后两个图标各自的运动方向和运动速度,具体包括:
当检测到两个图标碰撞时,以该两个图标的连心线为y轴,以碰撞点为原点,并以碰撞点的切线为x轴建立碰撞坐标系;
根据动量守恒定律和能量守恒定律得到方程组:
根据方程组:
5.根据权利要求1所述的生动有趣的桌面图标显示方法,其特征在于,还包括
若按住当前桌面的一个图标,该图标的速度变成零;
当直接松开按住的图标时,图标恢复原来的运动状态。
6.根据权利要求5所述的生动有趣的桌面图标显示方法,其特征在于,还包括
若按住当前桌面的一个图标后,以甩出的手势甩开图标,那么根据触摸点的运动状态来计算出图标新的速度大小和运动方向。
7.根据权利要求1至6任一项所述的生动有趣的桌面图标显示方法,其特征在于,还包括
实时监听终端的加速传感器,以获取终端的加速度;
将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;
依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。
8.根据权利要求7所述的生动有趣的桌面图标显示方法,其特征在于,图标的加速度值范围为:0~40pixel/s2。
9.一种生动有趣的桌面图标显示装置,包括用于显示的触摸屏,其特征在于,还包括:初始模块、第一碰撞检测模块、第一碰撞处理模块、第二碰撞检测模块和第二碰撞处理模块,其中,
所述的初始模块,用于进入桌面时,初始化桌面图标,并随机分配一个相同或不相同的初方向和初速度给当前桌面的每个图标,并触发第一碰撞检测模块和第二碰撞检测模块;
所述的第一碰撞检测模块,用于实时检测图标之间是否发生碰撞,若是,则触发第一碰撞处理模块;
所述的第一碰撞处理模块,用于当第一碰撞检测模块检测到两图标之间发生碰撞时,播放预先存储的第一碰撞音,并根据动量守恒定律和能量守恒定律算出碰撞后两图标各自的运动方向和运动速度;
所述的第二碰撞检测模块,用于实时检测图标是否碰撞触摸屏的边缘,若是,则触发第二碰撞处理模块;
所述的第二碰撞处理模块,用于当第二碰撞检测模块检测到有图标碰撞触摸屏边缘时,播放预先存储的第二碰撞音,且该图标按照碰撞时的速度弹回。
10.根据权利要求9所述的生动有趣的桌面图标显示装置,其特征在于,还包括:手势处理模块,其由初始模块触发,用于当按住当前桌面的一个图标时,将该图标的速度变成零;若直接松开按住的图标,图标恢复原来的运动状态。
11.根据权利要求10所述的生动有趣的桌面图标显示装置,其特征在于,所述手势处理模块还用于,若按住当前桌面的一个图标后,以甩出的手势甩开图标,则根据触摸点的运动状态来计算出图标新的速度大小和运动方向。
12.根据权利要求9至11任一项所述的生动有趣的桌面图标显示装置,其特征在于,还包括:监听模块、映射模块和图标变速处理模块,其中
所述的监听模块,由初始模块触发,用于实时监听终端的加速传感器,以获取终端的加速度,然后触发映射模块;
所述的映射模块,用于将终端加速度值映射至预设的图标加速度值范围,得到图标加速度值,而图标加速度方向与终端加速度方向相反;然后触发图标变速处理模块;
所述的图标变速处理模块,用于依据获取到的图标加速度,使当前桌面的每一个图标做变速运动。
13.根据权利要求12所述的生动有趣的桌面图标显示装置,其特征在于,图标的加速度值范围为:0~40pixel/s2。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410084395.8A CN103838465B (zh) | 2014-03-08 | 2014-03-08 | 一种生动有趣的桌面图标显示方法及装置 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410084395.8A CN103838465B (zh) | 2014-03-08 | 2014-03-08 | 一种生动有趣的桌面图标显示方法及装置 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103838465A true CN103838465A (zh) | 2014-06-04 |
CN103838465B CN103838465B (zh) | 2018-03-02 |
Family
ID=50802033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410084395.8A Expired - Fee Related CN103838465B (zh) | 2014-03-08 | 2014-03-08 | 一种生动有趣的桌面图标显示方法及装置 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103838465B (zh) |
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104368146A (zh) * | 2014-10-17 | 2015-02-25 | 广东小天才科技有限公司 | 一种控制虚拟物体运动的方法和装置 |
CN104699805A (zh) * | 2015-03-20 | 2015-06-10 | 努比亚技术有限公司 | 音乐搜索方法及装置 |
CN105912235A (zh) * | 2016-04-06 | 2016-08-31 | 深圳市金立通信设备有限公司 | 一种桌面处理的方法及终端 |
CN105975149A (zh) * | 2016-04-28 | 2016-09-28 | 深圳市金立通信设备有限公司 | 一种图标的显示方法及终端 |
CN106489112A (zh) * | 2015-03-08 | 2017-03-08 | 苹果公司 | 用于利用视觉和/或触觉反馈操纵用户界面对象的设备、方法和图形用户界面 |
CN106814948A (zh) * | 2015-11-27 | 2017-06-09 | 西安中兴新软件有限责任公司 | 一种移动图标的方法和装置 |
US10248308B2 (en) | 2015-08-10 | 2019-04-02 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interfaces with physical gestures |
US10303354B2 (en) | 2015-06-07 | 2019-05-28 | Apple Inc. | Devices and methods for navigating between user interfaces |
US10346030B2 (en) | 2015-06-07 | 2019-07-09 | Apple Inc. | Devices and methods for navigating between user interfaces |
US10387029B2 (en) | 2015-03-08 | 2019-08-20 | Apple Inc. | Devices, methods, and graphical user interfaces for displaying and using menus |
US10402073B2 (en) | 2015-03-08 | 2019-09-03 | Apple Inc. | Devices, methods, and graphical user interfaces for interacting with a control object while dragging another object |
US10416800B2 (en) | 2015-08-10 | 2019-09-17 | Apple Inc. | Devices, methods, and graphical user interfaces for adjusting user interface objects |
US10437333B2 (en) | 2012-12-29 | 2019-10-08 | Apple Inc. | Device, method, and graphical user interface for forgoing generation of tactile output for a multi-contact gesture |
US10455146B2 (en) | 2015-06-07 | 2019-10-22 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
US10481690B2 (en) | 2012-05-09 | 2019-11-19 | Apple Inc. | Device, method, and graphical user interface for providing tactile feedback for media adjustment operations performed in a user interface |
US10496260B2 (en) | 2012-05-09 | 2019-12-03 | Apple Inc. | Device, method, and graphical user interface for pressure-based alteration of controls in a user interface |
US10592041B2 (en) | 2012-05-09 | 2020-03-17 | Apple Inc. | Device, method, and graphical user interface for transitioning between display states in response to a gesture |
US10599331B2 (en) | 2015-03-19 | 2020-03-24 | Apple Inc. | Touch input cursor manipulation |
US10613634B2 (en) | 2015-03-08 | 2020-04-07 | Apple Inc. | Devices and methods for controlling media presentation |
US10620781B2 (en) | 2012-12-29 | 2020-04-14 | Apple Inc. | Device, method, and graphical user interface for moving a cursor according to a change in an appearance of a control icon with simulated three-dimensional characteristics |
US10698598B2 (en) | 2015-08-10 | 2020-06-30 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10775999B2 (en) | 2012-05-09 | 2020-09-15 | Apple Inc. | Device, method, and graphical user interface for displaying user interface objects corresponding to an application |
US10775994B2 (en) | 2012-05-09 | 2020-09-15 | Apple Inc. | Device, method, and graphical user interface for moving and dropping a user interface object |
US10782871B2 (en) | 2012-05-09 | 2020-09-22 | Apple Inc. | Device, method, and graphical user interface for providing feedback for changing activation states of a user interface object |
US10884608B2 (en) | 2015-08-10 | 2021-01-05 | Apple Inc. | Devices, methods, and graphical user interfaces for content navigation and manipulation |
US10884591B2 (en) | 2012-05-09 | 2021-01-05 | Apple Inc. | Device, method, and graphical user interface for selecting object within a group of objects |
US10908808B2 (en) | 2012-05-09 | 2021-02-02 | Apple Inc. | Device, method, and graphical user interface for displaying additional information in response to a user contact |
US10915243B2 (en) | 2012-12-29 | 2021-02-09 | Apple Inc. | Device, method, and graphical user interface for adjusting content selection |
US10969945B2 (en) | 2012-05-09 | 2021-04-06 | Apple Inc. | Device, method, and graphical user interface for selecting user interface objects |
US11010027B2 (en) | 2012-05-09 | 2021-05-18 | Apple Inc. | Device, method, and graphical user interface for manipulating framed graphical objects |
US11023116B2 (en) | 2012-05-09 | 2021-06-01 | Apple Inc. | Device, method, and graphical user interface for moving a user interface object based on an intensity of a press input |
US11182017B2 (en) | 2015-08-10 | 2021-11-23 | Apple Inc. | Devices and methods for processing touch inputs based on their intensities |
US11231831B2 (en) | 2015-06-07 | 2022-01-25 | Apple Inc. | Devices and methods for content preview based on touch input intensity |
US11240424B2 (en) | 2015-06-07 | 2022-02-01 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
CN114237445A (zh) * | 2021-12-02 | 2022-03-25 | 北京乐我无限科技有限责任公司 | 一种用户图标显示方法及装置 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901098A (zh) * | 2009-05-26 | 2010-12-01 | 鸿富锦精密工业(深圳)有限公司 | 电子显示装置及其图标的显示方法 |
US9977472B2 (en) * | 2010-03-19 | 2018-05-22 | Nokia Technologies Oy | Method and apparatus for displaying relative motion of objects on graphical user interface |
-
2014
- 2014-03-08 CN CN201410084395.8A patent/CN103838465B/zh not_active Expired - Fee Related
Cited By (60)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10969945B2 (en) | 2012-05-09 | 2021-04-06 | Apple Inc. | Device, method, and graphical user interface for selecting user interface objects |
US10782871B2 (en) | 2012-05-09 | 2020-09-22 | Apple Inc. | Device, method, and graphical user interface for providing feedback for changing activation states of a user interface object |
US10942570B2 (en) | 2012-05-09 | 2021-03-09 | Apple Inc. | Device, method, and graphical user interface for providing tactile feedback for operations performed in a user interface |
US11314407B2 (en) | 2012-05-09 | 2022-04-26 | Apple Inc. | Device, method, and graphical user interface for providing feedback for changing activation states of a user interface object |
US11221675B2 (en) | 2012-05-09 | 2022-01-11 | Apple Inc. | Device, method, and graphical user interface for providing tactile feedback for operations performed in a user interface |
US11068153B2 (en) | 2012-05-09 | 2021-07-20 | Apple Inc. | Device, method, and graphical user interface for displaying user interface objects corresponding to an application |
US10592041B2 (en) | 2012-05-09 | 2020-03-17 | Apple Inc. | Device, method, and graphical user interface for transitioning between display states in response to a gesture |
US11023116B2 (en) | 2012-05-09 | 2021-06-01 | Apple Inc. | Device, method, and graphical user interface for moving a user interface object based on an intensity of a press input |
US11010027B2 (en) | 2012-05-09 | 2021-05-18 | Apple Inc. | Device, method, and graphical user interface for manipulating framed graphical objects |
US10496260B2 (en) | 2012-05-09 | 2019-12-03 | Apple Inc. | Device, method, and graphical user interface for pressure-based alteration of controls in a user interface |
US11354033B2 (en) | 2012-05-09 | 2022-06-07 | Apple Inc. | Device, method, and graphical user interface for managing icons in a user interface region |
US10775999B2 (en) | 2012-05-09 | 2020-09-15 | Apple Inc. | Device, method, and graphical user interface for displaying user interface objects corresponding to an application |
US10996788B2 (en) | 2012-05-09 | 2021-05-04 | Apple Inc. | Device, method, and graphical user interface for transitioning between display states in response to a gesture |
US10908808B2 (en) | 2012-05-09 | 2021-02-02 | Apple Inc. | Device, method, and graphical user interface for displaying additional information in response to a user contact |
US10884591B2 (en) | 2012-05-09 | 2021-01-05 | Apple Inc. | Device, method, and graphical user interface for selecting object within a group of objects |
US10481690B2 (en) | 2012-05-09 | 2019-11-19 | Apple Inc. | Device, method, and graphical user interface for providing tactile feedback for media adjustment operations performed in a user interface |
US11947724B2 (en) | 2012-05-09 | 2024-04-02 | Apple Inc. | Device, method, and graphical user interface for providing tactile feedback for operations performed in a user interface |
US10775994B2 (en) | 2012-05-09 | 2020-09-15 | Apple Inc. | Device, method, and graphical user interface for moving and dropping a user interface object |
US10437333B2 (en) | 2012-12-29 | 2019-10-08 | Apple Inc. | Device, method, and graphical user interface for forgoing generation of tactile output for a multi-contact gesture |
US10915243B2 (en) | 2012-12-29 | 2021-02-09 | Apple Inc. | Device, method, and graphical user interface for adjusting content selection |
US10620781B2 (en) | 2012-12-29 | 2020-04-14 | Apple Inc. | Device, method, and graphical user interface for moving a cursor according to a change in an appearance of a control icon with simulated three-dimensional characteristics |
CN104368146A (zh) * | 2014-10-17 | 2015-02-25 | 广东小天才科技有限公司 | 一种控制虚拟物体运动的方法和装置 |
CN104368146B (zh) * | 2014-10-17 | 2017-07-04 | 广东小天才科技有限公司 | 一种控制虚拟物体运动的方法和装置 |
US10402073B2 (en) | 2015-03-08 | 2019-09-03 | Apple Inc. | Devices, methods, and graphical user interfaces for interacting with a control object while dragging another object |
US10387029B2 (en) | 2015-03-08 | 2019-08-20 | Apple Inc. | Devices, methods, and graphical user interfaces for displaying and using menus |
US11977726B2 (en) | 2015-03-08 | 2024-05-07 | Apple Inc. | Devices, methods, and graphical user interfaces for interacting with a control object while dragging another object |
US11112957B2 (en) | 2015-03-08 | 2021-09-07 | Apple Inc. | Devices, methods, and graphical user interfaces for interacting with a control object while dragging another object |
US10338772B2 (en) | 2015-03-08 | 2019-07-02 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10268342B2 (en) | 2015-03-08 | 2019-04-23 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
CN106489112A (zh) * | 2015-03-08 | 2017-03-08 | 苹果公司 | 用于利用视觉和/或触觉反馈操纵用户界面对象的设备、方法和图形用户界面 |
CN106489112B (zh) * | 2015-03-08 | 2019-08-09 | 苹果公司 | 用于利用视觉和/或触觉反馈操纵用户界面对象的设备、方法 |
US10613634B2 (en) | 2015-03-08 | 2020-04-07 | Apple Inc. | Devices and methods for controlling media presentation |
US10860177B2 (en) | 2015-03-08 | 2020-12-08 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10268341B2 (en) | 2015-03-08 | 2019-04-23 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US11054990B2 (en) | 2015-03-19 | 2021-07-06 | Apple Inc. | Touch input cursor manipulation |
US11550471B2 (en) | 2015-03-19 | 2023-01-10 | Apple Inc. | Touch input cursor manipulation |
US10599331B2 (en) | 2015-03-19 | 2020-03-24 | Apple Inc. | Touch input cursor manipulation |
CN104699805A (zh) * | 2015-03-20 | 2015-06-10 | 努比亚技术有限公司 | 音乐搜索方法及装置 |
US10455146B2 (en) | 2015-06-07 | 2019-10-22 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
US10303354B2 (en) | 2015-06-07 | 2019-05-28 | Apple Inc. | Devices and methods for navigating between user interfaces |
US10346030B2 (en) | 2015-06-07 | 2019-07-09 | Apple Inc. | Devices and methods for navigating between user interfaces |
US11681429B2 (en) | 2015-06-07 | 2023-06-20 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
US10841484B2 (en) | 2015-06-07 | 2020-11-17 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
US11835985B2 (en) | 2015-06-07 | 2023-12-05 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
US11240424B2 (en) | 2015-06-07 | 2022-02-01 | Apple Inc. | Devices and methods for capturing and interacting with enhanced digital images |
US10705718B2 (en) | 2015-06-07 | 2020-07-07 | Apple Inc. | Devices and methods for navigating between user interfaces |
US11231831B2 (en) | 2015-06-07 | 2022-01-25 | Apple Inc. | Devices and methods for content preview based on touch input intensity |
US10248308B2 (en) | 2015-08-10 | 2019-04-02 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interfaces with physical gestures |
US11182017B2 (en) | 2015-08-10 | 2021-11-23 | Apple Inc. | Devices and methods for processing touch inputs based on their intensities |
US11327648B2 (en) | 2015-08-10 | 2022-05-10 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10963158B2 (en) | 2015-08-10 | 2021-03-30 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10884608B2 (en) | 2015-08-10 | 2021-01-05 | Apple Inc. | Devices, methods, and graphical user interfaces for content navigation and manipulation |
US11740785B2 (en) | 2015-08-10 | 2023-08-29 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10416800B2 (en) | 2015-08-10 | 2019-09-17 | Apple Inc. | Devices, methods, and graphical user interfaces for adjusting user interface objects |
US10754542B2 (en) | 2015-08-10 | 2020-08-25 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
US10698598B2 (en) | 2015-08-10 | 2020-06-30 | Apple Inc. | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
CN106814948A (zh) * | 2015-11-27 | 2017-06-09 | 西安中兴新软件有限责任公司 | 一种移动图标的方法和装置 |
CN105912235A (zh) * | 2016-04-06 | 2016-08-31 | 深圳市金立通信设备有限公司 | 一种桌面处理的方法及终端 |
CN105975149A (zh) * | 2016-04-28 | 2016-09-28 | 深圳市金立通信设备有限公司 | 一种图标的显示方法及终端 |
CN114237445A (zh) * | 2021-12-02 | 2022-03-25 | 北京乐我无限科技有限责任公司 | 一种用户图标显示方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN103838465B (zh) | 2018-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103838465A (zh) | 一种生动有趣的桌面图标显示方法及装置 | |
US10591995B2 (en) | User interface device responsive to data tag associated with physical location | |
US10228773B2 (en) | Three-dimensional augmented reality object user interface functions | |
JP5439367B2 (ja) | ゲームギアリングを変更するための方法 | |
JP5277081B2 (ja) | 1つ以上の視覚、音響、慣性およびミックスデータに基づく入力にギアリング効果を与える方法ならびに装置 | |
US9933851B2 (en) | Systems and methods for interacting with virtual objects using sensory feedback | |
KR101717604B1 (ko) | 제스처를 이용하는 삼차원 그래픽 생성 | |
JP5932917B2 (ja) | 複数のプラットフォームを越える触覚フィードバックを用いた対話式タッチスクリーンゲーミング比喩 | |
CN105641927B (zh) | 虚拟对象转向控制方法及装置 | |
CN103079661B (zh) | 用于增强现实角色维持并体现观察者的认知的方法 | |
US7352359B2 (en) | Method and system for applying gearing effects to inertial tracking | |
US9921650B2 (en) | Systems and methods for haptically-enabled curved devices | |
US7391409B2 (en) | Method and system for applying gearing effects to multi-channel mixed input | |
KR20190029546A (ko) | 물리적 모델에 기초한 동작 인식 | |
US20160202760A1 (en) | Systems and methods for controlling feedback for multiple haptic zones | |
JP2014010838A (ja) | 拡張現実感シミュレーション連続体 | |
EP3563568A1 (en) | Three-dimensional augmented reality object user interface functions | |
CN108393882A (zh) | 机器人姿态控制方法及机器人 | |
CN103838562A (zh) | 电子设备及其信息处理方法 | |
US20040113931A1 (en) | Human-computer interfaces incorporating haptics and path-based interaction | |
CN117765208A (zh) | 用于生成虚拟对象和声音的方法 | |
Müllenmeister | Simulation of Water Droplets using Metaballs on mobile phones | |
KR20130135691A (ko) | 곡선 트랙 게임용 관성력 발생 및 감지장치 | |
CN102012737A (zh) | 一种触发操作***及其实现方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180302 |