account_setup.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012 Bartek Przybylski
  5. Copyright (C) 2015-2016 ownCloud Inc.
  6. Copyright (C) 2016 Nextcloud
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License version 2,
  9. as published by the Free Software Foundation.
  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 General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. 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:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:layout_gravity="center"
  21. android:fillViewport="true"
  22. android:orientation="vertical"
  23. android:id="@+id/scroll"
  24. >
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:gravity="center"
  29. android:orientation="vertical"
  30. android:padding="@dimen/standard_padding" >
  31. <ImageView
  32. android:id="@+id/thumbnail"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_marginBottom="@dimen/standard_padding"
  36. android:src="@drawable/logo"
  37. android:contentDescription="@string/app_name"/>
  38. <LinearLayout
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:gravity="center"
  42. android:orientation="vertical"
  43. android:padding="@dimen/standard_half_padding">
  44. <android.support.v7.widget.AppCompatButton
  45. android:id="@+id/centeredRefreshButton"
  46. style="@style/ownCloud.Button"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:layout_gravity="center_horizontal"
  50. android:layout_marginBottom="@dimen/alternate_margin"
  51. android:theme="@style/Button"
  52. android:text="@string/auth_check_server"
  53. android:visibility="gone"
  54. android:contentDescription="@string/auth_check_server"/>
  55. <TextView
  56. android:id="@+id/instructions_message"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_gravity="fill_horizontal"
  60. android:text="@string/auth_expired_basic_auth_toast"
  61. android:visibility="gone"
  62. android:layout_marginBottom="@dimen/alternate_margin"
  63. android:textColor="@color/login_text_color"
  64. android:contentDescription="@string/auth_expired_basic_auth_toast"/>
  65. <FrameLayout
  66. android:id="@+id/hostUrlFrame"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginBottom="@dimen/zero">
  70. <android.support.design.widget.TextInputLayout
  71. android:id="@+id/input_layout_hostUrl"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content">
  74. <EditText
  75. android:id="@+id/hostUrlInput"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:layout_gravity="bottom"
  79. android:contentDescription="@string/auth_host_address"
  80. android:drawablePadding="@dimen/alternate_half_padding"
  81. android:hint="@string/auth_host_url"
  82. android:inputType="textUri"
  83. android:paddingRight="@dimen/alternate_padding_right"
  84. android:textColor="@color/login_text_color"
  85. android:textColorHint="@color/login_text_color">
  86. <requestFocus/>
  87. </EditText>
  88. </android.support.design.widget.TextInputLayout>
  89. <ImageButton
  90. android:id="@+id/embeddedRefreshButton"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_gravity="center_vertical|right"
  94. android:layout_marginRight="@dimen/alternate_half_padding"
  95. android:padding="@dimen/zero"
  96. android:scaleType="fitCenter"
  97. android:src="@drawable/ic_action_refresh"
  98. android:visibility="gone"
  99. android:background="@android:color/transparent"
  100. android:contentDescription="@string/auth_refresh_button"
  101. />
  102. </FrameLayout>
  103. <TextView
  104. android:id="@+id/server_status_text"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:layout_marginBottom="@dimen/alternate_margin"
  108. android:drawableLeft="@android:drawable/stat_notify_sync"
  109. android:drawablePadding="@dimen/alternate_half_padding"
  110. android:gravity="center_vertical"
  111. android:textColor="@color/login_text_color"
  112. android:text="@string/auth_testing_connection"
  113. android:minHeight="@dimen/display_text_min_height"
  114. android:contentDescription="@string/auth_testing_connection"/>
  115. <CheckBox
  116. android:id="@+id/oauth_onOff_check"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:checked="false"
  120. android:onClick="onCheckClick"
  121. android:text="@string/oauth_check_onoff"
  122. android:textAppearance="?android:attr/textAppearanceSmall"
  123. android:textColor="@color/white"
  124. android:contentDescription="@string/oauth_check_onoff"
  125. />
  126. <android.support.design.widget.TextInputLayout
  127. android:id="@+id/input_layout_oAuthEntryPoint_1"
  128. android:layout_width="match_parent"
  129. android:layout_height="wrap_content">
  130. <EditText
  131. android:id="@+id/oAuthEntryPoint_1"
  132. android:layout_width="match_parent"
  133. android:layout_height="wrap_content"
  134. android:ems="10"
  135. android:enabled="false"
  136. android:inputType="textUri"
  137. android:singleLine="true"
  138. android:text="@string/oauth2_url_endpoint_auth"
  139. android:textColor="@color/login_text_color"
  140. android:textColorHint="@color/login_text_hint_color"
  141. android:visibility="gone" />
  142. </android.support.design.widget.TextInputLayout>
  143. <android.support.design.widget.TextInputLayout
  144. android:id="@+id/input_layout_oAuthEntryPoint_2"
  145. android:layout_width="match_parent"
  146. android:layout_height="wrap_content">
  147. <EditText
  148. android:id="@+id/oAuthEntryPoint_2"
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:ems="10"
  152. android:enabled="false"
  153. android:inputType="textUri"
  154. android:singleLine="true"
  155. android:text="@string/oauth2_url_endpoint_access"
  156. android:textColor="@color/login_text_color"
  157. android:textColorHint="@color/login_text_hint_color"
  158. android:visibility="gone"/>
  159. </android.support.design.widget.TextInputLayout>
  160. <android.support.design.widget.TextInputLayout
  161. android:id="@+id/input_layout_account_username"
  162. android:layout_width="match_parent"
  163. android:layout_height="wrap_content">
  164. <EditText
  165. android:id="@+id/account_username"
  166. android:layout_width="match_parent"
  167. android:layout_height="wrap_content"
  168. android:contentDescription="@string/auth_username"
  169. android:ems="10"
  170. android:hint="@string/auth_username"
  171. android:inputType="textNoSuggestions"
  172. android:textColor="@color/login_text_color"
  173. android:textColorHint="@color/login_text_hint_color"/>
  174. </android.support.design.widget.TextInputLayout>
  175. <android.support.design.widget.TextInputLayout
  176. android:id="@+id/input_layout_account_password"
  177. android:layout_width="match_parent"
  178. android:layout_height="wrap_content">
  179. <EditText
  180. android:id="@+id/account_password"
  181. android:layout_width="match_parent"
  182. android:layout_height="wrap_content"
  183. android:contentDescription="@string/auth_password"
  184. android:drawablePadding="@dimen/alternate_half_padding"
  185. android:ems="10"
  186. android:hint="@string/auth_password"
  187. android:inputType="textPassword"
  188. android:textColor="@color/login_text_color"
  189. android:textColorHint="@color/login_text_hint_color"
  190. />
  191. </android.support.design.widget.TextInputLayout>
  192. <TextView
  193. android:id="@+id/auth_status_text"
  194. android:layout_width="match_parent"
  195. android:layout_height="wrap_content"
  196. android:layout_marginBottom="@dimen/alternate_margin"
  197. android:drawableLeft="@android:drawable/stat_notify_sync"
  198. android:drawablePadding="@dimen/alternate_half_padding"
  199. android:gravity="center_vertical"
  200. android:text="@string/auth_unauthorized"
  201. android:textColor="@color/login_text_color"
  202. android:contentDescription="@string/auth_unauthorized"/>
  203. <android.support.v7.widget.AppCompatButton
  204. android:id="@+id/buttonOK"
  205. android:theme="@style/Button.Login"
  206. style="@style/Button.Login"
  207. android:layout_width="wrap_content"
  208. android:layout_height="wrap_content"
  209. android:layout_gravity="center_horizontal"
  210. android:padding="@dimen/standard_padding"
  211. android:enabled="false"
  212. android:text="@string/setup_btn_connect"
  213. android:contentDescription="@string/setup_btn_connect"/>
  214. <LinearLayout
  215. android:layout_width="match_parent"
  216. android:layout_height="match_parent"
  217. android:gravity="center|bottom">
  218. <Button
  219. android:id="@+id/welcome_link"
  220. android:layout_width="wrap_content"
  221. android:layout_height="wrap_content"
  222. android:background="@android:color/transparent"
  223. android:onClick="onRegisterClick"
  224. android:paddingBottom="@dimen/alternate_half_padding"
  225. android:paddingTop="@dimen/alternate_half_padding"
  226. android:text="@string/auth_register"
  227. android:textColor="@color/login_text_hint_color"
  228. android:contentDescription="@string/auth_register"/>
  229. </LinearLayout>
  230. </LinearLayout>
  231. </LinearLayout>
  232. </ScrollView>