title: Dropdown shows up on second click - AutoCompleteTextView with a dropdown
body: <p>I have  an <code>AutoCompleteTextView</code> with a simple dropdown in my <code>Home.activity</code> and it works great but Now my app is almost ready to be published, I want to remove some UI glitches, so here's One.<br>
  The Dropdown on the <code>AutoCompleteTextView</code> contains 8 city names and it looks/works great but on first click on the <code>AutoCompleteTextview</code>, the keyboard pops up and then when clicked again ,the dropdown comes.<br> I want this dropdown to come on the first click with the Keyboard.<br><br>Here's my code of implementation.</p>
  
  <pre><code>&lt;AutoCompleteTextView
          android:layout_width="200dp"
          android:layout_height="30dp"
          android:hint="@string/select_city"
          android:id="@+id/acT1"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          android:background="@drawable/shape1"
          android:textAlignment="center"
          app:layout_constraintVertical_bias="0.25"
          android:dropDownHeight="155dp"
          android:cursorVisible="false"
          android:maxLines="1"/&gt;
  
  final ArrayAdapter&lt;String&gt; arrayAdapter = new ArrayAdapter&lt;&gt;(
                  this, android.R.layout.simple_list_item_1, getResources()
                  .getStringArray(R.array.Loc_names));
          textView1 = findViewById(R.id.acT1);
          textView1.setAdapter(arrayAdapter);
          textView1.setThreshold(1);
          textView1.setCursorVisible(false);
          textView1.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
                  textView1.showDropDown();
                  textView1.setCursorVisible(false);
                  hideKeyBoard(view);
                  selection = (String) parent.getItemAtPosition(position);
                  TastyToast.makeText(getApplicationContext(), selection,
                  TastyToast.LENGTH_LONG, TastyToast.SUCCESS);
                  imageView.setAlpha(.8f);
              }
  
  
          });
          textView1.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(final View arg0) {
                  textView1.showDropDown();
                  textView1.setCursorVisible(true);
                  //imageView.setAlpha(.8f);
              }
          });
  </code></pre>
  
  <p><a href="https://giphy.com/gifs/3ohhwDnMGpg3lV8j16" rel="nofollow noreferrer"><strong>Here's the GIF</strong></a>.</p>