appdownloader_notification_layout.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/appdownloader_root"
  4. android:layout_width="match_parent"
  5. android:layout_height="64dp"
  6. android:padding="10dp"
  7. android:orientation="horizontal">
  8. <ImageView
  9. android:id="@+id/appdownloader_icon"
  10. android:layout_width="44dp"
  11. android:layout_height="44dp"
  12. android:layout_marginRight="18dp"
  13. android:layout_gravity="center"
  14. android:duplicateParentState="false"
  15. android:background="@drawable/appdownloader_action_bg"
  16. android:scaleType="center"/>
  17. <RelativeLayout
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_weight="1">
  21. <TextView
  22. android:id="@+id/appdownloader_desc"
  23. android:layout_width="fill_parent"
  24. android:layout_height="wrap_content"
  25. style="@style/AppDownloader_NotificationTitle"
  26. android:singleLine="true"
  27. android:ellipsize="end"/>
  28. <LinearLayout
  29. android:id="@+id/appdownloader_download_success"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_below="@+id/appdownloader_desc"
  33. android:orientation="horizontal"
  34. android:visibility="gone">
  35. <TextView
  36. android:id="@+id/appdownloader_download_success_size"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:gravity="left|center"
  40. android:layout_marginRight="12dp"
  41. style="@style/AppDownloader_NotificationText"
  42. android:singleLine="true"
  43. android:ellipsize="end"/>
  44. <TextView
  45. android:id="@+id/appdownloader_download_success_status"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:gravity="left|center"
  49. style="@style/AppDownloader_NotificationText"
  50. android:singleLine="true"
  51. android:ellipsize="end"/>
  52. </LinearLayout>
  53. <LinearLayout
  54. android:id="@+id/appdownloader_download_text"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_below="@+id/appdownloader_desc"
  58. android:orientation="horizontal">
  59. <TextView
  60. android:id="@+id/appdownloader_download_size"
  61. android:layout_width="0dp"
  62. android:layout_height="wrap_content"
  63. android:layout_weight="3"
  64. android:gravity="left|center"
  65. style="@style/AppDownloader_NotificationText"
  66. android:textSize="10sp"
  67. android:singleLine="true"
  68. android:ellipsize="end"/>
  69. <TextView
  70. android:id="@+id/appdownloader_download_status"
  71. android:layout_width="0dp"
  72. android:layout_height="wrap_content"
  73. android:layout_weight="2"
  74. android:gravity="right|center"
  75. style="@style/AppDownloader_NotificationText"
  76. android:textSize="10sp"
  77. android:singleLine="true"
  78. android:ellipsize="end"/>
  79. </LinearLayout>
  80. <ProgressBar
  81. android:id="@+id/appdownloader_download_progress"
  82. style="@style/appdownloader_progress_bar"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:layout_marginTop="2dp"
  86. android:layout_below="@+id/appdownloader_download_text"
  87. android:max="100"/>
  88. </RelativeLayout>
  89. <TextView
  90. android:id="@+id/appdownloader_action"
  91. android:layout_width="55dp"
  92. android:layout_height="30dp"
  93. android:layout_marginLeft="18dp"
  94. android:layout_weight="0"
  95. android:gravity="center"
  96. android:layout_gravity="right|center"
  97. android:background="@drawable/appdownloader_action_bg"
  98. style="@style/AppDownloader_NotificationTitle"/>
  99. </LinearLayout>