Java Code Examples for android.support.v7.app.ActionBar.show()

The following are Jave code examples for showing how to use show() of the android.support.v7.app.ActionBar class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Bigbang   File: CopyActivity.java   Source Code and License Vote up 7 votes
private void fullScreenMode(boolean fullScreen) {
    ActionBar actionBar = getSupportActionBar();
    isFullScreen = fullScreen;
    if(fullScreen) {
        if(actionBar != null) {
            actionBar.hide();
        }

        adjustActionBarWrap();
    } else {
        if(actionBar != null) {
            actionBar.show();
        }

        copyFab.hide();
        exitFab.hide();
        exitFullScreenFab.hide();
    }
    SPHelper.save(IS_FULL_SCREEN_COPY,fullScreen);
}
 
Example 2
Project: ShotsNewsApp   File: PptWebViewActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
    mControlsView.setVisibility(View.VISIBLE);
}
 
Example 3
Project: yjPlay   File: VideoPlayUtils.java   Source Code and License Vote up 5 votes
/***
 * 得到活动对象
 *
 * @param context 上下文
 */
public static void showActionBar(@NonNull Context context) {
    AppCompatActivity appCompActivity = getAppCompActivity(context);
    if (appCompActivity != null) {
        ActionBar ab = appCompActivity.getSupportActionBar();
        if (ab != null) {
            ab.show();
        }
    }
    scanForActivity(context).getWindow()
            .clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
 
Example 4
Project: BLPlayer   File: AndroidMediaController.java   Source Code and License Vote up 5 votes
public void setSupportActionBar(@Nullable ActionBar actionBar) {
    mActionBar = actionBar;
    if (isShowing()) {
        actionBar.show();
    } else {
        actionBar.hide();
    }
}
 
Example 5
Project: GitHub   File: IjkPlayerView.java   Source Code and License Vote up 5 votes
/**
 * 隐藏/显示 ActionBar
 *
 * @param isFullscreen
 */
private void _handleActionBar(boolean isFullscreen) {
    ActionBar supportActionBar = mAttachActivity.getSupportActionBar();
    if (supportActionBar != null) {
        if (isFullscreen) {
            supportActionBar.hide();
        } else {
            supportActionBar.show();
        }
    }
}
 
Example 6
Project: HeadlineNews   File: JCVideoPlayer.java   Source Code and License Vote up 5 votes
public static void showSupportActionBar(Context context) {
    if (ACTION_BAR_EXIST) {
        ActionBar ab = JCUtils.getAppCompActivity(context).getSupportActionBar();
        if (ab != null) {
            ab.setShowHideAnimationEnabled(false);
            ab.show();
        }
    }
    if (TOOL_BAR_EXIST) {
        JCUtils.getAppCompActivity(context).getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
}
 
Example 7
Project: gst-android-camera   File: CameraActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
    mControlsView.setVisibility(View.VISIBLE);
}
 
Example 8
Project: MyFire   File: JCVideoPlayer.java   Source Code and License Vote up 5 votes
public static void showSupportActionBar(Context context) {
    if (ACTION_BAR_EXIST) {
        ActionBar ab = JCUtils.getAppCompActivity(context).getSupportActionBar();
        if (ab != null) {
            ab.setShowHideAnimationEnabled(false);
            ab.show();
        }
    }
    if (TOOL_BAR_EXIST) {
        JCUtils.getAppCompActivity(context).getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
}
 
Example 9
Project: fullscreen-video-view   File: OrientationDelegate.java   Source Code and License Vote up 5 votes
private void showActionBar() {
    if (videoView.getContext() instanceof AppCompatActivity) {
        ActionBar supportActionBar = ((AppCompatActivity) videoView.getContext())
                .getSupportActionBar();
        if (supportActionBar != null) {
            supportActionBar.show();
        }
    }
    if (videoView.getContext() instanceof Activity) {
        android.app.ActionBar actionBar = ((Activity) videoView.getContext()).getActionBar();
        if (actionBar != null) {
            actionBar.show();
        }
    }
}
 
Example 10
Project: Idea-ijkplayer   File: PlayerManager.java   Source Code and License Vote up 5 votes
private void tryFullScreen(boolean fullScreen) {
    if (activity instanceof AppCompatActivity) {
        ActionBar supportActionBar = ((AppCompatActivity) activity).getSupportActionBar();
        if (supportActionBar != null) {
            if (fullScreen) {
                supportActionBar.hide();
            } else {
                supportActionBar.show();
            }
        }
    }
    setFullScreen(fullScreen);
}
 
Example 11
Project: CodeCompilerApp   File: SystemUiHelperImplHC.java   Source Code and License Vote up 5 votes
protected void onSystemUiShown() {
    ActionBar ab = ((ActionBarActivity) mActivity).getSupportActionBar();
    if (ab != null) {
        ab.show();
    }

    mActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

    setIsShowing(true);
}
 
Example 12
Project: ShaddockVideoPlayer   File: AndroidMediaController.java   Source Code and License Vote up 5 votes
public void setSupportActionBar(@Nullable ActionBar actionBar) {
    mActionBar = actionBar;
    if (isShowing()) {
        actionBar.show();
    } else {
        actionBar.hide();
    }
}
 
Example 13
Project: SecretTalk   File: AboutActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
    mControlsView.setVisibility(View.VISIBLE);
}
 
Example 14
Project: FancyTrendView   File: FancyTrendActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
}
 
Example 15
Project: MuslimMateAndroid   File: SelectPositionActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
    mControlsView.setVisibility(View.VISIBLE);
}
 
Example 16
Project: live_master   File: GiraffePlayer.java   Source Code and License Vote up 5 votes
private void tryFullScreen(boolean fullScreen) {
    if (activity instanceof AppCompatActivity) {
        ActionBar supportActionBar = ((AppCompatActivity) activity).getSupportActionBar();
        if (supportActionBar != null) {
            if (fullScreen) {
                supportActionBar.hide();
            } else {
                supportActionBar.show();
            }
        }
    }
    setFullScreen(fullScreen);
}
 
Example 17
Project: RetrofitAppArchitecture   File: BaseActivity.java   Source Code and License Vote up 5 votes
private void showActionBar(boolean show) {
    ActionBar bar = getSupportActionBar();
    if (bar != null) {
        if (!show && bar.isShowing()) {
            bar.hide();
        } else if (show && !bar.isShowing()) {
            bar.show();
        }
    }
}
 
Example 18
Project: FastAndroid   File: WelcomeActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
    mControlsView.setVisibility(View.VISIBLE);
}
 
Example 19
Project: Idea-ijkplayer   File: AndroidMediaController.java   Source Code and License Vote up 5 votes
public void setSupportActionBar(@Nullable ActionBar actionBar) {
    mActionBar = actionBar;
    if (isShowing()) {
        actionBar.show();
    } else {
        actionBar.hide();
    }
}
 
Example 20
Project: S3-16-simone   File: FullscreenBaseGameActivity.java   Source Code and License Vote up 5 votes
@Override
public void run() {
    // Delayed display of UI elements
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.show();
    }
    //mControlsView.setVisibility(View.VISIBLE);
}