Warning: Cannot modify header information - headers already sent by (output started at /var/www/lalieno.it/index.php:48) in /var/www/lalieno.it/inc/cookie.php on line 3
a cadenza discontinua
Come se fossi
BLOG

Android - full screen app in the style of the theme

Setting the app's full screen in the onCreate event regenerates the onCreate event, which can cause problems if certain threads or tasks are used. To avoid this, it is necessary to modify the theme of the app, setting a custom theme in the manifest..

android:theme="@style/AppTheme"

In the style of the theme it is possible to modify the configuration parameters of the window, for example:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AppTheme" parent="@style/Theme.Leanback">
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>


di GuiZ
08/02/2018

Commenta

We'll never share your email with anyone else.