0元购Android端

dialog_answer.xml 4.6KB

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/black_trans"> <RelativeLayout android:id="@+id/dialog_bg" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/transparent" /> <!--Body--> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="@android:color/transparent" android:orientation="vertical" android:clickable="true"> <ImageView android:id="@+id/dialog_close" android:layout_width="18dp" android:layout_height="18dp" android:layout_marginRight="1dp" android:layout_marginBottom="10dp" android:src="@mipmap/icon_close" android:layout_gravity="right"/> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/dialog_answer_body" android:layout_width="308dp" android:layout_height="wrap_content" android:background="@android:color/white" android:clickable="true" android:paddingLeft="15dp" android:paddingTop="17.5dp" android:paddingRight="15dp" android:paddingBottom="30dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent"> <TextView android:id="@+id/dialog_answer_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="回答问题" android:textColor="#000000" android:textSize="18sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/dialog_answer_des" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:text="文章中出现的数码产品产品品牌是 哪一个?" android:textColor="#000000" android:textSize="16sp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/dialog_answer_title" /> <LinearLayout android:id="@+id/dialog_answer_group" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:orientation="vertical" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/dialog_answer_des"> <!--此处子布局使用代码生成--> </LinearLayout> <TextView android:id="@+id/dialog_answer_tip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:text="提示:至少选择一项!" android:textColor="#E02020" android:textSize="13sp" android:visibility="gone" app:layout_constraintBottom_toTopOf="@+id/dialog_answer_ok" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" /> <Button android:id="@+id/dialog_answer_ok" android:layout_width="match_parent" android:layout_height="45dp" android:layout_marginTop="31.5dp" android:background="#FB4645" android:text="确定" android:textColor="#FFFFFF" android:textSize="15sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toBottomOf="@+id/dialog_answer_group" /> </androidx.constraintlayout.widget.ConstraintLayout> </LinearLayout> </RelativeLayout>