Skip to content

Conversation

@Ilianabeziani
Copy link
Collaborator

No description provided.

Iliana and others added 3 commits February 22, 2019 11:06
send user login details to second activity
Pass user login details to second activity
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
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
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
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
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
Owner

Choose a reason for hiding this comment

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

same as above

changes have been implemented
@codeAndRain
Copy link
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.

3 participants