标签: java android android-studio layout
我想在TextViewLayout上面添加一个下划线,如下图所示:
任何解决方案?
答案 0 :(得分:1)
试试这个: -
android:drawableLeft="@drawable/imageWillChange"
OR
Drawable img = getContext().getResources().getDrawable( R.drawable.smiley ); txtVw.setCompoundDrawablesWithIntrinsicBounds( img, null, null, null);