Skip to content

Instantly share code, notes, and snippets.

@almozavr
Created September 7, 2013 10:37
Show Gist options
  • Save almozavr/6474539 to your computer and use it in GitHub Desktop.
Save almozavr/6474539 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<ImageView
android:id="@+id/head_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/logo"
android:background="@color/ActionBar.Background"
android:padding="@dimen/Padding.Default"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/text_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/head_logo"
android:text="@string/text_login"
android:lines="2"
android:paddingTop="@dimen/Padding.Default"
android:gravity="center"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/text_login"
android:fillViewport="true"
android:layout_above="@+id/login_signup_panel">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical"
android:padding="@dimen/Padding.Default">
<include
android:id="@+id/login_facebook_connect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/button_facebook"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/login_divider_or"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginBottom="@dimen/Widget.Margin.Divider.Horizontal"
android:layout_marginLeft="@dimen/Widget.Margin.Divider.Left"
android:layout_marginRight="@dimen/Widget.Margin.Divider.Right"
android:layout_marginTop="@dimen/Widget.Margin.Divider.Horizontal"
android:text="@string/login_divider_or"
android:textColor="@color/Divider.Default"/>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/Height.Divider"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/login_divider_or"
android:background="@color/Divider.Default"/>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/Height.Divider"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/login_divider_or"
android:background="@color/Divider.Default"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_login_section"
android:orientation="vertical">
<EditText
android:id="@+id/login_edit_screenname"
style="@style/Widget.EditTextView"
android:layout_width="match_parent"
android:layout_height="@dimen/Height.EditText"
android:drawableLeft="@drawable/ic_login_mail"
android:drawablePadding="@dimen/Padding.DrawablePadding"
android:hint="@string/login_email_or_phone"
android:inputType="textEmailAddress"
android:nextFocusDown="@+id/login_edit_password"
android:singleLine="true">
<requestFocus/>
</EditText>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/Height.Divider"
android:background="@color/Divider.Default"
android:layout_marginTop="@dimen/Padding.Small"
android:layout_marginBottom="@dimen/Padding.Small"/>
<com.uniformdating.ui.widget.ClickableDrawableEditText
android:id="@id/login_edit_password"
style="@style/Widget.EditTextView"
android:layout_width="match_parent"
android:layout_height="@dimen/Height.EditText"
android:drawableLeft="@drawable/ic_login_password"
android:drawablePadding="@dimen/Padding.DrawablePadding"
android:drawableRight="@drawable/ic_login_forgot_password"
android:layout_marginBottom="@dimen/Padding.Small"
android:hint="@string/password_hint"
android:inputType="textPassword"
android:nextFocusDown="@+id/login_enter_button"
android:singleLine="true"/>
</LinearLayout>
<Button
android:id="@+id/login_button_login"
style="@style/Widget.Button.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/Widget.Margin.LogIn.Button.Top"
android:gravity="center"
android:text="@string/login"
android:textSize="@dimen/Text.Default.Button"/>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/login_signup_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/Black_Semi_Transparent_Dark"
android:paddingBottom="@dimen/Widget.Padding.Sign.Panel.Bottom"
android:paddingLeft="@dimen/Padding.Auth"
android:paddingRight="@dimen/Padding.Auth"
android:paddingTop="@dimen/Widget.Padding.Sign.Panel.Top">
<TextView
style="@style/Widget.TextView.H4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/login_dont_have_acc"
android:textColor="@color/Widget.TextView.Title"/>
<Button
android:id="@+id/login_button_signup"
style="@style/Widget.Button.Orange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/login_sign_up"
android:textSize="18sp"/>
</LinearLayout>
<ProgressBar
android:id="@+id/login_progress_bar"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:padding="@dimen/Padding.Auth"
android:visibility="invisible"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<ImageView
android:id="@+id/head_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/logo"
android:background="@color/ActionBar.Background"
android:padding="@dimen/Padding.Default"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/text_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/head_logo"
android:text="@string/text_login"
android:lines="2"
android:paddingTop="@dimen/Padding.Default"
android:gravity="center"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/text_login"
android:layout_above="@+id/login_signup_panel">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/Padding.Default">
<include
android:id="@+id/login_facebook_connect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/button_facebook"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center">
<View
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="1dp"
android:background="@color/Divider.Default"/>
<TextView
android:id="@+id/login_divider_or"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/Widget.Margin.Divider.Left"
android:layout_marginRight="@dimen/Widget.Margin.Divider.Right"
android:text="@string/login_divider_or"
android:textColor="@color/Divider.Default"/>
<View
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="1dp"
android:background="@color/Divider.Default"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_login_section"
android:orientation="vertical">
<EditText
android:id="@+id/login_edit_screenname"
style="@style/Widget.EditTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_login_mail"
android:drawablePadding="@dimen/Padding.DrawablePadding"
android:hint="@string/login_email_or_phone"
android:inputType="textEmailAddress"
android:nextFocusDown="@+id/login_edit_password"
android:singleLine="true">
</EditText>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/Divider.Default"
android:layout_marginTop="@dimen/Padding.Small"
android:layout_marginBottom="@dimen/Padding.Small"/>
<com.uniformdating.ui.widget.ClickableDrawableEditText
android:id="@id/login_edit_password"
style="@style/Widget.EditTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_login_password"
android:drawablePadding="@dimen/Padding.DrawablePadding"
android:drawableRight="@drawable/ic_login_forgot_password"
android:layout_marginBottom="@dimen/Padding.Small"
android:hint="@string/password_hint"
android:inputType="textPassword"
android:nextFocusDown="@+id/login_enter_button"
android:singleLine="true"/>
</LinearLayout>
<Button
android:id="@+id/login_button_login"
style="@style/Widget.Button.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/Widget.Margin.LogIn.Button.Top"
android:gravity="center"
android:text="@string/login"
android:textSize="@dimen/Text.Default.Button"/>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/login_signup_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/Black_Semi_Transparent_Dark"
android:paddingBottom="@dimen/Widget.Padding.Sign.Panel.Bottom"
android:paddingLeft="@dimen/Padding.Auth"
android:paddingRight="@dimen/Padding.Auth"
android:paddingTop="@dimen/Widget.Padding.Sign.Panel.Top">
<TextView
style="@style/Widget.TextView.H4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/login_dont_have_acc"
android:textColor="@color/Widget.TextView.Title"/>
<Button
android:id="@+id/login_button_signup"
style="@style/Widget.Button.Orange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:text="@string/login_sign_up"
android:textSize="18sp"/>
</LinearLayout>
<ProgressBar
android:id="@+id/login_progress_bar"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:padding="@dimen/Padding.Auth"
android:visibility="invisible"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment