zoukankan      html  css  js  c++  java
  • 相对布局代码

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >

    <TextView
    android:id="@+id/tv_loginText"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="账号:"
    android:textSize="25sp"
    android:layout_margin="10dp"

    />
    <EditText
    android:id="@+id/et_loginName"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_toRightOf="@id/tv_loginText"
    android:layout_margin="10dp"
    android:hint="请输入账号"

    />
    <TextView
    android:id="@+id/tv_psw"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:text="密码:"
    android:textSize="25sp"
    android:layout_margin="10dp"
    android:layout_below="@id/tv_loginText"
    />
    <EditText
    android:id="@+id/et_psw"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:hint="请输入密码"
    android:password="true"
    android:layout_below="@id/et_loginName"
    android:layout_toRightOf="@id/tv_psw"
    android:layout_marginRight="10dp"
    android:layout_marginLeft="10dp"
    />
    <CheckBox
    android:id="@+id/cb_isAto"
    android:text="是否保存"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/tv_psw"
    android:layout_margin="10dp"
    />
    <Button
    android:id="@+id/bt_Login"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/et_psw"
    android:layout_alignParentRight="true"
    android:text="登录"
    android:layout_margin="10dp"
    />






    </RelativeLayout>

  • 相关阅读:
    Java进阶(七)布隆过滤器
    NIO面试题
    TCP/IP面试题
    SPRING面试题
    SpringBoot(五)原理剖析:Transaction原理
    SpringBoot(四)原理剖析:AOP原理
    SpringBoot(三)原理剖析:IOC原理
    SpringBoot(二)原理剖析:AutoConfiguration原理
    mysql 安全更新
    查看端口占用
  • 原文地址:https://www.cnblogs.com/15157737693zsp/p/7739215.html
Copyright © 2011-2022 走看看