| | |
| | | com.xw.common.R.color.blue_5 |
| | | ) |
| | | ) |
| | | etInput.setBackgroundResource(if(set.first() == "其他"){ |
| | | R.drawable.shape_red_5_line_gray_3_bg_4 |
| | | }else{ |
| | | R.drawable.shape_gray_4_line_gray_3_bg_4 |
| | | }) |
| | | } |
| | | etInput.addTextChangedListener { |
| | | if ((it?.length ?: 0) >= 200) { |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <shape xmlns:android="http://schemas.android.com/apk/res/android"> |
| | | <stroke |
| | | android:width="@dimen/dp_1" |
| | | android:color="@color/gray_4" /> |
| | | <corners android:radius="@dimen/dp_4" /> |
| | | <solid android:color="@color/gray_3" /> |
| | | </shape> |
| | |
| | | android:layout_marginHorizontal="@dimen/dp_20" |
| | | android:layout_marginTop="@dimen/dp_4" |
| | | android:layout_marginBottom="@dimen/dp_8" |
| | | android:background="@drawable/shape_red_5_line_gray_3_bg_4" |
| | | android:background="@drawable/shape_gray_4_line_gray_3_bg_4" |
| | | android:gravity="top|start" |
| | | android:hint="请输入改派原因" |
| | | android:maxLength="200" |