<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:layout_margin="@dimen/default_margin" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_span="2"
            android:textSize="25dp"
            android:textStyle="bold"
            android:layout_marginBottom="@dimen/default_margin"
            android:text="@string/actionSetWifi"/>

        <TextView
            android:id="@+id/tvWifiExplanation1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/wifiExplanation1" />

        <TextView
            android:id="@+id/tvWifiExplanation2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/default_margin"
            android:text="@string/wifiExplanation2" />

        <TableLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/default_margin"
            android:stretchColumns="1"
            android:shrinkColumns="1" >

            <TableRow>

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/runAsRoot" />

                <CheckBox
                    android:id="@+id/chkWifiRunAsRoot"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/runAsRoot" />

            </TableRow>

            <TableRow
                android:layout_marginTop="@dimen/default_margin">

                <TextView
                    android:layout_gravity="center_vertical"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginRight="@dimen/default_margin"
                    android:text="@string/state" />

                <RadioGroup
                    android:layout_gravity="center_vertical"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content" >

                    <RadioButton
                        android:id="@+id/rbActionWifiOn"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:checked="true"
                        android:text="@string/on" />

                    <RadioButton
                        android:id="@+id/rbActionWifiOff"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/off" />

                </RadioGroup>

            </TableRow>

        </TableLayout>

        <Button
            android:id="@+id/bActionWifiSave"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/default_margin"
            android:text="@string/save" />

    </LinearLayout>

</ScrollView>