240 lines
9.2 KiB
XML
240 lines
9.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
style="?loginBackground" >
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_alignParentBottom="false"
|
|
android:baselineAligned="false"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:layout_centerHorizontal="true">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="0.53"
|
|
android:gravity="center">
|
|
<ImageView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:src="@drawable/label" />
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="0.47"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/frameLayout11"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="right" >
|
|
|
|
<TextView
|
|
android:layout_width="180dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/username"
|
|
android:textSize="16dp"
|
|
android:paddingRight="5dp"
|
|
android:textColor="#000000"
|
|
android:gravity="right"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<EditText
|
|
android:id="@+id/editUserName"
|
|
android:layout_width="225dp"
|
|
android:layout_height="35dp"
|
|
android:inputType="textPassword"
|
|
android:textSize="14dp"
|
|
android:text=""
|
|
android:visibility="gone"
|
|
android:gravity="left|center_vertical" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layoutSpinnerUsername"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@layout/style_spinner"
|
|
android:gravity="left|center_vertical"
|
|
android:minWidth="223dp"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="4dp"
|
|
android:paddingLeft="3dp"
|
|
android:paddingRight="3dp"
|
|
android:paddingTop="4dp" >
|
|
|
|
<TextView
|
|
android:id="@+id/textViewSpinnerUsername"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="left"
|
|
android:text=""
|
|
android:textColor="#000000"
|
|
android:textSize="18dp"
|
|
android:layout_weight="1"
|
|
android:paddingBottom="2dp"
|
|
android:paddingLeft="3dp">
|
|
<requestFocus />
|
|
</TextView>
|
|
<ImageView
|
|
android:src="@drawable/arrow_spinner"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/frameLayout8"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="5dp"
|
|
android:gravity="right" >
|
|
|
|
<TextView
|
|
android:layout_width="180dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/password"
|
|
android:textSize="16dp"
|
|
android:paddingRight="5dp"
|
|
android:textColor="#000000"
|
|
android:gravity="right" />
|
|
|
|
<EditText
|
|
android:id="@+id/Password"
|
|
android:layout_width="225dp"
|
|
android:layout_height="35dp"
|
|
android:inputType="textPassword"
|
|
android:textSize="14dp"
|
|
android:text=""
|
|
android:gravity="left|center_vertical" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:id="@+id/frameLayout12"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="right">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageLanguage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="holds the icon for language"
|
|
android:src="@drawable/de"
|
|
android:layout_marginLeft="143dp" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/checkBoxSaveDefault"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@+id/imageLanguage"
|
|
android:layout_alignTop="@+id/imageLanguage"
|
|
android:layout_alignBottom="@+id/imageLanguage"
|
|
android:layout_toLeftOf="@+id/imageSettings"
|
|
android:text="@string/remember"
|
|
android:enabled="true"
|
|
android:textColor="#000000"
|
|
android:layout_marginBottom="5sp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imageSettings"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
android:contentDescription="holds the icon for language"
|
|
android:src="@drawable/change_ip"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitCenter"
|
|
android:layout_alignTop="@+id/imageLanguage"
|
|
android:layout_alignBottom="@+id/imageLanguage"
|
|
android:layout_alignParentRight="true" />
|
|
|
|
<Button
|
|
android:id="@+id/buttonLogin"
|
|
style="?login"
|
|
android:gravity="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/imageSettings"
|
|
android:layout_alignLeft="@+id/checkBoxSaveDefault"
|
|
android:layout_alignRight="@+id/imageSettings"
|
|
android:layout_alignBottom="@+id/layoutTCP"
|
|
android:text="@string/login" />
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/layoutTCP"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@layout/style_toast"
|
|
android:layout_below="@+id/imageSettings"
|
|
android:layout_alignRight="@+id/buttonLogin">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageError"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:src="@drawable/error" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toRightOf="@+id/imageError"
|
|
android:padding="5dp"
|
|
android:text="@string/tcpConnection"
|
|
android:textColor="#ffffff"
|
|
android:textSize="20dp"
|
|
android:textStyle="bold" />
|
|
</RelativeLayout>
|
|
|
|
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/frameLayoutLanguage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="right|bottom"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_gravity="right"
|
|
android:paddingBottom="6dp"
|
|
android:layout_toLeftOf="@+id/frameLayout13">
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/imageLoading"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="0"
|
|
android:visibility="gone"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentLeft="true" />
|
|
|
|
</RelativeLayout> |