adapter_practice.xml 1.4 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="54dp"
    android:layout_marginBottom="12dp"
    android:background="@drawable/stroke_eb_4"
    android:gravity="center_vertical"
    android:orientation="horizontal">

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="12dp"
        android:contentDescription="@string/logo"
        android:src="@mipmap/txt" />

    <TextView
        android:id="@+id/name"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_weight="1"
        android:text=""
        android:textColor="@color/color_32"
        android:textSize="14sp" />

    <TextView
        android:id="@+id/num"
        android:layout_width="60dp"
        android:layout_height="28dp"
        android:layout_marginStart="12dp"
        android:layout_marginEnd="12dp"
        android:background="@drawable/solid_25_4"
        android:drawableEnd="@mipmap/paly_white"
        android:ellipsize="end"
        android:gravity="center"
        android:maxLines="1"
        android:paddingStart="12dp"
        android:paddingEnd="5dp"
        android:text="20题"
        android:textColor="@color/white"
        android:textSize="12sp" />


</LinearLayout>