Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/src/main/java/com/example/socialchain/LoginActivity.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
package com.example.socialchain;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

public class LoginActivity extends AppCompatActivity {

Button btnSignUp;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
btnSignUp = (Button) findViewById(R.id.btn_signup);
btnSignUp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent i = new Intent(LoginActivity.this,SignUpActivity.class);
startActivity(i);
}
});
}
}
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_email_black.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_phone.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M6.62,10.79c1.44,2.83 3.76,5.14 6.59,6.59l2.2,-2.2c0.27,-0.27 0.67,-0.36 1.02,-0.24 1.12,0.37 2.33,0.57 3.57,0.57 0.55,0 1,0.45 1,1V20c0,0.55 -0.45,1 -1,1 -9.39,0 -17,-7.61 -17,-17 0,-0.55 0.45,-1 1,-1h3.5c0.55,0 1,0.45 1,1 0,1.25 0.2,2.45 0.57,3.57 0.11,0.35 0.03,0.74 -0.25,1.02l-2.2,2.2z"/>
</vector>
183 changes: 180 additions & 3 deletions app/src/main/res/layout/activity_sign_up.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,186 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout 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=".SignUpActivity">
tools:context=".SignUpActivity"
android:background="@drawable/bg_gradient"
android:padding="50dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/img_logo"
android:layout_centerHorizontal="true"
android:src="@mipmap/ic_socialchain"
/>

</android.support.constraint.ConstraintLayout>

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/edt_email"
android:background="@null"
android:hint="Email"
android:drawableLeft="@drawable/ic_email_black"
android:drawableTint="#fff"
android:drawablePadding="10dp"
android:textSize="20sp"
android:inputType="textEmailAddress"
android:imeOptions="actionNext"
android:singleLine="true"
android:textColorHint="#fff"
android:textColor="#fff"
android:layout_below="@+id/img_logo"
android:layout_marginTop="10dp"/>


<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:id="@+id/view1"
android:background="#fff"
android:layout_below="@+id/edt_email"
android:layout_marginTop="10dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/edt_username"
android:background="@null"
android:hint="User Name"
android:drawableLeft="@drawable/ic_person"
android:drawableTint="#fff"
android:drawablePadding="10dp"
android:textSize="20sp"
android:inputType="textEmailAddress"
android:imeOptions="actionNext"
android:singleLine="true"
android:textColorHint="#fff"
android:textColor="#fff"
android:layout_below="@+id/view1"
android:layout_marginTop="15dp"
/>


<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:id="@+id/view2"
android:background="#fff"
android:layout_below="@+id/edt_username"
android:layout_marginTop="10dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/edt_number"
android:background="@null"
android:hint="Mobile No."
android:drawableLeft="@drawable/ic_phone"
android:drawableTint="#fff"
android:drawablePadding="10dp"
android:textSize="20sp"
android:inputType="phone"
android:imeOptions="actionNext"
android:singleLine="true"
android:textColorHint="#fff"
android:textColor="#fff"
android:layout_below="@+id/view2"
android:layout_marginTop="15dp"
/>


<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:id="@+id/view3"
android:background="#fff"
android:layout_below="@+id/edt_number"
android:layout_marginTop="10dp"/>

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/edt_password"
android:background="@null"
android:hint="Password"
android:drawableLeft="@drawable/ic_lock"
android:drawableTint="#fff"
android:drawablePadding="10dp"
android:textSize="20sp"
android:inputType="textPassword"
android:imeOptions="actionNext"
android:singleLine="true"
android:textColorHint="#fff"
android:textColor="#fff"
android:layout_below="@+id/view3"
android:layout_marginTop="15dp"
/>



<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:id="@+id/view4"
android:background="#fff"
android:layout_below="@+id/edt_password"
android:layout_marginTop="10dp"/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/view4"
android:id="@+id/btn_next"
android:layout_marginTop="60dp"
android:layout_centerHorizontal="true"
android:text="Next"
android:background="#fff"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btn_next"
android:id="@+id/txt_signup"
android:text="Sign up with : "
android:textColor="#fff"
android:textSize="18sp"
android:layout_marginTop="15dp"
android:layout_centerHorizontal="true"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@+id/txt_signup"
android:weightSum="2"
android:id="@+id/linear_lay">
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/btn_google"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:text="Google"
android:textAlignment="textStart"
android:background="#fff"
android:drawableLeft="@drawable/ic_email"
android:textAllCaps="false"
android:drawablePadding="10dp"
android:layout_marginRight="10dp"
android:padding="10dp"/>
<Button
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/btn_facebook"
android:layout_marginTop="15dp"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_people"
android:text="Facebook"
android:textAlignment="textStart"
android:padding="10dp"
android:drawablePadding="10dp"
android:background="#fff"
android:textAllCaps="false"
android:layout_marginLeft="10dp"/>
</LinearLayout>

</RelativeLayout>