0

For some reasons, I have to create a kind of custom spinner. I meam, I want to display a Button/an ImageButton and onClick on it, I want to display a list. But this list must be floating like with a spinner. The problem is I haven't and I can't add a RelativeLayout as a parent. So how can I add a view floating on the top and looking like a spinner's list ?

I need you ! :D

Kyu_
  • 800
  • 4
  • 10
  • 18

1 Answers1

1

You can use PopupWindow and use showAsDropDown method to show it at any location you want, in your case make use your Button/ImageButton as anchor view.

you can follow this

Community
  • 1
  • 1
Arun C
  • 9,035
  • 2
  • 28
  • 42