English 中文(简体)
甲状腺有什么样的症状?
原标题:What are gestures in android?

Can anyone explain me about gestures? What are their use? Can u tell me any practical ideas where we can implement them?

最佳回答

关于这个专题的d.android.com的文章:

rel=“nofollow noreferer”>http://developer.android.com/training/gestures/index.html

地质构造将承认一个用户在屏幕上任意抽取的模式,然后允许你提出申请,从而采取行动。 你们只要认为这种行为比纽特或节省屏幕空间更具有吸引力,就会加以利用。

至于实际想法,这确实取决于你的申请的性质。

问题回答

Gestures通常是使用android.gesture/code>的包裹处理的对安内斯触动敏感的屏幕上的猎物。 最常见的姿态是简单的“主线”,就像在PC上“烟火点”一样。 这一特殊姿态也可通过<代码>探测。 观点.OnClickListener 接口。 接下来最常见的姿态是“rag脚”(如在个人电脑上 mo一.一.),在你先把安乐带走,把lock锁拖到 Android子上。

但是,这些都是最简单的例子,因为姿态包将报告全方位的动向,并允许你应用探测,例如,如果姿态穿透了曲线,如果该运动是锁定的或反锁的,如果该运动是缓慢的“rag”或快速的“浮点”。 你的申请必须能够转换X/Y地点和时间点,以显示这些变动。 您可以利用这些动议进行移动、拖车和装饰虚拟物体,或是选择,或是游戏。

在下一层精密度,SDK包括一个样本,GestureBuilder。 “Gestures Buildinger”),你可以安装和操作在你的赞助者或安乐团上,这将形成一种姿态的“图书馆”。 贵方在服饰时,可将其带至<条码>,代谢,确定该姿态是否与贵图书馆的姿态之一相吻合。 比如,你可能会有“浮点锁”姿态。

然而,没有个性上的承认,但这种认识对于安乐施的前途有着明显的变化。

更详细的信息见《乐器网站》,载于“Gestures





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签