Your Name лет назад: 7
Родитель
Сommit
9e0dee6aff
19 измененных файлов с 155 добавлено и 74 удалено
  1. 3 1
      app/src/main/java/com/kuxuan/moneynote/ui/activitys/CatrogyDetialActivity.java
  2. 8 2
      app/src/main/java/com/kuxuan/moneynote/ui/activitys/register/RegisterSecondActivity.java
  3. 5 1
      app/src/main/java/com/kuxuan/moneynote/ui/activitys/reportchart/ReportChartActivity.java
  4. 2 1
      app/src/main/java/com/kuxuan/moneynote/ui/adapter/DetialAdapter.java
  5. 3 0
      app/src/main/java/com/kuxuan/moneynote/ui/fragments/details/DetialFragment.java
  6. 3 3
      app/src/main/java/com/kuxuan/moneynote/ui/fragments/details/DetialPresent.java
  7. 1 1
      app/src/main/java/com/kuxuan/moneynote/ui/fragments/reportsingle/ReportSingleContract.java
  8. 40 3
      app/src/main/java/com/kuxuan/moneynote/ui/fragments/reportsingle/ReportSingleFragment.java
  9. 35 10
      app/src/main/java/com/kuxuan/moneynote/ui/fragments/reportsingle/ReportSinglePresent.java
  10. 1 1
      app/src/main/java/com/kuxuan/moneynote/ui/weight/LineChartView.java
  11. BIN
      app/src/main/res/drawable-xhdpi/toolbar_navigation_icon_normal.png
  12. 1 0
      app/src/main/res/layout/activity_register_first.xml
  13. 1 0
      app/src/main/res/layout/activity_register_second.xml
  14. 5 4
      app/src/main/res/layout/activity_register_three.xml
  15. 2 1
      app/src/main/res/layout/activity_update.xml
  16. 1 5
      app/src/main/res/layout/fragment_detial.xml
  17. 14 13
      app/src/main/res/layout/item_detial_layout.xml
  18. 3 2
      app/src/main/res/layout/item_find_layout.xml
  19. 27 26
      app/src/main/res/layout/item_report_layout.xml

+ 3 - 1
app/src/main/java/com/kuxuan/moneynote/ui/activitys/CatrogyDetialActivity.java

