android布局layout边框颜色

布局文件layout背景色里:
  <LinearLayout
            android:layout_width="130dp"
            android:layout_height="104dp"
            android:background="@drawable/bg_frame"
            android:orientation="vertical" >
drawable/bg_frame.xml内容如下
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- 连框颜色值 --><item>
    <shape>
        <solid android:color="#DBDBDB" />
    </shape>
</item>
    <!-- 主体背景颜色值 -->
    <item android:bottom="1dp" android:right="1dp">
        <shape>
            <solid android:color="#ffffff" />
            <padding android:bottom="10dp"
                android:left="10dp"
                android:right="10dp"
                android:top="10dp" />
        </shape>
    </item>
</layer-list>

你可能感兴趣的:(android,layout,布局)