ht_dialog_exit.xml 4.2 KB
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:gravity="center"
   android:orientation="vertical"
   android:layout_gravity="center"
   android:layout_width="match_parent"
   android:layout_height="wrap_content">

   <RelativeLayout
      android:layout_width="match_parent"
      style="@style/ht_title_style"
      android:layout_height="wrap_content">

      <TextView
         style="@style/ht_title_text_style"
         android:layout_width="match_parent"
         android:layout_height="40dp"
         android:text="退出游戏" />

      <ImageView
         android:id="@+id/ht_close_img"
         style="@style/ht_close_style"
         android:layout_width="18dp"
         android:layout_height="18dp" />
   </RelativeLayout>

   <LinearLayout
      android:gravity="center"
      android:orientation="vertical"
      style="@style/ht_content_style"
      android:layout_width="match_parent"
      android:layout_height="wrap_content">

      <RelativeLayout
         android:layout_width="match_parent"
         android:gravity="center"
         android:layout_height="120dp">

         <LinearLayout
            android:id="@+id/ht_exit_gzh_ly"
            android:layout_width="match_parent"
            android:orientation="vertical"
            android:gravity="center"
            android:layout_height="match_parent">

            <TextView
               android:id="@+id/ht_exit_gzh_tips"
               android:gravity="center"
               android:textColor="@color/ht_dec_text_black_color"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:singleLine="false"
               android:textSize="12sp"
               android:textStyle="bold"
               android:text="关注官方公众号,领取福利(点击复制)" />

            <ImageView
               android:id="@+id/ht_exit_gzh_img"
               android:layout_width="wrap_content"
               android:layout_weight="1"
               android:scaleType="centerInside"
               android:padding="1dp"
               android:layout_margin="10dp"
               android:layout_height="0dp"
               android:src="@drawable/ht_icon_gzh" />

            <TextView
               android:id="@+id/ht_exit_gzh_content"
               android:gravity="center"
               android:textColor="@color/ht_common_text"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:singleLine="false"
               android:textStyle="bold"
               android:text="公众号:白桃互娱" />
         </LinearLayout>


         <TextView
            android:id="@+id/ht_exit_default_view"
            android:visibility="gone"
            android:textColor="@color/ht_dec_text_black_color"
            android:gravity="center"
            android:layout_centerInParent="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:singleLine="false"
            android:text="考虑清楚\n要退出游戏吗?" />
      </RelativeLayout>


      <LinearLayout
         android:gravity="center"
         android:orientation="horizontal"
         android:layout_width="match_parent"
         android:layout_marginTop="10dp"
         android:layout_marginBottom="10dp"
         android:weightSum="3"
         android:layout_height="wrap_content">

         <Button
            android:id="@+id/ht_exit_sure"
            style="@style/ht_button_style"
            android:textColor="@color/ht_white"
            android:layout_weight="1"
            android:textStyle="bold"
            android:layout_width="wrap_content"
            android:layout_height="35dp"
            android:text="退出游戏" />

         <Button
            android:id="@+id/ht_exit_cencal"
            android:textColor="@color/ht_white"
            style="@style/ht_button_style"
            android:layout_weight="1"
            android:textStyle="bold"
            android:layout_marginLeft="20dp"
            android:layout_width="wrap_content"
            android:layout_height="35dp"
            android:text="继续游戏" />

      </LinearLayout>
   </LinearLayout>
</LinearLayout>