|
|
@@ -1,92 +1,132 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/swipe_main_activity"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:addStatesFromChildren="true"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
- <include layout="@layout/title" />
|
|
|
-
|
|
|
- <android.support.constraint.ConstraintLayout
|
|
|
+ <android.support.design.widget.CoordinatorLayout 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="wrap_content"
|
|
|
- android:background="@color/colorPrimary"
|
|
|
- android:paddingTop="@dimen/content_padding_small">
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/txt_main_activity_money"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="xxx元"
|
|
|
- android:textColor="@color/black_text_gray"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <android.support.design.widget.AppBarLayout
|
|
|
+ android:id="@+id/app_layout_main_activity"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:background="@drawable/texe_background_round_theme_left"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:paddingBottom="@dimen/content_padding_small"
|
|
|
- android:paddingLeft="@dimen/content_padding"
|
|
|
- android:paddingRight="@dimen/content_padding"
|
|
|
- android:paddingTop="@dimen/content_padding_small"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/txt_main_activity_money">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/img_user"
|
|
|
- android:layout_width="20dp"
|
|
|
- android:layout_height="20dp"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:src="@color/colorAccent" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/txt_main_activity_nick"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
|
+
|
|
|
+ <android.support.design.widget.CollapsingToolbarLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/content_padding_small"
|
|
|
- android:text="陈大狗"
|
|
|
- android:textColor="@color/theme_sheep_dark"
|
|
|
- android:textSize="@dimen/text_size_2" />
|
|
|
- </LinearLayout>
|
|
|
+ app:contentScrim="@color/colorPrimary"
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_withdraw"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:background="@drawable/texe_background_round_theme_right"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:paddingBottom="@dimen/content_padding_small"
|
|
|
- android:paddingLeft="@dimen/content_padding"
|
|
|
- android:paddingTop="@dimen/content_padding_small"
|
|
|
- android:text="现金提现"
|
|
|
- android:textColor="@color/theme_sheep_dark"
|
|
|
- android:textSize="@dimen/text_size_2"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/txt_main_activity_money" />
|
|
|
-
|
|
|
- <com.sheep.jiuyan.samllsheep.page.view.RappTabLayout
|
|
|
- android:id="@+id/tab_main_activity"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/layout_heigh_default"
|
|
|
- android:layout_marginTop="@dimen/content_padding_big"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/tv_withdraw"></com.sheep.jiuyan.samllsheep.page.view.RappTabLayout>
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/layout_heigh_default"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:paddingBottom="@dimen/content_padding_big"
|
|
|
+ android:paddingTop="@dimen/content_padding_small">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_main_activity_money"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="xxx元"
|
|
|
+ android:textColor="@color/black_text_gray"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/texe_background_round_theme_left"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:paddingBottom="@dimen/content_padding_small"
|
|
|
+ android:paddingLeft="@dimen/content_padding"
|
|
|
+ android:paddingRight="@dimen/content_padding"
|
|
|
+ android:paddingTop="@dimen/content_padding_small"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/txt_main_activity_money">
|
|
|
+
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
+ android:id="@+id/img_user"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:src="@color/colorAccent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_main_activity_nick"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/content_padding_small"
|
|
|
+ android:text="陈大狗"
|
|
|
+ android:textColor="@color/theme_sheep_dark"
|
|
|
+ android:textSize="@dimen/text_size_2" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <android.support.v4.view.ViewPager
|
|
|
- android:id="@+id/viewpager_main_activity"
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_withdraw"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:background="@drawable/texe_background_round_theme_right"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingBottom="@dimen/content_padding_small"
|
|
|
+ android:paddingLeft="@dimen/content_padding"
|
|
|
+ android:paddingTop="@dimen/content_padding_small"
|
|
|
+ android:text="现金提现"
|
|
|
+ android:textColor="@color/theme_sheep_dark"
|
|
|
+ android:textSize="@dimen/text_size_2"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/txt_main_activity_money" />
|
|
|
+
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <android.support.v7.widget.Toolbar
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/layout_heigh_default"
|
|
|
+ android:layout_gravity="top"
|
|
|
+ app:contentInsetLeft="0dp"
|
|
|
+ app:contentInsetStart="0dp"
|
|
|
+ app:layout_collapseMode="pin">
|
|
|
+
|
|
|
+ <include layout="@layout/title" />
|
|
|
+ </android.support.v7.widget.Toolbar>
|
|
|
+
|
|
|
+ </android.support.design.widget.CollapsingToolbarLayout>
|
|
|
+
|
|
|
+ <com.sheep.jiuyan.samllsheep.page.view.RappTabLayout
|
|
|
+ android:id="@+id/tab_main_activity"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="40dp" />
|
|
|
+ </android.support.design.widget.AppBarLayout>
|
|
|
+
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/white"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/tab_main_activity">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fillViewport="true"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
- </android.support.v4.view.ViewPager>
|
|
|
+ <android.support.v4.view.ViewPager
|
|
|
+ android:id="@+id/viewpager_main_activity"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white">
|
|
|
|
|
|
- </android.support.constraint.ConstraintLayout>
|
|
|
+ </android.support.v4.view.ViewPager>
|
|
|
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
|
|
|
+ </android.support.design.widget.CoordinatorLayout>
|
|
|
|
|
|
-</LinearLayout>
|
|
|
+</android.support.v4.widget.SwipeRefreshLayout>
|