Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Replace spacing near scroll views with overscroll (COMMUNTIY) #2884

Merged
merged 14 commits into from Apr 28, 2021

Conversation

fynngodau
Copy link
Contributor

@fynngodau fynngodau commented Apr 21, 2021

As previously discussed in #1882 (comment), this PR removes white space near scroll views, mostly at the bottom, and instead adds that space inside the scroll view (so it scrolls with the content). This makes the app feel a lot better.

Here you can see some examples:

Before After
Screenshot_1618984437 Screenshot_1618984392
Screenshot_1618986546 Screenshot_1618986818
Screenshot_1618987264 Screenshot_1618987190

These views have been fixed that way:

  • App Information
  • About the App
  • Data Privacy
  • Legal Notices
  • Technical Hotline
  • Statistics explanation
  • Edit Places
  • Edit People
  • Settings
  • Notifications
  • Prioritized Background Activity
  • Share Data
  • Check In (onboarding / information)

The error report screen has also been fixed to remove the white space between the elevated, sticky content and the scrollable content. Note that here, I changed the total bottom padding of the scrollable content from 20dp to 24dp for consistency within the layout.

Additionally, I fixed the button in the check in layout to have the same margin to top and bottom as the Open Journal button in the Contact Journal onboarding / information screen.


Internal Tracking ID: EXPOSUREAPP-6605

@fynngodau fynngodau requested a review from a team April 21, 2021 06:44
@dsarkar dsarkar added the community Tag issues created by community members label Apr 21, 2021
@dsarkar dsarkar added the mirrored-to-jira This item is also tracked internally in JIRA label Apr 21, 2021
@dsarkar
Copy link
Member

dsarkar commented Apr 21, 2021

@fynngodau Thanks. Internal Tracking ID: EXPOSUREAPP-6605


Corona-Warn-App Open Source Team

@dsarkar dsarkar added the Fix 2.1 Fix is planned for 2.1 label Apr 21, 2021
@fynngodau
Copy link
Contributor Author

I added fixes for the following layouts, which I initially overlooked:

  • Settings
  • Notifications (notification settings)
  • Prioritized Background Activity (battery optimization settings)
  • Share Data (ppa settings)
  • Detailed Information about Data Sharing

This partially reverts commit 85e4650
to avoid conflicts with corona-warn-app#2945.
@fynngodau
Copy link
Contributor Author

I undid the change to the Detailed Information about Data Sharing screen to avoid conflict with #2945.

Also changes margin of button to match that of contact journal
onboarding
@fynngodau
Copy link
Contributor Author

One more screen:

  • Check In onbaording

Also fixes the margin of the Check In onboarding Agree button to match that of the Open Journal button in the Contact Journal onboarding.

Copy link
Contributor

@harambasicluka harambasicluka left a comment

Choose a reason for hiding this comment

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

Overall looks pretty good, but I would like to take this chance to align all bottom paddings :)

What do you think?

@@ -24,7 +24,10 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:fillViewport="true"
app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would align the bottom padding on this kind of fragments, I would go with @dimen/spacing_normal as it is here: https://github.com/corona-warn-app/cwa-app-android/pull/2884/files#diff-99108bde996a7dd32ce38fb5594a027efd59819f2b88d116dcc7b8f3eaced7ebR30

@@ -24,7 +24,10 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:fillViewport="true"
app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

android:focusable="true"
app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@@ -30,7 +30,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:paddingBottom="@dimen/guideline_bottom">
android:paddingBottom="@dimen/guideline_bottom"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@@ -30,7 +30,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:paddingBottom="@dimen/guideline_bottom">
android:paddingBottom="@dimen/guideline_bottom"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@@ -31,7 +31,10 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:fillViewport="true"
app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@@ -32,7 +32,10 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:fillViewport="true"
app:layout_constraintBottom_toBottomOf="@+id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@@ -27,7 +27,10 @@
android:id="@+id/scrollview"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@@ -93,7 +93,10 @@
<ScrollView
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above. But there seems to be already more space.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The answer is here:

That's an odd margin… we should remove that before increasing the scroll view's padding.

@@ -31,7 +32,9 @@
android:id="@+id/check_in_onboarding_scroll_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="20dp"
android:paddingBottom="@dimen/spacing_small"
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems fine, as the floating button is below.

@fynngodau
Copy link
Contributor Author

@harambasicluka Agreed – I have pushed a change updating all the places you pointed out.

@d4rken d4rken added this to the 2.1.0 milestone Apr 27, 2021
@chiljamgossow chiljamgossow self-assigned this Apr 27, 2021
Copy link
Contributor

@chiljamgossow chiljamgossow left a comment

Choose a reason for hiding this comment

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

Very nice! Thanks for fixing.

@d4rken d4rken merged commit 7732282 into corona-warn-app:release/2.1.x Apr 28, 2021
@fynngodau fynngodau deleted the fix/overscroll branch May 3, 2021 20:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Tag issues created by community members Fix 2.1 Fix is planned for 2.1 mirrored-to-jira This item is also tracked internally in JIRA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants