首先建一个xml文件类型为drawable<?xml version="1.0" encoding="utf-8"?>
android:width="0.01dp"
android:color="#C6C7CE" />
android:bottom="1dp"
android:left="0.5dp"
android:right="0.5dp"
android:top="0dp" />
android:bottomLeftRadius="4dp"
android:bottomRightRadius="4dp"
android:topLeftRadius="4dp"
android:topRightRadius="4dp" />
在使用的地方引用:
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/border_gray"
android:orientation="vertical"
android:padding="10dp" >