0
点赞
收藏
分享

微信扫一扫

学习安卓开发第三天

逸省 2022-03-25 阅读 78
<?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=".MainActivity">
<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

    android:paddingBottom="20dp"
    android:hint="qq号/微信号/email"
    android:drawableLeft="@mipmap/zhanghao"

    />
<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="20dp"
    android:hint="你妈的密码"
    android:drawableLeft="@mipmap/mima"/>
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="登录啦"
    android:textColor="#E0F7FA"
    android:background="#00BCD4"
    android:textSize="17dp"/>


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="登录遇到的问题"
        android:layout_gravity="center_horizontal"
        android:paddingTop="20dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</LinearLayout>

主要内容是线型布局管理器

实现的效果图如下:

 不难,挺简单的,感觉,大家坚持学就行啦,冲冲冲

举报

相关推荐

第三天学习

java学习第三天

打卡学习第三天

jQuery学习第三天

javaScript学习第三天

RHCSA学习第三天

寒假学习第三天

编程学习第三天

0 条评论