私はちょうどそのようなことをする方法を知りたかった:
ありがとうございました
あなたはそれを行うことができますandroid:drawableBottom="@drawable/YourDrawing"
次のように..
<TextView
android:id="@+id/TV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="23:00"
android:drawableBottom="@drawable/YourDrawing"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/blue"
android:textStyle="bold" />
drawableBottom
あなたの好きなように設定TextView
:
<TextView
android:id="@+id/my_txt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:drawableBottom="@drawable/my_drawable" />
、my_drawable
はリソースフォルダ内にあり、それはあなたの下に必要な緑色の線ですTextView
。