From da649f08f3b13180bcdee1db7b3d7921e8d176cd Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期四, 16 一月 2020 11:40:47 +0800
Subject: [PATCH] 修改头像

---
 app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java b/app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java
index 04adca1..94fc65d 100644
--- a/app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java
+++ b/app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java
@@ -74,7 +74,7 @@
     private static final int ADD_DATA = 1;
     private TextView tv_speed,tv_total_score,tv_sat_num;
     private double speed=0.0;
-    private ImageView iv_rtk_status;
+    private ImageView iv_rtk_status,iv_head;
 
     private int currTotalScore = 100;
     private List<ScoreBean> mArrayList = new ArrayList<>();
@@ -236,6 +236,7 @@
         houseView = view.findViewById(R.id.hv);
 
         iv_rtk_status = view.findViewById(R.id.iv_rtk_connect);
+        iv_head = view.findViewById(R.id.iv_head);
         tv_sat_num = view.findViewById(R.id.tv_sat_num);
         tv_speed = view.findViewById(R.id.tv_speed);
         tv_total_score = view.findViewById(R.id.tv_total_score);
@@ -288,9 +289,11 @@
                 } catch (JSONException e) {
                     e.printStackTrace();
                 }
+                iv_head.getDrawable().setLevel(1);
                 break;
             case R.id.tv_stop:
                 Toast.makeText(_mActivity, "缁撴潫鑰冭瘯", Toast.LENGTH_SHORT).show();
+                iv_head.getDrawable().setLevel(0);
                 stopExam();
                 break;
             case R.id.view_map:

--
Gitblit v1.8.0