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

    <include layout="@layout/toolbar"/>

    <ScrollView
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:fadingEdge="none"
            android:scrollbarStyle="outsideInset">

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

            <TextView
                    android:text="@string/account_settings_name_label"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:textAppearance="?android:attr/textAppearanceSmall"
                    android:textColor="?android:attr/textColorPrimary"/>

            <EditText
                    android:id="@+id/account_name"
                    android:singleLine="true"
                    android:inputType="textPersonName"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:contentDescription="@string/account_settings_name_label"
                    />

            <TextView
                    android:text="@string/account_settings_email_label"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:textAppearance="?android:attr/textAppearanceSmall"
                    android:textColor="?android:attr/textColorPrimary"
                    />

            <EditText
                    android:id="@+id/account_email"
                    android:singleLine="true"
                    android:inputType="textEmailAddress"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:contentDescription="@string/account_settings_email_label"
                    />

            <TextView
                    android:text="@string/account_settings_always_bcc_label"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:textAppearance="?android:attr/textAppearanceSmall"
                    android:textColor="?android:attr/textColorPrimary"/>

            <EditText
                    android:id="@+id/account_always_bcc"
                    android:singleLine="true"
                    android:inputType="textEmailAddress"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:contentDescription="@string/account_settings_always_bcc_label"/>

            <CheckBox
                    android:id="@+id/account_signature_use"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/account_settings_signature_use_label"/>

            <LinearLayout
                    android:id="@+id/account_signature_layout"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:orientation="vertical">

                <TextView
                        android:text="@string/account_settings_signature_label"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent"
                        android:textAppearance="?android:attr/textAppearanceSmall"
                        android:textColor="?android:attr/textColorPrimary"/>

                <EditText
                        android:id="@+id/account_signature"
                        android:inputType="textMultiLine|textAutoCorrect|textCapSentences"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent"
                        android:contentDescription="@string/account_settings_signature_label"/>

                <TextView
                        android:text="@string/account_settings_signature__location_label"
                        android:layout_height="wrap_content"
                        android:layout_width="fill_parent"
                        android:textAppearance="?android:attr/textAppearanceSmall"
                        android:textColor="?android:attr/textColorPrimary"/>

                <RadioGroup
                        android:id="@+id/account_signature_location"
                        android:layout_height="wrap_content"
                        android:layout_width="wrap_content"
                        android:orientation="vertical">

                    <RadioButton
                            android:id="@+id/account_signature_location_before_quoted_text"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/account_settings_signature__location_before_quoted_text"
                            android:contentDescription="@string/account_settings_signature__location_label"/>

                    <RadioButton
                            android:id="@+id/account_signature_location_after_quoted_text"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/account_settings_signature__location_after_quoted_text"
                            android:contentDescription="@string/account_settings_signature__location_label"/>
                </RadioGroup>
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
</LinearLayout>
