学习安卓开发第三天

逸省

关注

阅读 78

2022-03-25

<?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>

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

实现的效果图如下:

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

精彩评论(0)

0 0 举报