LoginSignup
25
25

More than 5 years have passed since last update.

Androidでスクリーンショットを撮影する時ぐらいは、ステータスバーを消そうぜw

Last updated at Posted at 2016-02-09

device-2015-12-22-101043_png.png

ステータスバーが写ってしまう。

Google Playのアプリ用スクリーンショットに登録する画像ありますよね。やっとの思いでアプリが完成して、早くリリースしたい気持ちわかります。過去に自分がリリースしたアプリもそうなんですが、ステータスバーが写り込んでいるスクリーンショットを素材に使っているのは私だけでしょうか?w

環境

Android4.4

さくっと一発でステータスバーを消す

@Override
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (BuildConfig.DEBUG) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
}

まとめ

次回のアプリでスクリーンショットを撮影する時に、ぜひ使ってみてください。

25
25
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
25
25