title: Adding icons to Spinner dropdown items in Android
body: <p>I have a spinner with custom theme in my android application. What I need is to add custom icons to each drodown item. The dropdown layout is:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;CheckedTextView
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      style=&quot;@style/spinnerDropDownItemStyle&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:ellipsize=&quot;marquee&quot;
      android:textAlignment=&quot;viewStart&quot;
      android:paddingStart=&quot;10dp&quot;
      android:paddingEnd=&quot;10dp&quot;
      android:paddingTop=&quot;5dp&quot;
      android:paddingBottom=&quot;5dp&quot;
      android:textSize=&quot;18sp&quot;
      android:textColor=&quot;@android:color/black&quot;
      android:singleLine=&quot;true&quot; /&gt;
  </code></pre>
  <p>And I add it to my spinner adapter by this code:</p>
  <pre><code>zoneAdapter.setDropDownViewResource(R.layout....)
  </code></pre>
  <p>It is working perfectly. Now I need to add Icons. Any help will be appreciated.</p>