需要下划线的地方<View
android:background="@drawable/shape_line"
android:layout_width="fill_parent"
android:layout_height="1.0px" />以下是drawable中的shape_line.xml<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffe0e0e0" />
</shape>楼主可以试试
android:background="@drawable/shape_line"
android:layout_width="fill_parent"
android:layout_height="1.0px" />以下是drawable中的shape_line.xml<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffe0e0e0" />
</shape>楼主可以试试
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item
android:left="-2dp"
android:right="-2dp"
android:top="-2dp">
<shape>
<solid android:color="#00FFFFFF" /> <stroke
android:width="1px"
android:color="#cc0000" />
</shape>
</item></layer-list>
第二层 shape peddingtop1dp 其余全白
那么效果就是 上面1条黑线