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

modified scroll behaviour of review activity #2732

Merged
merged 2 commits into from
Mar 25, 2019

Conversation

vanshikaarora
Copy link
Collaborator

@vanshikaarora vanshikaarora commented Mar 24, 2019

Description (required)
Fixes sub-task of #2698 [Scrolling behaviour of Review Activity]

Changes made

Modified activity_review.xml and fragment_review_image.xml

Screenshot
WhatsApp Image 2019-03-24 at 1 43 19 PM

@codecov-io
Copy link

codecov-io commented Mar 24, 2019

Codecov Report

Merging #2732 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2732   +/-   ##
======================================
  Coverage    2.72%   2.72%           
======================================
  Files         267     267           
  Lines       12801   12801           
  Branches     1137    1137           
======================================
  Hits          349     349           
  Misses      12426   12426           
  Partials       26      26

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbab7dd...bf826ad. Read the comment docs.

@domdomegg domdomegg self-requested a review March 24, 2019 10:00
Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

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

I think it might be better if the whole page scrolled part from 'skip this image'. Currently just the bottom bit does.

untitled

Also we want to fix hardcoded text - see code comment

android:layout_height="25dp"
android:background="@android:color/transparent"
android:layout_below="@+id/toolbar"
android:text="SKIP THIS IMAGE"
Copy link
Member

Choose a reason for hiding this comment

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

I know it wasn't previously, but it should use a @string resource rather than hardcoded text.

@vanshikaarora
Copy link
Collaborator Author

vanshikaarora commented Mar 24, 2019

I think it might be better if the whole page scrolled part from 'skip this image'. Currently just the bottom bit does.

@domdomegg before #2709 there was scrolling of whole activity including of image, I removed whole activity scrolling in that PR .

In this current PR i adjusted the views to avoid scrolling every now and then. But it may scroll when occupies more than the extra space allotted.

So should I revert the changes in scrolling that I did in #2709 ?

@domdomegg
Copy link
Member

Sorry, I mean the whole activity should scroll up and down, and only the questions should scroll sideways - if that makes sense.

@vanshikaarora
Copy link
Collaborator Author

I mean the whole activity should scroll up and down

Yes that's what happens previously. I'll revert the changes and send another PR 👍

@domdomegg
Copy link
Member

Before your previous PR (f7e6b20) this is what used to happen:

untitled

The whole activity scrolls up and down, and the whole activity scrolls sideways

After your PR, only the bottom bit scrolls up and down, and only the bottom bit scrolls sideways

I meant to change it so that the whole activity scrolls up and down, and only the bottom bit scrolls sideways.

@vanshikaarora
Copy link
Collaborator Author

@domdomegg I have made the changes. Kindly review :)

@domdomegg domdomegg self-requested a review March 25, 2019 23:34
Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

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

Tested 2.10.1-debug-peer_scroll~bf826ad6d

Beta Commons Upload

@domdomegg domdomegg merged commit c1a941e into commons-app:master Mar 25, 2019
@vanshikaarora
Copy link
Collaborator Author

Thanks for approving the PR @domdomegg :)

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