Fixed the white on white for autoCompleteTextView

This commit is contained in:
Pavol Zibrita 2012-02-16 22:51:40 +01:00
parent f85c357704
commit a7d54ec821
4 changed files with 13 additions and 11 deletions

View file

@ -14,7 +14,7 @@
</TableRow>
<TableRow>
<Button android:text="&lt;Type&gt;" android:id="@+id/TypeButton" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<AutoCompleteTextView android:text="" android:id="@+id/Type" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_height="wrap_content" android:layout_width ="fill_parent"/>
<AutoCompleteTextView style="@style/OsmandAutoCompleteTextView" android:text="" android:id="@+id/Type" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_height="wrap_content" android:layout_width ="fill_parent"/>
<!-- <EditText android:text="" android:id="@+id/Type" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_height="wrap_content" android:layout_width = "fill_parent" /> -->
</TableRow>
<TableRow>

View file

@ -11,7 +11,7 @@
<TableRow>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/favourites_edit_dialog_category"/>
<AutoCompleteTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="3dp"
<AutoCompleteTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="3dp"
android:id="@+id/Category" android:completionThreshold="1"/>
</TableRow>
</TableLayout>

View file

@ -2,5 +2,6 @@
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="20sp" android:textStyle="bold">
android:layout_height="wrap_content" android:textSize="20sp" android:textStyle="bold"
style="@style/Widget.DropDownItem">
</TextView>

View file

@ -58,25 +58,27 @@
<item name="android:background">@color/color_white</item>
<item name="android:textColor">@color/color_black</item>
</style>
<style name="OsmandTheme" parent="android:style/Theme">
<style name="OsmandTheme" parent="@android:style/Theme">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowBackground">@color/activity_background</item>
<item name="android:textColor">@color/activity_text</item>
<item name="android:spinnerItemStyle">@style/OsmandSpinnerItem</item>
<item name="android:autoCompleteTextViewStyle">@style/Widget.AutoCompleteTextViewLight</item>
<item name="android:dropDownItemStyle">@style/Widget.DropDownItemLight</item>
<item name="android:autoCompleteTextViewStyle">@style/Widget.AutoCompleteTextViewLight</item>
</style>
<style name="OsmandAutoCompleteTextView">
<item name="android:textColor">@color/color_black</item>
</style>
<style name="Widget.AutoCompleteTextViewLight" parent="@android:style/Widget.AutoCompleteTextView">
<item name="android:textColor">@color/color_black</item>
<item name="android:textColor">@color/color_black</item>
</style>
<style name="Widget.DropDownItemLight" parent="@android:style/Widget.DropDownItem">
<item name="android:textColor">@color/color_black</item>
<style name="Widget.DropDownItem" parent="@android:style/Widget.DropDownItem">
<item name="android:textColor">@color/color_black</item>
</style>
<style name="OsmandSpinnerItem" parent="android:Widget.TextView.SpinnerItem">
<item name="android:textAppearance">@style/OsmandTextAppearanceSpinnerItem</item>
</style>
<style name="OsmandTextAppearanceSpinnerItem" parent="android:TextAppearance.Widget.TextView.SpinnerItem">
<item name="android:textColor">#000000</item>
<item name="android:textColor">@color/color_black</item>
</style>
<style name="CustomWindowTitleBackground">
<item name="android:background">@color/activity_background</item>
@ -85,7 +87,6 @@
<item name="android:windowTitleSize">46dp</item>
<item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackground</item>
<item name="android:preferenceScreenStyle">@style/OsmandTheme</item>
<!-- item name="android:preferenceCategoryStyle">@style/OsmandTheme</item-->
</style>
<style name="OsmandListView">
<item name="android:cacheColorHint">@color/activity_background</item>