Advertisement
Guest User

Untitled

a guest
May 3rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. public class LoginActivity extends BaseActivity {
  2.  
  3.     @InjectView(R.id.username)
  4.     EditText username;
  5.  
  6.     @InjectView(R.id.password)
  7.     EditText password;
  8.  
  9.     @Override
  10.     protected void onCreate(Bundle savedInstanceState) {
  11.         super.onCreate(savedInstanceState);
  12.  
  13.     setContentView(R.layout.login);
  14.        
  15.         username = (EditText) findViewById(R.id.username);
  16.         password = (EditText) findViewById(R.id.password);
  17.  
  18.     }  
  19. }
  20.  
  21. public abstract class BaseActivity extends FragmentActivity {
  22.  
  23.     @Override
  24.     protected void onCreate(Bundle savedInstanceState) {
  25.         super.onCreate(savedInstanceState);
  26.  
  27.         ButterKnife.inject(this);
  28.     }  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement