0
动态增加和减少相对布局,当回收商查看从屏幕底部弹出时,我想缩小相对布局的大小,并在使用它之后屏幕将恢复到正常大小(在回收站查看im sung图标放在相对视图上)动态增加和减少相对布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_weight="1">
////////tool bar
<include layout="@layout/toolbar" />
<RelativeLayout
android:id="@+id/rel1"
android:layout_width="wrap_content"
android:layout_height="400dp"
android:layout_below="@+id/toolbar"
android:layout_weight="1">
<com.cmlibrary.CircleMenu
android:id="@+id/circle_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="180dp"
android:layout_marginTop="180dp"
/>
</RelativeLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_below="@+id/rel1"
android:padding="5dp" />
</RelativeLayout>
欢迎来到SO!请参阅[如何提出一个好问题?](https://stackoverflow.com/help/how-to-ask)和[如何创建一个最小,完整和可验证的示例](https:// stackoverflow.com/help/mcve)。 – Olaia