switch_info_fragment.xml
3.22 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
<?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:background="@drawable/home_bg"
android:orientation="vertical"
android:paddingHorizontal="@dimen/dp_60"
android:paddingTop="@dimen/dp_6"
tools:context="com.studymachine.www.ui.fragment.SwitchInfoFragment">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/switch_info_title"
android:textColor="@color/white"
android:textSize="@dimen/sp_15" />
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_9"
android:text="@string/switch_info_grade"
android:textColor="@color/white50"
android:textSize="@dimen/sp_11" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_grade"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="6"
tools:listitem="@layout/radio_item" />
<!-- <androidx.appcompat.widget.AppCompatTextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="@dimen/dp_9"-->
<!-- android:text="@string/switch_info_season"-->
<!-- android:textColor="@color/white50"-->
<!-- android:textSize="@dimen/sp_11" />-->
<!-- <androidx.recyclerview.widget.RecyclerView-->
<!-- android:id="@+id/rv_season"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"-->
<!-- app:spanCount="3"-->
<!-- tools:listitem="@layout/radio_item" />-->
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_9"
android:text="@string/switch_info_textbook"
android:textColor="@color/white50"
android:textSize="@dimen/sp_11" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_textbook"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="6"
tools:listitem="@layout/radio_item" />
<androidx.appcompat.widget.AppCompatButton
android:layout_gravity="center_horizontal"
android:id="@+id/btn_commit"
style="@style/LoginButtonStyle"
android:layout_width="@dimen/dp_220"
android:layout_height="@dimen/dp_35"
android:layout_marginTop="@dimen/dp_18"
android:layout_marginBottom="@dimen/dp_35"
android:text="@string/common_confirm" />
</LinearLayout>