Android:iOS UIActionSheet相当于 [英] Android: iOS UIActionSheet equivalent
问题描述
我正在转换一个iOS应用,需要实现从iOS到Android的UIActionSheet等效。
I am converting an iOS app over and need to implement the equivalent of a UIActionSheet from iOS to Android.
哪个UI元素最能模仿这个。
What UI element would most closely mimic this.
我的目标是Android 2.2及以上。
I am targeting Android 2.2 and up.
推荐答案
你会使用一个AlertDialog或Dialog对象。 AlertDialog类可以满足您的要求。 Dialog允许更多的自定义。
You would use an AlertDialog or Dialog object. The AlertDialog class does what you ask. Dialog allows for more customizability.
编辑:如果你想要相同的动画效果,你将需要使用SlidingDrawer。
if you want the same animative effect, you're going to need to use a SlidingDrawer.
注意:除了AlertDialog之外,这些类都不像UIActionSheet那样易于使用。
Note: None of these classes, except maybe the AlertDialog, are as easy to use as the UIActionSheet.
这篇关于Android:iOS UIActionSheet相当于的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!