<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
    <PreferenceCategory
        android:title="@string/pref_cat_application_control">

        <PreferenceScreen
            android:key="exit_application"
            android:title="@string/pref_exit_power_off" />

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/pref_cat_camera">

        <ListPreference
            android:title="@string/pref_take_mode"
            android:entryValues="@array/take_mode_value"
            android:entries="@array/take_mode"
            android:key="take_mode"
            android:defaultValue="P"/>

        <ListPreference
            android:title="@string/pref_camera_sound_volume"
            android:entryValues="@array/sound_volume_level_value"
            android:entries="@array/sound_volume_level"
            android:key="sound_volume_level"
            android:defaultValue="OFF"/>

        <CheckBoxPreference
            android:key="raw"
            android:title="@string/pref_take_raw" />

        <CheckBoxPreference
            android:key="capture_both_camera_and_live_view"
            android:title="@string/pref_capture_both_camera_and_live_view" />

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/pref_cat_live_view">
        <ListPreference
        android:title="@string/pref_live_view_quality"
        android:entryValues="@array/live_view_quality_value"
        android:entries="@array/live_view_quality"
        android:key="live_view_quality"
        android:defaultValue="QVGA"/>

        <ListPreference
            android:title="@string/pref_magnifying_live_view_scale"
            android:entryValues="@array/magnifying_live_view_scale_value"
            android:entries="@array/magnifying_live_view_scale"
            android:key="magnifying_live_view_scale"
            android:defaultValue="1.0" />

        <ListPreference
            android:title="@string/pref_digital_zoom_level"
            android:entryValues="@array/digital_zoom_level_value"
            android:entries="@array/digital_zoom_level"
            android:key="digital_zoom_level"
            android:defaultValue="MAX" />

        <ListPreference
            android:title="@string/pref_power_zoom_level"
            android:entryValues="@array/power_zoom_level_value"
            android:entries="@array/power_zoom_level"
            android:key="power_zoom_level"
            android:defaultValue="1.0" />

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/pref_cat_info">

        <PreferenceScreen
            android:key="focal_length"
            android:title="@string/pref_focal_length"
            android:selectable="false" />

        <PreferenceScreen
            android:key="lens_status"
            android:title="@string/pref_lens_status"
            android:selectable="false" />

        <PreferenceScreen
            android:key="media_status"
            android:title="@string/pref_media_status"
            android:selectable="false" />

        <PreferenceScreen
            android:key="camera_version"
            android:title="@string/pref_camera_version"
            android:selectable="false" />

        <PreferenceScreen
        android:key="camerakit_version"
        android:title="@string/pref_camerakit_version"
        android:selectable="false" />
    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/pref_cat_initialize">

        <CheckBoxPreference
            android:key="auto_connect_to_camera"
            android:title="@string/pref_auto_connect_camera"
            android:summary="@string/pref_summary_auto_connect_camera" />
    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/pref_cat_gokigen">
        <Preference
            android:key="instruction_link"
            android:title="@string/pref_instruction_manual"
            android:summary="https://osdn.net/projects/gokigen/wiki/A01d"
            android:selectable="true">
            <intent android:action="android.intent.action.VIEW"
                android:data="https://osdn.net/projects/gokigen/wiki/A01d" />
        </Preference>
        <Preference
            android:key="privacy_policy"
            android:title="@string/pref_privacy_policy"
            android:summary="https://osdn.net/projects/gokigen/wiki/PrivacyPolicy"
            android:selectable="true">
            <intent android:action="android.intent.action.VIEW"
                android:data="https://osdn.net/projects/gokigen/wiki/PrivacyPolicy" />
        </Preference>
    </PreferenceCategory>
</PreferenceScreen>
