Guest User

Untitled

a guest
Aug 18th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Button btn = (Button) findViewById(R.id.button);
  2.  
  3. int btnID= R.id.button;
  4.  
  5. Button btn = (Button) findViewById(btnID);
  6.  
  7. int resId = getResources().getIdentifier("button", "id", getPackageName());
  8. Button btn = (Button) findViewById(resId);
Add Comment
Please, Sign In to add comment