forked from oppia/oppia-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
story_fragment.xml
79 lines (70 loc) · 2.98 KB
/
story_fragment.xml
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
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:app="http:https://schemas.android.com/apk/res-auto"
xmlns:tools="http:https://schemas.android.com/tools">
<data>
<variable
name="viewModel"
type="org.oppia.android.app.story.StoryViewModel" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/topic_app_bar_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.Toolbar
android:id="@+id/story_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:fontFamily="sans-serif"
android:gravity="center_vertical"
android:minHeight="?attr/actionBarSize"
android:theme="@style/Widget.AppCompat.ActionBar"
app:navigationContentDescription="@string/navigate_up"
app:navigationIcon="?attr/homeAsUpIndicator">
<TextView
android:id="@+id/story_toolbar_title"
style="@style/MarqueeToolbarTitleTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
android:text="@{viewModel.storyNameLiveData}" />
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.AppBarLayout>
<FrameLayout
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/topic_app_bar_layout">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/story_chapter_list"
android:layout_width="528dp"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:background="@color/white"
android:clipToPadding="false"
android:overScrollMode="never"
android:paddingBottom="@dimen/story_fragment_padding_bottom"
android:paddingStart="64dp"
android:paddingEnd="64dp"
android:scrollbars="none"
app:data="@{viewModel.storyChapterLiveData}"
tools:listitem="@layout/story_chapter_view" />
<View
android:id="@+id/story_shadow_view"
android:layout_width="match_parent"
android:layout_height="6dp"
android:background="@drawable/toolbar_drop_shadow" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>