Browse Source

bug修改

Xieshengqi 7 years ago
parent
commit
cab5ec2756

+ 2 - 2
app/src/main/java/com/kuxuan/moneynote/common/Constant.java

@@ -9,8 +9,8 @@ public class Constant {
9 9
     //手机号正则,11位手机号
10 10
     public static final String REGEX_MOBILE = "[1][3,4,5,7,8][0-9]{9}$";
11 11
     //测试接口
12
-//    public static final String BASE_URL = "http://bill.quyaqu.com/api/";
13
-    public static final String BASE_URL = "http://api.money.quyaqu.com/api/";
12
+    public static final String BASE_URL = "http://bill.quyaqu.com/api/";
13
+//    public static final String BASE_URL = "http://api.money.quyaqu.com/api/";
14 14
     public static final String MD5 = "b4b80c2676828f1df375684100f56d48";
15 15
 
16 16
     public static class UserInfo{

+ 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
     }

+ 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
 

+ 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 - 4
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,7 +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);
145
-                        intent.putExtra(CatrogyDetialActivity.MONEY_TYPE, mType);
171
+                        intent.putExtra(ReportChartActivity.MONEY_TYPE, mType);
172
+                        intent.putExtra(ReportChartActivity.TITLE, title_text);
173
+                        intent.putExtra(ReportChartActivity.RADIO_TYPE, radio_type);
146 174
                         intent.putExtra(ReportChartActivity.CHARTTYPE, ChartLayout.YUANHUAN);
147 175
                         startActivity(intent);
148 176
                     }
@@ -167,6 +195,8 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
167 195
             }
168 196
             //默认支出
169 197
             mType = getArguments().getInt(MONEY_TYPE, 2);
198
+            title_text = getArguments().getString(TITLE, "");
199
+            radio_type = getArguments().getInt(RADIOGROUP_TYPE,1);
170 200
         }
171 201
         if (mType == 2) {
172 202
             getTitleView().setTitle("支出");
@@ -186,7 +216,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
186 216
             }
187 217
         });
188 218
 
189
-        mPresenter.init(getActivity(), chartType, category_id, mType);
219
+        mPresenter.init(getActivity(), chartType, category_id, mType,radio_type);
190 220
         mPresenter.initRecyclerView(getActivity(), mRecyclerView);
191 221
         mPresenter.initRadioGroup(activityBaobiaoRadiogroup);
192 222
         mPresenter.initTabLayout(getActivity(), fragmentReportTablayout);
@@ -196,13 +226,15 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
196 226
         checkNet();
197 227
 
198 228
     }
199
-    private void checkNet(){
229
+
230
+    private void checkNet() {
200 231
         boolean networkAvailable = NetWorkUtil.isNetworkAvailable(getActivity());
201 232
         if (networkAvailable)
202 233
             mPresenter.loginCheck();
203 234
         else
204 235
             multipleStatusView.showNoNetwork();
205 236
     }
237
+
206 238
     /**
207 239
      * 初始化多布局
208 240
      */
@@ -279,6 +311,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
279 311
     public void showNoData() {
280 312
         nodata_layout.setVisibility(View.VISIBLE);
281 313
         data_laout.setVisibility(View.GONE);
314
+        fragmentReportTablayout.setVisibility(View.GONE);
282 315
     }
283 316
 
284 317
     @Override
@@ -299,6 +332,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
299 332
     @Override
300 333
     public void showData() {
301 334
         data_laout.setVisibility(View.VISIBLE);
335
+        fragmentReportTablayout.setVisibility(View.VISIBLE);
302 336
         nodata_layout.setVisibility(View.GONE);
303 337
 
304 338
     }
@@ -418,7 +452,7 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
418 452
 //获取到数据
419 453
         //维度标识1代表周,2代表月,3代表年
420 454
         int type = mPresenter.getType();
421
-        mPresenter.refreshTabLayout(fragmentReportTablayout, type, chartDatas);
455
+        mPresenter.refreshTabLayout(fragmentReportTablayout, type, title_text, chartDatas);
422 456
     }
423 457
 
424 458
     @Override
@@ -432,7 +466,9 @@ public class ReportSingleFragment extends MVPFragment<ReportSinglePresent, Repor
432 466
     public void goToCatrogyDetial(int catrogy_id) {
433 467
         Intent itnent = new Intent(getActivity(), CatrogyDetialActivity.class);
434 468
         itnent.putExtra(CatrogyDetialActivity.CATROGY_ID, catrogy_id);
469
+        itnent.putExtra(CatrogyDetialActivity.TITLE, mPresenter.getTitle_text());
435 470
         itnent.putExtra(CatrogyDetialActivity.MONEY_TYPE, mType);
471
+        itnent.putExtra(CatrogyDetialActivity.RADIO_TYPE, mPresenter.getType());
436 472
         startActivity(itnent);
437 473
     }
438 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
 

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


+ 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>

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

@@ -153,6 +153,7 @@
153 153
                         android:layout_weight="1"
154 154
                         android:gravity="center_horizontal"
155 155
                         android:lines="1"
156
+                        android:text="23213213123213213213213"
156 157
                         android:textColor="@color/first_text" />
157 158
 
158 159
                     <TextView
@@ -161,7 +162,9 @@
161 162
                         android:layout_height="wrap_content"
162 163
                         android:layout_weight="1"
163 164
                         android:gravity="center_horizontal"
164
-                        android:lines="1"
165
+                        android:singleLine="true"
166
+                        android:ellipsize="end"
167
+                        android:text="23213213123213213213213"
165 168
                         android:textColor="@color/first_text" />
166 169
 
167 170
                     <TextView
@@ -171,6 +174,7 @@
171 174
                         android:layout_weight="1"
172 175
                         android:gravity="center_horizontal"
173 176
                         android:lines="1"
177
+                        android:text="23213213123213213213213"
174 178
                         android:textColor="@color/first_text" />
175 179
                 </LinearLayout>
176 180
 

+ 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>