Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 131cd0a

Browse files
committed
add button and recycler view to layout
1 parent 5ad52cf commit 131cd0a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

sampleapp/src/main/res/layout/fragment_isolation_flags.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,33 @@
128128
app:layout_constraintStart_toStartOf="parent"
129129
app:layout_constraintTop_toTopOf="parent">
130130

131+
<Button
132+
android:id="@+id/isolation_flags_button_reset"
133+
android:layout_width="0dp"
134+
android:layout_height="wrap_content"
135+
android:layout_marginTop="16dp"
136+
android:background="@drawable/button_color_grey"
137+
android:text="@string/isolation_fragment_reset_socks"
138+
android:textAllCaps="false"
139+
app:layout_constraintEnd_toEndOf="@+id/recycler_view_isolation_flags"
140+
app:layout_constraintStart_toStartOf="@+id/recycler_view_isolation_flags"
141+
app:layout_constraintTop_toTopOf="parent" />
142+
143+
<androidx.recyclerview.widget.RecyclerView
144+
android:id="@+id/recycler_view_isolation_flags"
145+
android:layout_width="0dp"
146+
android:layout_height="0dp"
147+
android:layout_marginStart="16dp"
148+
android:layout_marginTop="8dp"
149+
android:layout_marginEnd="16dp"
150+
android:layout_marginBottom="4dp"
151+
android:fadeScrollbars="false"
152+
android:scrollbars="vertical"
153+
app:layout_constraintBottom_toBottomOf="@+id/isolation_flags_layout_constraint_inner"
154+
app:layout_constraintEnd_toEndOf="@+id/isolation_flags_layout_constraint_inner"
155+
app:layout_constraintStart_toStartOf="@+id/isolation_flags_layout_constraint_inner"
156+
app:layout_constraintTop_toBottomOf="@id/isolation_flags_button_reset" />
157+
131158
</androidx.constraintlayout.widget.ConstraintLayout>
132159

133160

0 commit comments

Comments
 (0)