In linearlayout mode, the orientation is horizontal. Significant elements are placed side by side. However, your EditText and Spinner have android: layout_width = "fill_parent". So you want to place your EditText and Spinner side by side, but you also want them to populate_parent ...
What would you do if you were given these conflicting conditions?
Obviously, this is a contradiction, and different versions of android provide different priorities for these attributes.
I would suggest changing the EditText and Spinner attributes to:
<EditText ... android:layout_width="0dp" ... /> <Spinner ... android:layout_width="0dp" ... />
And add this to your LinearLayout:
<LinearLayout android:baselineAligned="true" ... />
Entreco
source share