| | |
| | | import com.xw.yunwei.databinding.DialogCarFilterBinding |
| | | import com.xw.yunwei.extension.colorIdToColorValue |
| | | import com.xw.yunwei.extension.dpToPx |
| | | import com.xw.yunwei.extension.drawableIdToColorValue |
| | | import com.xw.yunwei.extension.drawableIdToDrawable |
| | | import com.xw.yunwei.extension.hideKeyboardAndClearFocus |
| | | import com.xw.yunwei.model.CarModel |
| | | import com.xw.yunwei.ui.work.AMapFragment |
| | |
| | | binding.filter.setCompoundDrawables( |
| | | null, |
| | | null, |
| | | (if (viewModel.hadFilter()) R.drawable.svg_filter2 else R.drawable.svg_filter).drawableIdToColorValue( |
| | | (if (viewModel.hadFilter()) R.drawable.svg_filter2 else R.drawable.svg_filter).drawableIdToDrawable( |
| | | this |
| | | )?.apply { |
| | | setBounds( |