<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="match_parent"
    android:orientation="vertical"
    android:padding="@dimen/_10sdp"
    android:paddingStart="@dimen/_25sdp"
    android:paddingEnd="@dimen/_25sdp"
    android:background="@drawable/bg_dark"
    android:id="@+id/theme_bg"
    tools:context=".activity.SettingFormatActivity">

    <RelativeLayout
        android:layout_marginBottom="@dimen/_5sdp"
        android:id="@+id/rl_top"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.3">

        <ImageView
            android:id="@+id/iv_back_page"
            android:layout_width="@dimen/_33sdp"
            android:layout_height="@dimen/_33sdp"
            android:padding="@dimen/_5sdp"
            android:scaleType="centerCrop"
            android:src="@drawable/ic_player_back"
            app:tint="?ns_title"
            android:layout_centerVertical="true"
            android:layout_alignParentStart="true"
            android:contentDescription="@string/todo"
            android:focusable="true"
            android:focusableInTouchMode="false"
            android:background="@drawable/focused_icon_selector"
            android:layout_marginEnd="@dimen/_10sdp"/>

        <ImageView
            android:id="@+id/iv_app_logo"
            android:layout_width="@dimen/_30sdp"
            android:layout_height="@dimen/_30sdp"
            android:layout_centerVertical="true"
            android:layout_toEndOf="@+id/iv_back_page"
            android:contentDescription="@string/todo"
            android:src="@drawable/ic_setting"
            app:tint="?ns_title"
            android:padding="@dimen/_4sdp"/>

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/_10sdp"
            android:layout_toEndOf="@+id/iv_app_logo"
            android:text="@string/stream_format"
            android:textColor="@color/white"
            android:textSize="@dimen/_11ssp"
            android:layout_centerVertical="true"/>

        <LinearLayout
            android:id="@+id/ll_btn_save"
            android:gravity="center"
            android:layout_centerVertical="true"
            android:layout_alignParentEnd="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:focusable="true"
            android:focusableInTouchMode="false"
            android:background="@drawable/focused_save_btn"
            android:orientation="horizontal"
            tools:ignore="RelativeOverlap">

            <ImageView
                android:id="@+id/tv_save"
                android:layout_width="@dimen/_35sdp"
                android:layout_height="@dimen/_30sdp"
                android:padding="@dimen/_7sdp"
                android:scaleType="centerCrop"
                android:src="@drawable/ic_save"
                app:tint="?ns_title"
                android:contentDescription="@string/todo"/>

            <ProgressBar
                android:id="@+id/pb_save"
                android:layout_width="@dimen/_35sdp"
                android:layout_height="@dimen/_30sdp"
                android:padding="@dimen/_6sdp"
                android:indeterminate="true"
                android:indeterminateTint="@color/white"
                android:visibility="gone"/>

            <TextView
                android:text="@string/save"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textColor="@color/white"
                android:textSize="@dimen/_12ssp"
                android:layout_marginEnd="@dimen/_10sdp"/>

        </LinearLayout>

    </RelativeLayout>

    <RelativeLayout
        android:baselineAligned="false"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="2"
        android:background="@drawable/bg_card_sub"
        android:backgroundTint="?ns_title">

        <RadioGroup
            android:id="@+id/rg"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:orientation="vertical"
            android:gravity="center"
            android:layout_marginStart="@dimen/_30sdp"
            android:layout_marginEnd="@dimen/_30sdp"
            tools:ignore="UselessParent">

            <RadioButton
                android:id="@+id/rd_1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:includeFontPadding="false"
                android:text="Default"
                android:textSize="@dimen/_13ssp"
                android:textAlignment="viewStart"
                android:textColor="?ns_title"
                android:buttonTint="?ns_title"
                android:background="@drawable/focused_edt"
                tools:ignore="HardcodedText"
                android:padding="@dimen/_10sdp"
                style="@style/Widget.App.RadioButton"/>

            <RadioButton
                android:id="@+id/rd_2"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:includeFontPadding="false"
                android:text="MPEGTS(.ts)"
                android:textSize="@dimen/_13ssp"
                android:textAlignment="viewStart"
                android:textColor="?ns_title"
                android:buttonTint="?ns_title"
                android:background="@drawable/focused_edt"
                tools:ignore="HardcodedText"
                android:padding="@dimen/_10sdp"
                style="@style/Widget.App.RadioButton"/>

            <RadioButton
                android:id="@+id/rd_3"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:includeFontPadding="false"
                android:text="HLS(.m3u8)"
                android:textSize="@dimen/_13ssp"
                android:textAlignment="viewStart"
                android:textColor="?ns_title"
                android:buttonTint="?ns_title"
                android:background="@drawable/focused_edt"
                tools:ignore="HardcodedText"
                android:padding="@dimen/_10sdp"
                style="@style/Widget.App.RadioButton"/>

        </RadioGroup>

    </RelativeLayout>

</LinearLayout>