activity_main
<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"
android:padding="5dp"
>
<ImageView
android:layout_marginTop="30dp"
android:src="@mipmap/ic_launcher_round"
android:layout_gravity="center_horizontal"
android:layout_width="120dp"
android:layout_height="120dp"/>
<EditText
android:id="@+id/main_tel"
android:hint="请输入手机号码"
android:layout_marginTop="20dp"
android:layout_gravity="center_horizontal"
android:layout_width="350dp"
android:layout_height="wrap_content" />
<EditText
android:id="@+id/main_pwd"
android:hint="请输入密码"
android:layout_marginTop="20dp"
android:layout_gravity="center_horizontal"
android:layout_width="350dp"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/main_reg"
android:layout_gravity="right"
android:text="新用户注册"
android:layout_marginRight="5dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:text="登录"
android:onClick="onLogin"
android:background="#ea6805"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dp"
android:layout_width="350dp"
android:layout_height="wrap_content" />
</LinearLayout>
activity_detail
<RelativeLayout 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"
>
<TextView
android:id="@+id/title"
android:padding="10dp"
android:text="商品详情"
android:gravity="center"
android:background="#ea6805"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.facebook.drawee.view.SimpleDraweeView
android:layout_below="@+id/title"
android:id="@+id/detail_sdv"
android:layout_width="match_parent"
android:layout_height="200dp" />
<LinearLayout
android:id="@+id/detail_linear"
android:layout_below="@id/detail_sdv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="ve