ユーザーから苦情があります:
「MultiAutoCompleteTextView コントロールにテキストを入力すると -> テキストと背景の色が同じでテキストが読めない!」
実際には、デバイスから提供された色を使用しています。
ここに私のxmlがあります:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:drawable/title_bar"
android:id="@+id/title_layout" android:padding="5dp">
<TextView
android:id="@+id/tv_label"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:paddingLeft="5dp" android:layout_toLeftOf="@+id/btn_send"
android:textColor="@android:color/primary_text_light" android:textStyle="bold"
android:text="@string/_Find" android:layout_alignBaseline="@+id/btn_send" />
<Button
android:id="@+id/btn_send" android:text="@string/Search"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:layout_alignParentRight="true"/>
</RelativeLayout>
<MultiAutoCompleteTextView
android:id="@+id/search_city"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginTop="3dp" android:layout_below="@+id/title_layout"
android:completionThreshold="1"
android:hint="@string/CityResort"
android:imeOptions="actionNext"
android:nextFocusRight="@+id/search_address"
android:drawableRight="@android:drawable/ic_input_delete"
android:singleLine="true"
android:text=""
>
<requestFocus />
</MultiAutoCompleteTextView>
<MultiAutoCompleteTextView
android:id="@+id/search_address"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/search_city"
android:layout_alignParentLeft="true"
android:completionThreshold="1"
android:hint="@string/adres_or_poi_name"
android:imeOptions="actionDone"
android:paddingTop="10dp"
android:drawableRight="@android:drawable/ic_input_delete"
android:singleLine="true"
android:text=""
/>
<FrameLayout
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_alignParentBottom="true" />