修改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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在 login_layout.xml 中添加垂直线性布局,包含一个用户名输入框,密码输入框和一个登录按钮的代码如下: ``` <?xml version="1.0" encoding="utf-8"?> <DirectionalLayout xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:height="match_parent" ohos:width="match_parent" ohos:orientation="vertical"> <TextField ohos:id="$+id:username" ohos:height="60vp" ohos:width="match_parent" ohos:hint="请输入用户名" /> <TextField ohos:id="$+id:password" ohos:height="60vp" ohos:width="match_parent" ohos:inputType="password" ohos:hint="请输入密码" /> <Button ohos:id="$+id:login_button" ohos:height="60vp" ohos:width="match_parent" ohos:text="登录" /> </DirectionalLayout> ``` 在 register_layout.xml 中添加一个用户名输入框,密码输入框和一个确认密码输入框以及一个注册按钮的代码如下: ``` <?xml version="1.0" encoding="utf-8"?> <DirectionalLayout xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:height="match_parent" ohos:width="match_parent" ohos:orientation="vertical"> <TextField ohos:id="$+id:username" ohos:height="60vp" ohos:width="match_parent" ohos:hint="请输入用户名" /> <TextField ohos:id="$+id:password" ohos:height="60vp" ohos:width="match_parent" ohos:inputType="password" ohos:hint="请输入密码" /> <TextField ohos:id="$+id:confirm_password" ohos:height="60vp" ohos:width="match_parent" ohos:inputType="password" ohos:hint="请确认密码" /> <Button ohos:id="$+id:register_button" ohos:height="60vp" ohos:width="match_parent" ohos:text="注册" /> </DirectionalLayout> ``` 注意,以上代码仅供参考,具体布局和样式可以根据实际需求进行修改
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值