file_download_fragment.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012-2013 ownCloud Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License version 2,
  7. as published by the Free Software Foundation.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:orientation="vertical"
  19. android:layout_gravity="center"
  20. android:gravity="center_vertical"
  21. android:padding="20dp"
  22. >
  23. <TextView
  24. android:id="@+id/progressText"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:text="@string/downloader_not_downloaded_yet"
  28. android:layout_marginBottom="15dp"
  29. />
  30. <LinearLayout
  31. android:id="@+id/fdProgressBlock"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:gravity="center"
  35. android:layout_marginTop="12dp"
  36. android:layout_marginBottom="15dp"
  37. android:orientation="horizontal"
  38. >
  39. <ProgressBar android:id="@+id/progressBar"
  40. android:layout_width="0dp"
  41. android:layout_height="wrap_content"
  42. android:layout_weight="1"
  43. android:progressDrawable="@android:drawable/progress_horizontal"
  44. android:indeterminate="false"
  45. android:indeterminateOnly="false"
  46. />
  47. <ImageButton
  48. android:id="@+id/cancelBtn"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_marginLeft="12dp"
  52. android:src="@drawable/btn_cancel"
  53. android:background="@android:color/transparent"
  54. />
  55. </LinearLayout>
  56. <ImageView
  57. android:id="@+id/error_image"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_margin="0dp"
  61. android:layout_gravity="center_horizontal"
  62. android:contentDescription="@string/downloader_download_failed_ticker"
  63. android:src="@drawable/image_fail" />
  64. <TextView
  65. android:id="@+id/errorText"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_gravity="center_horizontal"
  69. android:layout_margin="40dp"
  70. android:text="@string/downloader_download_failed_ticker"
  71. />
  72. </LinearLayout>