My spinner has a background:
<android.support.v7.widget.AppCompatSpinner
android:id="@+id/jobTypeSpinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ic_spinner_dropdown_line" />
In API level 19, it has a very bad appearance, But if I don't set any background in XML its appearance will be good in API level 19 I want to remove the background programmatically but when I set the following code
jobTypeSpinner.setBackgroundDrawable(null)
or
jobTypeSpinner.setBackgroundColor(0)
or
jobTypeSpinner.setBackgroundResource(0)
The dropdown icon will gone.
please help me to set default backgrand that has dropdown icon.