首先配置登陆的xml文件,设置两个EditText和一个Button以及一个CheckBox;
配置代码如下:
<EditText
android:id="@+id/et_userName"
android:layout_width="300dp"
android:layout_height="wrap_content"
/>
</LinearLayout>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_height="wrap_content"
android:layout_width="100dp"
android:text="密 码:"
android:textSize="30dp"
android:textColor="@android:color/black&#