已解决,高度设置odp,按权重分配位置
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<!-- 弹窗布局 -->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/pop_recyclerView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<Button
android:id="@+id/btn_confirm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_40c584_4"
android:gravity="center"
android:text="确定"
android:layout_marginTop="8dp"
android:textColor="@color/white"
android:textSize="14sp" />
</LinearLayout>
标签:控件,权重,覆盖,odp,LinerLayout,RecyclerView
From: https://blog.csdn.net/2302_76521583/article/details/141220362