Files
BeWoPlaner/Android/BewoMitarbeiterApp/app/src/main/res/layout/activity_login.xml

111 lines
4.3 KiB
XML
Raw Normal View History

<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"
2016-09-22 14:00:46 +02:00
android:background="@color/white"
tools:context="beyondsoft.bewomitarbeiterapp.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"
2016-09-13 11:32:25 +02:00
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/email_login_form"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<EditText
android:id="@+id/token"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_token"
android:inputType="text"
android:maxLines="1"
2016-09-22 14:00:46 +02:00
android:paddingTop="10dp"
android:paddingBottom="2dp"
android:background="@drawable/textlines"
/>
<EditText
android:id="@+id/tenant"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_tenant"
android:inputType="text"
android:maxLines="1"
2016-09-22 14:00:46 +02:00
android:paddingTop="10dp"
android:paddingBottom="2dp"
android:background="@drawable/textlines"
/>
<EditText
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_username"
android:inputType="text"
android:maxLines="1"
2016-09-22 14:00:46 +02:00
android:paddingTop="10dp"
android:paddingBottom="2dp"
android:background="@drawable/textlines"
/>
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:imeActionId="@+id/login"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
2016-09-22 14:00:46 +02:00
android:paddingTop="10dp"
android:paddingBottom="3dp"
android:background="@drawable/textlines"
/>
<CheckBox
android:id="@+id/remember_me_checkbox"
2016-09-22 14:00:46 +02:00
style="checkBoxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/prompt_remember_me"
2016-09-22 14:00:46 +02:00
android:paddingTop="8dp"
android:paddingBottom="8dp"
2016-09-30 10:19:11 +02:00
android:onClick="rememberMeOnClick"
android:button="@drawable/bewo_checkbox"
/>
<Button
android:id="@+id/sign_in_button"
2016-09-22 14:00:46 +02:00
style="@style/button_text"
android:background="@drawable/orange_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/action_sign_in_short"
2016-09-22 14:00:46 +02:00
android:fontFamily="sans-serif"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>