Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onCreate(Bundle savedInstanceState)
- {
- quantity=(Spinner)findViewById(R.id.quantity);
- quantity.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener()
- {
- public void onItemSelected(AdapterView<?> parent, View view, int pos, long id)
- {
- if(quantity.getSelecteditem.equals("5")){
- price.setText("200");
- }
- System.out.println("it works... ");
- }
- public void onNothingSelected(AdapterView<?> parent)
- {
- }
- });
- }
Add Comment
Please, Sign In to add comment