home_fragment.xml
2.51 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
<?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"
tools:context="com.studymachine.www.ui.fragment.HomeFragment">
<LinearLayout
android:layout_width="@dimen/dp_497"
android:layout_height="@dimen/dp_242"
android:layout_gravity="center"
android:background="@drawable/home_content_bg"
android:paddingHorizontal="@dimen/dp_24"
android:paddingTop="@dimen/dp_16"
android:paddingBottom="@dimen/dp_12">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_ai"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:src="@drawable/home_al_icon_to" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/dp_2"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_accurate"
android:layout_width="@dimen/dp_163"
android:visibility="gone"
android:layout_height="wrap_content"
android:src="@drawable/home_intensify_icon" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_athletics"
android:visibility="gone"
android:layout_width="@dimen/dp_163"
android:layout_height="wrap_content"
android:src="@drawable/home_athletics_icon" />
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rc_nav_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/dp_70"
android:fadingEdgeLength="@dimen/dp_28"
android:requiresFadingEdge="vertical"
android:visibility="gone"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="5"
tools:itemCount="5"
tools:listitem="@layout/home_navigation_item" />
</LinearLayout>