| | |
| | | //状态;1-未受理,2-已受理,3已删除 |
| | | switch (record.getStateId()) { |
| | | case 1://未受理 |
| | | mHolder.mBinding.stateText.setTextColor(activity.getResources().getColor(R.color.white, null)); |
| | | mHolder.mBinding.stateText.setBackground(activity.getResources().getDrawable(R.drawable.order_state_wait_bg, null)); |
| | | mHolder.mBinding.stateText.setTextColor(activity.getResources().getColor(R.color.black, null)); |
| | | mHolder.mBinding.stateText.setBackground(activity.getResources().getDrawable(R.drawable.order_state_no_bg, null)); |
| | | mHolder.mBinding.replyContentLL.setVisibility(View.GONE); |
| | | mHolder.mBinding.replyTimeLL.setVisibility(View.GONE); |
| | | break; |
| | | case 2://已受理 |
| | | mHolder.mBinding.stateText.setTextColor(activity.getResources().getColor(R.color.white, null)); |
| | | mHolder.mBinding.stateText.setBackground(activity.getResources().getDrawable(R.drawable.order_state_finish_bg, null)); |
| | | mHolder.mBinding.stateText.setBackground(activity.getResources().getDrawable(R.drawable.order_state_wait_bg, null)); |
| | | mHolder.mBinding.replyContentLL.setVisibility(View.VISIBLE); |
| | | mHolder.mBinding.replyTimeLL.setVisibility(View.VISIBLE); |
| | | break; |