<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    android:id="@+id/messageLayout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?card_background"
    android:orientation="vertical">

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

        <com.fastaccess.ui.widgets.FontTextView
            android:id="@+id/title"
            style="@style/TextAppearance.AppCompat.Title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="@dimen/spacing_xs_large"
            android:textColor="?android:textColorPrimary"
            android:textStyle="bold"
            android:text="@string/language"/>


        <android.support.v4.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:paddingEnd="@dimen/spacing_xs_large"
                android:paddingStart="@dimen/spacing_xs_large">

                <com.prettifier.pretty.PrettifyWebView
                    android:id="@+id/prettifyWebView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:minHeight="200dp"
                    android:visibility="gone"
                    app:webview_background="?card_background"/>

                <RadioGroup
                    android:id="@+id/picker"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"/>
            </LinearLayout>

        </android.support.v4.widget.NestedScrollView>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="end"
            android:paddingBottom="@dimen/spacing_normal"
            android:paddingTop="@dimen/spacing_normal">

            <com.fastaccess.ui.widgets.FontButton
                android:id="@+id/cancel"
                style="@style/Widget.AppCompat.Button.Borderless.Colored"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:text="@string/cancel"
                android:textAppearance="@style/TextAppearance.AppCompat.Title"
                android:textColor="@color/material_pink_700"/>

            <com.fastaccess.ui.widgets.FontButton
                android:id="@+id/ok"
                style="@style/Widget.AppCompat.Button.Borderless.Colored"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:text="@string/ok"
                android:textAppearance="@style/TextAppearance.AppCompat.Title"
                android:textColor="?colorAccent"/>

        </LinearLayout>
    </LinearLayout>
</FrameLayout>