| | |
| | | import androidx.recyclerview.widget.RecyclerView; |
| | | |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.config.UserConfigManage; |
| | | import com.hdl.photovoltaic.ui.bean.HouseIdBean; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | if (!houseIdBean.isMove()) { |
| | | holder.houseSelectIv.setVisibility(View.VISIBLE); |
| | | holder.houseSelectIv.setBackground(null); |
| | | holder.homeNameTv.setTextColor(mContext.getColor(R.color.text_90000000)); |
| | | if (houseIdBean.isState_select()) { |
| | | holder.homeNameTv.setTextColor(mContext.getColor(R.color.text_38C494)); |
| | | holder.houseSelectIv.setBackground(AppCompatResources.getDrawable(mContext, R.drawable.select)); |
| | | } |
| | | } else { |
| | |
| | | } else { |
| | | this.mList.clear(); |
| | | } |
| | | |
| | | if (newData == null) { |
| | | newData = new ArrayList<>(); |
| | | } |
| | | this.mList.addAll(newData); |
| | | notifyDataSetChanged(); |
| | | } |