I am using AutoCompleteTextView in my layout. But it colorControlNormal and Activate does not work as I expected.
My color value is #0072BA .
The figure below is for different devices.
1.) Android Kitkat

2.) Android LolliPop

3.) Android Marshmallow

The xml code I used is below
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/md_black_1000" android:layout_marginTop="5dp" android:textSize="15sp" android:text="Medical Store Name" android:textColorHint="#999999" android:layout_below="@+id/search_drug_store" android:id="@+id/autoCompleteTextView_storename" android:layout_marginLeft="15dp" android:layout_marginRight="10dp"/> <AutoCompleteTextView android:id="@+id/autoCompleteTextView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" android:textSize="12sp" android:textColor="#999999" android:layout_below="@+id/autoCompleteTextView_storename" android:layout_marginLeft="25dp" android:inputType="textNoSuggestions" android:layout_marginRight="10dp"/>
I don't give any AutoCompleteTextView style, and then why is this happening?
What I tried:
If I give this style
Reference to the reference material:
http://www.materialdoc.com/autocomplete-view/
and enter this style
<style name="Autocomplete" parent="Widget.AppCompat.Light.AutoCompleteTextView"> <item name="android:background">@color/green500</item> <item name="colorControlNormal">@color/amber500</item> <item name="colorControlActivated">@color/cyan500</item> </style>
But nothing has changed in Lollipop.
Is this a bug in the lollipop version or am I something wrong?
android android-layout android-5.1.1-lollipop android-design-library autocompletetextview
Ironman
source share