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 <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:
background=
"@color/login_background_color" 
  33         android:
gravity=
"center" 
  34         android:
orientation=
"vertical" 
  35         android:
padding=
"8dp" > 
  38             android:
id=
"@+id/thumbnail" 
  39             android:
layout_width=
"match_parent" 
  40             android:
layout_height=
"wrap_content" 
  41             android:
layout_marginBottom=
"20dp" 
  42             android:
layout_marginTop=
"10dp" 
  43             android:
background=
"@color/login_logo_background_color" 
  44             android:
src=
"@drawable/logo" 
  45             android:
contentDescription=
"@string/app_name"/> 
  47         <android.support.v7.widget.AppCompatButton
 
  48             android:
id=
"@+id/centeredRefreshButton" 
  49             style=
"@style/ownCloud.Button" 
  50             android:
layout_width=
"wrap_content" 
  51             android:
layout_height=
"wrap_content" 
  52             android:
layout_gravity=
"center_horizontal" 
  53             android:
layout_marginBottom=
"10dp" 
  54             android:
text=
"@string/auth_check_server" 
  55             android:
visibility=
"gone" 
  56             android:
contentDescription=
"@string/auth_check_server"/> 
  59             android:
id=
"@+id/instructions_message" 
  60             android:
layout_width=
"wrap_content" 
  61             android:
layout_height=
"wrap_content" 
  62             android:
layout_gravity=
"fill_horizontal" 
  63             android:
text=
"@string/auth_expired_basic_auth_toast" 
  64             android:
visibility=
"gone" 
  65             android:
layout_marginBottom=
"10dp" 
  66             android:
textColor=
"@color/login_text_color" 
  67             android:
textColorHint=
"@color/login_text_hint_color" 
  68             android:
contentDescription=
"@string/auth_expired_basic_auth_toast"/> 
  71                 android:
id=
"@+id/hostUrlFrame" 
  72                         android:
layout_width=
"match_parent" 
  73                         android:
layout_height=
"wrap_content" 
  74             android:
layout_marginBottom=
"0dp" 
  77                                 android:
id=
"@+id/hostUrlInput" 
  78                                 android:
layout_width=
"match_parent" 
  79                                 android:
layout_height=
"wrap_content" 
  80                                 android:
layout_gravity=
"bottom" 
  81                                 android:
hint=
"@string/auth_host_url" 
  82                                 android:
inputType=
"textUri" 
  83                                 android:
drawablePadding=
"5dp" 
  84                                 android:
paddingRight=
"55dp" 
  85                 android:
textColorHint=
"@color/login_text_hint_color" 
  86                                 android:
contentDescription=
"@string/auth_host_address" 
  91                             android:
id=
"@+id/embeddedRefreshButton" 
  92                             android:
layout_width=
"wrap_content" 
  93                             android:
layout_height=
"wrap_content" 
  94                             android:
layout_gravity=
"center_vertical|right" 
  95                             android:
layout_marginRight=
"5dp" 
  97                             android:
scaleType=
"fitCenter" 
  98                             android:
src=
"@drawable/ic_action_refresh_grey" 
  99                                 android:
visibility=
"gone" 
 100                                 android:
background=
"@android:color/transparent" 
 101                 android:
contentDescription=
"@string/auth_refresh_button" 
 106             android:
id=
"@+id/server_status_text" 
 107             android:
layout_width=
"match_parent" 
 108             android:
layout_height=
"wrap_content" 
 109             android:
layout_marginBottom=
"10dp" 
 110             android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
 111             android:
drawablePadding=
"5dp" 
 112             android:
gravity=
"center_vertical" 
 113             android:
textColor=
"@color/login_text_color" 
 114             android:
textColorHint=
"@color/login_text_hint_color" 
 115             android:
text=
"@string/auth_testing_connection" 
 116             android:
minHeight=
"32dp" 
 117             android:
contentDescription=
"@string/auth_testing_connection"/> 
 120             android:
id=
"@+id/oauth_onOff_check" 
 121             android:
layout_width=
"wrap_content" 
 122             android:
