Advertisement
TiyasAria

ListFragmner

Jan 7th, 2022
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".fragments.list.ListFragment">
  9.  
  10.  
  11. <androidx.recyclerview.widget.RecyclerView
  12. android:id="@+id/rv_list"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:paddingTop="8dp"
  16. android:clipToPadding="false"
  17. app:layout_constraintBottom_toBottomOf="parent"
  18. app:layout_constraintEnd_toEndOf="parent"
  19. app:layout_constraintHorizontal_bias="0.5"
  20. app:layout_constraintStart_toStartOf="parent"
  21. app:layout_constraintTop_toTopOf="parent" />
  22.  
  23. <com.google.android.material.floatingactionbutton.FloatingActionButton
  24. android:id="@+id/fab_add"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_marginEnd="@dimen/_24dp"
  28. android:layout_marginBottom="@dimen/_24dp"
  29. android:clickable="true"
  30. android:focusable="true"
  31. app:backgroundTint="@color/purple_200"
  32. android:tint="@color/white"
  33. android:src="@drawable/ic_baseline_add"
  34. app:layout_constraintBottom_toBottomOf="parent"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. android:contentDescription="@string/txt_todo" />
  37.  
  38. <ImageView
  39. android:id="@+id/iv_no_data"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:src="@drawable/ic_no_data"
  43. android:visibility="invisible"
  44. app:layout_constraintBottom_toBottomOf="parent"
  45. app:layout_constraintEnd_toEndOf="parent"
  46. app:layout_constraintHorizontal_bias="0.498"
  47. app:layout_constraintStart_toStartOf="parent"
  48. app:layout_constraintTop_toTopOf="@+id/rv_list"
  49. app:layout_constraintVertical_bias="0.388" />
  50.  
  51. <TextView
  52. android:id="@+id/tv_no_data"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:text="@string/txt_no_data"
  56. android:layout_marginTop="16dp"
  57. android:alpha="0.5"
  58. android:textColor="@color/black"
  59. android:textSize="16sp"
  60. android:visibility="invisible"
  61. app:layout_constraintEnd_toEndOf="@+id/iv_no_data"
  62. app:layout_constraintStart_toStartOf="@+id/iv_no_data"
  63. app:layout_constraintTop_toBottomOf="@+id/iv_no_data" />
  64.  
  65.  
  66. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement