Anna
Anna

Reputation: 499

How to change the view of Spinner?

How to change the Spinner view like in the picture? After i pick rows i dont want the Spinner show me the result on it, Just keep the "some Image" without get the result on the Spinner View enter image description here

Upvotes: 0

Views: 103

Answers (2)

IntelliJ Amiya
IntelliJ Amiya

Reputation: 75788

Popup menu is an overflow menu like Spinner actions. PopupMenu is available from API level 11.Android Popup Menu displays the menu below the anchor text if space is available otherwise above the anchor text. It disappears if you click outside the popup menu.

For this,Please check this demo android-popup-menu-example And SO Answer .

You can read more about PopupMenu here

http://developer.android.com/reference/android/widget/PopupMenu.html

Upvotes: 2

Arun Shankar
Arun Shankar

Reputation: 622

For that you can use Button with ContextMenu or PopupMenu set for that button. http://javatechig.com/android/android-popup-menu-example

Upvotes: 1

Related Questions