1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   3   ownCloud Android client application
 
   5   Copyright (C) 
2012  Bartek Przybylski
 
   6   Copyright (C) 
2012-
2013 ownCloud Inc.
 
   8   This program is free software: you can redistribute it and/or modify
 
   9   it under the terms of the GNU General Public License version 
2,
 
  10   as published by the Free Software Foundation.
 
  12   This program is distributed in the hope that it will be useful,
 
  13   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
  14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
  15   GNU General Public License for more details.
 
  17   You should have received a copy of the GNU General Public License
 
  18   along with this program.  If not, see 
<http://www.gnu.org/licenses
/>.
 
  20 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android" 
  21     android:
layout_width=
"match_parent" 
  22     android:
layout_height=
"match_parent" 
  23     android:
layout_gravity=
"center" 
  24     android:
fillViewport=
"true" 
  25     android:
orientation=
"vertical"  
  26     android:
id=
"@+id/scroll" 
  30         android:
layout_width=
"match_parent" 
  31         android:
layout_height=
"wrap_content" 
  32         android:
gravity=
"center" 
  33         android:
orientation=
"vertical" 
  34         android:
padding=
"8dp" > 
  37             android:
id=
"@+id/imageView1" 
  38             android:
layout_width=
"match_parent" 
  39             android:
layout_height=
"wrap_content" 
  40             android:
layout_marginBottom=
"10dp" 
  41             android:
layout_marginTop=
"10dp" 
  42             android:
src=
"@drawable/logo" /> 
  45             android:
id=
"@+id/centeredRefreshButton" 
  46             android:
layout_width=
"wrap_content" 
  47             android:
layout_height=
"wrap_content" 
  48             android:
layout_gravity=
"center_horizontal" 
  49             android:
layout_marginBottom=
"10dp" 
  50             android:
onClick=
"onRefreshClick" 
  51             android:
text=
"@string/auth_check_server" 
  52             android:
visibility=
"gone" /> 
  55                 android:
id=
"@+id/hostUrlFrame" 
  56                         android:
layout_width=
"match_parent" 
  57                         android:
layout_height=
"wrap_content" 
  58             android:
layout_marginBottom=
"10dp" 
  61                                 android:
id=
"@+id/hostUrlInput" 
  62                                 android:
layout_width=
"match_parent" 
  63                                 android:
layout_height=
"wrap_content" 
  64                                 android:
layout_gravity=
"bottom" 
  65                                 android:
hint=
"@string/auth_host_url" 
  66                                 android:
inputType=
"textUri" 
  67                                 android:
drawablePadding=
"5dp" 
  68                                 android:
paddingRight=
"55dp" 
  73                             android:
id=
"@+id/embeddedRefreshButton" 
  74                             android:
layout_width=
"48dp" 
  75                             android:
layout_height=
"48dp" 
  76                             android:
layout_gravity=
"center_vertical|right" 
  77                             android:
layout_marginRight=
"5dp" 
  79                             android:
scaleType=
"fitCenter" 
  80                             android:
src=
"@drawable/ic_action_refresh_black" 
  81                 android:
onClick=
"onRefreshClick" 
  82                                 android:
visibility=
"gone" 
  83                                 android:
background=
"@android:color/transparent" 
  88             android:
id=
"@+id/server_status_text" 
  89             android:
layout_width=
"match_parent" 
  90             android:
layout_height=
"wrap_content" 
  91             android:
layout_marginBottom=
"10dp" 
  92             android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
  93             android:
drawablePadding=
"5dp" 
  94             android:
gravity=
"center_vertical" 
  95             android:
text=
"@string/auth_testing_connection" /> 
  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" 
 108             android:
id=
"@+id/oAuthEntryPoint_1" 
 109             android:
layout_width=
"match_parent" 
 110             android:
layout_height=
"wrap_content" 
 112                         android:
enabled=
"false" 
 113             android:
text=
"@string/oauth2_url_endpoint_auth" 
 114             android:
singleLine=
"true" 
 115             android:
inputType=
"textUri" 
 116             android:
visibility=
"gone" > 
 120             android:
id=
"@+id/oAuthEntryPoint_2" 
 121             android:
layout_width=
"match_parent" 
 122             android:
layout_height=
"wrap_content" 
 124                         android:
enabled=
"false" 
 125             android:
text=
"@string/oauth2_url_endpoint_access" 
 126             android:
singleLine=
"true" 
 127             android:
inputType=
"textUri" 
 128             android:
visibility=
"gone" /> 
 131             android:
id=
"@+id/account_username" 
 132             android:
layout_width=
"match_parent" 
 133             android:
layout_height=
"wrap_content" 
 135             android:
hint=
"@string/auth_username" 
 136             android:
inputType=
"textNoSuggestions"  
 140                     android:
id=
"@+id/account_password" 
 141                     android:
layout_width=
"match_parent" 
 142                     android:
layout_height=
"wrap_content" 
 143                     android:
drawablePadding=
"5dp" 
 145                     android:
hint=
"@string/auth_password" 
 146                     android:
inputType=
"textPassword"  
 150             android:
id=
"@+id/auth_status_text" 
 151             android:
layout_width=
"match_parent" 
 152             android:
layout_height=
"wrap_content" 
 153             android:
layout_marginBottom=
"10dp" 
 154             android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
 155             android:
drawablePadding=
"5dp" 
 156             android:
gravity=
"center_vertical" 
 157             android:
text=
"@string/auth_unauthorized" /> 
 160             android:
id=
"@+id/buttonOK" 
 161             android:
layout_width=
"match_parent" 
 162             android:
layout_height=
"wrap_content" 
 163             android:
layout_gravity=
"center_horizontal" 
 164             android:
enabled=
"false" 
 165             android:
onClick=
"onOkClick" 
 166             android:
text=
"@string/setup_btn_connect" 
 170             android:
id=
"@+id/account_register" 
 171             android:
layout_width=
"wrap_content" 
 172             android:
layout_height=
"wrap_content" 
 173             android:
background=
"@android:color/transparent" 
 174             android:
textColor=
"#0000FF"  
 175             android:
onClick=
"onRegisterClick" 
 176             android:
paddingBottom=
"5dp" 
 177             android:
paddingTop=
"5dp" 
 178             android:
text=
"@string/auth_register"