From efa9c4225fe7e89c4acb1eacedd392d79aee240d Mon Sep 17 00:00:00 2001 From: admin <2780501319@qq.com> Date: 星期四, 15 四月 2021 01:59:24 +0800 Subject: [PATCH] 影视豆界面完善 --- BuWanVideo/res/drawable/shape_gold_corn_coupon_exchange_bg.xml | 15 + BuWanVideo/src/com/weikou/beibeivideo/util/ui/ToastUtil.java | 12 + BuWanVideo/res/layout/item_gold_corn_coupon.xml | 42 ++++ BuWanVideo/res/drawable-xhdpi/ic_goldcorn_logo.png | 0 BuWanVideo/res/drawable/shape_gold_corn_task_list_btn.xml | 12 + BuWanVideo/res/drawable/shape_gold_corn_sign_in_cout_bg.xml | 11 + BuWanVideo/res/layout/item_gold_corn_task_list.xml | 67 ++++++ BuWanVideo/res/drawable-xhdpi/ic_goldcorn_bg.png | 0 BuWanVideo/res/drawable/shape_gold_corn_sign_in_score_bg.xml | 7 BuWanVideo/res/drawable-xhdpi/icon_gold_corn.png | 0 BuWanVideo/res/drawable/shape_gold_corn_sign_in_function_bg.xml | 13 + BuWanVideo/res/layout/item_gold_corn_task.xml | 49 ++++ BuWanVideo/res/drawable/shape_gold_corn_task_list_bg.xml | 11 + BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg_highlight.xml | 11 + BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg.xml | 11 + BuWanVideo/res/drawable/shape_gold_corn_task_bg.xml | 12 + BuWanVideo/res/layout/fragment_goldcorn.xml | 14 + BuWanVideo/res/drawable-xhdpi/icon_sign_in.png | 0 BuWanVideo/res/drawable-xhdpi/ic_gold_corn_coupon_bg.png | 0 BuWanVideo/res/layout/item_gold_corn_sign_in.xml | 283 ++++++++++++++++++++++++++++ BuWanVideo/res/values/styles.xml | 25 ++ 21 files changed, 595 insertions(+), 0 deletions(-) diff --git a/BuWanVideo/res/drawable-xhdpi/ic_gold_corn_coupon_bg.png b/BuWanVideo/res/drawable-xhdpi/ic_gold_corn_coupon_bg.png new file mode 100644 index 0000000..9fcba79 --- /dev/null +++ b/BuWanVideo/res/drawable-xhdpi/ic_gold_corn_coupon_bg.png Binary files differ diff --git a/BuWanVideo/res/drawable-xhdpi/ic_goldcorn_bg.png b/BuWanVideo/res/drawable-xhdpi/ic_goldcorn_bg.png new file mode 100644 index 0000000..ed9f305 --- /dev/null +++ b/BuWanVideo/res/drawable-xhdpi/ic_goldcorn_bg.png Binary files differ diff --git a/BuWanVideo/res/drawable-xhdpi/ic_goldcorn_logo.png b/BuWanVideo/res/drawable-xhdpi/ic_goldcorn_logo.png new file mode 100644 index 0000000..62ea16e --- /dev/null +++ b/BuWanVideo/res/drawable-xhdpi/ic_goldcorn_logo.png Binary files differ diff --git a/BuWanVideo/res/drawable-xhdpi/icon_gold_corn.png b/BuWanVideo/res/drawable-xhdpi/icon_gold_corn.png new file mode 100644 index 0000000..f27c088 --- /dev/null +++ b/BuWanVideo/res/drawable-xhdpi/icon_gold_corn.png Binary files differ diff --git a/BuWanVideo/res/drawable-xhdpi/icon_sign_in.png b/BuWanVideo/res/drawable-xhdpi/icon_sign_in.png new file mode 100644 index 0000000..9d7479e --- /dev/null +++ b/BuWanVideo/res/drawable-xhdpi/icon_sign_in.png Binary files differ diff --git a/BuWanVideo/res/drawable/shape_gold_corn_coupon_exchange_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_coupon_exchange_bg.xml new file mode 100644 index 0000000..d0e2f7b --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_coupon_exchange_bg.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + + <solid android:color="#fffeebb1" /> + <item name="android:shadowDx">0</item> + <item name="android:shadowDy">2</item> + <item name="android:shadowColor">#ffffdc73</item> + <corners + android:bottomLeftRadius="15dp" + android:bottomRightRadius="15dp" + android:topLeftRadius="15dp" + android:topRightRadius="15dp" /> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_sign_in_cout_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_cout_bg.xml new file mode 100644 index 0000000..67802df --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_cout_bg.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="#ff70c957" /> + <corners + android:bottomLeftRadius="0dp" + android:bottomRightRadius="0dp" + android:topLeftRadius="20dp" + android:topRightRadius="20dp" /> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_sign_in_function_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_function_bg.xml new file mode 100644 index 0000000..6379321 --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_function_bg.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="#EAFF75" /> + <item name="android:shadowDx">0</item> + <item name="android:shadowDy">1</item> + <item name="android:shadowColor">#005AB3</item> + <corners + android:bottomLeftRadius="5dp" + android:bottomRightRadius="0dp" + android:topLeftRadius="5dp" + android:topRightRadius="0dp" /> + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_sign_in_score_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_score_bg.xml new file mode 100644 index 0000000..31dec80 --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_score_bg.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="#ff72a1ff" /> + <corners android:radius="20dp" /> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg.xml new file mode 100644 index 0000000..6d30e76 --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="#ffffffff" /> + <corners + android:bottomLeftRadius="0dp" + android:bottomRightRadius="20dp" + android:topLeftRadius="0dp" + android:topRightRadius="20dp" /> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg_highlight.xml b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg_highlight.xml new file mode 100644 index 0000000..233ea89 --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_sign_in_user_bg_highlight.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="#FF9600" /> + <corners android:radius="20dp" /> + + <stroke + android:width="1dp" + android:color="#FFFFFF"></stroke> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_task_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_task_bg.xml new file mode 100644 index 0000000..a9f3859 --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_task_bg.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + + <solid android:color="#ffffffff" /> + <corners + android:bottomLeftRadius="8dp" + android:bottomRightRadius="8dp" + android:topLeftRadius="8dp" + android:topRightRadius="8dp" /> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_task_list_bg.xml b/BuWanVideo/res/drawable/shape_gold_corn_task_list_bg.xml new file mode 100644 index 0000000..3dc551b --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_task_list_bg.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + + <solid android:color="#FFF6FB" /> + <corners + android:bottomLeftRadius="6dp" + android:bottomRightRadius="6dp" + android:topLeftRadius="6dp" + android:topRightRadius="6dp" /> + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/drawable/shape_gold_corn_task_list_btn.xml b/BuWanVideo/res/drawable/shape_gold_corn_task_list_btn.xml new file mode 100644 index 0000000..f9a69b1 --- /dev/null +++ b/BuWanVideo/res/drawable/shape_gold_corn_task_list_btn.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + + <solid android:color="#FF078D" /> + <corners + android:bottomLeftRadius="15dp" + android:bottomRightRadius="15dp" + android:topLeftRadius="15dp" + android:topRightRadius="15dp" /> + + +</shape> \ No newline at end of file diff --git a/BuWanVideo/res/layout/fragment_goldcorn.xml b/BuWanVideo/res/layout/fragment_goldcorn.xml new file mode 100644 index 0000000..06883a0 --- /dev/null +++ b/BuWanVideo/res/layout/fragment_goldcorn.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<com.weikou.beibeivideo.widget.MySwipeRefreshLayout 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:background="#0080FF"> + + <androidx.recyclerview.widget.RecyclerView + android:layout_width="match_parent" + android:layout_height="match_parent"></androidx.recyclerview.widget.RecyclerView> + + + +</com.weikou.beibeivideo.widget.MySwipeRefreshLayout> diff --git a/BuWanVideo/res/layout/item_gold_corn_coupon.xml b/BuWanVideo/res/layout/item_gold_corn_coupon.xml new file mode 100644 index 0000000..f0808cf --- /dev/null +++ b/BuWanVideo/res/layout/item_gold_corn_coupon.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="50dp" + android:src="@drawable/ic_gold_corn_coupon_bg"></ImageView> + + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <com.lzj.gallery.library.views.BannerViewPager + android:id="@+id/vp_video" + android:layout_width="match_parent" + android:layout_height="wrap_content"></com.lzj.gallery.library.views.BannerViewPager> + + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/shape_gold_corn_coupon_exchange_bg" + android:text="绔嬪嵆鍏戞崲" + android:textColor="#E74028" + android:textSize="15sp" /> + + </FrameLayout> + + </FrameLayout> + + +</LinearLayout> \ No newline at end of file diff --git a/BuWanVideo/res/layout/item_gold_corn_sign_in.xml b/BuWanVideo/res/layout/item_gold_corn_sign_in.xml new file mode 100644 index 0000000..d1575f8 --- /dev/null +++ b/BuWanVideo/res/layout/item_gold_corn_sign_in.xml @@ -0,0 +1,283 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + + <!-- <com.lcjian.library.widget.RatioLayout--> + <!-- android:layout_width="match_parent"--> + <!-- android:layout_height="wrap_content"--> + <!-- app:ratio="0.8933">--> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="fitXY" + android:src="@drawable/ic_goldcorn_bg"></ImageView> + + <LinearLayout + android:id="@+id/ll_user" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left|top" + android:layout_marginTop="11.5dp" + android:background="@drawable/shape_gold_corn_sign_in_user_bg" + android:gravity="center_vertical"> + + <ImageView + android:layout_width="32dp" + android:layout_height="32dp"></ImageView> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="鍙敤褰辫璞�" + android:textColor="#ff000000" + android:textSize="9sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="5.5dp" + android:text="888888" + android:textColor="#ff0080ff" + android:textSize="12sp" /> + + </LinearLayout> + + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right|top" + android:layout_marginTop="11.5dp" + android:orientation="vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/shape_gold_corn_sign_in_function_bg" + android:text="璁癨n褰�" + android:textColor="#1F8D00"></TextView> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="7dp" + android:background="@drawable/shape_gold_corn_sign_in_function_bg" + android:text="瑙刓n鍒�" + android:textColor="#1F8D00"></TextView> + + + </LinearLayout> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center_horizontal" + android:orientation="vertical"> + + <ImageView + android:layout_width="76dp" + android:layout_height="106dp" + android:layout_gravity="center_horizontal|top" + android:layout_marginTop="40dp" + android:src="@drawable/ic_goldcorn_logo"></ImageView> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="2dp" + android:shadowColor="#ffab6d00" + android:shadowDx="0" + android:shadowDy="2" + android:shadowRadius="3.0" + android:text="褰辫璞嗗綋閽辫姳" + android:textColor="#ff000000" + android:textSize="30sp" /> + + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="绔嬪嵆绛惧埌" + android:textColor="#ffffffff" + android:textSize="18sp" /> + </FrameLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/shape_gold_corn_sign_in_cout_bg" + android:text="杩炵画绛惧埌:99澶�"></TextView> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="64dp" + android:orientation="vertical"> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="31dp"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_vertical" + android:gravity="center_vertical"> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + + </LinearLayout> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_vertical" + android:gravity="center_vertical"> + + + <TextView + android:id="@+id/tv_score_1" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_score_2" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_score_3" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_score_4" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_score_5" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_score_6" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_score_7" + style="@style/goldCornSignInDateScoreStyle" + android:text="+1"></TextView> + + </LinearLayout> + + </FrameLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_vertical"> + + + <TextView + android:id="@+id/tv_date_1" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_date_2" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_date_3" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_date_4" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_date_5" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_date_6" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + <View style="@style/goldCornSignInDateSpaceStyle"></View> + + <TextView + android:id="@+id/tv_date_7" + style="@style/goldCornSignInDateDateStyle" + android:text="+1"></TextView> + + </LinearLayout> + + + </LinearLayout> + + + </LinearLayout> + + + </FrameLayout> + + <!-- </com.lcjian.library.widget.RatioLayout>--> + +</LinearLayout> \ No newline at end of file diff --git a/BuWanVideo/res/layout/item_gold_corn_task.xml b/BuWanVideo/res/layout/item_gold_corn_task.xml new file mode 100644 index 0000000..73e0220 --- /dev/null +++ b/BuWanVideo/res/layout/item_gold_corn_task.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingLeft="40dp" + android:paddingRight="40dp"> + + <View + android:layout_width="0dp" + android:layout_height="1dp" + android:layout_weight="1" + android:background="#FFEA00"></View> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="10dp" + android:layout_marginRight="10dp" + android:shadowColor="#ffffffff" + android:shadowDx="0" + android:shadowDy="2" + android:shadowRadius="3.0" + android:text="杞绘澗鑾峰彇褰辫璞�" + android:textColor="#FFEA00" + android:textSize="17sp" /> + + <View + android:layout_width="0dp" + android:layout_height="1dp" + android:layout_weight="1" + android:background="#FFEA00"></View> + + </LinearLayout> + + + <androidx.recyclerview.widget.RecyclerView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="9dp" + android:background="@drawable/shape_gold_corn_task_bg" + android:padding="6dp"></androidx.recyclerview.widget.RecyclerView> + +</LinearLayout> \ No newline at end of file diff --git a/BuWanVideo/res/layout/item_gold_corn_task_list.xml b/BuWanVideo/res/layout/item_gold_corn_task_list.xml new file mode 100644 index 0000000..0b47cf2 --- /dev/null +++ b/BuWanVideo/res/layout/item_gold_corn_task_list.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/shape_gold_corn_task_list_bg" + android:gravity="center_vertical" + android:orientation="horizontal" + android:padding="6dp"> + + <ImageView + android:id="@+id/iv_icon" + android:layout_width="44dp" + android:layout_height="44dp" + android:layout_gravity="center_vertical"></ImageView> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginLeft="50dp" + android:gravity="center_vertical" + android:orientation="vertical"> + + <TextView + android:id="@+id/tv_name" + android:layout_width="107dp" + android:layout_height="15dp" + android:text="鐪嬨�婃寚瀹氱數褰便��" + android:textColor="#ff34353f" + android:textSize="15sp" /> + + <TextView + android:id="@+id/tv_goldcorn" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="6dp" + android:drawableLeft="@drawable/icon_gold_corn" + android:drawablePadding="5dp" + android:text="+1" + android:textColor="#fffd003a" + android:textSize="13sp" /> + + <TextView + android:id="@+id/tv_desc" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="6dp" + android:text="鑷冲皯鏄湅4鍒嗛挓浠ヤ笂锛屽凡瀹屾垚1/30" + android:textColor="#ff999999" + android:textSize="11sp" /> + + </LinearLayout> + + <TextView + android:id="@+id/tv_btn" + android:layout_width="85dp" + android:layout_height="30dp" + android:layout_gravity="right|center_vertical" + android:layout_marginLeft="5dp" + android:background="@drawable/shape_gold_corn_task_list_btn" + android:gravity="center" + android:text="鍘荤湅鐪�" + android:textColor="#ffffffff" + android:textSize="13sp" /> + +</FrameLayout> \ No newline at end of file diff --git a/BuWanVideo/res/values/styles.xml b/BuWanVideo/res/values/styles.xml index d76defe..3af8728 100644 --- a/BuWanVideo/res/values/styles.xml +++ b/BuWanVideo/res/values/styles.xml @@ -378,4 +378,29 @@ </style> + <style name="goldCornSignInDateSpaceStyle"> + <item name="android:layout_height">5dp</item> + <item name="android:layout_width">0dp</item> + <item name="android:layout_weight">1</item> + <item name="android:background">#2CB3FF</item> + </style> + + <style name="goldCornSignInDateSpaceHighLightStyle" parent="goldCornSignInDateSpaceStyle"> + <item name="android:background">#FFFFFF</item> + </style> + + <style name="goldCornSignInDateScoreStyle"> + <item name="android:textColor">#FFFFFF</item> + <item name="android:textSize">13dp</item> + <item name="android:gravity">center</item> + </style> + + + <style name="goldCornSignInDateDateStyle"> + <item name="android:textColor">#FFFFFF</item> + <item name="android:textSize">11dp</item> + <item name="android:gravity">center</item> + </style> + + </resources> \ No newline at end of file diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/ui/ToastUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/ui/ToastUtil.java index e31d46a..12bb891 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/util/ui/ToastUtil.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/util/ui/ToastUtil.java @@ -3,6 +3,7 @@ import android.content.Context; import android.view.Gravity; import android.view.View; +import android.widget.TextView; import android.widget.Toast; public class ToastUtil { @@ -17,4 +18,15 @@ } + public static Toast showGetGoldGornToast(Context context, String text) { + Toast toast = new Toast(context); + TextView textView = new TextView(context); + textView.setText(text); + toast.setView(textView); + toast.setDuration(Toast.LENGTH_SHORT); + toast.setGravity(Gravity.CENTER, 0, 0); + toast.show(); + return toast; + } + } -- Gitblit v1.8.0