@@ -17,6 +17,8 @@ public class CatrogyDetialActivity extends BaseFragmentActivity {
17 17
     public static final String CATROGY_ID = "catrogy_id";
18 18
     public static final String CHARTTYPE = "charttype";
19 19
     public static final String MONEY_TYPE = "money_type";
20
+    public static final String TITLE = "title";
21
+    public static final String RADIO_TYPE = "radio_type";
20 22
 
21 23
     @Override
22 24
     public int getLayout() {
@@ -26,7 +28,7 @@ public class CatrogyDetialActivity extends BaseFragmentActivity {
26 28
     @Override
27 29
     protected void onCreate(Bundle savedInstanceState) {
28 30
         super.onCreate(savedInstanceState);
29
-        ReportSingleFragment reportFragment = ReportSingleFragment.getInstanceForPage(getIntent().getIntExtra(CATROGY_ID, -1), getIntent().getIntExtra(CHARTTYPE, ChartLayout.LINE),getIntent().getIntExtra(MONEY_TYPE,2));
31
+        ReportSingleFragment reportFragment = ReportSingleFragment.getInstanceForPage(getIntent().getIntExtra(CATROGY_ID, -1), getIntent().getIntExtra(CHARTTYPE, ChartLayout.LINE),getIntent().getIntExtra(MONEY_TYPE,2),getIntent().getStringExtra(TITLE),getIntent().getIntExtra(RADIO_TYPE,1));
30 32
         getSupportFragmentManager().beginTransaction().add(R.id.fragment_reportchart_content, reportFragment).commit();
31 33
         getSupportFragmentManager().beginTransaction().show(reportFragment).commit();
32 34
     }

+ 8 - 2
app/src/main/java/com/kuxuan/moneynote/ui/activitys/register/RegisterSecondActivity.java

@@ -114,7 +114,10 @@ public class RegisterSecondActivity extends BaseActivity {
114 114
         String a = String.valueOf(time);
115 115
        String phone =  phone_text.getText().toString().replaceAll("-", "");
116 116
         Log.e(TAG,MD5+phone_text.getText().toString()+a);
117
-        RetrofitClient.getApiService().sendCode(phone, code_type,a,Md5Util.md5(Constant.MD5+phone_text.getText().toString().replaceAll("-", "")+a),"1").subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(new MyObsever<BaseJson<Object>>() {
117
+        int verfy = 0;
118
+        if(!isFindPwd)
119
+            verfy = 1;
120
+        RetrofitClient.getApiService().sendCode(phone, code_type,a,Md5Util.md5(Constant.MD5+phone_text.getText().toString().replaceAll("-", "")+a),verfy+"").subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(new MyObsever<BaseJson<Object>>() {
118 121
             @Override
119 122
             public void onError(ExceptionHandle.ResponeThrowable e) {
120 123
                 closeProgressDialog();
@@ -200,7 +203,10 @@ public class RegisterSecondActivity extends BaseActivity {
200 203
      */
201 204
     private void validateCode() {
202 205
         showProgressDialog(getResources().getString(R.string.code_validate));
203
-        RetrofitClient.getApiService().validateCode(phone_text.getText().toString().replaceAll("-", ""), code_edit.getText().toString(),"1").subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(new MyObsever<BaseJson<Object>>() {
206
+        int verfy = 0;
207
+        if(!isFindPwd)
208
+            verfy = 1;
209
+        RetrofitClient.getApiService().validateCode(phone_text.getText().toString().replaceAll("-", ""), code_edit.getText().toString(),verfy+"").subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(new MyObsever<BaseJson<Object>>() {
204 210
             @Override
205 211
             public void onError(ExceptionHandle.ResponeThrowable e) {
206 212
                 closeProgressDialog();

+ 5 - 1
app/src/main/java/com/kuxuan/moneynote/ui/activitys/reportchart/ReportChartActivity.java

@@ -17,6 +17,8 @@ public class ReportChartActivity extends BaseFragmentActivity {
17 17
     public static final String CATROGY_ID = "catrogy_id";
18 18
     public static final String CHARTTYPE = "charttype";
19 19
     public static final String MONEY_TYPE = "money_type";
20
+    public static final String TITLE = "title";
21
+    public static final String RADIO_TYPE = "radio_type";
20 22
 
21 23
 
22 24
     @Override
@@ -30,8 +32,10 @@ public class ReportChartActivity extends BaseFragmentActivity {
30 32
         int id = getIntent().getIntExtra(CATROGY_ID, -1);
31 33
         int type = getIntent().getIntExtra(CHARTTYPE, ChartLayout.LINE);
32 34
         int money_type = getIntent().getIntExtra(MONEY_TYPE, 2);
35
+        int radio_type = getIntent().getIntExtra(RADIO_TYPE, 1);
36
+        String title = getIntent().getStringExtra(TITLE);
33 37
         ReportSingleFragment reportFragment;
34
-        reportFragment = ReportSingleFragment.getInstanceForPage(id, type,money_type);
38
+        reportFragment = ReportSingleFragment.getInstanceForPage(id, type,money_type,title,radio_type);
35 39
         getSupportFragmentManager().beginTransaction().add(R.id.fragment_reportchart_content, reportFragment).commit();
36 40
         getSupportFragmentManager().beginTransaction().show(reportFragment).commit();
37 41
     }

+ 2 - 1
app/src/main/java/com/kuxuan/moneynote/ui/adapter/DetialAdapter.java

@@ -42,7 +42,8 @@ public class DetialAdapter extends BaseQuickAdapter<TypeDataJson, DetialViewHold
42 42
                     helper.money.setText("  支出:" + (int)billData.getDay_pay_account());
43 43
                 }else if(billData.getDay_pay_account()==0){
44 44
                     helper.money.setText("收入:" + (int)billData.getDay_income_account());
45
-//
45
+                }else if(billData.getDay_income_account()!=0&&billData.getDay_pay_account()!=0){
46
+                    helper.money.setText("收入:" + (int)billData.getDay_income_account()+"  支出:" + (int)billData.getDay_pay_account());
46 47
                 }
47 48
 //            helper.view1.setVisibility(View.VISIBLE);
48 49
             } else {

+ 3 - 0
app/src/main/java/com/kuxuan/moneynote/ui/fragments/details/DetialFragment.java

@@ -70,6 +70,9 @@ public class DetialFragment extends MVPFragment<DetialPresent, DetialModel> impl
70 70
         mPresenter.initListener(fragmentDetialMonth);
71 71
         initMiluView();
72 72
         checkNet();
73
+//        TextSetUtil.setTextForMoey("12321312312321312321", fragmentDetialMoneyin);
74
+//        TextSetUtil.setTextForMoey("12321312312321312321", fragmentDetialMoneyout);
75
+
73 76
 
74 77
     }
75 78
 

+ 3 - 3
app/src/main/java/com/kuxuan/moneynote/ui/fragments/details/DetialPresent.java

@@ -320,10 +320,10 @@ public class DetialPresent extends DetialContract.DetialPresent implements View.
320 320
                 dataLists.add(new TypeDataJson());
321 321
                 dataLists.add(new TypeDataJson());
322 322
                 dataLists.add(new TypeDataJson());
323
-                view.setScrollForNodata();
324
-            } else {
323
+//                view.setScrollForNodata();
324
+            }
325
+            else {
325 326
                 view.showHaveData();
326
-                view.setScrollData();
327 327
             }
328 328
             adapter.setNewData(dataLists);
329 329
             view.setData(currentYear + "", currentMonth + "", userAllBillJsonBaseJson.getIncome_account(), userAllBillJsonBaseJson.getPay_account());

+ 1 - 1
app/src/main/java/com/kuxuan/moneynote/ui/fragments/reportsingle/ReportSingleContract.java

@@ -85,7 +85,7 @@ void goToEdit(TypeDataJson typeDataJson);
85 85
         abstract boolean jugeNeedGetData(int type, int statis_type);
86 86
 
87 87
 
88
-        abstract void refreshTabLayout(TabLayout tabLayout, int type, ArrayList<ChartData> datas);
88
+        abstract void refreshTabLayout(TabLayout tabLayout, int type,String title, ArrayList<ChartData> datas);
89 89
 
90 90
         abstract void clearMap();
91 91
 

+ 40 - 3
app/src/main/java/com/kuxuan/moneynote/ui/fragments/reportsingle/ReportSingleFragment.java

@@ -89,6 +89,20 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
89 89
      */
90 90
     public static final String MONEY_TYPE = "money_tpe";
91 91
 
92
+
93
+    /**
94
+     * 约定的点击
95
+     */
96
+    public static final String TITLE = "title";
97
+
98
+    /**
99
+     * 约定的年月日
100
+     */
101
+    public static final String RADIOGROUP_TYPE = "radiogroup_type";
102
+
103
+    private int radio_type = 1;
104
+    private String title_text = "";
105
+
92 106
     public static ReportSingleFragment getInstanceForPage() {
93 107
         Bundle bundle = new Bundle();
94 108
         bundle.putInt("type", ChartLayout.YUANHUAN);
@@ -122,6 +136,18 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
122 136
         return reportFragment;
123 137
     }
124 138
 
139
+    public static ReportSingleFragment getInstanceForPage(int category_id, int chartType, int money_type, String title,int radio_type) {
140
+        Bundle bundle = new Bundle();
141
+        bundle.putInt("type", chartType);
142
+        bundle.putInt(CATEGORY_ID, category_id);
143
+        bundle.putInt(MONEY_TYPE, money_type);
144
+        bundle.putInt(RADIOGROUP_TYPE, radio_type);
145
+        bundle.putString(TITLE, title);
146
+        ReportSingleFragment reportFragment = new ReportSingleFragment();
147
+        reportFragment.setArguments(bundle);
148
+        return reportFragment;
149
+    }
150
+
125 151
     private int chartType = ChartLayout.LINE;
126 152
 
127 153
     /**
@@ -142,6 +168,9 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
142 168
                     if (chartType == ChartLayout.LINE) {
143 169
                         Intent intent = new Intent(getActivity(), ReportChartActivity.class);
144 170
                         intent.putExtra(ReportChartActivity.CATROGY_ID, category_id);
171
+                        intent.putExtra(ReportChartActivity.MONEY_TYPE, mType);
172
+                        intent.putExtra(ReportChartActivity.TITLE, title_text);
173
+                        intent.putExtra(ReportChartActivity.RADIO_TYPE, radio_type);
145 174
                         intent.putExtra(ReportChartActivity.CHARTTYPE, ChartLayout.YUANHUAN);
146 175
                         startActivity(intent);
147 176
                     }
@@ -166,6 +195,8 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
166 195
             }
167 196
             //默认支出
168 197
             mType = getArguments().getInt(MONEY_TYPE, 2);
198
+            title_text = getArguments().getString(TITLE, "");
199
+            radio_type = getArguments().getInt(RADIOGROUP_TYPE,1);
169 200
         }
170 201
         if (mType == 2) {
171 202
             getTitleView().setTitle("支出");
@@ -185,7 +216,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
185 216
             }
186 217
         });
187 218
 
188
-        mPresenter.init(getActivity(), chartType, category_id, mType);
219
+        mPresenter.init(getActivity(), chartType, category_id, mType,radio_type);
189 220
         mPresenter.initRecyclerView(getActivity(), mRecyclerView);
190 221
         mPresenter.initRadioGroup(activityBaobiaoRadiogroup);
191 222
         mPresenter.initTabLayout(getActivity(), fragmentReportTablayout);
@@ -195,13 +226,15 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
195 226
         checkNet();
196 227
 
197 228
     }
198
-    private void checkNet(){
229
+
230
+    private void checkNet() {
199 231
         boolean networkAvailable = NetWorkUtil.isNetworkAvailable(getActivity());
200 232
         if (networkAvailable)
201 233
             mPresenter.loginCheck();
202 234
         else
203 235
             multipleStatusView.showNoNetwork();
204 236
     }
237
+
205 238
     /**
206 239
      * 初始化多布局
207 240
      */
@@ -278,6 +311,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
278 311
     public void showNoData() {
279 312
         nodata_layout.setVisibility(View.VISIBLE);
280 313
         data_laout.setVisibility(View.GONE);
314
+        fragmentReportTablayout.setVisibility(View.GONE);
281 315
     }
282 316
 
283 317
     @Override
@@ -298,6 +332,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
298 332
     @Override
299 333
     public void showData() {
300 334
         data_laout.setVisibility(View.VISIBLE);
335
+        fragmentReportTablayout.setVisibility(View.VISIBLE);
301 336
         nodata_layout.setVisibility(View.GONE);
302 337
 
303 338
     }
@@ -417,7 +452,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
417 452
 //获取到数据
418 453
         //维度标识1代表周,2代表月,3代表年
419 454
         int type = mPresenter.getType();
420
-        mPresenter.refreshTabLayout(fragmentReportTablayout, type, chartDatas);
455
+        mPresenter.refreshTabLayout(fragmentReportTablayout, type, title_text, chartDatas);
421 456
     }
422 457
 
423 458
     @Override
@@ -431,7 +466,9 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
431 466
     public void goToCatrogyDetial(int catrogy_id) {
432 467
         Intent itnent = new Intent(getActivity(), CatrogyDetialActivity.class);
433 468
         itnent.putExtra(CatrogyDetialActivity.CATROGY_ID, catrogy_id);
469
+        itnent.putExtra(CatrogyDetialActivity.TITLE, mPresenter.getTitle_text());
434 470
         itnent.putExtra(CatrogyDetialActivity.MONEY_TYPE, mType);
471
+        itnent.putExtra(CatrogyDetialActivity.RADIO_TYPE, mPresenter.getType());
435 472
         startActivity(itnent);
436 473
     }
437 474
 

+ 35 - 10
app/src/main/java/com/kuxuan/moneynote/ui/fragments/reportsingle/ReportSinglePresent.java

@@ -8,6 +8,7 @@ import android.support.v7.widget.LinearLayoutManager;
8 8
 import android.support.v7.widget.RecyclerView;
9 9
 import android.util.Log;
10 10
 import android.view.View;
11
+import android.widget.RadioButton;
11 12
 import android.widget.RadioGroup;
12 13
 
13 14
 import com.chad.library.adapter.base.BaseQuickAdapter;
@@ -57,6 +58,9 @@ public class ReportSinglePresent extends ReportSingleContract.RepPresent {
57 58
      */
58 59
     private int charType = ChartLayout.LINE;
59 60
 
61
+
62
+    private String title_text;
63
+
60 64
     /**
61 65
      * tab当前的pos
62 66
      */
@@ -86,13 +90,21 @@ public class ReportSinglePresent extends ReportSingleContract.RepPresent {
86 90
     private WeakHashMap<Integer, ArrayList<ChartData>> mapLists;
87 91
 
88 92
 
89
-    public void init(Context context, int charType, int catrogy_id, int money_type) {
93
+    public void init(Context context, int charType, int catrogy_id, int money_type, int radio_type) {
90 94
         mActivity = (FragmentActivity) context;
91 95
         this.charType = charType;
92 96
         this.catrogy_id = catrogy_id;
93 97
         this.moneyType = money_type;
98
+        this.type = radio_type;
94 99
     }
95 100
 
101
+    public String getTitle_text() {
102
+        return title_text;
103
+    }
104
+
105
+    public void setTitle_text(String title_text) {
106
+        this.title_text = title_text;
107
+    }
96 108
 
97 109
     @Override
98 110
     void initRadioGroup(RadioGroup radioGroup) {
@@ -121,6 +133,8 @@ public class ReportSinglePresent extends ReportSingleContract.RepPresent {
121 133
                 view.getRadioData(type);
122 134
             }
123 135
         });
136
+      RadioButton radioButton = (RadioButton) radioGroup.getChildAt(type-1);
137
+        radioButton.setChecked(true);
124 138
     }
125 139
 
126 140
     private TabLayoutOpertor opertor;
@@ -132,6 +146,7 @@ public class ReportSinglePresent extends ReportSingleContract.RepPresent {
132 146
             @Override
133 147
             public void onTabSelected(TabLayout.Tab tab) {
134 148
                 tabCurrentPosition = tab.getPosition();
149
+                title_text = tab.getText().toString();
135 150
                 DayJson tag = (DayJson) tab.getTag();
136 151
                 ChartData data = tag.getData();
137 152
                 if (data.isTrueData()) {
@@ -233,7 +248,7 @@ public class ReportSinglePresent extends ReportSingleContract.RepPresent {
233 248
     }
234 249
 
235 250
     @Override
236
-    void refreshTabLayout(TabLayout tabLayout, int type, ArrayList<ChartData> datas) {
251
+    void refreshTabLayout(TabLayout tabLayout, int type, String title, ArrayList<ChartData> datas) {
237 252
         //获取得到的
238 253
 
239 254
         if (datas.size() == 0) {
@@ -243,23 +258,33 @@ public class ReportSinglePresent extends ReportSingleContract.RepPresent {
243 258
             view.showContentLayout();
244 259
         }
245 260
         //防止刷新后会为0的情况
246
-        int currentPos = tabCurrentPosition;
261
+//        int currentPos = tabCurrentPosition;
247 262
         tabLayout.removeAllTabs();
263
+        int currentPos = -1;
264
+        int count = 0;
248 265
         for (int i = datas.size() - 1; i >= 0; i--) {
249 266
             DayJson dayJson = new DayJson();
267
+            if (title.equals(datas.get(i).getTime())) {
268
+                currentPos = count;
269
+            }
270
+
250 271
             dayJson.setData(datas.get(i));
251 272
             datas.get(i).setTrueData(true);
252 273
             TabLayout.Tab tab = tabLayout.newTab().setText(datas.get(i).getTime());
253 274
             tab.setTag(dayJson);
254 275
             tabLayout.addTab(tab);
276
+            count++;
255 277
         }
256
-        if (datas.size() != 0) {
257
-            if (currentPos < datas.size())
258
-                tabLayout.getTabAt(currentPos).select();
259
-            else {
260
-                tabLayout.getTabAt(datas.size() - 1).select();
261
-            }
262
-        }
278
+//        if (datas.size() != 0) {
279
+//            if (currentPos < datas.size())
280
+//                tabLayout.getTabAt(currentPos).select();
281
+//            else {
282
+        if (currentPos != -1)
283
+            tabLayout.getTabAt(currentPos).select();
284
+        else
285
+            tabLayout.getTabAt(datas.size() - 1).select();
286
+//            }
287
+//        }
263 288
     }
264 289
 
265 290
 

+ 1 - 1
app/src/main/java/com/kuxuan/moneynote/ui/weight/LineChartView.java

@@ -267,7 +267,7 @@ public class LineChartView extends View {
267 267
             float xfloat = i * mxInterval + mLeftInterval - xTextWidth;
268 268
             // 画X轴的文字
269 269
             if (mXAxis.size() > 7) {
270
-                if (i != 1 && (i + 1) % 5 == 0 && mXAxis.size() - 1 - i >= 5) {
270
+                if (i != 1 && (i + 1) % 5 == 0 ) {
271 271
                     canvas.drawText(mXAxis.get(i), xfloat, mHeight - mBottomInterval + 10 + mYAxisFontSize, axisTextPaint);
272 272
                 } else if (i == mXAxis.size() - 1) {
273 273
                     canvas.drawText(mXAxis.get(i), xfloat, mHeight - mBottomInterval + 10 + mYAxisFontSize, axisTextPaint);

BIN
app/src/main/res/drawable-xhdpi/toolbar_navigation_icon_normal.png


+ 1 - 0
app/src/main/res/layout/activity_register_first.xml

@@ -75,6 +75,7 @@
75 75
         android:layout_marginRight="20dp"
76 76
         android:enabled="false"
77 77
         android:layout_marginTop="40dp"
78
+        style="?android:attr/borderlessButtonStyle"
78 79
         android:background="@drawable/bg_gray_btn"
79 80
         android:text="@string/register"
80 81
         android:textColor="@color/gray_text"

+ 1 - 0
app/src/main/res/layout/activity_register_second.xml

@@ -145,6 +145,7 @@
145 145
         android:layout_height="wrap_content"
146 146
         android:layout_marginLeft="20dp"
147 147
         android:layout_marginRight="20dp"
148
+        style="?android:attr/borderlessButtonStyle"
148 149
         android:enabled="false"
149 150
         android:layout_marginTop="40dp"
150 151
         android:background="@drawable/bg_gray_btn"

+ 5 - 4
app/src/main/res/layout/activity_register_three.xml

@@ -38,10 +38,10 @@
38 38
                 android:layout_height="wrap_content"
39 39
                 android:layout_gravity="center_vertical"
40 40
                 android:layout_weight="2.5"
41
-                android:inputType="textPassword"
42 41
                 android:background="@null"
43
-                android:maxLength="16"
44 42
                 android:hint="@string/register_three_pwd"
43
+                android:inputType="textPassword"
44
+                android:maxLength="16"
45 45
                 android:textColorHint="@color/gray_text"
46 46
                 android:textSize="@dimen/text_normal_size" />
47 47
 
@@ -98,8 +98,8 @@
98 98
                 android:layout_gravity="center_vertical"
99 99
                 android:layout_weight="2"
100 100
                 android:background="@null"
101
-                android:inputType="textPassword"
102 101
                 android:hint="@string/register_three_againpwd"
102
+                android:inputType="textPassword"
103 103
                 android:textColorHint="@color/gray_text"
104 104
 
105 105
                 android:textSize="@dimen/text_normal_size" />
@@ -136,13 +136,14 @@
136 136
 
137 137
     <Button
138 138
         android:id="@+id/activity_register_three_complete_btn"
139
+        style="?android:attr/borderlessButtonStyle"
139 140
         android:layout_width="match_parent"
140 141
         android:layout_height="wrap_content"
141 142
         android:layout_marginLeft="20dp"
142 143
         android:layout_marginRight="20dp"
143
-android:enabled="false"
144 144
         android:layout_marginTop="40dp"
145 145
         android:background="@drawable/bg_gray_btn"
146
+        android:enabled="false"
146 147
         android:text="@string/complete"
147 148
         android:textColor="@color/gray_text"
148 149
         android:textSize="@dimen/text_big_size" />

+ 2 - 1
app/src/main/res/layout/activity_update.xml

@@ -210,8 +210,9 @@
210 210
         android:layout_marginRight="20dp"
211 211
         android:enabled="false"
212 212
         android:layout_marginTop="40dp"
213
-        android:background="@color/bg_title_gray"
213
+        android:background="@drawable/bg_orange_btn"
214 214
         android:text="@string/sure"
215
+        style="?android:attr/borderlessButtonStyle"
215 216
         android:textColor="@color/first_text"
216 217
         android:textSize="@dimen/text_big_size" />
217 218
 </LinearLayout>

+ 1 - 5
app/src/main/res/layout/fragment_detial.xml

@@ -128,9 +128,6 @@
128 128
             android:layout_height="match_parent"
129 129
         >
130 130
 
131
-            <RelativeLayout
132
-                android:layout_width="match_parent"
133
-                android:layout_height="match_parent">
134 131
 
135 132
 
136 133
             <android.support.v7.widget.RecyclerView
@@ -143,10 +140,9 @@
143 140
 
144 141
                 <include
145 142
                     android:id="@+id/fragmeng_detial_neData_layout"
146
-                    android:visibility="invisible"
143
+                    android:visibility="gone"
147 144
                     layout="@layout/empty_view"/>
148 145
 
149
-            </RelativeLayout>
150 146
         </com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout>
151 147
 
152 148
     </com.classic.common.MultipleStatusView>

+ 14 - 13
app/src/main/res/layout/item_detial_layout.xml

@@ -1,8 +1,8 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:id="@+id/item_detial_layout"
3 4
     android:layout_width="match_parent"
4 5
     android:layout_height="wrap_content"
5
-    android:id="@+id/item_detial_layout"
6 6
     android:background="@android:color/white"
7 7
     android:orientation="vertical">
8 8
 
@@ -41,8 +41,8 @@
41 41
         android:id="@+id/item_detial_view1"
42 42
         android:layout_width="match_parent"
43 43
         android:layout_height="1px"
44
-        android:visibility="gone"
45
-        android:background="@color/split_line_color" />
44
+        android:background="@color/split_line_color"
45
+        android:visibility="gone" />
46 46
 
47 47
 
48 48
     <LinearLayout
@@ -58,12 +58,14 @@
58 58
             android:layout_width="38dp"
59 59
             android:layout_height="38dp"
60 60
             android:layout_marginLeft="2dp"
61
+            android:layout_gravity="center_vertical"
61 62
             android:src="@mipmap/category_e_donate_s" />
62 63
 
63 64
 
64 65
         <RelativeLayout
65 66
             android:layout_width="match_parent"
66
-            android:layout_height="50dp"
67
+            android:layout_height="wrap_content"
68
+            android:layout_gravity="center_vertical"
67 69
             android:paddingLeft="15dp"
68 70
             android:paddingRight="10dp">
69 71
 
@@ -77,9 +79,9 @@
77 79
                     android:id="@+id/item_detial_name_text"
78 80
                     android:layout_width="wrap_content"
79 81
                     android:layout_height="wrap_content"
80
-                    android:text="居家"
81
-                    android:singleLine="true"
82 82
                     android:ellipsize="end"
83
+                    android:singleLine="true"
84
+                    android:text="居家"
83 85
                     android:textColor="@android:color/black"
84 86
                     android:textSize="@dimen/text_normal_size" />
85 87
 
@@ -94,17 +96,16 @@
94 96
 
95 97
             </RelativeLayout>
96 98
 
97
-            <View
98
-                android:id="@+id/item_detial_view2"
99
-                android:layout_width="match_parent"
100
-                android:layout_height="1dp"
101
-                android:layout_alignParentBottom="true"
102
-                android:background="@color/split_line_color" />
103
-
104 99
 
105 100
         </RelativeLayout>
106 101
 
107 102
 
108 103
     </LinearLayout>
109 104
 
105
+    <View
106
+        android:id="@+id/item_detial_view2"
107
+        android:layout_width="match_parent"
108
+        android:layout_height="1dp"
109
+        android:layout_marginLeft="50dp"
110
+        android:background="@color/split_line_color" />
110 111
 </LinearLayout>

+ 3 - 2
app/src/main/res/layout/item_find_layout.xml

@@ -7,9 +7,9 @@
7 7
 
8 8
     <ImageView
9 9
         android:id="@+id/item_find_imageView"
10
-        android:layout_width="35dp"
10
+        android:layout_width="40px"
11 11
         android:layout_gravity="center_horizontal"
12
-        android:layout_height="35dp"
12
+        android:layout_height="40px"
13 13
         />
14 14
 
15 15
 
@@ -19,6 +19,7 @@
19 19
         android:layout_width="wrap_content"
20 20
         android:layout_height="wrap_content"
21 21
         android:layout_marginTop="10dp"
22
+        android:textSize="12px"
22 23
         android:layout_gravity="center_horizontal"
23 24
         android:text="理财"/>
24 25
 </LinearLayout>

+ 27 - 26
app/src/main/res/layout/item_report_layout.xml

@@ -9,9 +9,14 @@
9 9
     <LinearLayout
10 10
         android:layout_width="match_parent"
11 11
         android:layout_height="wrap_content"
12
-        android:layout_margin="5dp"
12
+
13 13
         android:orientation="horizontal"
14
-        android:paddingTop="5dp">
14
+        android:paddingLeft="5dp"
15
+        android:paddingRight="5dp"
16
+        android:paddingBottom="3dp"
17
+        android:paddingTop="5dp"
18
+
19
+        >
15 20
 
16 21
 
17 22
         <ImageView
@@ -25,16 +30,16 @@
25 30
 
26 31
         <RelativeLayout
27 32
             android:layout_width="match_parent"
28
-            android:layout_height="60dp"
29
-            android:paddingRight="10dp"
30
-            android:paddingLeft="10dp">
33
+            android:layout_height="wrap_content"
34
+            android:paddingLeft="10dp"
35
+            android:paddingRight="10dp">
31 36
 
32 37
             <LinearLayout
33 38
                 android:layout_width="match_parent"
34 39
                 android:layout_height="wrap_content"
35 40
                 android:layout_centerVertical="true"
36
-                android:paddingBottom="5dp"
37
-                android:orientation="vertical">
41
+                android:orientation="vertical"
42
+                >
38 43
 
39 44
                 <RelativeLayout
40 45
                     android:layout_width="match_parent"
@@ -44,8 +49,8 @@
44 49
                         android:id="@+id/item_report_name_text"
45 50
                         android:layout_width="wrap_content"
46 51
                         android:layout_height="wrap_content"
47
-                        android:text="居家"
48 52
                         android:drawablePadding="3dp"
53
+                        android:text="居家"
49 54
                         android:textColor="@android:color/black"
50 55
                         android:textSize="@dimen/text_normal_size" />
51 56
 
@@ -62,7 +67,6 @@
62 67
                 </RelativeLayout>
63 68
 
64 69
 
65
-
66 70
                 <ProgressBar
67 71
                     android:id="@+id/item_report_progressbar"
68 72
                     style="?android:attr/progressBarStyleHorizontal"
@@ -71,31 +75,28 @@
71 75
                     android:layout_gravity="center_vertical"
72 76
                     android:layout_marginTop="5dp"
73 77
                     android:max="100"
74
-                    android:progressDrawable="@drawable/progress_bar_drawable"
75
-                    android:progress="10" />
78
+                    android:progress="10"
79
+                    android:progressDrawable="@drawable/progress_bar_drawable" />
80
+
76 81
                 <TextView
77 82
                     android:id="@+id/item_report_time_text"
78 83
                     android:layout_width="wrap_content"
79
-                    android:paddingRight="10dp"
80
-                    android:visibility="visible"
84
+                    android:layout_height="wrap_content"
81 85
                     android:layout_marginTop="5dp"
86
+                    android:paddingRight="10dp"
82 87
                     android:text="2017-2123-23"
83
-                    android:layout_height="wrap_content"
84 88
                     android:textColor="#c1c1c1"
85
-                    android:textSize="@dimen/text_small_size"/>
89
+                    android:textSize="@dimen/text_small_size"
90
+                    android:visibility="visible" />
86 91
             </LinearLayout>
87
-
88
-            <View
89
-                android:id="@+id/item_detial_view2"
90
-                android:layout_width="match_parent"
91
-                android:layout_height="1dp"
92
-                android:layout_alignParentBottom="true"
93
-                android:background="@color/split_line_color" />
94
-
95
-
96 92
         </RelativeLayout>
97
-
98
-
99 93
     </LinearLayout>
100 94
 
95
+    <View
96
+        android:id="@+id/item_detial_view2"
97
+        android:layout_width="match_parent"
98
+        android:layout_height="1dp"
99
+        android:layout_alignParentBottom="true"
100
+        android:layout_marginLeft="50dp"
101
+        android:background="@color/split_line_color" />
101 102
 </LinearLayout>