Created
September 22, 2022 14:43
-
-
Save ercnksgl/c63c77110b83300f9d9e3b820f425e48 to your computer and use it in GitHub Desktop.
activity_main layout for DiffUtils test app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.constraintlayout.widget.ConstraintLayout 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"> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/recyclerView" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:orientation="vertical" | |
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" | |
app:layout_constraintBottom_toTopOf="@id/addButton" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
tools:itemCount="10" | |
tools:listitem="@android:layout/simple_list_item_1" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/addButton" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/horizontal_safe_area" | |
android:layout_marginEnd="@dimen/spacing_4" | |
android:layout_marginBottom="@dimen/spacing_20" | |
android:paddingVertical="@dimen/spacing_12" | |
android:text="@string/add" | |
app:cornerRadius="@dimen/radius_24" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toStartOf="@id/removeButton" | |
app:layout_constraintStart_toStartOf="parent" /> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/removeButton" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/spacing_4" | |
android:layout_marginEnd="@dimen/horizontal_safe_area" | |
android:layout_marginBottom="@dimen/spacing_20" | |
android:paddingVertical="@dimen/spacing_12" | |
android:text="@string/remove" | |
app:cornerRadius="@dimen/radius_24" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toEndOf="@id/addButton" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment