Android的动作片 [英] Android Action sheet

查看:125
本文介绍了Android的动作片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iPhone,有动作片的概念。我想在Android的一个按钮,点击使用相同的功能,但Android不具备操作手册。谁能告诉我行动表上相当于Android中?

In iPhone, there is the concept of Action Sheet. I want to use the same functionality on a button click in Android, but Android doesn't have Action Sheet. Can anyone tell me the equivalent of Action Sheet in Android?

推荐答案

您可以使用弹出式菜单中的Andr​​oid

You may use Popup Menu in Android

一个弹出菜单中显示的锚定到调用菜单视图在垂直列表项的列表。这是很好的,用于提供的,涉及到特定的内容或以提供一个命令的第二部分的选择动作的溢出。在弹出的菜单操作不应该直接影响到相应的内容,这就是上下文动作是。相反,在弹出菜单是,涉及到的内容地区的活动扩展行动。

A popup menu displays a list of items in a vertical list that's anchored to the view that invoked the menu. It's good for providing an overflow of actions that relate to specific content or to provide options for a second part of a command. Actions in a popup menu should not directly affect the corresponding content—that's what contextual actions are for. Rather, the popup menu is for extended actions that relate to regions of content in your activity.

这篇关于Android的动作片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