I have a small problem. Please see image below:

I had problems positioning TextView1 above edittext, so i checked this forum for great solution. I was using android:layout_above="@id/edittext", but it seems it was not working. Then i tried android:layout_below="@id/textview", and it worked nicely. But now i have other problem. I can’t align TextView1 on the top center of edittext below. I tried layout_align options but most of them throws exception “some circular thing”.
Where is the catch? Below is my XML ( of relative layout )
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:padding="10dp" >
<TextView
android:id="@+id/workingTimeTV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView1" />
<EditText
android:id="@+id/hoursET"
android:layout_width="100dp"
android:text="1"
android:gravity="center"
android:maxLength="6"
android:layout_below="@id/workingTimeTV"
android:layout_height="wrap_content"
android:inputType="number" >
<requestFocus />
</EditText>
<TextView
android:id="@+id/hoursTV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="25sp"
android:layout_toRightOf="@id/hoursET"
android:layout_alignBaseline="@id/hoursET"
android:text="h" />
</RelativeLayout>
The problem is you assuming that if set
android:gravity="center"that align child in center, but it not works with relative layout, so you useandroid:layout_centerVertical="true"every child whatever you want to position in center. Following modified code will fulfill your expectation.