Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button btn = (Button) findViewById(R.id.button);
- int btnID= R.id.button;
- Button btn = (Button) findViewById(btnID);
- int resId = getResources().getIdentifier("button", "id", getPackageName());
- Button btn = (Button) findViewById(resId);
Add Comment
Please, Sign In to add comment