Back to project page ElyTheme.
The source code is released under:
GNU General Public License
If you think the Android project ElyTheme listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.afollestad.silk.adapters; //from w w w. j av a2 s .com import android.content.Context; import android.widget.ArrayAdapter; import com.afollestad.silk.R; /** * @author Aidan Follestad (afollestad) */ public class SilkSpinnerAdapter extends ArrayAdapter<String> { public SilkSpinnerAdapter(Context context) { super(context, R.layout.spinner_item); super.setDropDownViewResource(R.layout.spinner_item_dropdown); } public SilkSpinnerAdapter(Context context, String[] items) { this(context); addAll(items); } public SilkSpinnerAdapter(Context context, int stringArrayRes) { this(context); addAll(context.getResources().getStringArray(stringArrayRes)); } }