Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <FrameLayout 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="wrap_content"
- tools:background="@color/cardview_dark_background">
- <androidx.cardview.widget.CardView
- android:id="@+id/noteDetailCardView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_margin="16dp"
- app:cardCornerRadius="8dp"
- app:cardElevation="8dp">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="8dp">
- <TextView
- android:id="@+id/noteDetailTitle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:maxLines="2"
- android:textSize="17sp"
- android:textStyle="bold"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:text="Title"/>
- <TextView
- android:id="@+id/noteDetailText"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="4dp"
- android:ellipsize="end"
- android:maxLength="250"
- android:maxLines="6"
- android:textColor="#292929"
- android:textSize="16sp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="1.0"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/noteDetailTitle" tools:text="Body"/>
- <ImageView
- android:id="@+id/noteDetailReminderImg"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_marginTop="8dp"
- android:visibility="gone"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintDimensionRatio="1:1"
- app:layout_constraintEnd_toStartOf="@+id/noteDetailLockImg"
- app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/noteDetailText"
- tools:ignore="ContentDescription" tools:srcCompat="@tools:sample/avatars"
- tools:visibility="visible"/>
- <ImageView
- android:id="@+id/noteDetailLockImg"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_gravity="start"
- android:layout_marginStart="4dp"
- android:visibility="gone"
- app:layout_constraintDimensionRatio="w,1:1"
- app:layout_constraintEnd_toStartOf="@+id/noteDetailAttachmentImg"
- app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintStart_toEndOf="@+id/noteDetailReminderImg"
- app:layout_constraintTop_toTopOf="@+id/noteDetailReminderImg" tools:ignore="ContentDescription"
- tools:srcCompat="@tools:sample/avatars[0]" tools:visibility="visible"/>
- <ImageView
- android:id="@+id/noteDetailAttachmentImg"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_gravity="start"
- android:layout_marginStart="4dp"
- android:visibility="gone"
- app:layout_constraintDimensionRatio="w,1:1"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintStart_toEndOf="@+id/noteDetailLockImg"
- app:layout_constraintTop_toTopOf="@+id/noteDetailLockImg" tools:ignore="ContentDescription"
- tools:srcCompat="@tools:sample/avatars[4]" tools:visibility="visible"/>
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.cardview.widget.CardView>
- </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement