Layouts file layout background color: <linearlayout android:layout_width= "130DP" android:layout_height= "104DP" android: background= "@drawable/bg_frame" android : orientation= "Vertical" >drawable/bg_frame.xml content as follows <?xml version= "1.0" encoding= "UTF-8"? ><layer-list xmlns:android= "Http://schemas.android.com/apk/res/android" > <!-- Box color values --><item> <shape> <solid android:color= "#DBDBDB" /> </shape></ item> <!-- Body Background color value --> <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>
This article is from the "Android/[email protected]" blog, be sure to keep this source http://liang3391.blog.51cto.com/178205/1637891
Android Layouts layout border color