title: android spinner dropdown custom
body: <p>I use spinner to show something, this is my code :</p>
  
  <pre><code>ArrayAdapter&lt;ClassName&gt; adapter = new ArrayAdapter&lt;ClassName&gt;(getActivity(), android.R.layout.simple_spinner_dropdown_item, nameList);
                  adapter.setDropDownViewResource(android.R.layout.simple_list_item_single_choice);
  </code></pre>
  
  <p>with this code, when click on spinner, I can see text and checkbox.<br>
  after that, I try to custom spinner like this :</p>
  
  <pre><code>ArrayAdapter&lt;ClassName&gt; adapter = new ArrayAdapter&lt;ClassName&gt;(getActivity(),
                          R.layout.list_spinner, tenfavList);
                  adapter.setDropDownViewResource(R.layout.list_spinner_dropdown);
  </code></pre>
  
  <p>this is list_spinner_dropdown.xml :</p>
  
  <pre><code>&lt;CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:textAllCaps="true"
  android:singleLine="true"
  android:ellipsize="end"
  android:textColor="#0004ff"
  android:textSize="@dimen/20sp"/&gt;
  </code></pre>
  
  <p>when but with this code, when click on spinner, I just see text, and no checkbox.<br>
  how to fix it ?</p>