1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Android】アプリをフルスクリーンで表示する

Posted at

通常だと この状態のアプリが

Screenshot_2023-05-07-20-48-51-82_7775b79a7312c35cfd35e081660950c8.png

AndroidManifest内の テーマに設定されているstyle内に 「android:theme=""」

    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>

を追加することで 

Screenshot_2023-05-07-20-57-15-80_7775b79a7312c35cfd35e081660950c8.png

このようにフルスクリーンにすることができます。

時間や充電状況、電波などの部分を表示したままにしたい場合は
windowFullscreenをfalseにすることで表示したままにできます。

1
0
0

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?