I have a horizontal LinearLayout containing a TextView followed by a Spinner next to it. This LinearLayout is dynamically
LinearLayout
TextView
Spinner
If you have this problem and your TextView is inside a RelativeLayout, try switching the RelativeLayout for a LinearLayout.
RelativeLayout
That fixed the problem for me