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

2023年4月16日

时间:2023-04-15 21:45:24浏览次数:36  
标签:layout 16 height content width 2023 wrap android

<?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"
android:background="@drawable/bg"
tools:context=".MainActivity">

<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:background="@drawable/android"
android:layout_marginTop="200dp"
android:layout_gravity="center"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="账号:"
android:layout_marginTop="30dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="密码:"
android:layout_marginTop="10dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="记住密码"
android:layout_marginLeft="280dp"/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="10dp">

<Button
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="登录"
android:layout_marginLeft="50dp"/>
<Button
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="注册"
android:layout_marginLeft="5dp"/>

</LinearLayout>

</LinearLayout>

标签:layout,16,height,content,width,2023,wrap,android
From: https://www.cnblogs.com/DREAM2021/p/17321953.html

相关文章

  • 2023.4.15——软件工程日报
    所花时间(包括上课):2h代码量(行):0行博客量(篇):1篇今天,上午参加了春季招聘会。我了解到的知识点:1.复习了session和cookie的知识;......
  • L16_用日语表达自己的感想
    概述用日语表达自己的感想或者对某个事情进行说明时,可以采用'形容词名词ですね'的句式,比如有名な温泉です是非常知名的温泉。[说明事物]元気な猿ですね好活泼的猴子啊。[表达感想]动画会话A:わ、猿がいっぱい哇,这么多猴子。B:たくさん写真を撮......
  • https://blog.csdn.net/Slade99X/article/details/119790716
    https://blog.csdn.net/Slade99X/article/details/119790716https://blog.csdn.net/challenglistic/article/details/129556054https://blog.csdn.net/u011215927/article/details/108206559......
  • kuangbin专题一 简单搜索 起火迷宫(UVA-11624)
    Fire!DescriptionJoeworksinamaze.Unfortunately,portionsofthemazehavecaughtonfire,andtheownerofthemazeneglectedtocreateafireescapeplan.HelpJoeescapethemaze.GivenJoe’slocationinthemazeandwhichsquaresofthemazeareo......
  • Java笔记(16) Collection集合-->Set集合-->HashSet
    1.Set接口基本介绍Set是无序集合(添加和取出的顺序不一致,但取出的顺序是固定的),没有索引不允许重复元素,所以最多包含一个nullJDKAPI中Set接口的实现类有:Abstract,ConcurrentHashMap.KeySetView,ConcurrentSkipListSet,CopyOnWriteArraySet,EnumSet,HashSet,JobStateRea......
  • 星起航跨境:卖家在2023年prime活动期间,需要注意的事项
    近日,亚马逊发布公告“是时候为2023年Prime会员日做准备了”,尽管亚马逊还未确定具体的活动日期,但大部分的跨境卖家已经开始为活动做准备了。值得跨境卖家注意的是,亚马逊在去年10月份举办了有史以来第一次Prime抢先体验特卖。卖家在亚马逊会员日的注意事项1、在公告中,亚马逊鼓励卖家......
  • 2023-04-15 uniapp 点击事件冒泡
    简而言之,即父子元素都有点击事件,这时候子元素触发点击事件会连同父元素的点击事件一并触发,这就是冒泡;而需求就是子不触父。解决方案:子元素的点击事件由原来的@click或者@tap统统换成@tap.stop,据说@tap.stop比@click.stop好。注:只需改变子元素点击事件,子变父不变。......
  • 西南民族大学 春季 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录用的一篇来自于阿里达摩院的工作,是一个专门用于支持各种人体任务的视觉预训练模型。它提供一种自监督训练方式,让我们可以充分利用市面上大量的人体无标注数据训练出一......
  • 步进电机常见丢步原因分析及解决方法---TMC5160/TMC4361
    在一些自动控制领域中,步进电机的使用仍占着相当大的比例,步进电机与驱动电路组成的开环数控系统,因其简单的结构、低廉的价格和可靠的性能,目前已在很多行业中(工业自动化、医疗自动化、纺织自动化等)广泛应用。步进电机经常被用于精确定位的场合,因而保证电机不发生失步至关重要。......