Android的弹出菜单弹出、菜单、Android

由网友(我背后无人)分享简介:我想提出一个Android应用程序。我有物品显示的列表。我期待创造一个弹出式菜单,就像一个弹出当你点击联系人列表中的联系人的头像。我试图寻找通过Android的参考,但不能找到它。I am making an Android app. I have a list of items displaying. I am...

我想提出一个Android应用程序。我有物品显示的列表。我期待创造一个弹出式菜单,就像一个弹出当你点击联系人列表中的联系人的头像。我试图寻找通过Android的参考,但不能找到它。

I am making an Android app. I have a list of items displaying. I am looking to create a popup menu just like the one that pops up when you tap the avatar of a contact in the contact list. I have tried looking through the Android reference but can not find it.

有没有人创造了这些弹出菜单呢?一个连接到基准或code样品是好的。

Has anyone created one of these popup menus? A link to the reference or a code sample is fine.

菜单的截图:

推荐答案

你所描述的所谓的快速行动。这实际上是一个用户界面模式 - 没有为这个API中现有的小部件或任何东西。他们在谷歌IO讨论它(在此视频看到这里,在15:40标记),并且还出现了关于如何实现它的堆栈溢出,具体的这个问题。如果你开始挖掘身边(现在你知道你在找什么名字),你可能会发现更多。

What you are describing is called a 'Quick Action'. This is actually a user interface pattern - there isn't an existing widget or anything in the API for this. They discussed it at Google IO (See in this video here, at the 15:40 mark), and also there has been some discussion on how to implement it on stack overflow, specifically this question. If you start digging around (now that you know the name of what you are looking for) you might find more.

阅读全文

相关推荐

最新文章