Created
January 16, 2018 11:44
-
-
Save ZaeemSattar/cc6364b6bc1857fde0f54bbc7e374b51 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.design.widget.CoordinatorLayout 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" | |
tools:context="com.sooq.activities.LoginActivity"> | |
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="200dp" | |
android:background="@android:color/transparent"> | |
<android.support.design.widget.CollapsingToolbarLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:contentScrim="@color/colorPrimary" | |
app:layout_scrollFlags="scroll|exitUntilCollapsed" | |
app:titleEnabled="false" | |
android:id="@+id/collapsing_toolbar"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_collapseMode="parallax"> | |
<ImageView | |
android:id="@+id/back_stage" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scaleType="fitXY" | |
android:src="@drawable/back_stage" /> | |
<ImageView | |
android:id="@+id/logo" | |
android:layout_width="135dp" | |
android:layout_height="150dp" | |
android:layout_centerHorizontal="true" | |
android:layout_marginTop="50dp" | |
android:src="@drawable/signin_signup_logo" /> | |
</RelativeLayout> | |
<android.support.v7.widget.Toolbar | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" | |
app:layout_collapseMode="pin"> | |
<TextView | |
android:id="@+id/title_toolbar" | |
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:background="?attr/selectableItemBackgroundBorderless" /> | |
<TextView | |
android:id="@+id/skip_login" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentEnd="true" | |
android:layout_alignParentRight="true" | |
android:layout_centerVertical="true" | |
android:layout_gravity="right" | |
android:background="?attr/selectableItemBackground" | |
android:padding="8dp" | |
android:text="@string/skip" /> | |
</android.support.v7.widget.Toolbar> | |
</android.support.design.widget.CollapsingToolbarLayout> | |
</android.support.design.widget.AppBarLayout> | |
<android.support.v4.widget.NestedScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginEnd="32dp" | |
android:layout_marginStart="32dp" | |
android:layout_marginTop="32dp" | |
android:orientation="vertical"> | |
<TextView | |
android:id="@+id/email_tv" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:gravity="center" | |
android:text="@string/email_address" | |
android:textColor="@color/colorPrimary" | |
android:textSize="18sp" | |
android:textStyle="bold" /> | |
<EditText | |
android:id="@+id/email_et" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="12dp" | |
android:background="@drawable/edittext_background" | |
android:gravity="center" | |
android:hint="@string/please_enter_an_email_address" | |
android:inputType="textEmailAddress" | |
android:nextFocusDown="@id/password_et" | |
android:padding="5dp" /> | |
<TextView | |
android:id="@+id/password_tv" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="12dp" | |
android:gravity="center" | |
android:text="@string/password" | |
android:textColor="@color/colorPrimary" | |
android:textSize="18sp" | |
android:textStyle="bold" /> | |
<EditText | |
android:id="@+id/password_et" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="12dp" | |
android:background="@drawable/edittext_background" | |
android:gravity="center" | |
android:hint="@string/please_enter_password" | |
android:inputType="textPassword" | |
android:padding="5dp" /> | |
<TextView | |
android:id="@+id/forgot_password_tv" | |
style="@style/TextAppearance.AppCompat.Small" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="8dp" | |
android:gravity="right" | |
android:text="@string/forgot_password" | |
android:textColor="@color/colorPrimary" /> | |
<Button | |
android:id="@+id/login_btn" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="12dp" | |
android:background="@drawable/rounded_login_red_btn" | |
android:text="@string/login" | |
android:textColor="@color/white" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="24dp" | |
android:orientation="horizontal"> | |
<View | |
android:layout_width="0dp" | |
android:layout_height="1dp" | |
android:layout_gravity="center_vertical" | |
android:layout_weight=".1" | |
android:background="@color/grey" /> | |
<ImageView | |
android:id="@+id/or" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="4dp" | |
android:layout_marginStart="4dp" | |
android:src="@drawable/or" /> | |
<View | |
android:layout_width="0dp" | |
android:layout_height="1dp" | |
android:layout_gravity="center_vertical" | |
android:layout_weight=".1" | |
android:background="@color/grey" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="24dp" | |
android:orientation="horizontal"> | |
<Button | |
android:id="@+id/signin_facebook" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="6dp" | |
android:layout_marginRight="6dp" | |
android:layout_weight=".1" | |
android:background="@drawable/rounded_facebook_btn" | |
android:drawableLeft="@drawable/facebook_icon" | |
android:drawableStart="@drawable/facebook_icon" | |
android:padding="8dp" | |
android:text="@string/facebook" | |
android:textColor="@color/white" | |
android:textSize="12sp" /> | |
<!--<View | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight=".1" />--> | |
<Button | |
android:id="@+id/signin_google" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginLeft="6dp" | |
android:layout_marginStart="6dp" | |
android:layout_weight=".1" | |
android:background="@drawable/rounded_googleplus_btn" | |
android:drawableLeft="@drawable/googleplus_icon" | |
android:drawableStart="@drawable/googleplus_icon" | |
android:padding="8dp" | |
android:text="@string/google" | |
android:textColor="@color/white" | |
android:textSize="12sp" /> | |
</LinearLayout> | |
</LinearLayout> | |
</android.support.v4.widget.NestedScrollView> | |
</android.support.design.widget.CoordinatorLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment