account_setup.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <LinearLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:focusable="true"
  26. android:gravity="center"
  27. android:orientation="vertical"
  28. android:padding="8dp" >
  29. <ImageView
  30. android:id="@+id/imageView1"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_marginBottom="10dp"
  34. android:layout_marginTop="10dp"
  35. android:src="@drawable/logo" />
  36. <EditText
  37. android:id="@+id/hostUrlInput"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:ems="10"
  41. android:hint="@string/auth_host_url"
  42. android:inputType="textUri"
  43. android:drawablePadding="5dp"
  44. >
  45. <requestFocus />
  46. </EditText>
  47. <TextView
  48. android:id="@+id/server_status_text"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_marginBottom="10dp"
  52. android:drawableLeft="@android:drawable/stat_notify_sync"
  53. android:drawablePadding="5dp"
  54. android:gravity="center_vertical"
  55. android:text="@string/auth_testing_connection" />
  56. <CheckBox
  57. android:id="@+id/oauth_onOff_check"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:checked="false"
  61. android:onClick="onCheckClick"
  62. android:text="@string/oauth_check_onoff"
  63. android:textAppearance="?android:attr/textAppearanceSmall"
  64. android:visibility="gone" />
  65. <EditText
  66. android:id="@+id/oAuthEntryPoint_1"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:ems="10"
  70. android:inputType="textUri"
  71. android:singleLine="true"
  72. android:text="@string/oauth2_url_endpoint_auth"
  73. android:visibility="gone" >
  74. </EditText>
  75. <EditText
  76. android:id="@+id/oAuthEntryPoint_2"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:ems="10"
  80. android:inputType="textUri"
  81. android:singleLine="true"
  82. android:text="@string/oauth2_url_endpoint_access"
  83. android:visibility="gone" />
  84. <EditText
  85. android:id="@+id/account_username"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:ems="10"
  89. android:hint="@string/auth_username"
  90. android:inputType="textNoSuggestions" />
  91. <FrameLayout
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content" >
  94. <EditText
  95. android:id="@+id/account_password"
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:ems="10"
  99. android:hint="@string/auth_password"
  100. android:inputType="textPassword" />
  101. <ImageView
  102. android:id="@+id/viewPasswordButton"
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:layout_gravity="right|center_vertical"
  106. android:onClick="onViewPasswordClick"
  107. android:src="@android:drawable/ic_menu_view"
  108. android:visibility="invisible" />
  109. </FrameLayout>
  110. <TextView
  111. android:id="@+id/auth_status_text"
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:layout_marginBottom="10dp"
  115. android:drawableLeft="@android:drawable/stat_notify_sync"
  116. android:drawablePadding="5dp"
  117. android:gravity="center_vertical"
  118. android:text="@string/auth_unauthorized" />
  119. <Button
  120. android:id="@+id/buttonOK"
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:layout_gravity="center_horizontal"
  124. android:enabled="false"
  125. android:onClick="onOkClick"
  126. android:text="@string/setup_btn_connect"
  127. />
  128. <Button
  129. android:id="@+id/account_register"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:background="@android:color/transparent"
  133. android:textColor="#0000FF"
  134. android:onClick="onRegisterClick"
  135. android:paddingBottom="5dp"
  136. android:paddingTop="5dp"
  137. android:text="@string/auth_register"
  138. />
  139. </LinearLayout>
  140. </ScrollView>