菜单的镀铬式显示 [英] Chrome-like display of menu

查看:139
本文介绍了菜单的镀铬式显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到如何创建一个菜单,看起来像菜单的顶部镀铬Android的一些信息。我曾尝试与执行图标Android 4.0的尝试,但没有运气。尝试googeling,但我唯一发现的是一个答案,上述图标无法实现时API> = 11。

I'm trying to find some information on how to create a menu that looks like the top of the menu for chrome for Android. I have tried experimenting with implementing icons for Android 4.0, but no luck. Tried googeling, but the only thing i found was an answer that said icons can't be implemented when API >= 11.

如何Chrome浏览器做的呢?它是由对设备的这4.0 +!

How does Chrome do it then? It's made for devices that's 4.0+!

推荐答案

任何的ListView 可与 HeaderViewListAdapter 相关联,用这个你可以将单独的布局作为标题和页脚,或向您的列表视图。

Any ListView can be associated with HeaderViewListAdapter, using this you can attach seperate layouts as a header and or footer to your listViews.

由于 Vinodkumar 说,你也可以使用 ListPopupWindow HeaderViewListAdapter 秒。

As Vinodkumar said, you can also use ListPopupWindow with HeaderViewListAdapters.

在Android的参考: HeaderViewListAdapter 和的 ListPopupWindow

In the Android reference: HeaderViewListAdapter and ListPopupWindow

这篇关于菜单的镀铬式显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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