-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #3359: Convert welcome.xml into single layout file pull request for issue #3368
Conversation
Hi @TheSwarnim Please follow the first two points from the checklist given in the description section. |
Thank you, sir, I'll continue to give contributions to this organization, and wants to learn from you in the coming days |
@TheSwarnim As per the issue description, please add Also in practice whenever there is a UI change we always add screenshots to PRs and when there are test cases changes then we add screenshot of tests passing. |
Ok sir, Beforemobile-portraitmobile-landtablet-porttablet-landAftermobile-landmobile-porttablet-landtablet-port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheSwarnim Thanks. I have left one suggestion which applies to all files.
app/src/main/res/layout/welcome.xml
Outdated
android:paddingStart="28dp" | ||
android:paddingEnd="28dp"> | ||
android:paddingStart="@dimen/home_outer_margin" | ||
android:paddingEnd="@dimen/home_outer_margin"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use already defined values for this as it created dependencies on one another.
Create new dimens values like home_welcome_outer_padding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sir I'll see it and use different dimens.
Hello @rt4914, Sir, I've created the dimens values as per the requirement. Please review it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested changes for files which should not be changed. Otherwise everything looks good.
…rations.xml build.gradle
…e to as per develop branch
…s.xml build.gradle
Hello @rt4914, Sir, please review it again, the error has occurred because I've not added these above files in commit mistakingly. |
@TheSwarnim Thanks. Also make sure that you reply to all open comments so that the reviewer can understand what was the step taken on that particular comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Unassigning @rt4914 since they have already approved the PR. |
@TheSwarnim Please update your branch by merging with latest develop so that we can merge this PR |
Explanation
Fixes #3359
This PR Convert welcome.xml into a single layout file. In this PR welcome.xml files for different orientations such as land, sw600dp-land and sw600dp-port are deleted and all rendering of the screen is done by the main welcome.xml, and the margin & padding changes dynamically using dimens.xml accordingly.
Please note that to run the project one has to rebuild the project because deleting the orientations welcome.xml files some changes were taking place (Since I don't know this, I struggle for a long time) otherwise it will not work on tablet modes.
Checklist