custom_dialog_layout.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent">
  5. <RelativeLayout
  6. android:layout_width="wrap_content"
  7. android:layout_height="wrap_content"
  8. android:layout_centerInParent="true"
  9. android:background="@drawable/bg_shu_ru_kuang">
  10. <ImageView
  11. android:id="@+id/imgA"
  12. android:layout_width="25dp"
  13. android:layout_height="25dp"
  14. android:layout_centerVertical="true"
  15. android:layout_marginLeft="20dp"
  16. android:background="@mipmap/icon_ts_cw"
  17. android:visibility="gone" />
  18. <ImageView
  19. android:id="@+id/imgB"
  20. android:layout_width="25dp"
  21. android:layout_height="25dp"
  22. android:layout_marginLeft="20dp"
  23. android:layout_centerVertical="true"
  24. android:background="@mipmap/icon_sy_zq"
  25. android:visibility="gone" />
  26. <TextView
  27. android:ellipsize="end"
  28. android:maxLines="1"
  29. android:id="@+id/msg"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_centerVertical="true"
  33. android:layout_marginLeft="60dp"
  34. android:layout_marginRight="40dp"
  35. android:layout_marginTop="20dp"
  36. android:layout_marginBottom="20dp"
  37. android:textColor="@color/black"
  38. android:textSize="18sp" />
  39. </RelativeLayout>
  40. </RelativeLayout>