1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
布局文件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>