Skip to content

Instantly share code, notes, and snippets.

@SteveOye
Created June 23, 2018 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveOye/1a49016db72d141eb074e0f118c84ae6 to your computer and use it in GitHub Desktop.
Save SteveOye/1a49016db72d141eb074e0f118c84ae6 to your computer and use it in GitHub Desktop.
Login Page
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:padding="16dp"
android:orientation="vertical"
android:background="@drawable/bg"
tools:context=".MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/signUp"
android:textColor="#c40909"
android:textSize="33sp"
android:textStyle="bold"/>
<EditText
android:id="@+id/your_full_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/fullName"
android:inputType="textPersonName"/>
<EditText
android:id="@+id/your_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/email"
android:inputType="textEmailAddress"/>
<EditText
android:id="@+id/your_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/pass"
android:inputType="textPassword"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="#b45705"
android:text="@string/signUp"
android:textColor="#ffffff"
android:textSize="20sp"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/padding"
android:layout_marginBottom="@dimen/padding"
android:gravity="center_horizontal"
android:text="@string/or"
android:textSize="20sp"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#3b5998"
android:text="@string/facebook"
android:textAllCaps="false"
android:textColor="#ffffff"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:background="#55acee"
android:text="@string/twitter"
android:textAllCaps="false"
android:textColor="#FFFFFF"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#dc4e41"
android:text="@string/google"
android:textAllCaps="false"
android:textColor="#FFFFFF"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/pow"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/soy"
android:textStyle="normal" />
</LinearLayout>
<!-- Create a bg.xml in the drawable folder. -->
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:startColor="#dfdf3d"
android:centerColor="#42959a"
android:endColor="#23ff9a"
android:angle="135"/>
</shape>
</item>
</selector>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#d71356</color>
<color name="colorPrimaryDark">#1c90ec</color>
<color name="colorAccent">#148eac</color>
</resources>
<resources>
<string name="app_name">Login Page</string>
<string name="signUp">Sign Up</string>
<string name="fullName">Full Name</string>
<string name="or">OR</string>
<string name="email">Email</string>
<string name="pass">Password</string>
<string name="pow">Powered by</string>
<string name="soy">SoyDroid</string>
<string name="facebook">Sign in with facebook</string>
<string name="twitter">Sign in with twitter</string>
<string name="google">Sign in with google +</string>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment