Android 微信登录框

版权声明:本博所有原创文章,欢迎转载但不得作为商业用途,转载请注明出处。 https://blog.csdn.net/qq_16587307/article/details/86580930

activity_main.xml代码:

​
<?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="#FFFFFF"
        android:background="#FF009688"
        />
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="登陆遇到问题?"
        android:gravity="center_horizontal"
        android:paddingTop="20dp"/>

</LinearLayout>

效果:

猜你喜欢

转载自blog.csdn.net/qq_16587307/article/details/86580930