fragment_home.xml
3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?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>