If i select "New customer" in customertype spinner(spn_cust) i have to show a view containing button,Spinner,Editext,textview.If i select "Existing Customer" i have to get another view conatining Button,Editext. How is it possible?Should i hide one xml while selecting one option?Programatically how will i solve this issue??
pncustomertype.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1,
int position, long arg3) {
//String item = spncustomertype.getItemAtPosition(position).toString();
}
@Override
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
});
No comments:
Post a Comment