我试图找到如何创建一个菜单,看起来像菜单的顶部镀铬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 HeaderViewListAdapter
s.
在Android的参考: HeaderViewListAdapter 和的 ListPopupWindow
In the Android reference: HeaderViewListAdapter and ListPopupWindow