0
我做了一个自动完成的文本字段,但它只显示基线。我看到手机中的editfield是矩形框。但在设备中显示简单的基线,如图所示,请告诉我如何使矩形这样它看起来一样编辑文本字段如何使自动完成字段与文本字段相同?
它看起来应该与黑色边框和用户的矩形在矩形输入文字.. 这里是我的代码..
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg1" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="28dp"
android:layout_marginTop="42dp"
android:text="@string/chooseStation"
android:textColor="#000000"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Button
android:id="@+id/item_buttonId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/okButton" />
<AutoCompleteTextView
android:id="@+id/item_autoComplete"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/textView1"
android:layout_alignBottom="@+id/textView1"
android:textCursorDrawable="@null"
android:layout_alignParentRight="true"
android:textColor="#000000" />
</RelativeLayout>