You are trying to reference each other's two layouts in your layout. Some of the codes show, as shown below,
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <RelativeLayout android:id="@+id/left" android:layout_toLeftOf="@+id/right" /> <RelativeLayout android:id="@+id/right" android:layout_toRightOf="@+id/left" /> </RelativeLayout>
This will eliminate cyclical dependency.
How to fix?
Set the gravity type of one layout, another location refers to it.
In this case, remove android: layout_toRightOf = "@ + id / left"
Since gravity remains by default, delete this line. This will be good.
Good luck @. @
source share