Просмотр исходного кода

Merge branch 'master' of http://10.8.230.114:3000/kemllor/small_sheep_android

刁铃刚 лет назад: 8
Родитель
Сommit
b964ea9f65

+ 4 - 1
.idea/misc.xml

@@ -1,5 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
 <project version="4">
+  <component name="EntryPointsManager">
+    <entry_points version="2.0" />
+  </component>
   <component name="NullableNotNullManager">
   <component name="NullableNotNullManager">
     <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
     <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
     <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
     <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
@@ -24,7 +27,7 @@
       </value>
       </value>
     </option>
     </option>
   </component>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/build/classes" />
     <output url="file://$PROJECT_DIR$/build/classes" />
   </component>
   </component>
   <component name="ProjectType">
   <component name="ProjectType">

+ 2 - 1
.idea/modules.xml

@@ -2,7 +2,8 @@
 <project version="4">
 <project version="4">
   <component name="ProjectModuleManager">
   <component name="ProjectModuleManager">
     <modules>
     <modules>
-      <module fileurl="file://D:\Dlg\AndroidStudioProjects\small_sheep_android\SamllSheepPlugin.iml" filepath="D:\Dlg\AndroidStudioProjects\small_sheep_android\SamllSheepPlugin.iml" />
+      <module fileurl="file://$PROJECT_DIR$/SamllSheepPlugin.iml" filepath="$PROJECT_DIR$/SamllSheepPlugin.iml" />
+      <module fileurl="file://D:/Dlg/AndroidStudioProjects/small_sheep_android/SamllSheepPlugin.iml" filepath="D:/Dlg/AndroidStudioProjects/small_sheep_android/SamllSheepPlugin.iml" />
       <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
       <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
       <module fileurl="file://$PROJECT_DIR$/small_sheep_android.iml" filepath="$PROJECT_DIR$/small_sheep_android.iml" />
       <module fileurl="file://$PROJECT_DIR$/small_sheep_android.iml" filepath="$PROJECT_DIR$/small_sheep_android.iml" />
     </modules>
     </modules>

+ 0 - 1
app/src/main/java/com/sheep/jiuyan/samllsheep/page/LoginActivity.java

@@ -109,7 +109,6 @@ public class LoginActivity extends BaseActivity {
         SheepApp.mWxapi.sendReq(req);*/
         SheepApp.mWxapi.sendReq(req);*/
 
 
         SpUtils.login(this, "5e640a54730f5bec1e2fa6dc53200a20");
         SpUtils.login(this, "5e640a54730f5bec1e2fa6dc53200a20");
-//        SpUtils.login(this, "123456");
     }
     }
 
 
 
 

+ 63 - 16
app/src/main/java/com/sheep/jiuyan/samllsheep/page/MoneyHistroyActivity.java

@@ -1,8 +1,10 @@
 package com.sheep.jiuyan.samllsheep.page;
 package com.sheep.jiuyan.samllsheep.page;
 
 
+import android.text.TextUtils;
 import android.view.View;
 import android.view.View;
 import android.view.ViewGroup;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;
 import android.widget.BaseAdapter;
+import android.widget.ImageView;
 import android.widget.ListView;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.TextView;
 
 
@@ -12,6 +14,7 @@ import com.sheep.jiuyan.samllsheep.net.NetManager;
 import com.sheep.jiuyan.samllsheep.net.SheepCallback;
 import com.sheep.jiuyan.samllsheep.net.SheepCallback;
 import com.sheep.jiuyan.samllsheep.net.Url;
 import com.sheep.jiuyan.samllsheep.net.Url;
 import com.sheep.jiuyan.samllsheep.page.entry.MoneyHistroy;
 import com.sheep.jiuyan.samllsheep.page.entry.MoneyHistroy;
+import com.sheep.jiuyan.samllsheep.page.entry.MoneyRecord;
 import com.sheep.jiuyan.samllsheep.utils.SpUtils;
 import com.sheep.jiuyan.samllsheep.utils.SpUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
 import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
 
 
