Try this tip, then ...
First try changing the Adapter to this (if it doesn't work, try with the second option:
emailView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line, Utils.getUniqueEmailsFromAccount(this)));
1 # Create a style like this:
<style name="CustomAuto"> <item name="android:paddingTop">3dp</item> <item name="android:paddingRight">5dp</item> <item name="android:paddingBottom">3dp</item> <item name="android:paddingLeft">5dp</item> <item name="android:textColor">#000</item> </style>
2 # Create a Layout as follows:
<?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/any_id" style="@style/CustomAuto" android:singleLine="true" />
3 # Change your Adapter to:
emailView.setAdapter(new ArrayAdapter<>(this,R.layout.text_custom_view, Utils.getUniqueEmailsFromAccount(this)));
source share