layout_height=
"wrap_content" 
 123             android:
checked=
"false" 
 124             android:
onClick=
"onCheckClick" 
 125             android:
text=
"@string/oauth_check_onoff" 
 126             android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 127             android:
textColor=
"@color/primary" 
 128             android:
textColorHint=
"@color/login_text_hint_color" 
 129             android:
contentDescription=
"@string/oauth_check_onoff" 
 133             android:
id=
"@+id/oAuthEntryPoint_1" 
 134             android:
layout_width=
"match_parent" 
 135             android:
layout_height=
"wrap_content" 
 137                         android:
enabled=
"false" 
 138             android:
textColorHint=
"@color/login_text_hint_color" 
 139             android:
text=
"@string/oauth2_url_endpoint_auth" 
 140             android:
singleLine=
"true" 
 141             android:
inputType=
"textUri" 
 142             android:
visibility=
"gone"> 
 146             android:
id=
"@+id/oAuthEntryPoint_2" 
 147             android:
layout_width=
"match_parent" 
 148             android:
layout_height=
"wrap_content" 
 150                         android:
enabled=
"false" 
 151             android:
text=
"@string/oauth2_url_endpoint_access" 
 152             android:
singleLine=
"true" 
 153             android:
inputType=
"textUri" 
 154             android:
textColorHint=
"@color/login_text_hint_color" 
 155             android:
visibility=
"gone"/> 
 158             android:
id=
"@+id/account_username" 
 159             android:
layout_width=
"match_parent" 
 160             android:
layout_height=
"wrap_content" 
 162             android:
hint=
"@string/auth_username" 
 163             android:
inputType=
"textNoSuggestions" 
 164             android:
textColorHint=
"@color/login_text_hint_color" 
 165             android:
contentDescription=
"@string/auth_username" 
 169                     android:
id=
"@+id/account_password" 
 170                     android:
layout_width=
"match_parent" 
 171                     android:
layout_height=
"wrap_content" 
 172                     android:
drawablePadding=
"5dp" 
 174                     android:
hint=
"@string/auth_password" 
 175                     android:
inputType=
"textPassword" 
 176             android:
textColorHint=
"@color/login_text_hint_color" 
 177                     android:
contentDescription=
"@string/auth_password" 
 181             android:
id=
"@+id/auth_status_text" 
 182             android:
layout_width=
"match_parent" 
 183             android:
layout_height=
"wrap_content" 
 184             android:
layout_marginBottom=
"10dp" 
 185             android:
drawableLeft=
"@android:drawable/stat_notify_sync" 
 186             android:
drawablePadding=
"5dp" 
 187             android:
gravity=
"center_vertical" 
 188             android:
text=
"@string/auth_unauthorized" 
 189             android:
textColor=
"@color/login_text_color" 
 190             android:
textColorHint=
"@color/login_text_hint_color" 
 191             android:
contentDescription=
"@string/auth_unauthorized"/> 
 193         <android.support.v7.widget.AppCompatButton
 
 194             android:
id=
"@+id/buttonOK" 
 195             android:
theme=
"@style/Button.Primary" 
 196             style=
"@style/Button.Primary" 
 197             android:
layout_width=
"match_parent" 
 198             android:
layout_height=
"wrap_content" 
 199             android:
layout_gravity=
"center_horizontal" 
 200             android:
enabled=
"false" 
 201             android:
text=
"@string/setup_btn_connect" 
 202             android:
contentDescription=
"@string/setup_btn_connect"/> 
 205             android:
id=
"@+id/welcome_link" 
 206             android:
layout_width=
"wrap_content" 
 207             android:
layout_height=
"wrap_content" 
 208             android:
background=
"@android:color/transparent" 
 209             android:
onClick=
"onRegisterClick" 
 210             android:
paddingBottom=
"5dp" 
 211             android:
paddingTop=
"5dp" 
 212             android:
text=
"@string/auth_register" 
 213             android:
textColor=
"@color/login_text_color" 
 214             android:
textColorHint=
"@color/login_text_hint_color" 
 215             android:
contentDescription=
"@string/auth_register"/>