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

Asked
Active
Viewed 101 times
0
Anna
- 499
- 1
- 6
- 24
-
Let me get this straight, you want the result of the spinner to be an image? – Miriana Itani Aug 10 '15 at 08:36
-
I want the spinner act like a "ImageButton" . and not return the text result on him. – Anna Aug 10 '15 at 08:37
-
1@Anna http://stackoverflow.com/questions/21329132/android-custom-dropdown-popup-menu – IntelliJ Amiya Aug 10 '15 at 08:58
-
@Anna Please check my above comment & below answer .I hope it helps you – IntelliJ Amiya Aug 10 '15 at 09:09
2 Answers
2
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
Community
- 1
- 1
IntelliJ Amiya
- 74,896
- 15
- 165
- 198
1
For that you can use Button with ContextMenu or PopupMenu set for that button.
http://javatechig.com/android/android-popup-menu-example
Arun Shankar
- 612
- 1
- 5
- 16