title: android edittext with drop down list
body: <p>I have an edittext which gets values from the user. I want to add an option which allows the user to choose from different options via drop down list when edittext is clicked. Does anyone have an idea how to do this?</p>
  
  <p>This is edittext code:</p>
  
  <pre><code>&lt;EditText
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:inputType="textPersonName"
      android:ems="10"
      android:id="@+id/dish_quantity"
      android:layout_below="@+id/dish_name"
      android:layout_alignParentRight="true"
      android:layout_alignParentEnd="true"
      android:hint="Quantity" /&gt;
  </code></pre>
  
  <p>I want it to look like this: </p>
  
  <p><img src="https://i.stack.imgur.com/1CtaR.png" alt="enter image description here"></p>