billyyoyo лет назад: 6
Родитель
Сommit
ba4408bd99

+ 2 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActSignCardRecord.java

@@ -24,6 +24,8 @@ public class ActSignCardRecord extends BaseActivity {
 
     private ActSignCardRecord activity;
 
+    protected boolean showWhiteStatusBar(){return true;}
+
     @Override
     public void initView() {
         activity = this;
@@ -54,7 +56,6 @@ public class ActSignCardRecord extends BaseActivity {
         }
     }
 
-
     @Override
     public void initListener() {
     }

+ 8 - 0
app/src/main/res/drawable/shape_oval_green_8.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+    android:shape="oval">
+    <size
+        android:width="8dp"
+        android:height="8dp" />
+    <solid android:color="#2CB168" />
+</shape>

+ 175 - 145
app/src/main/res/layout/header_sign_card_record.xml

@@ -8,76 +8,79 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:orientation="vertical">
-
-        <com.haibin.calendarview.CalendarView
-            android:id="@+id/sign_card_record_cv"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:background="#FFE866"
-            app:calendar_padding="10dp"
-            app:current_month_lunar_text_color="#CFCFCF"
-            app:current_month_text_color="#333333"
-            app:max_year="2020"
-            app:min_year="2018"
-            app:month_view="com.haibin.calendarviewproject.custom.CustomMonthView"
-            app:month_view_show_mode="mode_fix"
-            app:other_month_lunar_text_color="#e1e1e1"
-            app:other_month_text_color="#e1e1e1"
-            app:scheme_text="√"
-            app:scheme_text_color="#333"
-            app:scheme_theme_color="#128c4b"
-            app:selected_lunar_text_color="#fff"
-            app:selected_text_color="#fff"
-            app:selected_theme_color="#046cea"
-            app:week_background="#FFE866"
-            app:week_start_with="sun"
-            app:week_text_color="#046cea"
-            app:week_view="com.haibin.calendarviewproject.custom.CustomWeekView"
-            app:year_view_day_text_color="#333333"
-            app:year_view_day_text_size="9sp"
-            app:year_view_month_text_color="#ff0000"
-            app:year_view_month_text_size="20sp"
-            app:year_view_scheme_color="#f17706" />
         <LinearLayout
+            android:orientation="vertical"
+            android:background="@mipmap/my_checkin_record_bg"
             android:layout_width="match_parent"
-            android:layout_height="40dp"
-            android:background="#FFE866"
-            android:orientation="horizontal">
-
-            <View
-                android:layout_width="0dp"
-                android:layout_height="match_parent"
-                android:layout_weight="2" />
-
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="match_parent"
-                android:drawablePadding="7dp"
-                android:drawableStart="@drawable/shape_oval_blue_8"
-                android:gravity="center"
-                android:text="当前日期"
-                android:textColor="@color/black_666666"
-                android:textSize="9sp" />
-
-            <View
-                android:layout_width="0dp"
-                android:layout_height="match_parent"
-                android:layout_weight="1" />
-
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="match_parent"
-                android:drawablePadding="7dp"
-                android:drawableStart="@drawable/shape_oval_red_8"
-                android:gravity="center"
-                android:text="成功打卡"
-                android:textColor="@color/black_666666"
-                android:textSize="9sp" />
-
-            <View
-                android:layout_width="0dp"
-                android:layout_height="match_parent"
-                android:layout_weight="2" />
+            android:layout_height="wrap_content">
+            <com.haibin.calendarview.CalendarView
+                android:id="@+id/sign_card_record_cv"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                app:calendar_padding="10dp"
+                app:current_month_lunar_text_color="#CFCFCF"
+                app:current_month_text_color="#333333"
+                app:max_year="2020"
+                app:min_year="2018"
+                app:month_view="com.haibin.calendarviewproject.custom.CustomMonthView"
+                app:month_view_show_mode="mode_fix"
+                app:other_month_lunar_text_color="#e1e1e1"
+                app:other_month_text_color="#e1e1e1"
+                app:scheme_text="√"
+                app:scheme_text_color="#333"
+                app:scheme_theme_color="#128c4b"
+                app:selected_lunar_text_color="#fff"
+                app:selected_text_color="#fff"
+                app:selected_theme_color="#046cea"
+                app:week_background="#00FFE866"
+                app:week_start_with="sun"
+                app:week_text_color="#046cea"
+                app:week_view="com.haibin.calendarviewproject.custom.CustomWeekView"
+                app:year_view_day_text_color="#333333"
+                app:year_view_day_text_size="9sp"
+                app:year_view_month_text_color="#2CB168"
+                app:year_view_month_text_size="20sp"
+                app:year_view_scheme_color="#f17706" />
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="40dp"
+                android:orientation="horizontal">
+
+                <View
+                    android:layout_width="0dp"
+                    android:layout_height="match_parent"
+                    android:layout_weight="2" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="match_parent"
+                    android:drawablePadding="7dp"
+                    android:drawableStart="@drawable/shape_oval_blue_8"
+                    android:gravity="center"
+                    android:text="当前日期"
+                    android:textColor="@color/black_666666"
+                    android:textSize="9sp" />
+
+                <View
+                    android:layout_width="0dp"
+                    android:layout_height="match_parent"
+                    android:layout_weight="1" />
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="match_parent"
+                    android:drawablePadding="7dp"
+                    android:drawableStart="@drawable/shape_oval_green_8"
+                    android:gravity="center"
+                    android:text="成功打卡"
+                    android:textColor="@color/black_666666"
+                    android:textSize="9sp" />
+
+                <View
+                    android:layout_width="0dp"
+                    android:layout_height="match_parent"
+                    android:layout_weight="2" />
+            </LinearLayout>
         </LinearLayout>
 
         <TextView
@@ -95,88 +98,115 @@
             android:layout_height="wrap_content"
             android:orientation="horizontal">
 
-            <TextView
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:gravity="center"
-                android:text="累计赚取"
-                android:textColor="#ff333333"
-                android:textSize="13sp" />
-
-            <TextView
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:gravity="center"
-                android:text="累计投入"
-                android:textColor="#ff333333"
-                android:textSize="13sp" />
-
-            <TextView
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:gravity="center"
-                android:text="成功打卡"
-                android:textColor="#ff333333"
-                android:textSize="13sp" />
-
-            <TextView
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
+            <LinearLayout
+                android:orientation="vertical"
                 android:layout_weight="1"
-                android:gravity="center"
-                android:text="连续打卡"
-                android:textColor="#ff333333"
-                android:textSize="13sp" />
-        </LinearLayout>
-
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="2dp"
-            android:orientation="horizontal">
-
-            <TextView
-                android:id="@+id/total_award"
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+                <ImageView
+                    android:layout_gravity="center"
+                    android:src="@mipmap/checkin_income"
+                    android:layout_marginBottom="5dp"
+                    android:layout_width="30dp"
+                    android:layout_height="30dp" />
+                <TextView
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="累计赚取"
+                    android:textColor="#ff333333"
+                    android:textSize="13sp" />
+                <TextView
+                    android:id="@+id/total_award"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="4379元"
+                    android:textColor="#FD2D54"
+                    android:textSize="13sp" />
+            </LinearLayout>
+            <LinearLayout
+                android:orientation="vertical"
                 android:layout_weight="1"
-                android:gravity="center"
-                android:text="4379元"
-                android:textColor="#FD2D54"
-                android:textSize="13sp" />
-
-            <TextView
-                android:id="@+id/total_money"
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+                <ImageView
+                    android:layout_gravity="center"
+                    android:src="@mipmap/checkin_outcome"
+                    android:layout_marginBottom="5dp"
+                    android:layout_width="30dp"
+                    android:layout_height="30dp" />
+                <TextView
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="累计投入"
+                    android:textColor="#ff333333"
+                    android:textSize="13sp" />
+                <TextView
+                    android:id="@+id/total_money"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="1238元"
+                    android:textColor="#2EBEF2"
+                    android:textSize="13sp" />
+            </LinearLayout>
+            <LinearLayout
+                android:orientation="vertical"
                 android:layout_weight="1"
-                android:gravity="center"
-                android:text="1238元"
-                android:textColor="#2EBEF2"
-                android:textSize="13sp" />
-
-            <TextView
-                android:id="@+id/total_punch_count"
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+                <ImageView
+                    android:layout_gravity="center"
+                    android:src="@mipmap/checkin_success"
+                    android:layout_marginBottom="5dp"
+                    android:layout_width="30dp"
+                    android:layout_height="30dp" />
+                <TextView
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="成功打卡"
+                    android:textColor="#ff333333"
+                    android:textSize="13sp" />
+                <TextView
+                    android:id="@+id/total_punch_count"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="5617人"
+                    android:textColor="#FD8C1E"
+                    android:textSize="13sp" />
+            </LinearLayout>
+            <LinearLayout
+                android:orientation="vertical"
                 android:layout_weight="1"
-                android:gravity="center"
-                android:text="5617人"
-                android:textColor="#FD8C1E"
-                android:textSize="13sp" />
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content">
+                <ImageView
+                    android:layout_gravity="center"
+                    android:src="@mipmap/checkin_continue"
+                    android:layout_marginBottom="5dp"
+                    android:layout_width="30dp"
+                    android:layout_height="30dp" />
+                <TextView
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="连续打卡"
+                    android:textColor="#ff333333"
+                    android:textSize="13sp" />
+                <TextView
+                    android:id="@+id/continue_punch_count"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:gravity="center"
+                    android:text="5617人"
+                    android:textColor="#00BC3E"
+                    android:textSize="13sp" />
+            </LinearLayout>
 
-            <TextView
-                android:id="@+id/continue_punch_count"
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:gravity="center"
-                android:text="5617人"
-                android:textColor="#00BC3E"
-                android:textSize="13sp" />
         </LinearLayout>
 
         <TextView

BIN
app/src/main/res/mipmap-xxhdpi/checkin_continue.png


BIN
app/src/main/res/mipmap-xxhdpi/checkin_income.png


BIN
app/src/main/res/mipmap-xxhdpi/checkin_outcome.png


BIN
app/src/main/res/mipmap-xxhdpi/checkin_success.png


BIN
app/src/main/res/mipmap-xxhdpi/my_checkin_record_bg.png