Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spinner.setOnItemSelectedListener(new OnItemSelectedListener() {
- public void onItemSelected(AdapterView<?> parent, View view, int position, long id)
- {
- String selectedItem = parent.getItemAtPosition(position).toString(); //this is your selected item
- switch(selectedItem){
- //set your edittext inputtype eg. edittext.setInputType(InputType.TYPE_CLASS_TEXT);
- }
- }
- public void onNothingSelected(AdapterView<?> parent)
- {
- } });
Add Comment
Please, Sign In to add comment