Skip to content
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 #3532: Deleted help_activity.xml (land) file #3597

Conversation

UttaranDas
Copy link
Contributor

@UttaranDas UttaranDas commented Jul 27, 2021

Explanation

Fix #3532
I have deleted the help_activity.xml (land) file. I compared the two xml files and found just one difference which was the android:layout_width. It was set to match_parent in the normal file whereas it was set to 304dp in land xml file. Deleting the land xml file changed the width of the drawer for the landscape mode. The app works stable so far. Following are the screenshots attached:

Before After
image image
image image
image image
image image

Drawer Screenshots

Before After
image image
image image
image image
image image
image image

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@rt4914
Copy link
Contributor

rt4914 commented Jul 28, 2021

@Noobmaster-UD The 304dp width was for the Drawer not for the help activity. Take screenshots of Drawer too.

@rt4914 rt4914 assigned UttaranDas and unassigned rt4914 Jul 28, 2021
@UttaranDas
Copy link
Contributor Author

@rt4914 I have uploaded the Drawer screenshots in the PR now. PTAL

@oppiabot oppiabot bot assigned rt4914 and unassigned UttaranDas Jul 29, 2021
@oppiabot
Copy link

oppiabot bot commented Jul 29, 2021

Unassigning @Noobmaster-UD since a re-review was requested. @Noobmaster-UD, please make sure you have addressed all review comments. Thanks!

@Sparsh1212 Sparsh1212 added the PR don't merge - NEEDS UPDATE Corresponds to PRs that need to be updated with the latest develop changes before they can be merged label Jul 30, 2021
@rt4914
Copy link
Contributor

rt4914 commented Aug 3, 2021

@UttaranDas The drawer screenshots are incorrect. The drawer should be opened in HelpActivity and then you should take the screenshots and compare them. Currently you have taken screenshots on HomeActivity.

@rt4914 rt4914 assigned UttaranDas and unassigned rt4914 Aug 3, 2021
@UttaranDas
Copy link
Contributor Author

@UttaranDas The drawer screenshots are incorrect. The drawer should be opened in HelpActivity and then you should take the screenshots and compare them. Currently you have taken screenshots on HomeActivity.

I have now updated the PR with the correct screenshots.
I couldn't find any way to use land dimens without using land xml.

@rt4914 rt4914 assigned rt4914 and unassigned UttaranDas Aug 5, 2021
@rt4914
Copy link
Contributor

rt4914 commented Aug 6, 2021

@UttaranDas The drawer screenshots are incorrect. The drawer should be opened in HelpActivity and then you should take the screenshots and compare them. Currently you have taken screenshots on HomeActivity.

I have now updated the PR with the correct screenshots.
I couldn't find any way to use land dimens without using land xml.

@UttaranDas Do one thing, in help_activity.xml change the layout_width of help_activity_fragment_navigation_drawer from match_parent to @dimens/navigation_drawer_width and define this navigation_drawer_width in dimens file as 304dp.

This will make UI change but this is correct.

This was you will need to keep only one file and the UI output will be much pleasant.

@rt4914 rt4914 assigned UttaranDas and unassigned rt4914 Aug 6, 2021
@UttaranDas
Copy link
Contributor Author

UttaranDas commented Aug 6, 2021

@UttaranDas The drawer screenshots are incorrect. The drawer should be opened in HelpActivity and then you should take the screenshots and compare them. Currently you have taken screenshots on HomeActivity.

I have now updated the PR with the correct screenshots.
I couldn't find any way to use land dimens without using land xml.

@UttaranDas Do one thing, in help_activity.xml change the layout_width of help_activity_fragment_navigation_drawer from match_parent to @dimens/navigation_drawer_width and define this navigation_drawer_width in dimens file as 304dp.

This will make UI change but this is correct.

This was you will need to keep only one file and the UI output will be much pleasant.

I made the changes. Now the drawer looks like this:

Before After
image image
image image
image image
image image

@rt4914 PTAL

@oppiabot oppiabot bot assigned rt4914 and unassigned UttaranDas Aug 6, 2021
@oppiabot
Copy link

oppiabot bot commented Aug 6, 2021

Unassigning @UttaranDas since a re-review was requested. @UttaranDas, please make sure you have addressed all review comments. Thanks!

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

One nit change suggested. Thanks.

app/src/main/res/values/dimens.xml Outdated Show resolved Hide resolved
@rt4914 rt4914 assigned UttaranDas and unassigned rt4914 Aug 7, 2021
@oppiabot oppiabot bot added the PR: LGTM label Aug 7, 2021
@oppiabot
Copy link

oppiabot bot commented Aug 15, 2021

Hi @UttaranDas, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 3 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Aug 15, 2021
@oppiabot oppiabot bot removed the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Aug 15, 2021
@rt4914 rt4914 merged commit 2f4cd1d into oppia:develop Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR don't merge - NEEDS UPDATE Corresponds to PRs that need to be updated with the latest develop changes before they can be merged PR: LGTM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge help_activity.xml into single xml file
3 participants