实现效果如图
操作方法
使根布局设置clipChildren =false,然后将要设置突出的布局位置设置固定,如android:layout_gravity=”bottom”代码如下
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/pure_white"
android:clipChildren="false"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/show_layout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
>
</RelativeLayout>
<LinearLayout
android:id="@