Skip to content

Instantly share code, notes, and snippets.

@gvr23
Created January 23, 2018 22:58
Show Gist options
  • Save gvr23/fa928668b3d9f60528ad9856e08373c9 to your computer and use it in GitHub Desktop.
Save gvr23/fa928668b3d9f60528ad9856e08373c9 to your computer and use it in GitHub Desktop.
add a simple apinner adapter
bankList.add(0, new BancoBean("000", "Seleccione Banco"));
ArrayAdapter<BancoBean> dataAdapter = new ArrayAdapter<BancoBean>(getBaseContext(), android.R.layout.simple_spinner_item, bankList);
dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_item);
spBanks.setAdapter(dataAdapter);
class implements AdapterView.OnItemSelectedListener
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment