0

In my application drop down listview of AutoCompleteTextView background turn black. How to change the drop down listview background color is white.

Here is my code

 <application
       android:theme="@style/Theme.AppCompat"> 

style.xml

<resources>
    <style name="AppBaseTheme" parent="android:Theme.Light">
    </style>
    <style name="Theme.MyCompatTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
    </style>

</resources>

When i some changes in style.xml my Custom Action Bar is not working and getting exception of this Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.support.v7.app.AppCompatDelegateImplBase.onCreate(AppCompatDelegateImplBase.java:122)

Cœur
  • 37,241
  • 25
  • 195
  • 267
p. ld
  • 585
  • 3
  • 10
  • 23
  • 1
    Have a look http://stackoverflow.com/questions/21814825/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity – Deepanker Chaudhary Dec 11 '15 at 05:36
  • Thanks for the reply , I used custom listview with AutoCompletetextView and set the background color is white. – p. ld Dec 11 '15 at 06:09

0 Answers0