account_setup.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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:orientation="vertical" >
  20. <LinearLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:layout_gravity="center"
  24. android:focusable="true"
  25. android:gravity="center"
  26. android:orientation="vertical" >
  27. <FrameLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="0dip"
  30. android:layout_gravity="center"
  31. android:layout_marginBottom="50dip"
  32. android:layout_marginLeft="16dip"
  33. android:layout_marginRight="16dip"
  34. android:layout_weight="1" >
  35. <LinearLayout
  36. android:id="@+id/LinearLayout1"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center"
  40. android:orientation="vertical" >
  41. <ImageView
  42. android:id="@+id/imageView1"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_marginBottom="10dp"
  46. android:layout_weight="1"
  47. android:src="@drawable/owncloud_logo" />
  48. <FrameLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="1" >
  52. <EditText
  53. android:id="@+id/hostUrlInput"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:ems="10"
  57. android:hint="@string/auth_host_url"
  58. android:inputType="textNoSuggestions" >
  59. <requestFocus />
  60. </EditText>
  61. <ImageView
  62. android:id="@+id/refreshButton"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:src="@drawable/ic_action_refresh_black"
  66. android:layout_gravity="right|center_vertical"
  67. android:visibility="invisible" />
  68. </FrameLayout>
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="50dp"
  72. android:layout_weight="1" >
  73. <ImageView
  74. android:id="@+id/action_indicator"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:layout_marginLeft="5dp"
  78. android:layout_marginRight="5dp"
  79. android:src="@android:drawable/stat_notify_sync"
  80. android:visibility="invisible" />
  81. <TextView
  82. android:id="@+id/status_text"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:text="TextView"
  86. android:visibility="invisible" />
  87. </LinearLayout>
  88. <CheckBox
  89. android:id="@+id/oauth_onOff_check"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:checked="false"
  93. android:onClick="onCheckClick"
  94. android:text="@string/oauth_check_onoff"
  95. android:textAppearance="?android:attr/textAppearanceSmall" />
  96. <TextView
  97. android:id="@+id/textView2"
  98. android:layout_width="wrap_content"
  99. android:layout_height="0dp"
  100. android:layout_weight="1"
  101. android:text="@string/auth_login_details"
  102. android:textAppearance="?android:attr/textAppearanceSmall" />
  103. <EditText
  104. android:id="@+id/oAuthEntryPoint_1"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:layout_weight="1"
  108. android:ems="10"
  109. android:text="@string/oauth2_url_endpoint_auth"
  110. android:singleLine="true"
  111. android:visibility="gone" >
  112. <requestFocus />
  113. </EditText>
  114. <EditText
  115. android:id="@+id/oAuthEntryPoint_2"
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_weight="1"
  119. android:ems="10"
  120. android:text="@string/oauth2_url_endpoint_access"
  121. android:singleLine="true"
  122. android:visibility="gone" >
  123. <requestFocus />
  124. </EditText>
  125. <EditText
  126. android:id="@+id/account_username"
  127. android:layout_width="match_parent"
  128. android:layout_height="0dp"
  129. android:layout_weight="1"
  130. android:ems="10"
  131. android:hint="@string/auth_username"
  132. android:inputType="textNoSuggestions" />
  133. <FrameLayout
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:layout_weight="1" >
  137. <EditText
  138. android:id="@+id/account_password"
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:ems="10"
  142. android:hint="@string/auth_password"
  143. android:inputType="textPassword"/>
  144. <ImageView
  145. android:id="@+id/viewPasswordButton"
  146. android:layout_width="wrap_content"
  147. android:layout_height="wrap_content"
  148. android:layout_gravity="right|center_vertical"
  149. android:src="@android:drawable/ic_menu_view"
  150. android:onClick="onViewPasswordClick"
  151. android:visibility="invisible" />
  152. </FrameLayout>
  153. <TextView
  154. android:id="@+id/auth_status_text"
  155. android:layout_width="match_parent"
  156. android:layout_height="wrap_content"
  157. android:layout_weight="1"
  158. android:text="@string/text_placeholder"
  159. android:layout_marginLeft="5dp"
  160. android:layout_marginRight="5dp"
  161. android:drawableLeft="@android:drawable/stat_notify_sync"
  162. android:drawablePadding="5dip"
  163. android:visibility="invisible"
  164. />
  165. </LinearLayout>
  166. </FrameLayout>
  167. <RelativeLayout
  168. android:layout_width="match_parent"
  169. android:layout_height="wrap_content">
  170. <LinearLayout
  171. android:id="@+id/buttons_layout"
  172. android:layout_width="match_parent"
  173. android:layout_height="wrap_content"
  174. android:weightSum="1">
  175. <Button
  176. android:id="@+id/buttonOK"
  177. android:layout_width="match_parent"
  178. android:layout_height="wrap_content"
  179. android:layout_gravity="center_horizontal"
  180. android:layout_marginLeft="16dip"
  181. android:layout_marginRight="16dip"
  182. android:enabled="false"
  183. android:onClick="onOkClick"
  184. android:text="@string/setup_btn_connect"
  185. android:textColor="@android:color/black" />
  186. </LinearLayout>
  187. <Button
  188. android:id="@+id/account_register"
  189. android:layout_width="wrap_content"
  190. android:layout_height="wrap_content"
  191. android:layout_below="@id/buttons_layout"
  192. android:layout_centerHorizontal="true"
  193. android:onClick="onRegisterClick"
  194. android:paddingTop="10dp"
  195. android:paddingBottom="10dp"
  196. android:textColor="#0000FF"
  197. android:background="@android:color/transparent" />
  198. <Button
  199. android:id="@+id/account_register"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content"
  202. android:layout_below="@id/buttons_layout"
  203. android:layout_centerHorizontal="true"
  204. android:onClick="onRegisterClick"
  205. android:paddingTop="10dp"
  206. android:paddingBottom="10dp"
  207. android:textColor="#0000FF"
  208. android:background="@android:color/transparent" />
  209. <!-- android:text="@string/app_name @string/auth_register" /-->
  210. </RelativeLayout>
  211. </LinearLayout>
  212. </ScrollView>