具有下拉菜单视图的操作项

发布于 2024-12-22 02:49:16 字数 135 浏览 4 评论 0原文

我想创建与此图片类似的内容,您可以在其中选择操作视图,然后它会弹出一个项目下拉列表,这只是菜单项的子菜单还是其他内容?

在此处输入图像描述

I want to create something similar to this picture where you select the action view and it brings up a dropdown list of items, is that just a submenu of the menu item or something else?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

享受孤独 2024-12-29 02:49:16

最简单的方法可能是捆绑 GreenDroid 库并使用他们的解决方案: https://github.com/ cyrimottier/GreenDroid

虽然这也可以通过包含一些按钮的基本 LinearLayout 来完成。

The easiest way to do that is probably to bundle in the GreenDroid library and use their solution: https://github.com/cyrilmottier/GreenDroid

Although this could also be accomplished with a basic LinearLayout containing a few buttons.

够运 2024-12-29 02:49:16

我的猜测是,您可以通过带有选项的新活动来完成此操作。正常的对话都是这样创建的。然后使用适当的布局使其看起来像这样。您可以从 android 源代码中获取选项对话框的源代码,然后对其进行相应的样式设置。

希望有帮助。

My guess id that you could do it with a new activity with the options. Normal dialogues are created this way. Then use the adequate layout to make it look like this. You can get the sources for the Option dialogue from the android source code and then style it accordingly.

Hope it helps.

孤星 2024-12-29 02:49:16

它看起来就像一个 Spinner 作为 ActionView 及其自己的适配器。

It's looks like just a Spinner as ActionView with it's own adapter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文