1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   3   ownCloud Android client application
 
   5   Copyright (C) 
2012  Bartek Przybylski
 
   6   Copyright (C) 
2015 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/thumbnail" 
  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" 
  42             android:
contentDescription=
"@string/app_name" 
  46                     android:
layout_width=
"0dp" 
  47                     android:
layout_height=
"match_parent" 
  48                     android:
layout_weight=
"1" 
  49                     android:
id=
"@+id/scroll" 
  50                     android:
fillViewport=
"true" 
  51                     android:
orientation=
"vertical" > 
  54                             android:
id=
"@+id/LinearLayout1" 
  55                             android:
layout_width=
"match_parent" 
  56                             android:
layout_height=
"wrap_content" 
  57                             android:
gravity=
"center" 
  58                             android:
orientation=
"vertical" 
  59                             android:
padding=
"8dp" > 
  62                                     android:
id=
"@+id/centeredRefreshButton" 
  63                                     android:
layout_width=
"wrap_content" 
  64                                     android:
layout_height=
"wrap_content" 
  65                                     android:
layout_gravity=
"center_horizontal" 
  66                                         android:
layout_marginBottom=
"10dp" 
  67                         android:
onClick=
"onRefreshClick" 
  68                                     android:
text=
"@string/auth_check_server" 
  69                                     android:
visibility=
"gone" 
  70                     android:
contentDescription=
"@string/auth_check_server"/> 
  72                                     android:
id=
"@+id/instructions_message" 
  73                                     android:
layout_width=
"wrap_content" 
  74                                     android:
layout_height=
"wrap_content" 
  75                                     android:
layout_gravity=
"fill_horizontal" 
  76                                     android:
text=
"@string/auth_expired_basic_auth_toast"  
  77                                     android:
visibility=
"gone" 
  78                                     android:
layout_marginBottom=
"10dp" 
  79                     android:
contentDescription=
"@string/auth_expired_basic_auth_toast"/> 
  81                                 android:
id=
"@+id/hostUrlFrame" 
  82                                         android:
layout_width=
"match_parent" 
  83                                         android:
layout_height=
"wrap_content" 
  84                                         android:
layout_marginBottom=
"10dp" 
  87                                                 android:
id=
"@+id/hostUrlInput" 
  88                                                 android:
layout_width=
"match_parent" 
  89                                                 android:
layout_height=
"wrap_content" 
  90                                                 android:
layout_gravity=
"bottom" 
  91                                                 android:
hint=
"@string/auth_host_url" 
  92                                                 android:
inputType=
"textUri" 
  93                                                 android:
drawablePadding=
"5dp" 
  94                                                 android:
paddingRight=
"55dp" 
  95                                                 android:
contentDescription=
"@string/auth_host_address" 
 100                                             android:
id=
"@+id/embeddedRefreshButton" 
 101                                             android:
layout_width=
"48dp" 
 102                                             android:
layout_height=
"48dp" 
 103                                             android:
layout_gravity=
"center_vertical|right" 
 104                                             android:
layout_marginRight=
"5dp" 
 105                                             android:
padding=
"0dp" 
 106                                             android:
scaleType=
"fitCenter" 
 107                                             android:
src=
"@drawable/ic_action_refresh_black" 
 108                                 android:
onClick=
"onRefreshClick" 
 109                                             android:
visibility=
"gone" 
 110                                                 android:
background=
"@android:color/transparent" 
 111                         android:
contentDescription=
"@string/auth_refresh_button" 
 116                                         android:
id=
"@+id/server_status_text" 
 117                                         android:
layout_width=
"match_parent" 
 118                                         android:
layout_height=
"wrap_content" 
 119                                         android:
layout_marginBottom=
"10dp" 
 120                                         android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
 121                                         android:
drawablePadding=
"5dp" 
 122                                         android:
gravity=
"center_vertical" 
 123                                         android:
text=
"@string/auth_testing_connection" 
 124                     android:
