80,351
社区成员
发帖
与我相关
我的任务
分享
<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>
楼主可以试试
<?xml version="1.0" encoding="utf-8"?>
<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>