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