<?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:foreground="?android:attr/selectableItemBackground"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardCornerRadius="@dimen/article_card_radius"
|
app:cardUseCompatPadding="true"
|
app:cardElevation="2dp"
|
android:paddingTop="10dp">
|
|
<LinearLayout
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
android:layout_margin="16dp"
|
android:orientation="horizontal"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<RelativeLayout
|
android:layout_weight="1"
|
android:layout_width="0dp"
|
android:layout_height="match_parent">
|
<TextView
|
android:id="@+id/tv_title"
|
android:textSize="@dimen/text_size_15"
|
android:textColor="#FF363F4D"
|
android:maxLines="2"
|
android:ellipsize="end"
|
android:text="主动脉狭窄慎用什么药主动药主动药主动脉狭窄慎用什么"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
<LinearLayout
|
android:orientation="horizontal"
|
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="16dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<TextView
|
android:text="354"
|
android:textSize="13sp"
|
android:textColor="#FF9393AC"
|
android:id="@+id/tv_answer_cnt"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"/>
|
|
<TextView
|
android:text="名医生已作答"
|
android:textSize="13sp"
|
android:textColor="#FF9393AC"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"/>
|
</LinearLayout>
|
</RelativeLayout>
|
<LinearLayout
|
android:layout_marginLeft="40dp"
|
android:layout_marginBottom="16dp"
|
android:id="@+id/ll_transcribe"
|
android:orientation="vertical"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content">
|
<ImageView
|
android:id="@+id/iv_transcribe"
|
android:src="@mipmap/record_voice"
|
android:layout_width="48dp"
|
android:layout_height="48dp">
|
|
</ImageView>
|
<TextView
|
android:id="@+id/tv_transcribe"
|
android:layout_marginTop="2dp"
|
android:textSize="13sp"
|
android:textColor="@color/colorGreen"
|
android:text="录制回答"
|
android:layout_gravity="center"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"/>
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<include layout="@layout/divider_h"/>
|
<LinearLayout
|
android:orientation="horizontal"
|
android:padding="16dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<TextView
|
android:text="354"
|
android:textSize="13sp"
|
android:textColor="@color/colorGreen"
|
android:id="@+id/tv_focus_cnt"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"/>
|
|
<TextView
|
android:text="人正在关注此问题"
|
android:textSize="13sp"
|
android:textColor="@color/colorGreen"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"/>
|
</LinearLayout>
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|