I have a RelativeLayout like this:
<RelativeLayout> <TextView1/> <TextView2/> // <-- View.VISIBLE OR View.GONE <TextView3/> <TextView4/> </RelativeLayout>
Each TextView anchored below the previous TextView with android:layout_below .
The problem is that TextView2 may or may not be (either View.VISIBLE or View.GONE ); if it is View.VISIBLE , then everything is fine, but if it is View.GONE , then TextView3 ends with rendering on top of TextView1.
I tried various ways to fix this, but every time RelativeLayout catches me, you cannot refer to the identifier until it is defined.
I hope that I missed something obvious here.
android relativelayout android-relativelayout
James Jul 19 '10 at 7:15 2010-07-19 07:15
source share