首页 > 其他分享 >2023年4月15日

2023年4月15日

时间:2023-04-15 21:47:06浏览次数:41  
标签:layout parent height 2023 15 android id match

登陆界面

<?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"
android:orientation="vertical"
tools:context=".SigninActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="#65C294"
android:gravity="bottom|center"
android:paddingBottom="15dp"
android:text="登录"
android:textColor="#FFFFFB"
android:textSize="24sp" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">

<EditText
android:id="@+id/Username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="40dp"
android:layout_marginRight="30dp"
android:layout_marginBottom="20dp"
android:ems="10"
android:hint="请输入用户名"
android:inputType="textPersonName"
android:paddingLeft="20dp"
android:paddingRight="20dp" />

<EditText
android:id="@+id/Password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:ems="10"
android:hint="请输入密码"
android:inputType="textPassword"
android:paddingLeft="20dp"
android:paddingRight="20dp" />


<TextView
android:id="@+id/Forgetpassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="10dp"
android:layout_marginRight="25dp"
android:text="忘记密码" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<Button
android:id="@+id/Sign_in"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginTop="30dp"
android:layout_marginRight="30dp"
android:layout_marginBottom="20dp"
android:background="#65C294"
android:text="登 录"
android:textColor="#FFFFFB"
android:textSize="18sp" />

<Button
android:id="@+id/Sign_up"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:background="#FFFFFB"
android:text="注 册"
android:textColor="#65C294"
android:textSize="18sp" />
</LinearLayout>
</LinearLayout>

标签:layout,parent,height,2023,15,android,id,match
From: https://www.cnblogs.com/DREAM2021/p/17321946.html

相关文章

  • 2023年4月16日
    <?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:tools="http://schemas.andr......
  • 2023.4.15——软件工程日报
    所花时间(包括上课):2h代码量(行):0行博客量(篇):1篇今天,上午参加了春季招聘会。我了解到的知识点:1.复习了session和cookie的知识;......
  • 【Visual Leak Detector】在 VS 2015 中使用 VLD
    说明使用VLD内存泄漏检测工具辅助开发时整理的学习笔记。本篇介绍在VS2015中使用VLD。同系列文章目录可见《内存泄漏检测工具》目录目录说明1.使用前的准备3.在VS2015中使用VLD3.1无内存泄漏时的输出报告3.2有内存泄漏时的输出报告4.无法正常使用的可能原因1.......
  • kuangbin专题一 简单搜索 点火游戏(FZU-2150)
    FireGameDescriptionFatbrotherandMazeareplayingakindofspecial(hentai)gameonanN*Mboard(Nrows,Mcolumns).Atthebeginning,eachgridofthisboardisconsistingofgrassorjustemptyandthentheystarttofireallthegrass.Firstlyt......
  • 4.15打卡
    #include<iostream>#include<iomanip>usingnamespacestd;intmain(){charA,D,S,Q,ch;while(ch!='Q'){cout<<"Menu:A(dd)D(elete)S(ort)Q(uit),SelectOne:";cin>>ch;if(ch=='A&#......
  • 星起航跨境:卖家在2023年prime活动期间,需要注意的事项
    近日,亚马逊发布公告“是时候为2023年Prime会员日做准备了”,尽管亚马逊还未确定具体的活动日期,但大部分的跨境卖家已经开始为活动做准备了。值得跨境卖家注意的是,亚马逊在去年10月份举办了有史以来第一次Prime抢先体验特卖。卖家在亚马逊会员日的注意事项1、在公告中,亚马逊鼓励卖家......
  • 2023-04-15 uniapp 点击事件冒泡
    简而言之,即父子元素都有点击事件,这时候子元素触发点击事件会连同父元素的点击事件一并触发,这就是冒泡;而需求就是子不触父。解决方案:子元素的点击事件由原来的@click或者@tap统统换成@tap.stop,据说@tap.stop比@click.stop好。注:只需改变子元素点击事件,子变父不变。......
  • ELEC3115 ENGINEERING
    ELEC3115–ELECTROMAGNETICENGINEERINGPartBassignment–T12023DueDate:23:59pm,Monday24thApril2020(Week11)AssignmentssubmittedaftertheDueDatewillbepenalizedbya20%marksreduction.CutoffDate:23:59pm,Tuesday25thApril2020(Week11)......
  • 西南民族大学 春季 2023 训练赛 7
    L1-1人与神Toiterateishuman,torecursedivine.L1-2两小时学完C语言#include<bits/stdc++.h>usingnamespacestd;intmain(){intn,m,k;cin>>n>>m>>k;cout<<max(0,n-m*k);return0;}L1-3强迫症#i......
  • CVPR 2023 深挖无标签数据价值!SOLIDER:用于以人为中心的视觉
    前言 在现今的各种视觉智能场景中,对图像中人的理解和分析一直都是一个非常重要的环节。SOLIDER是CVPR2023录用的一篇来自于阿里达摩院的工作,是一个专门用于支持各种人体任务的视觉预训练模型。它提供一种自监督训练方式,让我们可以充分利用市面上大量的人体无标注数据训练出一......