ai_list_activity.xml
2.42 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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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/aibg"
tools:context="com.studymachine.www.ui.activity.AiListActivity">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ai_person_bg"
android:translationZ="@dimen/dp_2" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_person"
android:layout_width="@dimen/dp_300"
android:layout_centerVertical="true"
android:layout_height="wrap_content"
android:src="@drawable/ai_person_to"
android:translationZ="@dimen/dp_2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.hjq.bar.TitleBar
style="@style/ActionBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:translationZ="@dimen/dp_3"
app:barStyle="transparent"
app:leftIconWidth="@dimen/dp_22"
app:titleIcon="@drawable/ai_title"
app:titleIconWidth="@dimen/dp_79" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_marginTop="@dimen/dp_16"
android:layout_weight="1"
android:gravity="center_vertical"
android:paddingStart="@dimen/dp_150"
android:paddingBottom="@dimen/dp_48">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_list"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_200"
android:fadingEdgeLength="@dimen/dp_40"
android:orientation="horizontal"
android:overScrollMode="ifContentScrolls"
android:requiresFadingEdge="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/ai_list_item" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>