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>

  • 相关阅读:
    [BZOJ4876][ZJOI2017]线段树
    [FJOI2016]建筑师(斯特林数)
    WC2018伪题解
    [BZOJ3514]CodeChef MARCH14 GERALD07加强版(LCT+主席树)
    [BZOJ2594][WC2006]水管局长加强版(LCT+Kruskal)
    [洛谷3796]【模板】AC自动机(加强版)
    [洛谷3808]【模板】AC自动机(简单版)
    [BZOJ3261]最大异或和
    [BZOJ3439]Kpm的MC密码
    [POI2006]Periods of Words
  • 原文地址:https://www.cnblogs.com/15157737693zsp/p/7739215.html
Copyright © 2011-2022 走看看