Search in sources :

Example 1 with AppNavigationViewAsDrawerImpl

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.");
    }
}
Also used : AppNavigationViewAsDrawerImpl(com.google.samples.apps.iosched.navigation.AppNavigationViewAsDrawerImpl) ImageLoader(com.google.samples.apps.iosched.util.ImageLoader) View(android.view.View)

Aggregations

View (android.view.View)1 AppNavigationViewAsDrawerImpl (com.google.samples.apps.iosched.navigation.AppNavigationViewAsDrawerImpl)1 ImageLoader (com.google.samples.apps.iosched.util.ImageLoader)1