I have a ListView
which handles onClick events by showing a PopUpMenu
. However, I want the user to see the little triangle inside the views that can be clicked.
I tried using a Spinner
, because that element looks like what I'm after, but I can't set the title of the Spinner
to anything other than its options.
Of course I could custom make everything but as this is not a new pattern I thought maybe there's already something out there. I just can't find it myself.
Example of what I'm after:
Perhaps you are looking for the prompt attribute that you can set for a spinner?
Beyond that, I would suggest using the SlideExpandableListView if you haven't already invested too much time in your current implementation and if that is the pattern that you would like to achieve:
If you use
ActionBarSherlock
, you can use the triangle ABS uses: