Skip to content

Commit

Permalink
add sign up button
Browse files Browse the repository at this point in the history
  • Loading branch information
yuichi10 committed Aug 24, 2015
1 parent 5c7d5a3 commit 1d17545
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected void onCreate(Bundle savedInstanceState) {
Button doSignIn = (Button)findViewById(R.id.doSignIn);
doSignIn.setOnClickListener(this);
//button for sign up
Button doSignUp = (Button)findViewById(R.id.doSignUp);
Button doSignUp = (Button)findViewById(R.id.signInSignUp);
doSignUp.setOnClickListener(this);
}

Expand Down Expand Up @@ -75,7 +75,7 @@ public void onClick(View v) {
startActivity(intent);
break;
//when user try to sign up
case R.id.doSignUp:
case R.id.signInSignUp:
//go to the page for sign up
intent.setClassName(packageName, packageName + ".SignUP");
startActivity(intent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public void onCreate(Bundle savedInstanceState) {
//the button when user try to choose images
Button thumbnail = (Button)findViewById(R.id.signUpGetImage);
thumbnail.setOnClickListener(this);
//the button for really sign up
Button signUp = (Button)findViewById(R.id.doSignUp);
signUp.setOnClickListener(this);

//set email width. try not to change width
email = (EditText)findViewById(R.id.signUpEmail_e);
Expand Down Expand Up @@ -87,6 +90,8 @@ public void onClick(View v) {
intent.setClassName(SignIn.packageName, SignIn.packageName + ".ThumbnailImage");
startActivityForResult(intent, this.mRequestCode);
break;
case R.id.doSignUp:
break;
}
}
}
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_sign_in.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
<Button
android:id="@+id/doSignUp"
android:id="@+id/signInSignUp"
android:text="@string/sign_up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/layout/sign_up.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,10 @@
android:layout_width="100dp"
android:layout_height="100dp" />
</LinearLayout>
<Button
android:id="@+id/doSignUp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sign Up"/>

</LinearLayout>

0 comments on commit 1d17545

Please sign in to comment.