account_setup.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012 Bartek Przybylski
  5. Copyright (C) 2012-2013 ownCloud Inc.
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License version 2,
  8. as published by the Free Software Foundation.
  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. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent"
  19. android:layout_gravity="center"
  20. android:fillViewport="true"
  21. android:orientation="vertical"
  22. android:id="@+id/scroll"
  23. >
  24. <LinearLayout
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:background="@color/login_background_color"
  28. android:gravity="center"
  29. android:orientation="vertical"
  30. android:padding="8dp" >
  31. <ImageView
  32. android:id="@+id/imageView1"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_marginBottom="10dp"
  36. android:layout_marginTop="10dp"
  37. android:background="@color/login_logo_background_color"
  38. android:src="@drawable/logo" />
  39. <Button
  40. android:id="@+id/centeredRefreshButton"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_gravity="center_horizontal"
  44. android:layout_marginBottom="10dp"
  45. android:onClick="onRefreshClick"
  46. android:text="@string/auth_check_server"
  47. android:visibility="gone" />
  48. <TextView
  49. android:id="@+id/auth_message"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_gravity="fill_horizontal"
  53. android:text="@string/auth_expired_basic_auth_toast"
  54. android:visibility="gone"
  55. android:layout_marginBottom="10dp" />
  56. <FrameLayout
  57. android:id="@+id/hostUrlFrame"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_marginBottom="10dp"
  61. >
  62. <EditText
  63. android:id="@+id/hostUrlInput"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_gravity="bottom"
  67. android:hint="@string/auth_host_url"
  68. android:inputType="textUri"
  69. android:drawablePadding="5dp"
  70. android:paddingRight="55dp"
  71. >
  72. <requestFocus />
  73. </EditText>
  74. <ImageButton
  75. android:id="@+id/embeddedRefreshButton"
  76. android:layout_width="48dp"
  77. android:layout_height="48dp"
  78. android:layout_gravity="center_vertical|right"
  79. android:layout_marginRight="5dp"
  80. android:padding="0dp"
  81. android:scaleType="fitCenter"
  82. android:src="@drawable/ic_action_refresh_black"
  83. android:onClick="onRefreshClick"
  84. android:visibility="gone"
  85. android:background="@android:color/transparent"
  86. />
  87. </FrameLayout>
  88. <TextView
  89. android:id="@+id/server_status_text"
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:layout_marginBottom="10dp"
  93. android:drawableLeft="@android:drawable/stat_notify_sync"
  94. android:drawablePadding="5dp"
  95. android:gravity="center_vertical"
  96. android:text="@string/auth_testing_connection" />
  97. <CheckBox
  98. android:id="@+id/oauth_onOff_check"
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:checked="false"
  102. android:onClick="onCheckClick"
  103. android:text="@string/oauth_check_onoff"
  104. android:textAppearance="?android:attr/textAppearanceSmall"
  105. />
  106. <EditText
  107. android:id="@+id/oAuthEntryPoint_1"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:ems="10"
  111. android:enabled="false"
  112. android:text="@string/oauth2_url_endpoint_auth"
  113. android:singleLine="true"
  114. android:inputType="textUri"
  115. android:visibility="gone" >
  116. </EditText>
  117. <EditText
  118. android:id="@+id/oAuthEntryPoint_2"
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:ems="10"
  122. android:enabled="false"
  123. android:text="@string/oauth2_url_endpoint_access"
  124. android:singleLine="true"
  125. android:inputType="textUri"
  126. android:visibility="gone" />
  127. <EditText
  128. android:id="@+id/account_username"
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:ems="10"
  132. android:hint="@string/auth_username"
  133. android:inputType="textNoSuggestions"
  134. />
  135. <EditText
  136. android:id="@+id/account_password"
  137. android:layout_width="match_parent"
  138. android:layout_height="wrap_content"
  139. android:drawablePadding="5dp"
  140. android:ems="10"
  141. android:hint="@string/auth_password"
  142. android:inputType="textPassword"
  143. />
  144. <TextView
  145. android:id="@+id/auth_status_text"
  146. android:layout_width="match_parent"
  147. android:layout_height="wrap_content"
  148. android:layout_marginBottom="10dp"
  149. android:drawableLeft="@android:drawable/stat_notify_sync"
  150. android:drawablePadding="5dp"
  151. android:gravity="center_vertical"
  152. android:text="@string/auth_unauthorized" />
  153. <Button
  154. android:id="@+id/buttonOK"
  155. android:layout_width="match_parent"
  156. android:layout_height="wrap_content"
  157. android:layout_gravity="center_horizontal"
  158. android:enabled="false"
  159. android:onClick="onOkClick"
  160. android:text="@string/setup_btn_connect" />
  161. <Button
  162. android:id="@+id/welcome_link"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:background="@android:color/transparent"
  166. android:onClick="onRegisterClick"
  167. android:paddingBottom="5dp"
  168. android:paddingTop="5dp"
  169. android:text="@string/auth_register"
  170. android:textColor="#0000FF"/>
  171. </LinearLayout>
  172. </ScrollView>