|
|
@@ -1,226 +1,181 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<com.sheep.gamegroup.util.SheepSwipeRefreshLayout 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:id="@+id/ask_invite_rl"
|
|
|
+ android:id="@+id/refresh"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
tools:context="com.sheep.gamegroup.view.activity.AskGetMoneyAct">
|
|
|
|
|
|
- <com.sheep.gamegroup.util.SheepSwipeRefreshLayout
|
|
|
- android:id="@+id/refresh"
|
|
|
+ <android.support.v4.widget.NestedScrollView
|
|
|
+ android:id="@+id/ask_scroll_view"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
-
|
|
|
- <android.support.v4.widget.NestedScrollView
|
|
|
- android:id="@+id/ask_scroll_view"
|
|
|
+ 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">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
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">
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
+ android:background="#FFD269">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ask_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ <!--底部有白条,用这一层覆盖-->
|
|
|
+ <View
|
|
|
+ android:id="@+id/ask_top_3"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:layout_marginTop="300dp"
|
|
|
+ android:background="#FFD269" />
|
|
|
+ <!--内容 注:layout_marginBottom 为底部添加一点空间-->
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:background="#FFD269">
|
|
|
+ android:baselineAligned="false"
|
|
|
+ android:descendantFocusability="beforeDescendants"
|
|
|
+ android:focusable="true"
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/ask_bg"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
|
|
|
- <!--底部有白条,用这一层覆盖-->
|
|
|
<View
|
|
|
- android:id="@+id/ask_top_3"
|
|
|
+ android:id="@+id/ask_top_1"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="100dp"
|
|
|
- android:layout_marginTop="300dp"
|
|
|
- android:background="#FFD269" />
|
|
|
- <!--内容 注:layout_marginBottom 为底部添加一点空间-->
|
|
|
+ android:layout_height="320dp" />
|
|
|
+
|
|
|
<LinearLayout
|
|
|
+ android:id="@+id/ask_top_2"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_10"
|
|
|
- android:baselineAligned="false"
|
|
|
- android:descendantFocusability="beforeDescendants"
|
|
|
- android:focusable="true"
|
|
|
- android:focusableInTouchMode="true"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/ask_top_1"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="320dp" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/ask_top_2"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="60dp"
|
|
|
- android:layout_marginBottom="@dimen/content_padding_20"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1">
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:layout_marginBottom="@dimen/content_padding_20"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <TextView
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1">
|
|
|
|
|
|
- android:id="@+id/tv_size"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:text="@string/app_name"
|
|
|
- android:textColor="#ffffff"
|
|
|
- android:textSize="24sp"
|
|
|
- android:textStyle="bold" />
|
|
|
+ <TextView
|
|
|
+
|
|
|
+ android:id="@+id/tv_size"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:text="@string/app_name"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_below="@id/tv_size"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:text="@string/friend"
|
|
|
+ android:textColor="#ffffff"
|
|
|
+ android:textSize="13sp" />
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/tv_money_ll"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_below="@id/tv_size"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:text="@string/friend"
|
|
|
- android:textColor="#ffffff"
|
|
|
- android:textSize="13sp" />
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/tv_money_ll"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="¥"
|
|
|
- android:textColor="#FCFF00"
|
|
|
- android:textSize="12sp" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_money"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textColor="#FCFF00"
|
|
|
- android:textSize="24sp"
|
|
|
- android:textStyle="bold" />
|
|
|
- </LinearLayout>
|
|
|
+ android:text="¥"
|
|
|
+ android:textColor="#FCFF00"
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
<TextView
|
|
|
+ android:id="@+id/tv_money"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_below="@id/tv_money_ll"
|
|
|
- android:layout_centerHorizontal="true"
|
|
|
- android:text="@string/reward"
|
|
|
- android:textColor="#ffffff"
|
|
|
- android:textSize="13sp" />
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <android.support.design.widget.TabLayout
|
|
|
- android:id="@+id/indicator"
|
|
|
- style="@style/style_tab_askgetmoney" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="1dp"
|
|
|
- android:background="@color/yellow_FFAD3C" />
|
|
|
-
|
|
|
- <com.kfzs.duanduan.view.ViewPagerAutoHeigh
|
|
|
- android:id="@+id/pager"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginEnd="@dimen/content_padding_10"
|
|
|
- android:layout_marginStart="@dimen/content_padding_10"
|
|
|
- android:layout_marginTop="@dimen/content_padding_10"
|
|
|
- android:minHeight="@dimen/ask_friend_list_h"
|
|
|
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
-
|
|
|
- <!--发放情况-->
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/homepage_item_notice_layout"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="@dimen/content_padding_10"
|
|
|
- android:layout_marginStart="@dimen/content_padding_10"
|
|
|
- android:layout_marginTop="@dimen/content_padding_10"
|
|
|
- android:background="@drawable/x_shap_shadow_bg_rectgangle_purple"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:padding="@dimen/content_padding_10"
|
|
|
- android:visibility="gone">
|
|
|
+ android:textColor="#FCFF00"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="发放情况:"
|
|
|
+ android:layout_below="@id/tv_money_ll"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:text="@string/reward"
|
|
|
android:textColor="#ffffff"
|
|
|
- android:textSize="12sp" />
|
|
|
+ android:textSize="13sp" />
|
|
|
|
|
|
- <com.sunfusheng.marqueeview.MarqueeView
|
|
|
- android:id="@+id/ask_award_info"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textColor="#ffffff"
|
|
|
- android:textSize="12sp"
|
|
|
- app:mvAnimDuration="1000"
|
|
|
- app:mvDirection="right_to_left"
|
|
|
- app:mvInterval="3000"
|
|
|
- app:mvSingleLine="true" />
|
|
|
- </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- <!--邀请小技巧-->
|
|
|
|
|
|
- <include layout="@layout/ask_getmoney_act_item_three_notice_layout" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
+ <android.support.design.widget.TabLayout
|
|
|
+ android:id="@+id/indicator"
|
|
|
+ style="@style/style_tab_askgetmoney" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/yellow_FFAD3C" />
|
|
|
+
|
|
|
+ <com.kfzs.duanduan.view.ViewPagerAutoHeigh
|
|
|
+ android:id="@+id/pager"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginEnd="@dimen/content_padding_10"
|
|
|
+ android:layout_marginStart="@dimen/content_padding_10"
|
|
|
+ android:layout_marginTop="@dimen/content_padding_10"
|
|
|
+ android:minHeight="@dimen/ask_friend_list_h"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
+
|
|
|
+ <!--邀请小技巧-->
|
|
|
+
|
|
|
+ <include layout="@layout/ask_getmoney_act_item_three_notice_layout" />
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/content_padding_10"/>
|
|
|
<TextView
|
|
|
- android:id="@+id/ask_act_rule"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="24dp"
|
|
|
- android:paddingStart="10dp"
|
|
|
- android:paddingEnd="6dp"
|
|
|
- android:gravity="center"
|
|
|
- android:layout_marginTop="32dp"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:text="活动规则"
|
|
|
- android:textColor="#ffffffff"
|
|
|
- android:textSize="10sp"
|
|
|
- android:background="@drawable/sp_bg_purple_left_radius_12"/>
|
|
|
- </RelativeLayout>
|
|
|
- </android.support.v4.widget.NestedScrollView>
|
|
|
- </com.sheep.gamegroup.util.SheepSwipeRefreshLayout>
|
|
|
-
|
|
|
- <include
|
|
|
- layout="@layout/title"
|
|
|
- android:visibility="gone" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:background="#ffffff">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/ask_invite_tv"
|
|
|
- style="@style/style_button_purple"
|
|
|
- android:text="立即邀请" />
|
|
|
- </LinearLayout>
|
|
|
-</RelativeLayout>
|
|
|
+ android:id="@+id/ask_invite_tv"
|
|
|
+ style="@style/style_button_purple"
|
|
|
+ android:text="立即邀请" />
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/content_padding_10"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/ask_act_rule"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:layout_marginTop="32dp"
|
|
|
+ android:background="@drawable/sp_bg_purple_left_radius_12"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingEnd="6dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:text="活动规则"
|
|
|
+ android:textColor="#ffffffff"
|
|
|
+ android:textSize="10sp" />
|
|
|
+ </RelativeLayout>
|
|
|
+ </android.support.v4.widget.NestedScrollView>
|
|
|
+</com.sheep.gamegroup.util.SheepSwipeRefreshLayout>
|