@@ -25,7 +28,7 @@ import java.util.List;
 public class MoneyHistroyActivity extends BaseActivity {
 public class MoneyHistroyActivity extends BaseActivity {
     private ListView mLv;
     private ListView mLv;
     private MoneyAdapter mAdapter;
     private MoneyAdapter mAdapter;
-    List<MoneyHistroy> mData;
+    List<MoneyRecord> mData;
 
 
     @Override
     @Override
     protected int getLayoutId() {
     protected int getLayoutId() {
@@ -45,7 +48,7 @@ public class MoneyHistroyActivity extends BaseActivity {
     public void initListener() {
     public void initListener() {
     }
     }
 
 
-    private void showView(List<MoneyHistroy> orders) {
+    private void showView(List<MoneyRecord> orders) {
         mData = orders;
         mData = orders;
         if (mAdapter == null) {
         if (mAdapter == null) {
             mAdapter = new MoneyAdapter();
             mAdapter = new MoneyAdapter();
@@ -58,9 +61,9 @@ public class MoneyHistroyActivity extends BaseActivity {
     private void getTask() {
     private void getTask() {
         final HashMap<String, String> map = new HashMap<>();
         final HashMap<String, String> map = new HashMap<>();
         map.put("wx_open_id", SpUtils.getOpenId(this));
         map.put("wx_open_id", SpUtils.getOpenId(this));
-        NetManager.get(Url.MONEYRECORD, map, getApplicationContext(), new SheepCallback<List<MoneyHistroy>>(this) {
+        NetManager.get(Url.MONEYRECORD, map, getApplicationContext(), new SheepCallback<List<MoneyRecord>>(this) {
             @Override
             @Override
-            public void success(List<MoneyHistroy> orders) {
+            public void success(List<MoneyRecord> orders) {
                 showView(orders);
                 showView(orders);
             }
             }
         });
         });
@@ -94,7 +97,10 @@ public class MoneyHistroyActivity extends BaseActivity {
 
 
         @Override
         @Override
         public int getItemViewType(int position) {
         public int getItemViewType(int position) {
-            return super.getItemViewType(position);
+            if (TextUtils.isEmpty(mData.get(position).getMonth())) {
+                return 1;
+            } else
+                return 0;
         }
         }
 
 
         @Override
         @Override
@@ -104,36 +110,77 @@ public class MoneyHistroyActivity extends BaseActivity {
 
 
         @Override
         @Override
         public View getView(int position, View convertView, ViewGroup parent) {
         public View getView(int position, View convertView, ViewGroup parent) {
+            int type = getItemViewType(position);
+            if (type == 0) {
+                convertView = getTabView(position, convertView, parent);
+            } else if (type == 1) {
+                convertView = getInfoView(position, convertView, parent);
+            }
+            return convertView;
+        }
+
+        private View getTabView(final int position, View convertView,
+                                ViewGroup parent) {
+            final TablViewHolder holder;
             if (convertView == null) {
             if (convertView == null) {
-                int type = getItemViewType(position);
-                if (type == 0) {
-                    convertView = View.inflate(MoneyHistroyActivity.this, R.layout.money_history_item, null);
-                    assignViews(convertView);
-                } else if (type == 1) {
-                    convertView = View.inflate(MoneyHistroyActivity.this, R.layout.money_history_item_tab, null);
-                    assignViewsTab(convertView);
-                }
+                convertView = View.inflate(MoneyHistroyActivity.this, R.layout.money_history_item_tab, null);
+                holder = new TablViewHolder(convertView);
+                convertView.setTag(holder);
+            } else {
+                holder = (TablViewHolder) convertView.getTag();
             }
             }
+            MoneyRecord record = mData.get(position);
+            holder.mTvMonth.setText(record.getMonth());
             return convertView;
             return convertView;
         }
         }
 
 
+        private View getInfoView(final int position, View convertView,
+                                 ViewGroup parent) {
+            final InfoViewHolder holder;
+            if (convertView == null) {
+                convertView = View.inflate(MoneyHistroyActivity.this, R.layout.money_history_item, null);
+                holder = new InfoViewHolder(convertView);
+                convertView.setTag(holder);
+            } else {
+                holder = (InfoViewHolder) convertView.getTag();
+            }
+            MoneyRecord record = mData.get(position);
+            holder.mTvClass.setText(record.getData().getDesc());
+            if (record.getData().getMoney().startsWith("-")) {
+                holder.mTvMoney.setTextColor(getResources().getColor(R.color.green));
+            } else {
+                holder.mTvMoney.setTextColor(getResources().getColor(R.color.orange_text_light));
+            }
+            holder.mTvMoney.setText(record.getData().getMoney());
+            holder.mTvTime.setText(record.getData().getCreateTime());
+
+            return convertView;
+        }
+    }
+
+    class TablViewHolder {
         private TextView mTvIn;
         private TextView mTvIn;
         private TextView mTvOut;
         private TextView mTvOut;
+        private TextView mTvMonth;
 
 
-        private void assignViewsTab(View view) {
+        public TablViewHolder(View view) {
             mTvIn = (TextView) view.findViewById(R.id.tv_in);
             mTvIn = (TextView) view.findViewById(R.id.tv_in);
             mTvOut = (TextView) view.findViewById(R.id.tv_out);
             mTvOut = (TextView) view.findViewById(R.id.tv_out);
+            mTvMonth = (TextView) view.findViewById(R.id.tv_month);
         }
         }
+    }
 
 
-
+    class InfoViewHolder {
         private TextView mTvDesc;
         private TextView mTvDesc;
         private TextView mTvClass;
         private TextView mTvClass;
         private TextView mTvTime;
         private TextView mTvTime;
         private TextView mTvMoney;
         private TextView mTvMoney;
+        private ImageView mTvIcon;
 
 
-        private void assignViews(View view) {
+        public InfoViewHolder(View view) {
             mTvDesc = (TextView) view.findViewById(R.id.tv_desc);
             mTvDesc = (TextView) view.findViewById(R.id.tv_desc);
             mTvClass = (TextView) view.findViewById(R.id.tv_class);
             mTvClass = (TextView) view.findViewById(R.id.tv_class);
+            mTvIcon = (ImageView) view.findViewById(R.id.img_icon);
             mTvTime = (TextView) view.findViewById(R.id.tv_time);
             mTvTime = (TextView) view.findViewById(R.id.tv_time);
             mTvMoney = (TextView) view.findViewById(R.id.tv_money);
             mTvMoney = (TextView) view.findViewById(R.id.tv_money);
         }
         }

+ 33 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/page/entry/MoneyRecord.java

@@ -0,0 +1,33 @@
+package com.sheep.jiuyan.samllsheep.page.entry;
+
+/**
+ * Created by kemllor on 2018/1/17.
+ */
+
+public class MoneyRecord {
+
+
+    /**
+     * Month : 2018年02月
+     * Data : {"Id":0,"Uid":0,"Desc":"","Money":"","CreateTime":"","Balance":""}
+     */
+
+    private String Month;
+    private MoneyHistroy Data;
+
+    public String getMonth() {
+        return Month;
+    }
+
+    public void setMonth(String month) {
+        Month = month;
+    }
+
+    public MoneyHistroy getData() {
+        return Data;
+    }
+
+    public void setData(MoneyHistroy data) {
+        Data = data;
+    }
+}

+ 8 - 0
app/src/main/java/com/sheep/jiuyan/samllsheep/page/entry/TaskCount.java

@@ -0,0 +1,8 @@
+package com.sheep.jiuyan.samllsheep.page.entry;
+
+/**
+ * Created by kemllor on 2018/1/17.
+ */
+
+public class TaskCount {
+}

+ 6 - 0
app/src/main/res/drawable/start_hook.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="@drawable/started_hangup"  />
+    <item android:drawable="@drawable/started_hangup_click"  android:state_pressed="true"/>
+
+</selector>

+ 16 - 16
app/src/main/res/layout/fgt_main_page_offline_empty.xml

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:background="@color/white"
-    android:orientation="vertical">
+              android:layout_width="match_parent"
+              android:layout_height="match_parent"
+              android:background="@color/white"
+              android:orientation="vertical">
 
 
     <RelativeLayout
     <RelativeLayout
         android:id="@+id/layout_start_task"
         android:id="@+id/layout_start_task"
@@ -15,16 +15,16 @@
         <ImageView
         <ImageView
             android:layout_width="140dp"
             android:layout_width="140dp"
             android:layout_height="140dp"
             android:layout_height="140dp"
-            android:src="@drawable/sp_start_offline"
-            android:text="dfgsdfgdsfgdfg" />
+            android:src="@drawable/start_hook"
+            />
 
 
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_centerInParent="true"
-            android:text="开始挂机"
-            android:textColor="@color/white"
-            android:textSize="@dimen/text_size_6" />
+        <!-- <TextView
+             android:layout_width="wrap_content"
+             android:layout_height="wrap_content"
+             android:layout_centerInParent="true"
+             android:text="开始挂机"
+             android:textColor="@color/white"
+             android:textSize="@dimen/text_size_6" />-->
     </RelativeLayout>
     </RelativeLayout>
 
 
     <TextView
     <TextView
@@ -34,7 +34,7 @@
         android:layout_marginTop="40dp"
         android:layout_marginTop="40dp"
         android:text="免费云端挂机,平台自动做任务"
         android:text="免费云端挂机,平台自动做任务"
         android:textColor="@color/black_text_deep"
         android:textColor="@color/black_text_deep"
-        android:textSize="@dimen/text_size_4" />
+        android:textSize="@dimen/text_size_4"/>
 
 
     <TextView
     <TextView
         android:layout_width="wrap_content"
         android:layout_width="wrap_content"
@@ -43,7 +43,7 @@
         android:layout_marginTop="20dp"
         android:layout_marginTop="20dp"
         android:text="云端挂机无需下载,任务奖金一分不少"
         android:text="云端挂机无需下载,任务奖金一分不少"
         android:textColor="@color/black_text_light"
         android:textColor="@color/black_text_light"
-        android:textSize="@dimen/text_size_2" />
+        android:textSize="@dimen/text_size_2"/>
 
 
     <TextView
     <TextView
         android:layout_width="wrap_content"
         android:layout_width="wrap_content"
@@ -52,5 +52,5 @@
         android:layout_marginTop="@dimen/content_padding_small"
         android:layout_marginTop="@dimen/content_padding_small"
         android:text="使用不常用微信小号,随时随地离线做任务"
         android:text="使用不常用微信小号,随时随地离线做任务"
         android:textColor="@color/black_text_light"
         android:textColor="@color/black_text_light"
-        android:textSize="@dimen/text_size_2" />
+        android:textSize="@dimen/text_size_2"/>
 </LinearLayout>
 </LinearLayout>

+ 21 - 19
app/src/main/res/layout/fgt_main_page_task.xml

@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:app="http://schemas.android.com/apk/res-auto"
-    android:layout_width="match_parent"
+              xmlns:tools="http://schemas.android.com/tools"
+              android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_height="match_parent"
     android:background="@color/white"
     android:background="@color/white"
     android:orientation="vertical">
     android:orientation="vertical">
@@ -32,7 +33,7 @@
             android:text="1218"
             android:text="1218"
             android:textColor="@color/orange_text_light"
             android:textColor="@color/orange_text_light"
             android:textSize="@dimen/text_size_3"
             android:textSize="@dimen/text_size_3"
-            app:layout_constraintLeft_toRightOf="@id/txt_fgt_main_page_task_income"
+            app:layout_constraintLeft_toRightOf="@+id/txt_fgt_main_page_task_income"
             app:layout_constraintRight_toLeftOf="@+id/txt_fgt_main_page_task_remain"
             app:layout_constraintRight_toLeftOf="@+id/txt_fgt_main_page_task_remain"
             app:layout_constraintTop_toTopOf="parent" />
             app:layout_constraintTop_toTopOf="parent" />
 
 
@@ -45,7 +46,7 @@
             android:textColor="@color/orange_text_light"
             android:textColor="@color/orange_text_light"
             android:textSize="@dimen/text_size_3"
             android:textSize="@dimen/text_size_3"
             android:visibility="gone"
             android:visibility="gone"
-            app:layout_constraintLeft_toRightOf="@id/txt_fgt_main_page_task_succ"
+            app:layout_constraintLeft_toRightOf="@+id/txt_fgt_main_page_task_succ"
             app:layout_constraintRight_toLeftOf="@+id/txt_fgt_main_page_task_history"
             app:layout_constraintRight_toLeftOf="@+id/txt_fgt_main_page_task_history"
             app:layout_constraintTop_toTopOf="parent" />
             app:layout_constraintTop_toTopOf="parent" />
 
 
@@ -57,7 +58,7 @@
             android:text="128"
             android:text="128"
             android:textColor="@color/orange_text_light"
             android:textColor="@color/orange_text_light"
             android:textSize="@dimen/text_size_3"
             android:textSize="@dimen/text_size_3"
-            app:layout_constraintLeft_toRightOf="@id/txt_fgt_main_page_task_remain"
+            app:layout_constraintLeft_toRightOf="@+id/txt_fgt_main_page_task_remain"
             app:layout_constraintRight_toRightOf="parent"
             app:layout_constraintRight_toRightOf="parent"
             app:layout_constraintTop_toTopOf="parent" />
             app:layout_constraintTop_toTopOf="parent" />
 
 
@@ -69,9 +70,9 @@
             android:text="今日收入"
             android:text="今日收入"
             android:textColor="@color/black_text_gray"
             android:textColor="@color/black_text_gray"
             android:textSize="@dimen/text_size_2"
             android:textSize="@dimen/text_size_2"
-            app:layout_constraintLeft_toLeftOf="@id/txt_fgt_main_page_task_income"
-            app:layout_constraintRight_toRightOf="@id/txt_fgt_main_page_task_income"
-            app:layout_constraintTop_toBottomOf="@id/txt_fgt_main_page_task_income" />
+            app:layout_constraintLeft_toLeftOf="@+id/txt_fgt_main_page_task_income"
+            app:layout_constraintRight_toRightOf="@+id/txt_fgt_main_page_task_income"
+            app:layout_constraintTop_toBottomOf="@+id/txt_fgt_main_page_task_income" />
 
 
         <TextView
         <TextView
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
@@ -80,9 +81,9 @@
             android:text="今日完成"
             android:text="今日完成"
             android:textColor="@color/black_text_gray"
             android:textColor="@color/black_text_gray"
             android:textSize="@dimen/text_size_2"
             android:textSize="@dimen/text_size_2"
-            app:layout_constraintLeft_toLeftOf="@id/txt_fgt_main_page_task_succ"
-            app:layout_constraintRight_toRightOf="@id/txt_fgt_main_page_task_succ"
-            app:layout_constraintTop_toBottomOf="@id/txt_fgt_main_page_task_income" />
+            app:layout_constraintLeft_toLeftOf="@+id/txt_fgt_main_page_task_succ"
+            app:layout_constraintRight_toRightOf="@+id/txt_fgt_main_page_task_succ"
+            app:layout_constraintTop_toBottomOf="@+id/txt_fgt_main_page_task_income" />
 
 
         <TextView
         <TextView
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
@@ -92,9 +93,9 @@
             android:textColor="@color/black_text_gray"
             android:textColor="@color/black_text_gray"
             android:textSize="@dimen/text_size_2"
             android:textSize="@dimen/text_size_2"
             android:visibility="gone"
             android:visibility="gone"
-            app:layout_constraintLeft_toLeftOf="@id/txt_fgt_main_page_task_remain"
-            app:layout_constraintRight_toRightOf="@id/txt_fgt_main_page_task_remain"
-            app:layout_constraintTop_toBottomOf="@id/txt_fgt_main_page_task_income" />
+            app:layout_constraintLeft_toLeftOf="@+id/txt_fgt_main_page_task_remain"
+            app:layout_constraintRight_toRightOf="@+id/txt_fgt_main_page_task_remain"
+            app:layout_constraintTop_toBottomOf="@+id/txt_fgt_main_page_task_income" />
 
 
         <TextView
         <TextView
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
@@ -103,17 +104,18 @@
             android:text="任务记录"
             android:text="任务记录"
             android:textColor="@color/black_text_gray"
             android:textColor="@color/black_text_gray"
             android:textSize="@dimen/text_size_2"
             android:textSize="@dimen/text_size_2"
-            app:layout_constraintLeft_toLeftOf="@id/txt_fgt_main_page_task_history"
-            app:layout_constraintRight_toRightOf="@id/txt_fgt_main_page_task_history"
-            app:layout_constraintTop_toBottomOf="@id/txt_fgt_main_page_task_income" />
+            app:layout_constraintLeft_toLeftOf="@+id/txt_fgt_main_page_task_history"
+            app:layout_constraintRight_toRightOf="@+id/txt_fgt_main_page_task_history"
+            app:layout_constraintTop_toBottomOf="@+id/txt_fgt_main_page_task_income" />
 
 
         <LinearLayout
         <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="@dimen/layout_heigh_default"
+            android:layout_width="8dp"
+            android:layout_height="48dp"
             android:gravity="center_vertical"
             android:gravity="center_vertical"
             android:orientation="horizontal"
             android:orientation="horizontal"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintBottom_toBottomOf="parent"
-            app:layout_constraintTop_toTopOf="parent">
+            app:layout_constraintTop_toTopOf="parent"
+            tools:layout_editor_absoluteX="8dp">
 
 
             <View
             <View
                 android:id="@+id/view_income_today"
                 android:id="@+id/view_income_today"

+ 2 - 2
app/src/main/res/layout/game_detail_activity.xml

@@ -105,19 +105,19 @@
             android:textStyle="bold"/>
             android:textStyle="bold"/>
 
 
         <TextView
         <TextView
-            android:layout_alignRight="@id/tv_money"
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             android:layout_above="@id/tv_money"
             android:layout_above="@id/tv_money"
+            android:layout_alignRight="@id/tv_money"
             android:text="任务\n奖励"
             android:text="任务\n奖励"
             android:textColor="@color/black_text_gray"
             android:textColor="@color/black_text_gray"
             android:textSize="@dimen/text_size_2"/>
             android:textSize="@dimen/text_size_2"/>
 
 
         <TextView
         <TextView
-            android:layout_alignRight="@id/tv_bouns"
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_height="wrap_content"
             android:layout_above="@id/tv_money"
             android:layout_above="@id/tv_money"
+            android:layout_alignRight="@id/tv_bouns"
             android:text="邀请\n奖励"
             android:text="邀请\n奖励"
             android:textColor="@color/black_text_gray"
             android:textColor="@color/black_text_gray"
             android:textSize="@dimen/text_size_2"/>
             android:textSize="@dimen/text_size_2"/>

+ 13 - 10
app/src/main/res/layout/money_history_item.xml

@@ -7,8 +7,8 @@
 
 
     <LinearLayout
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:layout_margin="@dimen/content_padding"
+        android:layout_height="@dimen/layout_heigh_default"
+        android:layout_margin="@dimen/content_padding_small"
         android:layout_marginTop="5dp"
         android:layout_marginTop="5dp"
         android:background="@color/background_light_gray"
         android:background="@color/background_light_gray"
         android:gravity="center_vertical"
         android:gravity="center_vertical"
@@ -16,18 +16,22 @@
         >
         >
 
 
         <ImageView
         <ImageView
+            android:id="@+id/img_icon"
             android:layout_width="@dimen/image_item"
             android:layout_width="@dimen/image_item"
             android:layout_height="@dimen/image_item"
             android:layout_height="@dimen/image_item"
             android:layout_gravity="center_vertical"
             android:layout_gravity="center_vertical"
             android:layout_margin="@dimen/content_padding"
             android:layout_margin="@dimen/content_padding"
+            android:src="@drawable/icon"
+            android:visibility="gone"
             />
             />
 
 
         <LinearLayout
         <LinearLayout
+            android:padding="@dimen/content_padding_small"
             android:layout_width="wrap_content"
             android:layout_width="wrap_content"
-            android:paddingTop="@dimen/content_padding"
-            android:paddingBottom="@dimen/content_padding"
             android:layout_height="match_parent"
             android:layout_height="match_parent"
-            android:orientation="vertical">
+            android:layout_marginLeft="@dimen/content_padding"
+            android:orientation="vertical"
+            >
 
 
             <TextView
             <TextView
                 android:id="@+id/tv_desc"
                 android:id="@+id/tv_desc"
@@ -36,7 +40,8 @@
                 android:layout_weight="1"
                 android:layout_weight="1"
                 android:gravity="center"
                 android:gravity="center"
                 android:textColor="@color/black_dark"
                 android:textColor="@color/black_dark"
-                android:textSize="@dimen/text_size_4"/>
+                android:textSize="@dimen/text_size_4"
+                android:visibility="gone"/>
 
 
             <TextView
             <TextView
                 android:id="@+id/tv_class"
                 android:id="@+id/tv_class"
@@ -44,8 +49,7 @@
                 android:layout_height="0dp"
                 android:layout_height="0dp"
                 android:layout_weight="1"
                 android:layout_weight="1"
                 android:gravity="center"
                 android:gravity="center"
-                android:padding="3dp"
-                android:textColor="@color/black_text_gray"
+                android:textColor="@color/black_text_deep"
                 android:textSize="@dimen/text_size_3"/>
                 android:textSize="@dimen/text_size_3"/>
 
 
             <TextView
             <TextView
@@ -55,9 +59,8 @@
                 android:layout_centerVertical="true"
                 android:layout_centerVertical="true"
                 android:layout_weight="1"
                 android:layout_weight="1"
                 android:gravity="center"
                 android:gravity="center"
-                android:text="asdas"
                 android:textColor="@color/black_text_gray"
                 android:textColor="@color/black_text_gray"
-                android:textSize="@dimen/text_size_3"/>
+                android:textSize="@dimen/text_size_2"/>
         </LinearLayout>
         </LinearLayout>
 
 
         <TextView
         <TextView

+ 2 - 0
app/src/main/res/layout/money_history_item_tab.xml

@@ -15,6 +15,7 @@
         >
         >
 
 
         <TextView
         <TextView
+            android:id="@+id/tv_month"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_height="match_parent"
             android:layout_margin="@dimen/content_padding"
             android:layout_margin="@dimen/content_padding"
@@ -24,6 +25,7 @@
             />
             />
 
 
         <LinearLayout
         <LinearLayout
+            android:visibility="gone"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_height="match_parent"
             android:layout_marginBottom="@dimen/content_padding"
             android:layout_marginBottom="@dimen/content_padding"

+ 1 - 1
app/src/main/res/layout/task_item.xml

@@ -110,7 +110,7 @@
         android:layout_alignParentRight="true"
         android:layout_alignParentRight="true"
         android:layout_marginRight="@dimen/content_padding_small"
         android:layout_marginRight="@dimen/content_padding_small"
         android:layout_marginTop="@dimen/content_padding_small"
         android:layout_marginTop="@dimen/content_padding_small"
-        android:src="@drawable/completed"/>
+        android:src="@drawable/received"/>
 
 
     <TextView
     <TextView
         android:id="@+id/tv_guide"
         android:id="@+id/tv_guide"