我想要在TextView下方添加一条下划线,该下划线应该覆盖整个父容器的宽度,以使TextView看起来像标题。
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:lines="1"
android:maxLines="2"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/black" />
提前感谢
android:layout_width="fill_parent"
- M D