I have implemented a custom Adapter for my AutoCompleteTextView
along with a custom list item view for the suggestions. Everything works except the suggestions dialog clips the suggestions. This is most likely caused by the fact that the textview is multiline but I can't figure out how to tell the suggestions popup to expand to fill the entire view. Here is my code for the view:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="none"
android:textColor="@android:color/black"
android:textSize="15dp"
android:padding="10dp" />
</RelativeLayout>
Here is an image to what it looks like:
I also noticed that it doesn't clip if the android version is higher, I am testing on 2.3.5 and it clips (my phone) but on 4.1 (emulator) it looks fine.
Anyone know how to fix this?