Skip to content

anwer_item布局改变数据不显示问题 #1

@luck8528t

Description

@luck8528t

一旦将answer_item的布局替换成自己的布局,就无法出现数据了


    <TextView
            android:id="@+id/tv_anwer"
            android:padding="30dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="#222222"
            android:textSize="18sp"
            android:textStyle="bold"
            android:text="以下Assignment 1 Python数据分析人工智能求助?"/>

    <LinearLayout
            android:paddingRight="30dp"
            android:paddingLeft="10dp"
            android:orientation="vertical"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">
        <!--A选项-->
        <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">

            <TextView
                    android:id="@+id/tvselecta"
                    android:textColor="#222222"
                    android:textSize="18sp"
                    android:gravity="center"
                    android:text=" A "
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <ImageView
                    android:background="@drawable/solid_quent_theme"
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <TextView
                    android:textSize="17dp"
                    android:gravity="center_vertical"
                    android:text="MySQL"
                    android:layout_toRightOf="@+id/tvselecta"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"/>
        </RelativeLayout>

        <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">

            <TextView
                    android:id="@+id/tvselectb"
                    android:textColor="#222222"
                    android:textSize="18sp"
                    android:gravity="center"
                    android:text=" A "
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <ImageView
                    android:background="@drawable/solid_quent_theme"
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <TextView
                    android:textSize="17dp"
                    android:gravity="center_vertical"
                    android:text="MySQL"
                    android:layout_toRightOf="@+id/tvselectb"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"/>
        </RelativeLayout>

        <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">

            <TextView
                    android:id="@+id/tvselectc"
                    android:textColor="#222222"
                    android:textSize="18sp"
                    android:gravity="center"
                    android:text=" A "
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <ImageView
                    android:background="@drawable/solid_quent_theme"
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <TextView
                    android:textSize="17dp"
                    android:gravity="center_vertical"
                    android:text="MySQL"
                    android:layout_toRightOf="@+id/tvselectc"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"/>
        </RelativeLayout>

        <RelativeLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">

            <TextView
                    android:id="@+id/tvselectd"
                    android:textColor="#222222"
                    android:textSize="18sp"
                    android:gravity="center"
                    android:text=" A "
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <ImageView
                    android:background="@drawable/solid_quent_theme"
                    android:layout_width="56dp"
                    android:layout_height="56dp"/>

            <TextView
                    android:textSize="17dp"
                    android:gravity="center_vertical"
                    android:text="MySQL"
                    android:layout_toRightOf="@+id/tvselectd"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"/>
        </RelativeLayout>
    </LinearLayout>
</LinearLayout>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions