我怎样才能做到这一点(或者类似的事情)?寻找一些‘下划线’,这将是元素的宽度。我在想一个可拖的,但我不太确定伸展运动会有什么效果。谢谢。

编辑
创建了一个新的XML文件,并将其包含在每个标题下,效果非常好。
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
<View
android:id="@+id/layout_underline"
android:layout_width="match_parent"
android:layout_height="3dip"
android:background="@color/layout_underline" />
</merge>发布于 2013-04-22 20:42:17
您可以通过在XML中创建视图获得它,如下所示:
<View
android:layout_width="fill_parent"
android:layout_height="2dp" /> 你可以根据需要定制它,
希望能帮助你
发布于 2013-04-22 20:17:31
创建一个9补丁映像,并将其设置为TextViews的背景。
下面是9修补程序资源页面:http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch
https://stackoverflow.com/questions/16155913
复制相似问题