Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import android.os.Bundle;
  2. import android.support.v7.app.AppCompatActivity;
  3.  
  4. import butterknife.ButterKnife;
  5.  
  6. /**
  7. * Created by anthony on 7/17/15.
  8. */
  9. public abstract class ButterKnifeActivity extends AppCompatActivity {
  10.  
  11. public abstract int getContentView();
  12.  
  13. @Override
  14. protected void onCreate(Bundle savedInstanceState) {
  15. super.onCreate(savedInstanceState);
  16. setContentView(getContentView());
  17. ButterKnife.bind(this);
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement