首页 > 其他分享 >5.06

5.06

时间:2024-06-13 18:54:45浏览次数:10  
标签:layout parent height width android 5.06 id

<?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:layout_width="match_parent"
android:layout_height="match_parent"

tools:context=".MainActivity"
android:orientation="vertical">


<TextView

android:id="@+id/et1"
android:layout_marginTop="150dp"
android:layout_width="match_parent"
android:layout_height="75dp"
android:gravity="center"
android:text="登录"
android:textColor="#50120D"
android:textSize="25sp" />

<EditText

android:id="@+id/account"
android:layout_marginTop="15dp"
android:layout_width="match_parent"
android:layout_height="50dp"
android:hint="用户名"
android:gravity="center_vertical"
android:maxLines="1" />

<EditText

android:id="@+id/password"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="50dp"
android:hint="密码"
android:inputType="textPassword"
android:gravity="center_vertical"
android:maxLines="1" />

<LinearLayout
android:layout_marginTop="25dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">

<Button
android:id="@+id/et4"
android:layout_width="100dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:onClick="login"
android:text="登录"
android:textSize="15sp" />

<Button
android:id="@+id/et5"
android:layout_width="100dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:onClick="reg"
android:text="注册"
android:textSize="15sp" />

</LinearLayout>


</LinearLayout>




标签:layout,parent,height,width,android,5.06,id
From: https://www.cnblogs.com/kongxiangzeng/p/18246540

相关文章

  • 2024.05.06
    所花时间(包括上课): 4 h代码量(行): 400   左右搏客量(篇):1了解到的知识点: element-plus的使用备注(其他): <template><div><el-form:model="form":rules="rules"ref="form"label-width="100px">......
  • 渝 2024.05.06 流(重庆八中谢自均)
    渝2024.05.06流(重庆八中谢自均)渝2024.05.06流(重庆八中谢自均)2CF1630FMakingItBipartite即选出来最多点,使得不存在一个点既是其他点的倍数又是其他点的因数。建图。\(i_0\)表示\(i\)为其他点的因数,\(i_1\)表示倍数。发现一个连边方式:\((i_0,i_1)\)连一条边(不能同......