Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.cardview.widget.CardView 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"
- android:layout_margin="8dp"
- app:cardCornerRadius="8dp"
- app:cardElevation="4dp">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/bg_card_task"
- android:paddingStart="16dp"
- android:paddingTop="12dp"
- android:paddingBottom="12dp"
- tools:ignore="RtlSymmetry">
- <LinearLayout
- android:id="@+id/containerDateTask"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"
- android:background="@drawable/bg_date_task"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="8dp"
- android:paddingTop="4dp"
- android:paddingEnd="8dp"
- android:paddingBottom="4dp"
- android:visibility="visible"
- app:layout_constraintBottom_toTopOf="@id/tvTitleTask"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <ImageView
- android:layout_width="16dp"
- android:layout_height="16dp"
- android:src="@drawable/ic_baseline_date_range_24"
- app:tint="@color/black" />
- <TextView
- android:id="@+id/tvDateTask"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="4dp"
- tools:text="Fri, May 1" />
- </LinearLayout>
- <TextView
- android:id="@+id/tvTitleTask"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@color/black"
- android:textSize="20sp"
- android:textStyle="bold"
- app:layout_constraintBottom_toTopOf="@id/LineTask"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/containerDateTask"
- tools:text="Trip To Paris" />
- <View
- android:id="@+id/LineTask"
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:layout_marginTop="12dp"
- android:background="@color/design_default_color_secondary"
- android:visibility="gone"
- app:layout_constraintTop_toBottomOf="@id/tvTitleTask" />
- <ImageButton
- android:id="@+id/btnDoneTask"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp"
- android:background="@android:color/transparent"
- android:src="@drawable/ic_done_task_24"
- app:layout_constraintBottom_toBottomOf="@id/tvTitleTask"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintTop_toTopOf="@id/containerDateTask"
- app:tint="@color/design_default_color_primary_dark" />
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/rvSubTask"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="12dp"
- android:layout_marginEnd="16dp"
- android:visibility="gone"
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/LineTask"
- tools:itemCount="4"
- tools:listitem="@layout/item_sub_task" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </androidx.cardview.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement