ringkjob
ringkjob

Reputation: 193

Chrome-like display of menu

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.

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

enter image description here

Upvotes: 2

Views: 1404

Answers (2)

Nagaraja L
Nagaraja L

Reputation: 21

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

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

In the Android reference: HeaderViewListAdapter and ListPopupWindow

Upvotes: 2

Vinodkumar
Vinodkumar

Reputation: 392

Use popup list window to achieve this. As you can add header and footer to any list, you can create one linear layout with back forward and star like options.. Add that view to the popup window.

Upvotes: 2

Related Questions