1

I found an excellent article to add a dropdownlist to the toolbar but the problem is that there are spaces between the text and the spinner. How can I remove the spaces between the text and the spinner? link to article

link to screenshot

FuroMix
  • 31
  • 5

1 Answers1

1

If you go into an article which is your following to achieve. You can see in onCreateOptionsMenu they are inflating android.R.layout.simple_spinner_dropdown_item layout to achieve text and dropdown menu which is the default behavior.

If you want to achieve different behavior as per your requirements then you should create your own spinner layout for that you can follow this answer.

Let me know if that can help you. Thanks. Happy coding..!

Pranav P
  • 1,755
  • 19
  • 39