Skip to content

Instantly share code, notes, and snippets.

@maydin
Created October 21, 2016 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maydin/1038b7d9862b0949cc5d4480e9af88aa to your computer and use it in GitHub Desktop.
Save maydin/1038b7d9862b0949cc5d4480e9af88aa to your computer and use it in GitHub Desktop.
free version
public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
public void setContentView(int layoutResID)
{
View fullView = getLayoutInflater().inflate(layoutResID, null);
super.setContentView(fullView);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment