-1

如何在布局的基线上放置一个按钮,如下图所示

在此处输入图像描述

4

1 回答 1

0
 <android.support.design.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <android.support.v7.widget.CardView
            android:id="@+id/cardView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:cardCornerRadius="7dp"
            app:cardElevation="22dp">


        </android.support.v7.widget.CardView>

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_anchor="@+id/cardView"
            app:srcCompat="@drawable/ic_facebook"
            app:layout_anchorGravity="center|bottom" />

    </android.support.design.widget.CoordinatorLayout>
于 2018-06-16T14:16:20.483 回答