dialog_calling.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:orientation="vertical">
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:layout_centerInParent="true"
  10. android:orientation="vertical">
  11. <ImageView
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:layout_gravity="center"
  15. android:src="@mipmap/video_dialog" />
  16. <TextView
  17. android:id="@+id/txt_dialog_prompt"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_gravity="center"
  21. android:layout_margin="10dip"
  22. android:text="@string/dialog_video_wait"
  23. android:textColor="@android:color/white"
  24. android:textSize="28sp" />
  25. </LinearLayout>
  26. <LinearLayout
  27. android:layout_width="fill_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_alignParentBottom="true"
  30. android:orientation="horizontal">
  31. <TextView
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_weight="1.5" />
  35. <Button
  36. android:id="@+id/btn_cancel"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center"
  40. android:layout_margin="@dimen/space_10"
  41. android:layout_weight="1"
  42. android:background="@color/dialog_bg_red"
  43. android:padding="@dimen/space_10"
  44. android:text="@string/dialog_system_cancel"
  45. android:textColor="@color/white"
  46. android:textSize="@dimen/text_size_18" />
  47. <TextView
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:layout_weight="1.5" />
  51. </LinearLayout>
  52. </RelativeLayout>