diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoAdapter.java b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoAdapter.java index 8b73773860..03138ae53d 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoAdapter.java +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckInfoAdapter.java @@ -1,6 +1,7 @@ package com.mogo.eagle.core.function.check.view; import android.content.Context; +import android.text.TextPaint; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -50,10 +51,18 @@ public class CheckInfoAdapter extends RecyclerView.Adapter { if (position == 0 || position == 2) { ((CheckInfoViewHolder) holder).checkIcon.setVisibility(View.GONE); ((CheckInfoViewHolder) holder).mTextView.setText("模块名称"); + TextPaint tp = ((CheckInfoViewHolder) holder).mTextView.getPaint(); + tp.setFakeBoldText(true); + ((CheckInfoViewHolder) holder).backImage.setVisibility(View.VISIBLE); + } else if (position == 1 || position == 3) { ((CheckInfoViewHolder) holder).checkIcon.setVisibility(View.GONE); ((CheckInfoViewHolder) holder).mTextView.setText("运行状态"); + TextPaint tp = ((CheckInfoViewHolder) holder).mTextView.getPaint(); + tp.setFakeBoldText(true); + ((CheckInfoViewHolder) holder).backImage.setVisibility(View.VISIBLE); } else { + ((CheckInfoViewHolder) holder).backImage.setVisibility(View.INVISIBLE); try { if ((position - 4) < showData.size() * 2) { int index = (position - 4) / 2; @@ -99,11 +108,13 @@ public class CheckInfoAdapter extends RecyclerView.Adapter { public class CheckInfoViewHolder extends RecyclerView.ViewHolder { private ImageView checkIcon; private TextView mTextView; + private View backImage; public CheckInfoViewHolder(View v) { super(v); checkIcon = v.findViewById(R.id.info_check_icon); mTextView = v.findViewById(R.id.info_result_tx); + backImage = v.findViewById(R.id.backImage); } } } diff --git a/core/function-impl/mogo-core-function-check/src/main/res/drawable/check_driver.xml b/core/function-impl/mogo-core-function-check/src/main/res/drawable/check_driver.xml index 04aae14090..f0547c73db 100644 --- a/core/function-impl/mogo-core-function-check/src/main/res/drawable/check_driver.xml +++ b/core/function-impl/mogo-core-function-check/src/main/res/drawable/check_driver.xml @@ -1,5 +1,5 @@ - - + + \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-check/src/main/res/layout/check_info_adapter.xml b/core/function-impl/mogo-core-function-check/src/main/res/layout/check_info_adapter.xml index 040a9beb64..28c98605cf 100644 --- a/core/function-impl/mogo-core-function-check/src/main/res/layout/check_info_adapter.xml +++ b/core/function-impl/mogo-core-function-check/src/main/res/layout/check_info_adapter.xml @@ -3,16 +3,25 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="@dimen/dp_405" android:layout_height="@dimen/dp_127" - android:layout_gravity="left" - android:layout_marginLeft="@dimen/dp_34"> + android:layout_gravity="left"> + +