1、画虚线,实线:
建立dotted_line_gray.xml文件放在drawable文件夹下面。
android:shape="line" 可以修改你想要的形状
android:shape="line">
android:dashWidth="2dp" android:dashGap="3dp" />
然后在布局的xml里面:
作为ImageView或者Linearlayout等作为背景源就可以了。
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:background="@drawable/dotted_line_gray" />
2、画圆角矩形
建立 rect_gray.xml文件放在drawable文件夹下面。
android:shape="rectangle">
然后在布局的xml里面:
作为ImageView或者Linearlayout等作为背景源就可以了。
android:layout_width="wrap_content"
android:layout_height=&