In a relative layout I see a pattern as:
<TextView
android:id=“@+id/txt_id”
etc
android:layout_alignBottom="@+id/some_other_txt”
etc
/>
<TextView
android:id="@+id/some_other_txt"
etc
/>
I thought +id
is used only when creating an id for a widget. Is this a kind of “trick” to layout a widget relative to another widget declared later in the file?
UPDATE:
This question is specifically about the RelativeLayout possitioning. Not about the difference in syntax in general as the linked question