<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_gravity="center" > <View android:layout_width="30dp" android:layout_height="wrap_content"/> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="3" android:minWidth="200dp" android:background="@drawable/normaldialog_layout_bg" android:orientation="vertical" android:scrollbars="vertical"> <TextView android:id="@+id/title" android:layout_width="match_parent" android:layout_height="40dp" android:gravity="center" android:text="提示" android:background="@drawable/normaldialog_top_btn_select" android:textSize="18sp" /> <View android:layout_width="match_parent" android:layout_height="0.5dip" android:background="#D1D1D1" /> <RelativeLayout android:id="@+id/message_layout" android:layout_width="match_parent" android:layout_height="40dp" android:gravity="center" android:orientation="vertical" > <TextView android:id="@+id/message" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:text="内容" android:background="@drawable/normaldialog_right_btn_select" android:textSize="18sp" /> </RelativeLayout> <View android:layout_width="match_parent" android:layout_height="0.5dip" android:background="#D1D1D1" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="40dp" android:orientation="horizontal" > <TextView android:id="@+id/confirm_btn" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:textSize="18sp" android:gravity="center" android:background="@drawable/normaldialog_btn_select" android:text="确定"/> </LinearLayout> </LinearLayout> <View android:layout_width="30dp" android:layout_height="wrap_content"/> </LinearLayout> </ScrollView>