Created
July 4, 2018 08:33
-
-
Save MonsterTechnoGit/3535d22d8f2f49084926600553d88f80 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/colorPrimary" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
tools:context=".MainActivity" | |
tools:showIn="@layout/activity_main"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="8dp" | |
android:layout_marginTop="32dp" | |
android:text="My Account" | |
android:textColor="@android:color/white" | |
android:textSize="24sp" | |
app:layout_constraintBottom_toTopOf="@+id/relativeLayout" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="8dp" | |
android:layout_marginEnd="8dp" | |
android:layout_marginStart="8dp" | |
android:layout_marginTop="8dp" | |
android:text="No Account ? Sign Up" | |
android:textColor="@android:color/white" | |
android:textSize="14sp" | |
android:textStyle="bold" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/relativeLayout" | |
app:layout_constraintVertical_bias="0.90999997" /> | |
<RelativeLayout | |
android:id="@+id/relativeLayout" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent"> | |
<android.support.v7.widget.CardView | |
android:id="@+id/cardView" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/accountImage" | |
android:layout_marginBottom="8dp" | |
android:layout_marginEnd="48dp" | |
android:layout_marginStart="48dp" | |
android:layout_marginTop="-50dp" | |
app:cardCornerRadius="8dp" | |
app:cardElevation="10dp"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<android.support.design.widget.TextInputLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="15dp" | |
android:layout_marginEnd="25dp" | |
android:layout_marginLeft="25dp" | |
android:layout_marginRight="25dp" | |
android:layout_marginStart="25dp" | |
android:layout_marginTop="25dp"> | |
<android.support.design.widget.TextInputEditText | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:hint="Login" /> | |
</android.support.design.widget.TextInputLayout> | |
<android.support.design.widget.TextInputLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginBottom="25dp" | |
android:layout_marginEnd="25dp" | |
android:layout_marginStart="25dp" | |
android:layout_marginTop="15dp" | |
app:passwordToggleEnabled="true"> | |
<android.support.design.widget.TextInputEditText | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:hint="Password" | |
android:inputType="textPassword" /> | |
</android.support.design.widget.TextInputLayout> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="end" | |
android:padding="10dp" | |
android:text="Forgot password ?" /> | |
<Button | |
style="@style/Base.Widget.AppCompat.Button.Colored" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_margin="25dp" | |
android:elevation="15dp" | |
android:text="Sign In" | |
android:textAllCaps="false" /> | |
</LinearLayout> | |
</android.support.v7.widget.CardView> | |
<ImageView | |
android:id="@+id/accountImage" | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:layout_centerHorizontal="true" | |
android:elevation="10dp" | |
android:src="@drawable/ic_user_icon" | |
app:layout_constraintTop_toTopOf="parent" /> | |
</RelativeLayout> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment