|
|
@@ -0,0 +1,238 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<com.sheep.gamegroup.util.SheepSwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/refresh"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
+ android:id="@+id/ask_scroll_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="fill_vertical"
|
|
|
+ android:layout_marginBottom="60dp"
|
|
|
+ android:fillViewport="true"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:scrollbars="none"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/new_year_ask_iv1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@drawable/new_year_yaoqingzq_bg_3"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ask_act_rule"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginTop="28dp"
|
|
|
+ android:background="@drawable/sp_bg_purple_left_radius_12"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="6dp"
|
|
|
+ android:text="活动规则"
|
|
|
+ android:textColor="#ffffffff"
|
|
|
+ android:textSize="10sp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ask_act_code"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginTop="28dp"
|
|
|
+ android:background="@drawable/sp_bg_purple_left_radius_12"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingStart="6dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:text="我的邀请码:976873"
|
|
|
+ android:textColor="#ffffffff"
|
|
|
+ android:textSize="10sp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ask_act_code_copy"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginStart="2dp"
|
|
|
+ android:layout_marginTop="28dp"
|
|
|
+ android:background="@drawable/sp_bg_purple_right_radius_12"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingStart="7dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:text="复制"
|
|
|
+ android:textColor="#ffffffff"
|
|
|
+ android:textSize="10sp"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/ask_act_code"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/new_year_shape_ask_bg"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_ask_iv1">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/new_year_ask_iv2"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@mipmap/new_year_agm_bg_2"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/new_year_ask_start_view"
|
|
|
+ android:layout_width="14dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/new_year_ask_end_view"
|
|
|
+ android:layout_width="14dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_size"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="0"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ android:textSize="24sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/new_year_ask_iv2"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/tv_money"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/new_year_ask_start_view"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/new_year_ask_iv2" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_money"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:text="0"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ android:textSize="24sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/new_year_ask_iv2"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/new_year_ask_end_view"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/tv_size"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/new_year_ask_iv2" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/new_year_ask_tv1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/friend"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ android:textSize="13sp"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/new_year_ask_tv2"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/new_year_ask_start_view"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_ask_iv2" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/new_year_ask_tv2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/reward"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ android:textSize="13sp"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/new_year_ask_end_view"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/new_year_ask_tv1"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_ask_iv2" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/new_year_tab_1"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ android:background="@drawable/new_year_drawable_selector_ask_tab_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:text="邀请好友"
|
|
|
+ android:textColor="@color/new_year_selector_color_main_tab"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/new_year_ask_tv2"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/new_year_ask_start_view"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_ask_tv1" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/new_year_tab_2"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ android:background="@drawable/new_year_drawable_selector_ask_tab_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:text="好友列表"
|
|
|
+ android:textColor="@color/new_year_selector_color_main_tab"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/new_year_ask_end_view"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/new_year_ask_tv1"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_ask_tv1" />
|
|
|
+
|
|
|
+ <com.kfzs.android.view.widget.WrapContentHeightViewPager
|
|
|
+ android:id="@+id/pager"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:layout_marginEnd="11dp"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_tab_1" />
|
|
|
+
|
|
|
+ <!--邀请小技巧-->
|
|
|
+
|
|
|
+ <include
|
|
|
+ android:id="@+id/new_year_ask_notice"
|
|
|
+ layout="@layout/new_year_ask_getmoney_act_item_three_notice_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="11dp"
|
|
|
+ android:layout_marginTop="@dimen/content_padding_20"
|
|
|
+ android:layout_marginEnd="11dp"
|
|
|
+ android:background="@drawable/new_year_bg_ask_item"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/pager" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:background="#CB0404"
|
|
|
+ android:orientation="vertical"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/new_year_ask_notice">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ask_invite_tv"
|
|
|
+ style="@style/style_button_purple"
|
|
|
+ android:text="立即邀请" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
+</com.sheep.gamegroup.util.SheepSwipeRefreshLayout>
|