Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature/second activity#10

Merged
Ilianabeziani merged 6 commits into
developcodeAndRain/SimpleLoginForm:developfrom
feature/second-activitycodeAndRain/SimpleLoginForm:feature/second-activityCopy head branch name to clipboard
Feb 22, 2019
Merged

Feature/second activity#10
Ilianabeziani merged 6 commits into
developcodeAndRain/SimpleLoginForm:developfrom
feature/second-activitycodeAndRain/SimpleLoginForm:feature/second-activityCopy head branch name to clipboard

Conversation

@Ilianabeziani

Copy link
Copy Markdown
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
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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.