title: how to detect if the drop down menu is shown above or below the spinner in android?
body: <p>I m working on design were spinner looks custom 
  what i want is when spinner popup drop down below the spinner i want to used 
  popupbackground image different and when it popup above the spinner i want to use popup background different</p>
  
  <p>here is my Xml code:</p>
  
  <pre><code> &lt;Spinner
      android:id="@+id/spinner1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:spinnerMode="dropdown"
      android:popupBackground="@drawable/spinnerbottombg"
      android:overlapAnchor="false"
      android:drawSelectorOnTop="false"
  
      /&gt;
  </code></pre>
  
  <p>now question is how do i know spinner open the dropdown list above or below it</p>