app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
app/src/main/res/drawable/head_select.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
app/src/main/res/drawable/signenter.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
app/src/main/res/drawable/signexit.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
app/src/main/res/layout/profile_layout.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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: app/src/main/res/drawable/head_select.xml
New file @@ -0,0 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <level-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:drawable="@drawable/signenter" android:maxLevel="1" android:minLevel="1"/> <item android:drawable="@drawable/signexit" android:maxLevel="0" android:minLevel="0"/> </level-list> app/src/main/res/drawable/signenter.png
app/src/main/res/drawable/signexit.png
app/src/main/res/layout/profile_layout.xml
@@ -14,7 +14,7 @@ android:layout_weight="1" android:scaleType="fitXY" android:src="@drawable/header" /> android:src="@drawable/head_select" /> <LinearLayout android:layout_width="0dp"