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 <RelativeLayout xmlns:
android=
"http://schemas.android.com/apk/res/android" 
  21     android:
layout_width=
"match_parent" 
  22     android:
layout_height=
"match_parent" 
  23     android:
background=
"@color/login_background_color" 
  24         android:
padding=
"8dip" 
  28         android:
layout_width=
"match_parent" 
  29         android:
layout_height=
"wrap_content" 
  30         android:
layout_above=
"@+id/bottom_block" 
  31         android:
layout_alignParentTop=
"true" 
  32         android:
orientation=
"horizontal" > 
  35                         android:
id=
"@+id/imageView1" 
  36                         android:
layout_width=
"0dp" 
  37                         android:
layout_height=
"wrap_content" 
  38                         android:
layout_weight=
"1" 
  39                         android:
layout_gravity=
"center" 
  40                         android:
background=
"@color/login_logo_background_color" 
  41                         android:
src=
"@drawable/logo"  
  45                     android:
layout_width=
"0dp" 
  46                     android:
layout_height=
"match_parent" 
  47                     android:
layout_weight=
"1" 
  48                     android:
id=
"@+id/scroll" 
  49                     android:
fillViewport=
"true" 
  50                     android:
orientation=
"vertical" > 
  53                             android:
id=
"@+id/LinearLayout1" 
  54                             android:
layout_width=
"match_parent" 
  55                             android:
layout_height=
"wrap_content" 
  56                             android:
gravity=
"center" 
  57                             android:
orientation=
"vertical" 
  58                             android:
padding=
"8dp" > 
  61                                     android:
id=
"@+id/centeredRefreshButton" 
  62                                     android:
layout_width=
"wrap_content" 
  63                                     android:
layout_height=
"wrap_content" 
  64                                     android:
layout_gravity=
"center_horizontal" 
  65                                         android:
layout_marginBottom=
"10dp" 
  66                         android:
onClick=
"onRefreshClick" 
  67                                     android:
text=
"@string/auth_check_server" 
  68                                     android:
visibility=
"gone" /> 
  70                                     android:
id=
"@+id/instructions_message" 
  71                                     android:
layout_width=
"wrap_content" 
  72                                     android:
layout_height=
"wrap_content" 
  73                                     android:
layout_gravity=
"fill_horizontal" 
  74                                     android:
text=
"@string/auth_expired_basic_auth_toast"  
  75                                     android:
visibility=
"gone" 
  76                                     android:
layout_marginBottom=
"10dp"/> 
  78                                 android:
id=
"@+id/hostUrlFrame" 
  79                                         android:
layout_width=
"match_parent" 
  80                                         android:
layout_height=
"wrap_content" 
  81                                         android:
layout_marginBottom=
"10dp" 
  84                                                 android:
id=
"@+id/hostUrlInput" 
  85                                                 android:
layout_width=
"match_parent" 
  86                                                 android:
layout_height=
"wrap_content" 
  87                                                 android:
layout_gravity=
"bottom" 
  88                                                 android:
hint=
"@string/auth_host_url" 
  89                                                 android:
inputType=
"textUri" 
  90                                                 android:
drawablePadding=
"5dp" 
  91                                                 android:
paddingRight=
"55dp" 
  96                                             android:
id=
"@+id/embeddedRefreshButton" 
  97                                             android:
layout_width=
"48dp" 
  98                                             android:
layout_height=
"48dp" 
  99                                             android:
layout_gravity=
"center_vertical|right" 
 100                                             android:
layout_marginRight=
"5dp" 
 101                                             android:
padding=
"0dp" 
 102                                             android:
scaleType=
"fitCenter" 
 103                                             android:
src=
"@drawable/ic_action_refresh_black" 
 104                                 android:
onClick=
"onRefreshClick" 
 105                                             android:
visibility=
"gone" 
 106                                                 android:
background=
"@android:color/transparent" 
 111                                         android:
id=
"@+id/server_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_testing_connection" /> 
 121                                         android:
id=
"@+id/oauth_onOff_check" 
 122                                         android:
layout_width=
"wrap_content" 
 123                                         android:
layout_height=
"wrap_content" 
 124                                         android:
checked=
"false" 
 125                                         android:
onClick=
"onCheckClick" 
 126                                         android:
text=
"@string/oauth_check_onoff" 
 127                                         android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 131                                         android:
id=
"@+id/oAuthEntryPoint_1" 
 132                                         android:
layout_width=
"match_parent" 
 133                                         android:
layout_height=
"wrap_content" 
 135                                         android:
enabled=
"false" 
 136                                         android:
text=
"@string/oauth2_url_endpoint_auth" 
 137                                         android:
singleLine=
"true" 
 138                                         android:
inputType=
"textUri" 
 139                                         android:
visibility=
"gone" > 
 143                                         android:
id=
"@+id/oAuthEntryPoint_2" 
 144                                         android:
layout_width=
"match_parent" 
 145                                         android:
layout_height=
"wrap_content" 
 147                                         android:
enabled=
"false" 
 148                                         android:
text=
"@string/oauth2_url_endpoint_access" 
 149                                         android:
singleLine=
"true" 
 150                                         android:
inputType=
"textUri" 
 151                                         android:
visibility=
"gone" > 
 156                                         android:
id=
"@+id/account_username" 
 157                                         android:
layout_width=
"match_parent" 
 158                                         android:
layout_height=
"wrap_content" 
 160                                         android:
hint=
"@string/auth_username" 
 161                                         android:
inputType=
"textNoSuggestions" /> 
 164                                     android:
id=
"@+id/account_password" 
 165                                         android:
layout_width=
"match_parent" 
 166                                         android:
layout_height=
"wrap_content" 
 168                                         android:
hint=
"@string/auth_password" 
 169                                         android:
inputType=
"textPassword" 
 170                                         android:
drawablePadding=
"5dp" 
 174                                         android:
id=
"@+id/auth_status_text" 
 175                                         android:
layout_width=
"match_parent" 
 176                                         android:
layout_height=
"wrap_content" 
 177                                         android:
gravity=
"center_vertical" 
 178                                         android:
text=
"@string/auth_unauthorized" 
 179                                         android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
 180                                         android:
drawablePadding=
"5dip" 
 190         android:
id=
"@id/bottom_block" 
 191         android:
layout_width=
"match_parent" 
 192         android:
layout_height=
"wrap_content" 
 193                 android:
layout_alignParentBottom=
"true" 
 194         android:
orientation=
"vertical" > 
 197                     android:
id=
"@+id/buttonOK" 
 198                     android:
layout_width=
"match_parent" 
 199                     android:
layout_height=
"wrap_content" 
 200                     android:
layout_gravity=
"center_horizontal" 
 201                     android:
enabled=
"false" 
 202                     android:
onClick=
"onOkClick" 
 203                     android:
text=
"@string/setup_btn_connect" /> 
 206                     android:
id=
"@+id/welcome_link" 
 207                     android:
layout_width=
"wrap_content" 
 208                     android:
layout_height=
"wrap_content" 
 209                     android:
layout_gravity=
"center_horizontal" 
 210                     android:
background=
"@android:color/transparent" 
 211                     android:
onClick=
"onRegisterClick" 
 212                     android:
paddingBottom=
"5dp" 
 213                     android:
paddingTop=
"5dp" 
 214                     android:
text=
"@string/auth_register" 
 215                     android:
textColor=
"#0000FF"/>