So I was working with this SearchView
and everything looked fine in the emulator.
when I tested it in the actual device, all of the icons turned white.
I looked up on some of the sources on how to style the SearchView
but most of them are maybe outdated and nothing seems to work.
Current SearchView XML:
<SearchView
android:id="@+id/lead_search_view"
style="@style/AppTheme.SearchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/custom_background_spinner"
android:iconifiedByDefault="false"
android:queryBackground="@android:color/transparent"
android:queryHint="Enter a keyword"
android:theme="@style/AppTheme.SearchView" />
The style that I followed on some solutions:
<style name="AppTheme.SearchView" parent="Widget.AppCompat.SearchView">
<item name="android:textColor">@color/colorPrimary</item>
<item name="android:textColorHint">@color/colorHint</item>
<item name="searchIcon">@drawable/ic_search_field_icon</item>
</style>