Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/activity_main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="prospek.hastaprimasolusi.outletregistration.LoginActivity">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:background="@color/colorPrimary" />
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:background="@color/common_google_signin_btn_text_dark_default"
- tools:theme="@style/AppTheme" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/layoutInput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="100dp"
- android:layout_marginRight="20dp"
- android:background="@color/list_row_hover_end_color"
- android:orientation="vertical"
- android:padding="20dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:text="Username" />
- <EditText
- android:id="@+id/field_username"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:drawableRight="@drawable/ic_person"
- android:drawablePadding="20dp"
- android:hint="Username"
- android:nextFocusDown="@id/field_password"
- android:singleLine="true" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:text="Password" />
- <EditText
- android:id="@+id/field_password"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:drawableRight="@drawable/ic_lock_outline"
- android:drawablePadding="20dp"
- android:hint="******"
- android:imeOptions="actionGo"
- android:inputType="textPassword"
- android:singleLine="true" />
- <EditText
- android:id="@+id/field_IMEI"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone" />
- <EditText
- android:id="@+id/et_folder"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone" />
- <EditText
- android:id="@+id/et_ip"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone" />
- <Button
- android:id="@+id/button"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="20dp"
- android:background="@android:color/darker_gray"
- android:onClick="checkLogin"
- android:text="Log In"
- android:textAllCaps="false"
- android:textColor="#3b2424" />
- <!--TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="10dp"
- android:text="Atau" /-->
- <!--Button
- android:id="@+id/tb_login_imei"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="10dp"
- android:background="@android:color/darker_gray"
- android:onClick="cekImei"
- android:text="Log In dengan IMEI"
- android:textAllCaps="false"
- android:textColor="#2e2222" /-->
- </LinearLayout>
- <TextView
- android:id="@+id/text_footer"
- android:textSize="11sp"
- android:textColor="#323232"
- android:layout_centerHorizontal="true"
- android:gravity="bottom"
- android:layout_alignParentBottom="true"
- android:layout_marginBottom="5dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement