upsdk_app_dl_progress_dialog.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/action"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:orientation="vertical" >
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_marginLeft="24dp"
  11. android:layout_marginStart="24dp"
  12. android:layout_marginRight="16dp"
  13. android:layout_marginEnd="16dp"
  14. android:orientation="vertical"
  15. android:layout_marginBottom="16dp">
  16. <RelativeLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:layout_marginBottom="4dp"
  20. android:paddingTop="24dp">
  21. <TextView
  22. android:id="@+id/third_app_dl_progress_text"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_alignParentRight="true"
  26. android:layout_alignParentEnd="true"
  27. android:layout_marginRight="48dp"
  28. android:layout_marginEnd="48dp"
  29. android:textColor="@color/emui_color_gray_7"
  30. android:textSize="@dimen/emui_master_body_2" />
  31. <TextView
  32. android:id="@+id/third_app_warn_text"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_toLeftOf="@id/third_app_dl_progress_text"
  36. android:layout_toStartOf="@id/third_app_dl_progress_text"
  37. android:layout_marginRight="16dp"
  38. android:layout_marginEnd="16dp"
  39. android:text="@string/upsdk_app_dl_installing"
  40. android:textColor="@color/emui_color_gray_10"
  41. android:textSize="@dimen/emui_master_body_2" />
  42. </RelativeLayout>
  43. <RelativeLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:gravity="center_vertical">
  47. <RelativeLayout
  48. android:id="@+id/cancel_bg"
  49. android:layout_width="40dp"
  50. android:layout_height="40dp"
  51. android:layout_alignParentRight="true"
  52. android:layout_alignParentEnd="true"
  53. android:layout_centerVertical="true"
  54. android:focusable="true"
  55. android:background="@drawable/upsdk_third_download_bg">
  56. <ImageView
  57. android:id="@+id/cancel_imageview"
  58. android:layout_width="24dp"
  59. android:layout_height="24dp"
  60. android:layout_centerInParent="true"
  61. android:background="@drawable/upsdk_cancel_normal"/>
  62. </RelativeLayout>
  63. <ProgressBar
  64. android:id="@+id/third_app_dl_progressbar"
  65. style="?android:attr/progressBarStyleHorizontal"
  66. android:layout_width="fill_parent"
  67. android:layout_toLeftOf="@id/cancel_bg"
  68. android:layout_toStartOf="@id/cancel_bg"
  69. android:layout_centerVertical="true"
  70. android:layout_marginRight="8dp"
  71. android:layout_marginEnd="8dp"
  72. android:layout_height="wrap_content" />
  73. </RelativeLayout>
  74. </LinearLayout>
  75. </LinearLayout>