Android EditText draw a divider line between its drawable and its text
问题 I have an EditText with a drawableLeft image. I need to add a vertical line in EditText right beside my drawableLeft like this example: Easiest way that I can think of is to add that line into my drawable image. But generally is there any other way to do this? 回答1: Create a rectangular rounded corner shape in res/drawable/shape.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <stroke android:width="3dip" android:color="@android