Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void metoda1 (View element) {
- // CTRL + SHIFT + O
- // da li je kliknuto na button?
- // BUTTON JE DETE OD VIEW !!!!
- // ako jeste instanceof ce vratiti true
- // tada znamo da imamo button!
- if (element instanceof Button){
- Button elementKaoButton = (Button) element;
- Toast.makeText(getApplicationContext(),elementKaoButton.getText(), Toast.LENGTH_LONG).show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement