Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- tools:context=".fragments.list.ListFragment">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rv_list"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingTop="8dp"
- android:clipToPadding="false"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/fab_add"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/_24dp"
- android:layout_marginBottom="@dimen/_24dp"
- android:clickable="true"
- android:focusable="true"
- app:backgroundTint="@color/purple_200"
- android:tint="@color/white"
- android:src="@drawable/ic_baseline_add"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- android:contentDescription="@string/txt_todo" />
- <ImageView
- android:id="@+id/iv_no_data"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@drawable/ic_no_data"
- android:visibility="invisible"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.498"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="@+id/rv_list"
- app:layout_constraintVertical_bias="0.388" />
- <TextView
- android:id="@+id/tv_no_data"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/txt_no_data"
- android:layout_marginTop="16dp"
- android:alpha="0.5"
- android:textColor="@color/black"
- android:textSize="16sp"
- android:visibility="invisible"
- app:layout_constraintEnd_toEndOf="@+id/iv_no_data"
- app:layout_constraintStart_toStartOf="@+id/iv_no_data"
- app:layout_constraintTop_toBottomOf="@+id/iv_no_data" />
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement