-
Notifications
You must be signed in to change notification settings - Fork 503
/
topic_practice_subtopic.xml
executable file
·64 lines (56 loc) · 2.52 KB
/
topic_practice_subtopic.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
<?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">
<data>
<variable
name="isChecked"
type="Boolean" />
<variable
name="viewModel"
type="org.oppia.android.app.topic.practice.practiceitemviewmodel.TopicPracticeSubtopicViewModel" />
</data>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="@dimen/topic_practice_subtopic_layout_width"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/topic_practice_subtopic_layout_margin_start"
android:layout_marginEnd="@dimen/topic_practice_subtopic_layout_margin_end"
app:barrierDirection="end"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.Barrier
android:id="@+id/topic_practice_subtopic_barrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="subtopic_check_box" />
<CheckBox
android:id="@+id/subtopic_check_box"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:button="@drawable/selector_checkbox"
android:checked="@{isChecked}"
android:drawableStart="@android:color/transparent"
android:drawablePadding="20dp"
android:fontFamily="sans-serif"
android:gravity="start|top"
android:minHeight="@dimen/clickable_item_min_height"
android:text="@{viewModel.subtopic.title}"
android:textAlignment="viewStart"
android:textColor="@color/oppiaPrimaryText"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
</layout>