|
|
@@ -1,135 +1,153 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<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:addStatesFromChildren="true"
|
|
|
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
-
|
|
|
- <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="match_parent">
|
|
|
-
|
|
|
- <android.support.design.widget.AppBarLayout
|
|
|
- android:id="@+id/app_layout_main_activity"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
|
-
|
|
|
- <android.support.design.widget.CollapsingToolbarLayout
|
|
|
+<FrameLayout
|
|
|
+ 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.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:addStatesFromChildren="true"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
+
|
|
|
+ <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="match_parent">
|
|
|
+
|
|
|
+ <android.support.design.widget.AppBarLayout
|
|
|
+ android:id="@+id/app_layout_main_activity"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- app:contentScrim="@color/colorPrimary"
|
|
|
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
|
|
|
|
|
-
|
|
|
- <android.support.constraint.ConstraintLayout
|
|
|
+ <android.support.design.widget.CollapsingToolbarLayout
|
|
|
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:textColor="@color/black_text_gray"
|
|
|
- android:textSize="@dimen/text_size_4"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"/>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/linearLayout"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ app:contentScrim="@color/colorPrimary"
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
+
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="@dimen/content_padding"
|
|
|
- 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="@drawable/icon"/>
|
|
|
+ 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_nick"
|
|
|
+ android:id="@+id/txt_main_activity_money"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="@color/black_text_gray"
|
|
|
+ android:textSize="@dimen/text_size_4"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/linearLayout"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="@dimen/content_padding_small"
|
|
|
+ android:layout_marginTop="@dimen/content_padding"
|
|
|
+ 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="@drawable/icon"/>
|
|
|
+
|
|
|
+ <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:textColor="@color/orange_text_light"
|
|
|
+ android:textSize="@dimen/text_size_2"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/txt_get_cash"
|
|
|
+ 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:paddingRight="@dimen/content_padding_small"
|
|
|
+ android:paddingTop="@dimen/content_padding_small"
|
|
|
+ android:text="现金提现"
|
|
|
android:textColor="@color/orange_text_light"
|
|
|
- android:textSize="@dimen/text_size_2"/>
|
|
|
- </LinearLayout>
|
|
|
+ android:textSize="@dimen/text_size_2"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/linearLayout"/>
|
|
|
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/txt_get_cash"
|
|
|
- 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:paddingRight="@dimen/content_padding_small"
|
|
|
- android:paddingTop="@dimen/content_padding_small"
|
|
|
- android:text="现金提现"
|
|
|
- android:textColor="@color/orange_text_light"
|
|
|
- android:textSize="@dimen/text_size_2"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/linearLayout"/>
|
|
|
-
|
|
|
- </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.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">
|
|
|
|
|
|
- </android.support.design.widget.CollapsingToolbarLayout>
|
|
|
+ <include layout="@layout/title"/>
|
|
|
+ </android.support.v7.widget.Toolbar>
|
|
|
|
|
|
- <com.sheep.jiuyan.samllsheep.page.view.RappTabLayout
|
|
|
- android:id="@+id/tab_main_activity"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="40dp"
|
|
|
- android:background="@color/colorPrimary"/>
|
|
|
- </android.support.design.widget.AppBarLayout>
|
|
|
-
|
|
|
- <android.support.v4.widget.NestedScrollView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:fillViewport="true"
|
|
|
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
-
|
|
|
- <android.support.v4.view.ViewPager
|
|
|
- android:id="@+id/viewpager_main_activity"
|
|
|
+ </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:background="@color/colorPrimary"/>
|
|
|
+ </android.support.design.widget.AppBarLayout>
|
|
|
+
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@color/white">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fillViewport="true"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
+
|
|
|
+ <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.v4.view.ViewPager>
|
|
|
+
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
|
|
|
- </android.support.v4.view.ViewPager>
|
|
|
+ </android.support.design.widget.CoordinatorLayout>
|
|
|
|
|
|
- </android.support.v4.widget.NestedScrollView>
|
|
|
+ </android.support.v4.widget.SwipeRefreshLayout>
|
|
|
|
|
|
- </android.support.design.widget.CoordinatorLayout>
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
+ android:id="@+id/img_share"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="right|bottom"
|
|
|
+ android:layout_marginBottom="50dp"
|
|
|
+ android:layout_marginRight="20dp"
|
|
|
+ android:background="@color/sheep_red"
|
|
|
+ android:src="@drawable/chuck_ic_share_white_24dp"/>
|
|
|
|
|
|
-</android.support.v4.widget.SwipeRefreshLayout>
|
|
|
+</FrameLayout>
|