=================================MainActivity布局---------------登录注册==================
<?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:orientation="vertical"
android:layout_height="match_parent"
tools:context="com.example.dell.zk2.ui.MainActivity">
<EditText
android:id="@+id/edit_phone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入手机号"
/>
<EditText
android:id="@+id/edit_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入密码"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn_login"
android:layout_width="0dp"
android:layout_weight="5"
android:layout_height="wrap_content"
android:text="登录"
/>
<Button
android:id="@+id/btn_regin"
android:layout_width="0dp"
android:layout_weight="5"
android:layout_height="wrap_content"
android:text="注册"
/>
</LinearLayout>
</LinearLayout>
=================================Secound布局---------------注册页面==================
<?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="com.example.dell.zk2.ui.Second">
<EditText
android:id="@+id/edit_phone1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入手机号"
/>
<EditText
android:id="@+id/edit_password1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="请输入密码"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<Button
android:id="@+id/btn_regin1"
android:layout_width="0dp"
android:layout_weight="5"
android:layout_height="wrap_content"
android:text="注册"
/>
</LinearLayout>
</LinearLayout>
=================================Three布局---------------二维码页面==================
<?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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.dell.zk2.ui.Three">
<EditText
android:id="@+id/sao"
android:hint="输入字符"
android:textSize="20sp"
android:layout_width="match_pa`这里写代码片`rent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/btn01"
android:text="生成二维码"
android:textSize="20sp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/img02"
android:src="@mipmap/ic_launcher"
android:layout_gravity="center"
android:layout_width="100dp"
android:layout_marginTop="20dp"
android:layout_height="100dp" />
</LinearLayout>
MVP登录注册-------------布局
猜你喜欢
转载自blog.csdn.net/qq_42859231/article/details/82557101
今日推荐
周排行