mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-10-27 16:37:35 +00:00
123 lines
4.9 KiB
XML
123 lines
4.9 KiB
XML
<!--
|
|
/*
|
|
* Copyright (c) 2014, Loic Blot <loic.blot@unix-experience.fr>
|
|
* All rights reserved.
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
* SUCH DAMAGE.
|
|
*/
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
tools:context="fr.unix_experience.owncloud_sms.activities.LoginActivity" >
|
|
|
|
<!-- Login progress -->
|
|
|
|
<ProgressBar
|
|
android:id="@+id/login_progress"
|
|
style="?android:attr/progressBarStyleLarge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:visibility="gone" />
|
|
|
|
<ScrollView
|
|
android:id="@+id/login_form"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/email_login_form"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
<ImageView
|
|
android:id="@+id/ocsms_logo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/login_logo"
|
|
android:contentDescription="@string/login_logo" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Spinner
|
|
android:id="@+id/oc_protocol"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:entries="@array/protocol_array">
|
|
</Spinner>
|
|
|
|
<EditText
|
|
android:id="@+id/oc_server"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/prompt_serverURI"
|
|
android:inputType="textUri" >
|
|
<requestFocus />
|
|
</EditText>
|
|
|
|
</LinearLayout>
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/oc_login"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/prompt_login"
|
|
android:inputType="textEmailAddress"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<EditText
|
|
android:id="@+id/oc_password"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/prompt_password"
|
|
android:imeActionId="@+id/oc_login"
|
|
android:imeActionLabel="@string/action_sign_in_short"
|
|
android:imeOptions="actionUnspecified"
|
|
android:inputType="textPassword"
|
|
android:maxLines="1"
|
|
android:singleLine="true" />
|
|
|
|
<Button
|
|
android:id="@+id/oc_signin_button"
|
|
style="?android:textAppearanceSmall"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/action_sign_in_short"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|