downloading_expansion.xml 6.7 KB

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