file_download_fragment.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:orientation="vertical"
  20. android:layout_gravity="center"
  21. android:gravity="center_vertical"
  22. android:padding="20dp"
  23. >
  24. <TextView
  25. android:id="@+id/progressText"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:text="@string/downloader_not_downloaded_yet"
  29. android:layout_marginBottom="15dp"
  30. />
  31. <ProgressBar android:id="@+id/progressBar"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:progressDrawable="@android:drawable/progress_horizontal"
  35. android:indeterminate="false"
  36. android:indeterminateOnly="false"
  37. android:layout_marginBottom="15dp"
  38. />
  39. <Button
  40. android:id="@+id/cancelBtn"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:text="@string/common_cancel"
  44. android:layout_marginBottom="15dp"
  45. />
  46. <ImageView
  47. android:id="@+id/error_image"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_margin="0dp"
  51. android:layout_gravity="center_horizontal"
  52. android:contentDescription="@string/downloader_download_failed_ticker"
  53. android:src="@drawable/image_fail" />
  54. <TextView
  55. android:id="@+id/errorText"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_gravity="center_horizontal"
  59. android:layout_margin="40dp"
  60. android:text="@string/downloader_download_failed_ticker"
  61. />
  62. </LinearLayout>