在linearlayout上画个边框线

 
  

xml version="1.0" encoding="UTF-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android"> 

<solid android:color="#FFFFFF" />

<stroke android:width="1dp" android:color="#000000" />

<padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp" />

shape>


<LinearLayout

android:id="@+id/completed_wrap"

android:layout_width="33dip"

android:layout_height="wrap_content"

android:gravity="center"

android:orientation="horizontal"

android:background="@drawable/border" >

LinearLayout>

你可能感兴趣的:(android)