-
Notifications
You must be signed in to change notification settings - Fork 528
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
Merge profile_chooser_fragment.xml into single xml file #3557
Comments
@rt4914 , I would like to work on this issue ? |
@Arjupta , I would like to work on this issue ? |
@priyatanu assigned it to you |
Thank you :D |
I'm interested! Is this available? |
Hi @adizcode , I am working on it. |
Okay |
I would like to work on this issue. Plz assign it to me |
I'm working on this! Please assign. |
Unassigned because of inactivity. |
Can i work on this issue ? |
I did open: #4729 I do have a question regarding sw600dp-land and port files. The only difference that puzzles me is:
Is there any way to merge this (@dimen/space_0dp and @dimen/profile_chooser_fragment_margin_top_profile_already_added |
@dmdbilal it looks like this issue is being actively worked on, so you’ll need to find another one to work on. |
@msorins is the difference between those two based on a qualifier (like sw600dp or land)? If so, you could make sure that profile_chooser_fragment_margin_top_profile_already_added is defined as 0 in its dimens.xml file corresponding to whichever qualifier is used the 0dp code today. Could that work? I’m also not sure what is meant by “no code changes”—could you clarify? |
Thank you for the tip, I was able to solve this and amended the PR with another commit. |
Deassigning @msorins since he is no longer working on this. |
@seanlip I would like to work on this issue. Can you please assign it to me? |
@ArchitJain1201 Feel free to go ahead and raise a PR. If it looks reasonable we can assign you to this. Thanks! |
Can I work on this issue? @seanlip |
@kunsistent My response to @ArchitJain1201 above applies here, too. |
I created a PR, #4849, but I cannot assign it. Will it be automatically assigned or do i need to ping somebody? |
<!-- READ ME FIRST: Please fill in the explanation section below and check off every point from the Essential Checklist! --> ## Explanation Fix part of #3557: Merges landscape and portrait versions of profile_chooser_fragment.xml for sw600 screens. ## Essential Checklist <!-- Please tick the relevant boxes by putting an "x" in them. --> - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [X] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [X] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [X] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [X] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [ ] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only <!-- Delete these section if this PR does not include UI-related changes. --> If your PR includes UI-related changes, then: - Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes - For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see [RTL guide](https://github.com/oppia/oppia-android/wiki/RTL-Guidelines)) - Add a video showing the full UX flow with a screen reader enabled (see [accessibility guide](https://github.com/oppia/oppia-android/wiki/Accessibility-(A11y)-Guide)) - Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing Portrait after: ![portrait-new](https://user-images.githubusercontent.com/103062089/213681891-df7c7f31-5092-49d9-983d-bf063d95830e.png) Portrait before: ![portrait-current](https://user-images.githubusercontent.com/103062089/213681896-1c15ee67-7d55-4c81-9527-2f173ea5423d.png) Landscape after: ![landscape-new](https://user-images.githubusercontent.com/103062089/213681897-331ae0a2-02bd-4c72-95c9-c8881de48d73.png) Landscape before: ![landscape-current](https://user-images.githubusercontent.com/103062089/213681903-ffaa2ba0-8edb-4fe5-a55e-be695d7cfa48.png) ProfileChooserSpanTest results: ![ProfileChooserSpanTest results](https://user-images.githubusercontent.com/103062089/213684744-d8c9f6dc-e63d-4d0f-89cb-c55e5660ff15.png) ProfileChooserFragmentTest results: ![ProfileChooserFragmentTest](https://user-images.githubusercontent.com/103062089/213691103-13051677-d193-48c4-8245-0624bd0237ac.png) ProfileChooserFragmentTest on tablet: ![ProfileChooserFragmentTest on tablet](https://user-images.githubusercontent.com/103062089/213702923-651578c3-6a3b-422d-b80c-595cf3b50751.png) ProfileChooserActivityTest on tablet: ![ProfileChooserActivityTest on tablet](https://user-images.githubusercontent.com/103062089/213701916-641a41d8-22d7-419c-83fc-928d6b9a9fe8.png) Tablet portrait before: ![Tablet portrait before](https://user-images.githubusercontent.com/103062089/213732359-cb9bd179-7a91-4328-8eb2-96b68cf4d086.png) Tablet portrait after: ![Tablet portrait after](https://user-images.githubusercontent.com/103062089/213732363-377b6d25-3345-4d41-a8e1-96ff67c70342.png) Tablet landscape before: ![tablet landscape before](https://user-images.githubusercontent.com/103062089/213732368-e830f9cb-df6e-46c3-85fd-40198c7961b9.png) Tablet landscape after: ![Tablet landscape after](https://user-images.githubusercontent.com/103062089/213732369-769c5357-5886-477f-8ac3-99d9ef8fdd40.png) Tablet RTL portrait before: ![tablet RTL portrait before](https://user-images.githubusercontent.com/103062089/213741488-dc4cd5a0-c0f6-4dc1-a87b-31c80183001a.png) Tablet RTL portrait after: ![Tablet RTL portrait after](https://user-images.githubusercontent.com/103062089/213741491-5a758ab7-3530-458c-8ced-c57c8573444d.png) Tablet RTL landscape before: ![Tablet RTL landscape before](https://user-images.githubusercontent.com/103062089/213741494-03739d21-1736-45db-bc25-e5937338582b.png) Tablet RTL landscape after: ![Tablet RTL landscape after](https://user-images.githubusercontent.com/103062089/213741496-dbef3ac3-1151-4afb-8939-262981c05dfb.png) Co-authored-by: Rajat Talesra <[email protected]>
I'm working on this issue and making a PR |
Hi @masclot @chrislee115 Just a question about this -- reading the conversation above, there's a PR #4849 that's already been merged. Are there remaining tasks for this issue? |
I merged the two layouts for big screens. There remained two layouts for small screens which I think can be merged. I don't think it makes sense to merge the layout for big screen with the ones for small screens. |
Are you referring to merging layout-sw600dp-land and layout-sw600dp-port? |
Per discussion with @BenHenning, closing this issue because it looks like merging these files is a bit complicated and probably not worth it. |
Currently there are 4 versions of
profile_chooser_fragment.xml
file merge it into single xml file.We can use https://text-compare.com/ to compare two versions of this file and for all the differences we can create variables in
dimens.xml
file and use it accordingly.It can happen that it becomes really hard to merge all 4 files into single file, in such cases prefer code-readability over single file. Therefore it can be fine if in the end the code still contains 2 or 3 files.
Note: In PR, make sure you add before and after screenshot of mobile-portrait, mobile-landscape, tablet-portrait and tablet-landscape for comparison and make sure that there is not difference between before and after UI.
The text was updated successfully, but these errors were encountered: