<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/content_bg"
android:paddingBottom="10dp">
</RelativeLayout>
drawable/content_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<stroke android:width="1px" android:color="#E0E0E0" /><!--边框颜色-->
<solid android:color="#FFFCFCFC" /><!--填充色-->
<corners android:radius="4dp" />
</shape>
</item>
</layer-list>
android 布局边框
猜你喜欢
转载自staroflife.iteye.com/blog/1748817
今日推荐
周排行