If I use findViewById
like this(first code) then I can't use same id
(usernameid
) in different layout:
username = (EditText) findViewById(R.id.usernameid);
Is there any way to use like this (second code)? :
username = (EditText) findViewById(R.layout.activity-signup.id.usernameid);