Skip to content

Feature/second activity - #10

Merged
Ilianabeziani merged 6 commits into
developfrom
feature/second-activity
Feb 22, 2019
Merged

Feature/second activity#10
Ilianabeziani merged 6 commits into
developfrom
feature/second-activity

Conversation

@Ilianabeziani

Copy link
Copy Markdown
Collaborator

No description provided.

Iliana and others added 3 commits February 22, 2019 11:06
Iliana
send user login details to second activity
Pass user login details to second activity
Iliana
test - remove secondActivity
case R.id.submit_button:
String username = usernameEditText.getText().toString();
String password = passwordEditText.getText().toString();
Intent i = new Intent(this, SecondActivity.class);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us have meaningful names for variables. Can we change 'i' to something meaningful like 'intent' ?

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded dimension

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:hint="Username : "

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hardcoded string

android:id="@+id/username_label_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="20dp"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:textSize="20dp"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Iliana
changes have been implemented
@codeAndRain

Copy link
Copy Markdown
Owner

Do not merge yet. There are some conflicts in the MainActivity.java class

@Ilianabeziani
Ilianabeziani merged commit 36142a0 into develop Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants