Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LoginActivity extends BaseActivity {
- @InjectView(R.id.username)
- EditText username;
- @InjectView(R.id.password)
- EditText password;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.login);
- username = (EditText) findViewById(R.id.username);
- password = (EditText) findViewById(R.id.password);
- }
- }
- public abstract class BaseActivity extends FragmentActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- ButterKnife.inject(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement