Browse Source

Merge remote-tracking branch 'origin/xhz_uiupdate' into xhz_uiupdate

小狼 5 years ago
parent
commit
a3318026eb

+ 1 - 1
app/build.gradle

@@ -15,7 +15,7 @@ android {
15 15
         applicationId "com.smileflowpig.money"
16 16
         minSdkVersion 19
17 17
         targetSdkVersion 28
18
-        versionCode 9
18
+        versionCode 10
19 19
         versionName "2.0.0"
20 20
         multiDexEnabled true
21 21
         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

+ 1 - 0
app/src/main/AndroidManifest.xml

@@ -28,6 +28,7 @@
28 28
         android:largeHeap="true"
29 29
         android:roundIcon="@mipmap/ic_flowpig"
30 30
         android:supportsRtl="true"
31
+        android:networkSecurityConfig="@xml/network_security_config"
31 32
         android:theme="@style/AppTheme">
32 33
         <meta-data
33 34
             android:name="design_width"

+ 2 - 3
app/src/main/java/com/smileflowpig/money/moneyplatfrom/LampView.java

@@ -43,13 +43,12 @@ public class LampView extends FrameLayout {
43 43
     private void setView() {  
44 44
         inflate(getContext(), R.layout.lamp_layout, this);  
45 45
         ButterKnife.bind(this, this);
46
-
47
-    }  
46
+    }
48 47
   
49 48
     private void initView() {
50 49
 
51 50
         lampView.setData((ArrayList<Notice>) list);
52
-        lampView.setTextSize(15);
51
+        lampView.setTextSize(14);
53 52
         lampView.setTimer(3000);
54 53
         lampView.start();
55 54
 

+ 0 - 1
app/src/main/java/com/smileflowpig/money/moneyplatfrom/frags/main/state/PigHomeFragment.java

@@ -163,7 +163,6 @@ public class PigHomeFragment extends PresenterFragment implements View.OnClickLi
163 163
         //获取当前渠道号
164 164
         String channelId = Network.channelId;
165 165
         changid = Integer.parseInt(channelId);
166
-        cardvisible();
167 166
         list = new ArrayList<>();
168 167
         for (int i = 0; i < 6; i++) {
169 168
             list.add("");

+ 11 - 10
app/src/main/java/com/smileflowpig/money/moneyplatfrom/web/WebActivity.java

@@ -204,6 +204,7 @@ public class WebActivity extends PresenterActivity<WebContract.Presenter>
204 204
         webview.setWebChromeClient(new MyWebChromeClient());
205 205
         webview.addJavascriptInterface(new AndroidtoJs(), "native");//AndroidtoJS类对象映射到js的test对象
206 206
         webview.loadUrl(url);
207
+//        webview.loadUrl(" https://m-stg2.tianxiaxinyong.com/cooperation/b-test.html");
207 208
 
208 209
 
209 210
         if (isPop) {
@@ -470,16 +471,15 @@ public class WebActivity extends PresenterActivity<WebContract.Presenter>
470 471
             return super.shouldOverrideUrlLoading(view, url);
471 472
         }
472 473
 
473
-        @Override
474
-        public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
475
-            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
476
-                view.loadUrl(request.getUrl().toString());
477
-            } else {
478
-                view.loadUrl(request.toString());
479
-            }
480
-            return true;
481
-
482
-        }
474
+//        @Override
475
+//        public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
476
+//            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
477
+//                view.loadUrl(request.getUrl().toString());
478
+//            } else {
479
+//                view.loadUrl(request.toString());
480
+//            }
481
+//            return true;
482
+//        }
483 483
 
484 484
         @Override
485 485
         public void onPageStarted(WebView view, String url, Bitmap favicon) {
@@ -657,6 +657,7 @@ public class WebActivity extends PresenterActivity<WebContract.Presenter>
657 657
 
658 658
         //
659 659
         // For Android > 5.0支持多张上传
660
+        @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
660 661
         @Override
661 662
         public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> uploadMsg,
662 663
                                          FileChooserParams fileChooserParams) {

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

@@ -1,7 +1,7 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <com.zhy.autolayout.AutoLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
     xmlns:app="http://schemas.android.com/apk/res-auto"
4
-    android:layout_width="match_parent"
4
+    android:layout_width="wrap_content"
5 5
     android:layout_height="wrap_content"
6 6
     android:gravity="center_vertical"
7 7
     android:orientation="horizontal">
@@ -17,7 +17,7 @@
17 17
 
18 18
     <com.smileflowpig.money.moneyplatfrom.helper.VerticalLampView
19 19
         android:id="@+id/lamp_view"
20
-        android:layout_width="match_parent"
20
+        android:layout_width="wrap_content"
21 21
         android:layout_height="@dimen/len_24"
22 22
         android:layout_marginLeft="@dimen/len_8"
23 23
         android:layout_gravity="center_vertical"

+ 37 - 33
app/src/main/res/layout/pighome_layout.xml

@@ -42,6 +42,7 @@
42 42
                     android:layout_alignParentRight="true"
43 43
                     android:layout_centerVertical="true"
44 44
                     android:layout_marginRight="20px"
45
+                    android:visibility="visible"
45 46
                     android:src="@mipmap/havemessage" />
46 47
             </RelativeLayout>
47 48
         </LinearLayout>
@@ -50,16 +51,12 @@
50 51
             android:id="@+id/home_scroll"
51 52
             android:layout_width="match_parent"
52 53
             android:layout_height="match_parent"
53
-            android:fadingEdge="none"
54
-            android:fillViewport="true"
55
-            android:overScrollMode="never">
54
+          >
56 55
 
57 56
             <LinearLayout
58 57
                 android:layout_width="match_parent"
59 58
                 android:layout_height="wrap_content"
60 59
                 android:background="@color/white"
61
-                android:clipChildren="false"
62
-                android:gravity="center_horizontal"
63 60
                 android:orientation="vertical">
64 61
 
65 62
                 <LinearLayout
@@ -91,6 +88,7 @@
91 88
 
92 89
                         <ImageView
93 90
                             android:id="@+id/pighomemess"
91
+                            android:visibility="visible"
94 92
                             android:layout_width="wrap_content"
95 93
                             android:layout_height="wrap_content"
96 94
                             android:layout_alignParentRight="true"
@@ -117,18 +115,18 @@
117 115
 
118 116
                         <ImageView
119 117
                             android:id="@+id/onedata_img"
120
-                            android:layout_centerHorizontal="true"
121 118
                             android:layout_width="wrap_content"
122 119
                             android:layout_height="wrap_content"
123
-                            android:src="@mipmap/qucklist"/>
120
+                            android:layout_centerHorizontal="true"
121
+                            android:src="@mipmap/qucklist" />
124 122
 
125 123
                         <TextView
126 124
                             android:id="@+id/titleone"
127
-                            android:layout_marginTop="5px"
128 125
                             android:layout_width="wrap_content"
129 126
                             android:layout_height="wrap_content"
130 127
                             android:layout_below="@+id/onedata_img"
131 128
                             android:layout_centerHorizontal="true"
129
+                            android:layout_marginTop="5px"
132 130
                             android:gravity="center"
133 131
                             android:singleLine="true"
134 132
                             android:textColor="@color/text_black"
@@ -157,20 +155,21 @@
157 155
                             android:layout_height="wrap_content"
158 156
                             android:layout_weight="1.2"
159 157
                             android:orientation="vertical">
158
+
160 159
                             <ImageView
161 160
                                 android:id="@+id/twodata_img"
162
-                                android:layout_centerHorizontal="true"
163 161
                                 android:layout_width="wrap_content"
164 162
                                 android:layout_height="wrap_content"
165
-                                android:src="@mipmap/qucknews"/>
163
+                                android:layout_centerHorizontal="true"
164
+                                android:src="@mipmap/qucknews" />
166 165
 
167 166
                             <TextView
168 167
                                 android:id="@+id/titletwo"
169
-                                android:layout_marginTop="5px"
170
-                                android:layout_below="@+id/twodata_img"
171 168
                                 android:layout_width="wrap_content"
172 169
                                 android:layout_height="wrap_content"
170
+                                android:layout_below="@+id/twodata_img"
173 171
                                 android:layout_centerInParent="true"
172
+                                android:layout_marginTop="5px"
174 173
                                 android:gravity="center"
175 174
                                 android:singleLine="true"
176 175
                                 android:textColor="@color/text_black"
@@ -191,17 +190,18 @@
191 190
 
192 191
                             <ImageView
193 192
                                 android:id="@+id/threedata_img"
194
-                                android:layout_centerHorizontal="true"
195 193
                                 android:layout_width="wrap_content"
196 194
                                 android:layout_height="wrap_content"
197
-                                android:src="@mipmap/qucksuccess"/>
195
+                                android:layout_centerHorizontal="true"
196
+                                android:src="@mipmap/qucksuccess" />
197
+
198 198
                             <TextView
199 199
                                 android:id="@+id/titlethree"
200 200
                                 android:layout_width="wrap_content"
201 201
                                 android:layout_height="wrap_content"
202
+                                android:layout_below="@+id/threedata_img"
202 203
                                 android:layout_centerInParent="true"
203 204
                                 android:layout_marginTop="5px"
204
-                                android:layout_below="@+id/threedata_img"
205 205
                                 android:gravity="center"
206 206
                                 android:singleLine="true"
207 207
                                 android:textColor="@color/text_black"
@@ -228,17 +228,18 @@
228 228
 
229 229
                         <ImageView
230 230
                             android:id="@+id/fourdata_img"
231
-                            android:layout_centerHorizontal="true"
232 231
                             android:layout_width="wrap_content"
233 232
                             android:layout_height="wrap_content"
234
-                            android:src="@mipmap/quckcard"/>
233
+                            android:layout_centerHorizontal="true"
234
+                            android:src="@mipmap/quckcard" />
235
+
235 236
                         <TextView
236 237
                             android:layout_width="wrap_content"
237 238
                             android:layout_height="wrap_content"
239
+                            android:layout_below="@+id/fourdata_img"
238 240
                             android:layout_centerHorizontal="true"
239 241
                             android:layout_centerVertical="true"
240 242
                             android:layout_marginTop="5px"
241
-                            android:layout_below="@+id/fourdata_img"
242 243
                             android:gravity="center"
243 244
                             android:text="信用卡"
244 245
                             android:textColor="@color/text_black"
@@ -248,30 +249,33 @@
248 249
 
249 250
                 </RelativeLayout>
250 251
 
251
-
252
-                <com.smileflowpig.money.moneyplatfrom.util.CustomViewpagerView
253
-                    android:id="@+id/pigvp"
252
+                <RelativeLayout
254 253
                     android:layout_width="match_parent"
255
-                    android:layout_height="174px"
256
-                    android:layout_marginLeft="30px"
257
-                    android:layout_marginTop="8px"
258
-                    android:layout_marginRight="30px"
259
-                    android:clipChildren="false" />
254
+                    android:layout_height="wrap_content"
255
+                    android:clipChildren="false">
256
+
257
+                    <com.smileflowpig.money.moneyplatfrom.util.CustomViewpagerView
258
+                        android:id="@+id/pigvp"
259
+                        android:layout_width="match_parent"
260
+                        android:layout_height="174px"
261
+                        android:layout_marginLeft="30px"
262
+                        android:layout_marginTop="8px"
263
+                        android:layout_marginRight="30px"
264
+                        android:clipChildren="false" />
265
+                </RelativeLayout>
260 266
 
261 267
 
262 268
                 <LinearLayout
263
-                    android:layout_width="wrap_content"
269
+                    android:layout_width="340px"
264 270
                     android:layout_height="wrap_content"
265
-                    android:layout_marginLeft="40px"
271
+                    android:layout_gravity="center_horizontal"
266 272
                     android:layout_marginTop="10px"
267 273
                     android:layout_marginBottom="10px"
268
-                    android:gravity="center"
269 274
                     android:orientation="horizontal">
270 275
 
271 276
                     <ImageView
272 277
                         android:layout_width="wrap_content"
273
-                        android:layout_height="18dp"
274
-                        android:scaleType="fitXY"
278
+                        android:layout_height="wrap_content"
275 279
                         android:src="@mipmap/xiaohuazhu" />
276 280
 
277 281
                     <View
@@ -285,13 +289,14 @@
285 289
 
286 290
                     <com.smileflowpig.money.moneyplatfrom.LampView
287 291
                         android:id="@+id/piglampview"
288
-
289 292
                         android:layout_width="wrap_content"
293
+                        android:visibility="visible"
290 294
                         android:layout_height="match_parent" />
291 295
                 </LinearLayout>
292 296
 
293 297
                 <com.stx.xhb.xbanner.XBanner
294 298
                     android:id="@+id/pigbanner"
299
+                    android:layout_gravity="center_horizontal"
295 300
                     android:layout_width="355px"
296 301
                     android:layout_height="108px"
297 302
                     app:AutoPlayTime="3000"
@@ -351,7 +356,6 @@
351 356
                             android:id="@+id/pig_home_hotplat_img"
352 357
                             android:layout_width="match_parent"
353 358
                             android:layout_height="match_parent"
354
-
355 359
                             android:scaleType="fitXY"
356 360
                             android:src="@mipmap/hot_platform" />
357 361
                     </RelativeLayout>

BIN
app/src/main/res/mipmap-xxxhdpi/xiaohuazhu.png


BIN
app/src/main/res/mipmap-xxxhdpi/xiaohuazhu.webp


+ 4 - 0
app/src/main/res/xml/network_security_config.xml

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<network-security-config>
3
+    <base-config cleartextTrafficPermitted="true" />
4
+</network-security-config>

BIN
common/src/main/res/drawable-xxhdpi/tabbar_creditcard17.png


BIN
common/src/main/res/drawable-xxhdpi/tabbar_creditcard_highlight17.png


+ 2 - 2
common/src/main/res/layout/item_lamp_layout.xml

@@ -1,13 +1,13 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
     xmlns:tools="http://schemas.android.com/tools"
4
-    android:layout_width="match_parent"
4
+    android:layout_width="wrap_content"
5 5
     android:layout_height="wrap_content" >
6 6
 
7 7
 
8 8
     <TextView
9 9
         android:id="@+id/tv_info"
10
-        android:layout_width="match_parent"
10
+        android:layout_width="wrap_content"
11 11
         android:layout_height="wrap_content"
12 12
         android:layout_centerVertical="true"
13 13
         android:ellipsize="end"