Does anyone know if this screenshot
reflects this layout correctly?
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/text_view1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:background="#FFFFFF80"
style="@android:style/TextAppearance.DeviceDefault.Large"
android:text="@string/text_1"/>
<TextView
android:id="@+id/text_view2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
app:layout_anchor="@id/text_view1"
app:layout_anchorGravity="bottom|right"
android:background="#FFFF8080"
style="@android:style/TextAppearance.DeviceDefault.Large"
android:text="@string/text_2"/>
<TextView
android:id="@+id/text_view3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
app:layout_anchor="@id/text_view2"
app:layout_anchorGravity="bottom|right"
android:background="#FF8080FF"
style="@android:style/TextAppearance.DeviceDefault.Large"
android:text="@string/text_3"/>
</android.support.design.widget.CoordinatorLayout>
I was not expecting any overlap of text views, but may be my expectations are not correct?
android:layout_gravity="right"
in addition toapp:layout_anchorGravity="right"
.