contentDescription=
"@string/auth_testing_connection"/> 
 127                                         android:
id=
"@+id/oauth_onOff_check" 
 128                                         android:
layout_width=
"wrap_content" 
 129                                         android:
layout_height=
"wrap_content" 
 130                                         android:
checked=
"false" 
 131                                         android:
onClick=
"onCheckClick" 
 132                                         android:
text=
"@string/oauth_check_onoff" 
 133                                         android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 134                     android:
contentDescription=
"@string/oauth_check_onoff" 
 138                                         android:
id=
"@+id/oAuthEntryPoint_1" 
 139                                         android:
layout_width=
"match_parent" 
 140                                         android:
layout_height=
"wrap_content" 
 142                                         android:
enabled=
"false" 
 143                                         android:
text=
"@string/oauth2_url_endpoint_auth" 
 144                                         android:
singleLine=
"true" 
 145                                         android:
inputType=
"textUri" 
 146                                         android:
visibility=
"gone"> 
 150                                         android:
id=
"@+id/oAuthEntryPoint_2" 
 151                                         android:
layout_width=
"match_parent" 
 152                                         android:
layout_height=
"wrap_content" 
 154                                         android:
enabled=
"false" 
 155                                         android:
text=
"@string/oauth2_url_endpoint_access" 
 156                                         android:
singleLine=
"true" 
 157                                         android:
inputType=
"textUri" 
 158                                         android:
visibility=
"gone"> 
 163                                         android:
id=
"@+id/account_username" 
 164                                         android:
layout_width=
"match_parent" 
 165                                         android:
layout_height=
"wrap_content" 
 167                                         android:
hint=
"@string/auth_username" 
 168                                         android:
inputType=
"textNoSuggestions" 
 169                                         android:
contentDescription=
"@string/auth_username" 
 173                                     android:
id=
"@+id/account_password" 
 174                                         android:
layout_width=
"match_parent" 
 175                                         android:
layout_height=
"wrap_content" 
 177                                         android:
hint=
"@string/auth_password" 
 178                                         android:
inputType=
"textPassword" 
 179                                         android:
drawablePadding=
"5dp" 
 180                                         android:
contentDescription=
"@string/auth_password" 
 184                                         android:
id=
"@+id/auth_status_text" 
 185                                         android:
layout_width=
"match_parent" 
 186                                         android:
layout_height=
"wrap_content" 
 187                                         android:
gravity=
"center_vertical" 
 188                                         android:
text=
"@string/auth_unauthorized" 
 189                                         android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
 190                                         android:
drawablePadding=
"5dip" 
 191                     android:
contentDescription=
"@string/auth_unauthorized" 
 201         android:
id=
"@id/bottom_block" 
 202         android:
layout_width=
"match_parent" 
 203         android:
layout_height=
"wrap_content" 
 204                 android:
layout_alignParentBottom=
"true" 
 205         android:
orientation=
"vertical" > 
 208                     android:
id=
"@+id/buttonOK" 
 209                     android:
layout_width=
"match_parent" 
 210                     android:
layout_height=
"wrap_content" 
 211                     android:
layout_gravity=
"center_horizontal" 
 212                     android:
enabled=
"false" 
 213                     android:
onClick=
"onOkClick" 
 214                     android:
text=
"@string/setup_btn_connect" 
 215             android:
contentDescription=
"@string/setup_btn_connect"/> 
 218                     android:
id=
"@+id/welcome_link" 
 219                     android:
layout_width=
"wrap_content" 
 220                     android:
layout_height=
"wrap_content" 
 221                     android:
layout_gravity=
"center_horizontal" 
 222                     android:
background=
"@android:color/transparent" 
 223                     android:
onClick=
"onRegisterClick" 
 224                     android:
paddingBottom=
"5dp" 
 225                     android:
paddingTop=
"5dp" 
 226                     android:
text=
"@string/auth_register" 
 227                     android:
textColor=
"#0000FF" 
 228             android:
contentDescription=
"@string/auth_register"/>