Arrayadapter Requires The Resource Id To Be A Textview In Dialogfragment
I use an ArrayAdapter in a DialogFragment, that work on Android 4.0 and more but not in 2.3. @Override public Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Bu
Solution 1:
You need to use this ArrayAdapter Constructor.
ArrayAdapter(Context context, int resource, int textViewResourceId, List<T> objects);
EDIT:
ArrayAdapter<String> adapterList = newArrayAdapter<String>(getActivity(), R.layout.customspinnerregul, R.id.tvcustomspinner, al)
Post a Comment for "Arrayadapter Requires The Resource Id To Be A Textview In Dialogfragment"