I've been stumped on this for a few days. I have an autoCompleteTextView and a button split 50/50 in my layout. The autocomplete works, but the suggestions only take up half of the screen (equivalent to the size that my textView takes up). How could I change this to take up the whole width?
Pardon my terrible paint skills:
Blue = AutoCompleteTextView Red = desired autocomplete suggestions
This seems like a trivial problem, but simply changing the width to fill_parent doesn't work. Any ideas xml or programatically?
SOLUTION: myAutoCompleteTextView.setDropDownWidth(ViewGroup.LayoutParams.MATCH_PARENT)
EDIT: My first question seems to be solved, but now if I switch my button and my autoCompleteTextView I get another weird problem. The width starts at where the textView starts. Leaving me with an undesireable result.