fragment_home.xml 3.09 KB
<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@color/TextColorWhite">

   <!-- <include
        android:id="@+id/top_view"
        layout="@layout/actionbar_home"
        />-->

    <RelativeLayout
        android:id="@+id/home_top"
        android:layout_width="match_parent"
        android:layout_height="37dp"
        >
        <!--android:layout_below="@+id/top_view"-->

        <android.support.design.widget.TabLayout
            android:id="@+id/indicator"
            app:tabIndicatorColor="@color/main_radio_channel_text_color_sel"
            app:tabSelectedTextColor="@color/main_radio_channel_text_color_sel"
            app:tabTextColor="@color/banner_title_background_color"
            app:tabMode="scrollable"
            android:layout_width="wrap_content"
            android:layout_height="37dp"
            android:layout_marginRight="46dp"/>

        <CheckBox
            android:id="@+id/subscription"
            android:layout_width="40dp"
            android:layout_height="30dp"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginRight="6dp"
            android:background="@drawable/btn_channel"
            android:button="@null"
            android:checked="false"
            android:gravity="right|center_vertical" />

        <View
            android:id="@+id/bottom_line"
            android:layout_width="match_parent"
            android:layout_height="1px"
            android:layout_alignParentBottom="true"
            android:background="@color/gray_line_color" />
    </RelativeLayout>

    <FrameLayout
        android:id="@+id/home_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/home_top">

        <android.support.v4.view.ViewPager
            android:id="@+id/viewpager"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <RelativeLayout
            android:id="@+id/channel_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="#8B000000"
            android:visibility="gone">

            <ScrollView
                android:id="@+id/channel_group"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_alignParentRight="true"
                android:background="@drawable/bg_right_channel_list">

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

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

    </FrameLayout>

</RelativeLayout>