obb_downloader.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical"
  6. android:background="@android:color/transparent" >
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_weight="0"
  11. android:orientation="vertical" >
  12. <TextView
  13. android:id="@+id/statusText"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:layout_marginBottom="10dp"
  17. android:layout_marginLeft="5dp"
  18. android:layout_marginTop="10dp"
  19. android:textStyle="bold" />
  20. <LinearLayout
  21. android:id="@+id/downloaderDashboard"
  22. android:layout_width="fill_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_below="@id/statusText"
  25. android:orientation="vertical" >
  26. <RelativeLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_weight="1" >
  30. <TextView
  31. android:id="@+id/progressAsFraction"
  32. style="@android:style/TextAppearance.Small"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_alignParentLeft="true"
  36. android:layout_marginLeft="5dp"
  37. android:text="0MB / 0MB" >
  38. </TextView>
  39. <TextView
  40. android:id="@+id/progressAsPercentage"
  41. style="@android:style/TextAppearance.Small"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_alignRight="@+id/progressBar"
  45. android:text="0%" />
  46. <ProgressBar
  47. android:id="@+id/progressBar"
  48. style="?android:attr/progressBarStyleHorizontal"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_below="@+id/progressAsFraction"
  52. android:layout_marginBottom="10dp"
  53. android:layout_marginLeft="10dp"
  54. android:layout_marginRight="10dp"
  55. android:layout_marginTop="10dp"
  56. android:layout_weight="1" />
  57. <TextView
  58. android:id="@+id/progressAverageSpeed"
  59. style="@android:style/TextAppearance.Small"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_alignParentLeft="true"
  63. android:layout_below="@+id/progressBar"
  64. android:layout_marginLeft="5dp" />
  65. <TextView
  66. android:id="@+id/progressTimeRemaining"
  67. style="@android:style/TextAppearance.Small"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_alignRight="@+id/progressBar"
  71. android:layout_below="@+id/progressBar" />
  72. </RelativeLayout>
  73. <LinearLayout
  74. android:id="@+id/downloaderDashboard"
  75. android:layout_width="fill_parent"
  76. android:layout_height="wrap_content"
  77. android:orientation="horizontal" >
  78. <Button
  79. android:id="@+id/pauseButton"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_gravity="center_vertical"
  83. android:layout_marginBottom="10dp"
  84. android:layout_marginLeft="10dp"
  85. android:layout_marginRight="5dp"
  86. android:layout_marginTop="10dp"
  87. android:layout_weight="0"
  88. android:minHeight="40dp"
  89. android:minWidth="94dp"
  90. android:text="@string/text_button_pause" />
  91. <Button
  92. android:id="@+id/cancelButton"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_gravity="center_vertical"
  96. android:layout_marginBottom="10dp"
  97. android:layout_marginLeft="5dp"
  98. android:layout_marginRight="5dp"
  99. android:layout_marginTop="10dp"
  100. android:layout_weight="0"
  101. android:minHeight="40dp"
  102. android:minWidth="94dp"
  103. android:text="@string/text_button_cancel"
  104. android:visibility="gone" />
  105. </LinearLayout>
  106. </LinearLayout>
  107. </LinearLayout>
  108. <LinearLayout
  109. android:id="@+id/approveCellular"
  110. android:layout_width="match_parent"
  111. android:layout_height="match_parent"
  112. android:layout_weight="1"
  113. android:orientation="vertical"
  114. android:visibility="gone" >
  115. <TextView
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_margin="10dp"
  119. android:id="@+id/textPausedParagraph1"
  120. android:text="@string/text_paused_cellular" />
  121. <TextView
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:layout_margin="10dp"
  125. android:id="@+id/textPausedParagraph2"
  126. android:text="@string/text_paused_cellular_2" />
  127. <LinearLayout
  128. android:id="@+id/buttonRow"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:orientation="horizontal" >
  132. <Button
  133. android:id="@+id/resumeOverCellular"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_gravity="center"
  137. android:layout_margin="10dp"
  138. android:text="@string/text_button_resume_cellular" />
  139. <Button
  140. android:id="@+id/wifiSettingsButton"
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:layout_gravity="center"
  144. android:layout_margin="10dp"
  145. android:text="@string/text_button_wifi_settings" />
  146. </LinearLayout>
  147. </LinearLayout>
  148. </LinearLayout>