Android AutoCompleteTextView result in List instead of default dropdown
<p>Android AutoCompleteTextView search and returns the result in List instead of default dropdown.</p>

<p>Is there a way that I could redesign and put the result of an AutoCompleteTextView into a list other than to its default list design?</p>

<p>In my MainActivity, I have this:</p>

<pre><code>    String[]fruits = {"apple", "avocado", "banana", "blackberry", "blueberry", "coconut", "durian", "mango", "melon"};

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ArrayAdapter&lt;String&gt; stringArrayAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.select_dialog_item, fruits);

    AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) findViewById(R.id.autocom);
    autoCompleteTextView.setAdapter(stringArrayAdapter);
    autoCompleteTextView.setTextColor(Color.RED);

    ListView lv = (ListView) findViewById(R.id.lv);
    lv.setAdapter(stringArrayAdapter);

}
</code></pre>

<p>In My xml,</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.android.autocompletenativesample.MainActivity"&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="15dp"
        android:text="Pick a Fruit"
        android:id="@+id/tv"
        /&gt;
    &lt;AutoCompleteTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:id="@+id/autocom"
        android:layout_below="@+id/tv"
        android:layout_marginLeft="36dp"
        android:layout_marginTop="17dp"
        android:completionThreshold="1"
        /&gt;
    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="ListView Implementation"
        android:layout_below="@+id/autocom"
        android:id="@+id/tv2"
        /&gt;
    &lt;ListView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/lv"
        android:layout_below="@+id/tv2"
        &gt;

    &lt;/ListView&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="RecyclerView Implementation"
        android:layout_below="@+id/lv"
        /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>Furthermore, here is a <a href="http://i.stack.imgur.com/GUI94.png" rel="nofollow">Visual Explanation</a>. It will search in AutoCompleteTextView field but the result will not be displayed below instead on another layout. </p>

<p>Should I edit the ArrayAdapter ang change the layout, or have a CustomAutoCompleteTextView that implements AutoCompleteTextView or and EditText that implements AutoCompleteTextView. </p>

<p>I desire for my AutoCompleteTextView's Result to be formatted like this. 
<a href="http://i.stack.imgur.com/LvL9m.jpg" rel="nofollow">RecyclerView and CardView Result design</a></p>

<p>Thanks.</p>