activity_login.xml 3 KB
Newer Older
1 2 3 4 5 6 7
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_login"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="de.uni_oldenburg.bidl.guest_view.LoginActivity"
Christof Wolke's avatar
Christof Wolke committed
8 9 10 11
    android:orientation="vertical"
    android:weightSum="1"
    android:background="@color/white"
    android:padding="12dp">
12 13 14 15 16 17
    
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:id="@+id/uniLogo"
        android:src="@drawable/unilogo"
Christof Wolke's avatar
Christof Wolke committed
18 19
        android:layout_margin="10dp"
        android:contentDescription="@string/imageViewDescription"/>
20

Christof Wolke's avatar
Christof Wolke committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <EditText
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:inputType="textPassword"
            android:layout_gravity="center"
            android:id="@+id/password"
            android:hint="@string/hintTextPass"
            android:ems="10"
            android:layout_below="@+id/email"
            android:layout_alignStart="@+id/email"
            android:layout_marginTop="19dp" />

        <EditText
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:inputType="textEmailAddress"
            android:layout_gravity="center"
            android:id="@+id/email"
            android:hint="@string/hintTextEmail"
            android:layout_marginStart="11dp"
            android:layout_alignParentTop="true"
            android:layout_alignParentStart="true" />

        <TextView
            android:text="@string/forgotPassword"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/email"
            android:layout_toEndOf="@+id/password"
            android:layout_marginStart="25dp"
            android:id="@+id/toForgotPassword" />
    </RelativeLayout>
57 58 59 60 61 62 63 64 65

    <CheckBox
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/checkBoxDescription"
        android:layout_gravity="center"
        android:id="@+id/keepingLoggedIn"
        android:checked="true"
        android:layout_marginTop="10dp"/>
Christof Wolke's avatar
Christof Wolke committed
66

67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/buttonDescription"
        android:layout_gravity="center"
        android:id="@+id/loginButton"
        android:layout_marginTop="20dp"
        />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/registerDescription"
        android:textColor="@color/colorPrimary"
        android:layout_gravity="center"
        android:id="@+id/register"
Christof Wolke's avatar
Christof Wolke committed
83
        android:layout_marginTop="30dp"/>
84 85

</LinearLayout>