 <p>For me the accepted answer throwed an exception so what I did was this.</p> <pre><code> ArrayAdapter adapter = new ArrayAdapter&lt;&gt;(getActivity(), android.R.layout.simple_spinner_item, Collections.emptyList()); spinner.setAdapter(adapter); </code></pre>