Created
June 29, 2015 03:42
-
-
Save ppamorim/298ee79a88ed98c3a723 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class AbstractActivity extends AppCompatActivity { | |
@Override protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(getLayoutId()); //This guy accept a Integer and View... | |
ButterKnife.bind(this); | |
} | |
protected abstract int getLayoutId(); | |
protected abstract View getLayoutId(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment