I have a Layout with a set of widgets on the left side, and others on the right side.
Now I want to put a button in the centre, below to two textviews (one being on the left and the other one being on the right).
I get an error (“duplicate attribute”) with the following code:
android:layout_centerInParent="true"
android:layout_below="@id/text_left"
android:layout_below="@id/text_right"
How can I solve this?
Thanks.
You are setting the
layout_belowtwice.If you want the layout in question to be below both of those, try combining both of the
text_leftandtext_rightinto one layout and then uselayout_belowand assign it the name you gave to the layout that contains the combination oftext_leftandtext_right.