| | |
| | | |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.config.UserConfigManage; |
| | | import com.hdl.photovoltaic.other.HdlDeviceLogic; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlOtaLogic; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | try { |
| | | ItemData itemData = this.mList.get(position); |
| | | holder.item_lift_name_tv.setText(itemData.getTitle()); |
| | | holder.item_lift_name_tv.setTextColor(mContext.getColor(R.color.text_90000000)); |
| | | holder.item_lift_name_tv.setTextColor(mContext.getColor(R.color.text_E6000000)); |
| | | holder.item_right_icon_iv.setBackground(null); |
| | | if (itemData.isState()) { |
| | | holder.item_lift_name_tv.setTextColor(mContext.getColor(R.color.text_245EC3)); |
| | | |
| | | holder.item_right_icon_iv.setBackground(AppCompatResources.getDrawable(mContext, R.drawable.select_state)); |
| | | holder.item_right_icon_iv.setBackground(AppCompatResources.getDrawable(mContext, R.drawable.select)); |
| | | } |
| | | if (position == this.mList.size() - 1) { |
| | | holder.item_bottom_line_v.setVisibility(View.GONE); |