English 中文(简体)
是否有一个使用户能够选择两种选择(偷窃或权利)的质子?
原标题:Is there a UI widget that allows the user to select between two options (left or right)?
  • 时间:2012-04-23 22:51:24
  •  标签:
  • android

我需要实施一个用户在两种选择(左和右)之间选择使用的统一要素。

与“<条码>种子/代码”类似,但如果用户绕过任何途径,则会引发行动,视选定哪一方而定。 如果使用者不接触任何一方,那么th子会回中心。

I think this is a common UI element but I can t seem to think of an example.

<>光线> 还有一个类似的因素,是Pi-lock屏幕上发现的激光器。 就我而言,th子会从中间开始,可能会被拖到任何方向。

Does anybody know of a library that might contain this, or will I need to extend the seekbar to implement it?

最佳回答

我将在TouchEvent()和Draw(Draw())上提出一种观点并加以利用,以确定用户在什么地方接触并据此抽取屏幕。

问题回答

实行自己的部分控制,如:

“entergraph

这一部分控制源代码可在查阅。

我找不到一个包含这一情报单元的图书馆。 如前所述,最接近于你想要的是Switch,但我认为执行你想要的功能的共同办法是使用RadioGroupListView





相关问题
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 ...

热门标签