contacts_backup_fragment.xml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2017 Tobias Kaminsky
  5. Copyright (C) 2017 Nextcloud.
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  8. License as published by the Free Software Foundation; either
  9. version 3 of the License, or any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  14. You should have received a copy of the GNU Affero General Public
  15. License along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:id="@+id/contacts_linear_layout"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent">
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:orientation="vertical">
  25. <android.support.v7.widget.SwitchCompat
  26. android:id="@+id/contacts_automatic_backup"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_margin="@dimen/standard_margin"
  30. android:text="@string/contacts_automatic_backup"
  31. android:textAppearance="?android:attr/textAppearanceMedium"/>
  32. <LinearLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:orientation="horizontal">
  36. <TextView
  37. android:id="@+id/contacts_last_backup"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_margin="@dimen/standard_margin"
  41. android:layout_weight="1"
  42. android:text="@string/contacts_last_backup"
  43. android:textAppearance="?android:attr/textAppearanceMedium"
  44. android:textColor="@color/black"/>
  45. <TextView
  46. android:id="@+id/contacts_last_backup_timestamp"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:layout_margin="@dimen/standard_margin"
  50. android:layout_weight="1"
  51. android:gravity="end"
  52. android:text="@string/contacts_preference_backup_never"
  53. android:textAppearance="?android:attr/textAppearanceMedium"/>
  54. </LinearLayout>
  55. <LinearLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="match_parent"
  58. android:orientation="horizontal">
  59. <android.support.v7.widget.AppCompatButton
  60. android:id="@+id/contacts_backup_now"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_margin="@dimen/standard_margin"
  64. android:layout_weight="1"
  65. android:text="@string/contacts_backup_button"
  66. android:theme="@style/Button.Primary"/>
  67. <android.support.v7.widget.AppCompatButton
  68. android:id="@+id/contacts_datepicker"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_margin="@dimen/standard_margin"
  72. android:layout_weight="1"
  73. android:text="@string/contacts_preference_choose_date"
  74. android:theme="@style/Button"
  75. android:visibility="gone"/>
  76. </LinearLayout>
  77. </LinearLayout>
  78. </ScrollView>