0
私がこれまでにこのレイアウトを持っている:カードビューの中央下部中央にビューを配置するにはどうすればよいですか?
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="150dp">
<android.support.v7.widget.CardView
android:id="@+id/viewA"
android:layout_width="match_parent"
android:layout_height="match_parent"></android.support.v7.widget.CardView>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:clickable="true"
app:layout_anchor="@id/viewA"
app:layout_anchorGravity="bottom|center"/>
しかしどのように私はコーディネーターのレイアウトの(幅の)真ん中下にボタンを配置して持つことができますこのような結果ですか? :