第二阶段冲刺(DAY8)
今天第八天,写出对应的前端
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_margin="7dp"
android:padding="10dp"
app:cardCornerRadius="10dp"
android:elevation="1dp"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp">
<TextView
android:id="@+id/day_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/day_item_img"
app:layout_constraintLeft_toRightOf="@+id/day_item_img"
app:layout_constraintBottom_toTopOf="@+id/day_item_date"
android:padding="5dp"
android:textSize="25dp"
android:text="春节春节春节春节"/>
<TextView
android:id="@+id/day_item_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@+id/day_item_title"
app:layout_constraintBottom_toBottomOf="@+id/day_item_img"
app:layout_constraintLeft_toLeftOf="@+id/day_item_title"
android:padding="5dp"
android:text="2021-10-09" />
<TextView
android:id="@+id/day_item_sup1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toLeftOf="@+id/day_item_days"
android:layout_marginTop="20dp"
android:text="累计" />
<TextView
android:id="@+id/day_item_days"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toLeftOf="@+id/dat_item_sup2"
android:textStyle="bold"
android:layout_marginTop="20dp"
android:textSize="40dp"
android:text="50" />
<TextView
android:id="@+id/dat_item_sup2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginTop="20dp"
android:text="天" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>

浙公网安备 33010602011771号