|
|
@@ -1,145 +1,110 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:background="#F5F5F5">
|
|
|
|
|
|
<include layout="@layout/title" />
|
|
|
|
|
|
- <ScrollView
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="?attr/actionBarSize"
|
|
|
+ android:layout_marginBottom="94dp"
|
|
|
android:scrollbars="none">
|
|
|
|
|
|
- <LinearLayout
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/icon_iv"
|
|
|
+ android:layout_width="@dimen/view_size_90"
|
|
|
+ android:layout_height="@dimen/view_size_90"
|
|
|
+ android:src="@mipmap/icon"
|
|
|
+ android:layout_marginTop="64dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/app_name_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="14dp"
|
|
|
+ android:text="小绵羊授权登录"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/text_size_16"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/icon_iv" />
|
|
|
|
|
|
<include
|
|
|
- android:id="@+id/empty_view"
|
|
|
- layout="@layout/empty_view"
|
|
|
+ android:id="@+id/sdk_change_user"
|
|
|
+ layout="@layout/include_sdk_user"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_below="@+id/check_net_ll"
|
|
|
- android:visibility="gone" />
|
|
|
-
|
|
|
- <android.support.constraint.ConstraintLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginTop="@dimen/content_padding_30"
|
|
|
+ android:layout_height="52dp"
|
|
|
+ android:layout_marginTop="63dp"
|
|
|
android:background="@color/white"
|
|
|
- android:paddingBottom="@dimen/content_padding_15">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/icon_iv"
|
|
|
- android:layout_width="@dimen/view_size_90"
|
|
|
- android:layout_height="@dimen/view_size_90"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_9"
|
|
|
- android:src="@mipmap/icon"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/app_name_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/app_name_tv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_40"
|
|
|
- android:text="小绵羊授权登录"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="@dimen/text_size_16"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/user_icon_iv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent" />
|
|
|
-
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/name_tv"
|
|
|
- style="@style/txt_style_15_black"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/content_padding_30"
|
|
|
- android:layout_marginTop="@dimen/content_padding_5"
|
|
|
- android:text=""
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/user_icon_iv" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/invite_num_tv"
|
|
|
- style="@style/txt_style_15_black"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/content_padding_30"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_5"
|
|
|
- android:text=""
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/user_icon_iv"
|
|
|
- app:layout_constraintStart_toStartOf="parent" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/user_icon_iv"
|
|
|
- android:layout_width="55dp"
|
|
|
- android:layout_height="55dp"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_marginRight="@dimen/content_padding_30"
|
|
|
- android:paddingTop="@dimen/content_padding_3"
|
|
|
- android:src="@mipmap/icon"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1px"
|
|
|
- android:layout_marginTop="@dimen/content_padding_5"
|
|
|
- android:background="@color/gray_5"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/user_icon_iv" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1px"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_5"
|
|
|
- android:background="@color/gray_5"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/user_icon_iv" />
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/app_name_tv" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/change_account_tv"
|
|
|
- style="@style/txt_style_15_black"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/content_padding_30"
|
|
|
- android:layout_marginTop="@dimen/content_padding_20"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_5"
|
|
|
- android:text="切换账号"
|
|
|
- android:textColor="#36A5ED"
|
|
|
- android:textSize="18sp"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/user_icon_iv" />
|
|
|
-
|
|
|
-
|
|
|
- <com.github.ybq.android.spinkit.SpinKitView
|
|
|
- android:id="@+id/loading_view_img"
|
|
|
- style="@style/SpinKitView.Large.ThreeBounce"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:visibility="invisible"
|
|
|
- android:layout_marginTop="@dimen/content_padding_20"
|
|
|
- app:SpinKit_Color="@color/colorAccent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/change_account_tv" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/change_commit"
|
|
|
- style="@style/style_button"
|
|
|
- android:text="授权登录"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/loading_view_img" />
|
|
|
- </android.support.constraint.ConstraintLayout>
|
|
|
- </LinearLayout>
|
|
|
- </ScrollView>
|
|
|
+ <View
|
|
|
+ android:id="@+id/sdk_change_user_line"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/sdk_change_user" />
|
|
|
|
|
|
+ <android.support.v7.widget.RecyclerView
|
|
|
+ android:id="@+id/sdk_change_user_list"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/sdk_change_user_line" />
|
|
|
|
|
|
-</LinearLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/change_account_tv"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="1dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:paddingStart="35dp"
|
|
|
+ android:paddingTop="22dp"
|
|
|
+ android:paddingEnd="35dp"
|
|
|
+ android:paddingBottom="22dp"
|
|
|
+ android:text="添加账号"
|
|
|
+ android:textColor="#36A5ED"
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/sdk_change_user_list"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
+
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="94dp"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:background="#F5F5F5"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/change_commit"
|
|
|
+ style="@style/style_button_full"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_marginStart="36dp"
|
|
|
+ android:layout_marginEnd="36dp"
|
|
|
+ android:layout_marginBottom="29dp"
|
|
|
+ android:text="授权登录" />
|
|
|
+
|
|
|
+ <com.github.ybq.android.spinkit.SpinKitView
|
|
|
+ android:id="@+id/loading_view_img"
|
|
|
+ style="@style/SpinKitView.Large.ThreeBounce"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_above="@+id/change_commit"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:visibility="invisible"
|
|
|
+ app:SpinKit_Color="@color/colorAccent" />
|
|
|
+</RelativeLayout>
|