use of com.google.samples.apps.iosched.navigation.AppNavigationViewAsDrawerImpl in project iosched by google.
the class BaseActivity method onPostCreate.
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
mAppNavigationViewAsDrawer = new AppNavigationViewAsDrawerImpl(new ImageLoader(this), this);
mAppNavigationViewAsDrawer.activityReady(this, this, getSelfNavDrawerItem());
if (getSelfNavDrawerItem() != NavigationItemEnum.INVALID) {
setToolbarForNavigation();
}
trySetupSwipeRefresh();
View mainContent = findViewById(R.id.main_content);
if (mainContent != null) {
mainContent.setAlpha(0);
mainContent.animate().alpha(1).setDuration(MAIN_CONTENT_FADEIN_DURATION);
} else {
LOGW(TAG, "No view with ID main_content to fade in.");
}
}
Aggregations