我想设置Edittext的边框和listview的项目,如图所示:
我的xml代码如下:
android:background="#BDD6E0"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical" >
android:background="#BDD6E0"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical" >
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Search"
android:textColor="#000000"
android:background="#FFFFFF"
android:textAppearance="?android:attr/textAppearanceLarge" />
android:id="@+id/search_pat_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="#000000"
android:layout_weight="4">
android:background="#c0c0c0"
android:layout_height="0dp"
android:layout_width="match_parent"
android:layout_weight="6" >
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:layout_weight="1" >
如何在listview项目中绘制边框?