将 ListView 样式设置为标准 ContextMenu

发布于 2024-10-04 17:57:42 字数 246 浏览 0 评论 0原文

我想知道默认的 ContextMenu 样式是在哪里定义的......复制/使用它!

我的应用程序中有几个 ListView,使用提供的 TexView 布局 android.R.layout.simple_list_item_1。与 ContextMenu(白色背景)等默认列表相比,我的列表看起来很奇怪(黑色背景)。

因此,如果您知道它在哪里,或者如何使我的 ListView 具有“标准”样式,我会很高兴知道它;)

谢谢 乔

I am wondering where the default ContextMenu style is defined... to copy/use it!

I have few ListView in my app, using the provided TexView layout android.R.layout.simple_list_item_1. My listings are looking odd (black background) compare to the default ones like the ContextMenu (white background).

So if you know where it is, or how to make my ListView having a "standard" style, I would be glad to know about it ;)

Thanks
jo

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

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

发布评论

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

评论(1

月依秋水 2024-10-11 17:57:42

我认为上下文菜单看起来与常规选项菜单相同。这些菜单项的布局可在以下位置找到:

$(SDK_ROOT)/platforms/android-$(API_LEVEL)/data/res/layout/menu_item.xml

I think the Context Menus look identical to the regular Options Menu. And those menu items are setup with a layout found at:

$(SDK_ROOT)/platforms/android-$(API_LEVEL)/data/res/layout/menu_item.xml.

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