Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
AdvancedImmersiveMode / res / layout /

fragment_flags.xml

      
        1
       
        2
       
        3
       
        4
       
        5
       
        6
       
        7
       
        8
       
        9
       
        10
       
        11
       
        12
       
        13
       
        14
       
        15
       
        16
       
        17
       
        18
       
        19
       
        20
       
        21
       
        22
       
        23
       
        24
       
        25
       
        26
       
        27
       
        28
       
        29
       
        30
       
        31
       
        32
       
        33
       
        34
       
        35
       
        36
       
        37
       
        38
       
        39
       
        40
       
        41
       
        42
       
        43
       
        44
       
        45
       
        46
       
        47
       
        48
       
        49
       
        50
       
        51
       
        52
       
        53
       
        54
       
        55
       
        56
       
        57
       
        58
       
        59
       
        60
       
        61
       
        62
       
        63
       
        64
       
        65
       
        66
       
        67
       
        68
       
        69
       
       
       

       
<?xml version="1.0" encoding="utf-8"?>
       

       
       

       

       
       

       
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       

       
       

       
android:orientation="vertical" android:layout_width="match_parent"
       

       
       

       
android:layout_height="wrap_content">
       

       
       

       

       
       

       
<CheckBox
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:id="@+id/flag_enable_lowprof"
       

       
       

       
android:text="Enable Low Profile Mode" />
       

       
       

       

       
       

       
<CheckBox
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:id="@+id/flag_hide_navbar"
       

       
       

       
android:text="Hide Navigation bar" />
       

       
       

       

       
       

       
<CheckBox
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:id="@+id/flag_hide_statbar"
       

       
       

       
android:text="Hide Status Bar" />
       

       
       

       

       
       

       
<CheckBox
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:id="@+id/flag_enable_immersive"
       

       
       

       
android:text="Enable Immersive Mode" />
       

       
       

       

       
       

       
<CheckBox
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:id="@+id/flag_enable_immersive_sticky"
       

       
       

       
android:text="Enable Immersive Mode (Sticky)" />
       

       
       

       

       
       

       
<Button
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:text="Do things!"
       

       
       

       
android:id="@+id/btn_changeFlags" />
       

       
       

       

       
       

       

       
       

       
<TextView
       

       
       

       
android:layout_marginTop="@dimen/margin_large"
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:text="Common flag presets"/>
       

       
       

       
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       

       
       

       
android:orientation="horizontal" android:layout_width="match_parent"
       

       
       

       
android:layout_height="wrap_content">
       

       
       

       

       
       

       
<Button
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:text="Immersive Mode"
       

       
       

       
android:id="@+id/btn_immersive" />
       

       
       

       

       
       

       
<Button
       

       
       

       
android:layout_width="wrap_content"
       

       
       

       
android:layout_height="wrap_content"
       

       
       

       
android:text="Leanback Mode"
       

       
       

       
android:id="@+id/btn_leanback" />
       

       
       

       

       
       

       
</LinearLayout>
       

       
       

       

       
       

       

       
       

       

       
       

       
</LinearLayout>