修改Layout.xml

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout 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:background="@color/colorBeijingse2"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
    <!--  <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="50dp"
         android:background="@color/colorBeijingse2"
         >
         <EditText
             android:id="@+id/et02"
             android:layout_width="240dp"
             android:hint="请输入删除的序号"
             android:layout_height="wrap_content"
             android:inputType="number"/>
         <Button
             android:id="@+id/btshanchu1"
             android:layout_width="80dp"
             android:layout_height="40dp"
             android:background="@drawable/button_select1"
             android:layout_gravity="right"
             android:text="删除" />
     </LinearLayout>
   <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
         android:layout_height="300dp" >


     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="300dp"

         android:background="@color/colorBeijingse2"
         android:orientation="horizontal">

         <TextView
             android:id="@+id/tvsnlist1"
             android:layout_width="240dp"
             android:hint="SN"
             android:layout_height="wrap_content" />



     </LinearLayout>
     </ScrollView>-->
   <android.support.v7.widget.RecyclerView
       android:id="@+id/rv01"
       android:layout_width="match_parent"
       android:layout_height="330dp"/>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="45dp"
        android:layout_gravity="end"
        android:gravity="center"
        android:orientation="horizontal">

        <Button
            android:id="@+id/btqingkong1"
            android:layout_width="80dp"
            android:layout_height="40dp"
            android:layout_alignParentBottom="true"
            android:background="@drawable/button_select1"
            android:text="清空" />

        <Button
            android:id="@+id/btOK1"
            android:layout_width="80dp"
            android:layout_height="40dp"
            android:layout_marginLeft="70dp"
            android:background="@drawable/button_select1"
            android:text="确定" />
    </LinearLayout>
</LinearLayout>

猜你喜欢

转载自blog.csdn.net/shijx190221/article/details/88025765