Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mojSpiner.setOnItemSelectedListener(new OnItemSelectedListener() {
- @Override
- public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {
- String izabrano = izbor.get(position);
- String izabranoIsto = (String) lista.getItemAtPosition(position);
- rezim = position;
- Toast.makeText(getApplicationContext(), "Izabrali ste: " + izabrano, Toast.LENGTH_LONG).show();
- }
- @Override
- public void onNothingSelected(AdapterView<?> parentView) {
- // your code here
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement