<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_on_boarding"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="org.iotivity.onboardingtool.OnBoardingActivity">

    <RadioGroup
        android:id="@+id/radio_group"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="false"
        android:layout_alignParentTop="false"
        android:orientation="horizontal">

        <RadioButton
            android:id="@+id/owned_radio_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/owned" />

        <RadioButton
            android:id="@+id/unowned_radio_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/unowned" />

    </RadioGroup>

    <RadioGroup
        android:id="@+id/realm_radio_group"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="false"
        android:layout_alignParentTop="false"
        android:layout_below="@+id/radio_group"
        android:visibility="gone"
        android:orientation="horizontal">

        <RadioButton
            android:id="@+id/owned_realm_radio_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/ownedRealm" />

        <RadioButton
            android:id="@+id/unowned_realm_radio_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/unownedRealm" />

    </RadioGroup>

    <RadioGroup
        android:id="@+id/site_radio_group"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="false"
        android:layout_alignParentTop="false"
        android:layout_below="@+id/realm_radio_group"
        android:visibility="gone"
        android:orientation="horizontal">

        <RadioButton
            android:id="@+id/owned_site_radio_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/ownedSite" />

        <RadioButton
            android:id="@+id/unowned_site_radio_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/unownedSite" />

    </RadioGroup>

    <Button
        android:id="@+id/refresh_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/site_radio_group"
        android:enabled="false"
        android:text="@string/refresh" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/refresh_button"
        android:orientation="vertical">

        <ListView
            android:id="@+id/list_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/refresh_button"
            android:layout_weight="1" />

        <Button
            android:id="@+id/onboarding_all"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/list_view"
            android:enabled="true"
            android:visibility="visible"
            android:text="@string/onboarding_ownership_transfer" />

        <Button
            android:id="@+id/pairwising_all"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:enabled="true"
            android:visibility="visible"
            android:text="@string/provision_pairwise_credentials" />

        <Button
            android:id="@+id/offboarding_all"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:enabled="true"
            android:visibility="visible"
            android:text="@string/offboarding_ownership_transfer" />
    </LinearLayout>

</RelativeLayout>
