34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/root"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/nv_consult"
|
|
android:layout_width="@dimen/dp_140"
|
|
android:layout_height="@dimen/dp_100"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:layout_marginTop="@dimen/dp_4"
|
|
app:corner_radius="@dimen/dp_8"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_consult_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:maxLines="2"
|
|
android:textSize="@dimen/sp_9"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/nv_consult"
|
|
tools:text="老年人高血压怎么调理?" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |