Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. tools:background="@color/cardview_dark_background">
  7.  
  8. <androidx.cardview.widget.CardView
  9. android:id="@+id/noteDetailCardView"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:layout_margin="16dp"
  13. app:cardCornerRadius="8dp"
  14. app:cardElevation="8dp">
  15.  
  16. <androidx.constraintlayout.widget.ConstraintLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:padding="8dp">
  20.  
  21. <TextView
  22. android:id="@+id/noteDetailTitle"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:ellipsize="end"
  26. android:maxLines="2"
  27. android:textSize="17sp"
  28. android:textStyle="bold"
  29. app:layout_constraintEnd_toEndOf="parent"
  30. app:layout_constraintHorizontal_bias="0.0"
  31. app:layout_constraintStart_toStartOf="parent"
  32. app:layout_constraintTop_toTopOf="parent"
  33. tools:text="Title"/>
  34.  
  35. <TextView
  36. android:id="@+id/noteDetailText"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_marginTop="4dp"
  40. android:ellipsize="end"
  41. android:maxLength="250"
  42. android:maxLines="6"
  43. android:textColor="#292929"
  44. android:textSize="16sp"
  45. app:layout_constraintEnd_toEndOf="parent"
  46. app:layout_constraintHorizontal_bias="1.0"
  47. app:layout_constraintStart_toStartOf="parent"
  48. app:layout_constraintTop_toBottomOf="@+id/noteDetailTitle" tools:text="Body"/>
  49.  
  50. <ImageView
  51. android:id="@+id/noteDetailReminderImg"
  52. android:layout_width="0dp"
  53. android:layout_height="0dp"
  54. android:layout_marginTop="8dp"
  55. android:visibility="gone"
  56. app:layout_constraintBottom_toBottomOf="parent"
  57. app:layout_constraintDimensionRatio="1:1"
  58. app:layout_constraintEnd_toStartOf="@+id/noteDetailLockImg"
  59. app:layout_constraintHorizontal_bias="0.5"
  60. app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/noteDetailText"
  61. tools:ignore="ContentDescription" tools:srcCompat="@tools:sample/avatars"
  62. tools:visibility="visible"/>
  63.  
  64. <ImageView
  65. android:id="@+id/noteDetailLockImg"
  66. android:layout_width="0dp"
  67. android:layout_height="0dp"
  68. android:layout_gravity="start"
  69. android:layout_marginStart="4dp"
  70. android:visibility="gone"
  71.  
  72. app:layout_constraintDimensionRatio="w,1:1"
  73. app:layout_constraintEnd_toStartOf="@+id/noteDetailAttachmentImg"
  74. app:layout_constraintHorizontal_bias="0.5"
  75. app:layout_constraintStart_toEndOf="@+id/noteDetailReminderImg"
  76. app:layout_constraintTop_toTopOf="@+id/noteDetailReminderImg" tools:ignore="ContentDescription"
  77. tools:srcCompat="@tools:sample/avatars[0]" tools:visibility="visible"/>
  78.  
  79. <ImageView
  80. android:id="@+id/noteDetailAttachmentImg"
  81. android:layout_width="0dp"
  82. android:layout_height="0dp"
  83. android:layout_gravity="start"
  84. android:layout_marginStart="4dp"
  85. android:visibility="gone"
  86.  
  87. app:layout_constraintDimensionRatio="w,1:1"
  88. app:layout_constraintEnd_toEndOf="parent"
  89. app:layout_constraintHorizontal_bias="0.5"
  90. app:layout_constraintStart_toEndOf="@+id/noteDetailLockImg"
  91. app:layout_constraintTop_toTopOf="@+id/noteDetailLockImg" tools:ignore="ContentDescription"
  92. tools:srcCompat="@tools:sample/avatars[4]" tools:visibility="visible"/>
  93.  
  94. </androidx.constraintlayout.widget.ConstraintLayout>
  95. </androidx.cardview.widget.CardView>
  96.  
  97. </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement