Situation:
I have a searchview widget in my appcompat toolbar that allows custom suggestions via sqlitedatabase.
Problem:
The size of the width you want, can be achieve by using Wrap content . Try this code: searchAutoCompleteTextView.setDropDownWidth(ViewGroup.LayoutParams.WRAP_CONTENT);
I came to this answer when i went through this link:
https://www.youtube.com/watch?v=408pMAQFnvs
You must get reference to SearchAutoComplete object which SearchView using , then set its size and change the background resource which has padding's, please refer to my answer here :
https://stackoverflow.com/a/43481639/5255624