|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<!--
|
|
|
|
|
~ Copyright © 2013 – 2016 Ricki Hirner (bitfire web engineering).
|
|
|
|
|
~ All rights reserved. This program and the accompanying materials
|
|
|
|
|
~ are made available under the terms of the GNU Public License v3.0
|
|
|
|
|
~ which accompanies this distribution, and is available at
|
|
|
|
|
~ http://www.gnu.org/licenses/gpl.html
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<!-- We don't want the keyboard up when the user arrives in this initial screen -->
|
|
|
|
|
<View android:layout_height="0dp"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
|
android:contentDescription="@null"
|
|
|
|
|
android:importantForAccessibility="no">
|
|
|
|
|
<requestFocus/>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
<ScrollView android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_marginTop="@dimen/activity_vertical_margin"
|
|
|
|
|
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
|
|
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
|
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin">
|
|
|
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:animateLayoutChanges="true">
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/login_type_email"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/login_type_email"
|
|
|
|
|
android:paddingLeft="14dp"
|
|
|
|
|
style="@style/login_type_headline"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/login_type_email_details"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/email_address"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/login_email_address"
|
|
|
|
|
android:inputType="textEmailAddress"/>
|
|
|
|
|
<at.bitfire.davdroid.ui.widget.EditPassword
|
|
|
|
|
android:id="@+id/email_password"
|
|
|
|
|
android:hint="@string/login_password"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatRadioButton
|
|
|
|
|
android:id="@+id/login_type_url"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/login_type_url"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:paddingLeft="14dp"
|
|
|
|
|
style="@style/login_type_headline"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/login_type_url_details"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/base_url"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/login_base_url"
|
|
|
|
|
android:inputType="textUri"/>
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/user_name"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/login_user_name"
|
|
|
|
|
android:inputType="textEmailAddress"/>
|
|
|
|
|
<at.bitfire.davdroid.ui.widget.EditPassword
|
|
|
|
|
android:id="@+id/url_password"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/login_password"/>
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckBox
|
|
|
|
|
android:id="@+id/preemptive_auth"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/login_auth_preemptive"
|
|
|
|
|
android:checked="true"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/stepper_nav_bar">
|
|
|
|
|
|
|
|
|
|
<Space
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
style="@style/stepper_nav_button"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/login"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="@string/login_login"
|
|
|
|
|
style="@style/stepper_nav_button"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|