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
Asked
Active
Viewed 58 times
1 Answers
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
-
I hope, you will give upvote as well. Thanks for accepting the answer. Happy to help you. – Pranav P Jun 01 '20 at 02:00