Seeing rather strange behavior in relative layout.
This is the initial state: 
Defined as:
<EditText android:id="@+id/bleedCount" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_toLeftOf="@+id/abrMult" android:layout_below="@+id/textView4" android:layout_marginRight="10dp" android:ems="10" android:inputType="number" > <requestFocus /> </EditText> <TextView android:id="@+id/abrMult" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@+id/abrSubmit" android:layout_alignBaseline="@+id/abrSubmit" android:layout_marginRight="10dp" android:text="x12" /> <Button android:id="@+id/abrSubmit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/textView4" android:layout_alignParentRight="true" android:text="Calculate" />
In onItemSelected from the dropdown menu, it changes as follows:
abrSubmit.setText(pos == 1 ? "Calculate" : "Submit"); abrMult.setVisibility(pos == 1 ? View.VISIBLE : View.GONE); bleedCount.setHint(pos == 1 ? "# of Meow/month" : "# of Meow/year");
and turns into this:

Notice how EditText bleedCount much higher in the second snapshot. The value of bleedCount.getHeight() changes from 72 to 95, and I cannot figure out what causes it.
Lia g source share