qna_rv_item.xml 1.94 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="10dp"
    android:background="@drawable/bottom_border"
    android:orientation="horizontal"
    android:padding="7dp">


    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/questionText"
                android:layout_width="wrap_content"
                android:layout_height="65dp"
                android:layout_gravity="center|right"
                android:layout_weight="1"
                android:gravity="center|left"
                android:text="TextView"
                android:textSize="16dp" />

            <ImageView
                android:id="@+id/bottomArrow"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center|right"
                android:layout_weight="0.1"
                android:foregroundGravity="left"
                app:srcCompat="@drawable/down_arrow" />

        </LinearLayout>

        <TextView
            android:id="@+id/answerText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="#F1F9FF"
            android:paddingLeft="11dp"
            android:text="TextView"
            android:lineSpacingExtra="6dp"
            android:textSize="13dp" />

    </LinearLayout>

</LinearLayout>