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(app): Solve text being cut off on small devices! #558

Merged
merged 2 commits into from
Mar 13, 2021

Conversation

robercoding
Copy link
Contributor

Changes

Added a Custom Fragment with a custom layout to solve text being cut off on small devices. This fragment has the exact same name that had the AppIntro library for its fragment, so you won't notice a change there.

Others

@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #558 (ab9e2a2) into master (494f168) will decrease coverage by 0.69%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #558      +/-   ##
==========================================
- Coverage   48.48%   47.78%   -0.70%     
==========================================
  Files          32       33       +1     
  Lines        1844     1871      +27     
  Branches      179      180       +1     
==========================================
  Hits          894      894              
- Misses        903      930      +27     
  Partials       47       47              
Flag Coverage Δ
android 44.32% <0.00%> (-0.70%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...com/github/ashutoshgngwr/noice/AppIntroActivity.kt 0.00% <ø> (ø)
...b/ashutoshgngwr/noice/fragment/AppIntroFragment.kt 0.00% <0.00%> (ø)

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 494f168...ab9e2a2. Read the comment docs.

@ashutoshgngwr ashutoshgngwr marked this pull request as ready for review March 13, 2021 01:33
@ashutoshgngwr ashutoshgngwr self-requested a review March 13, 2021 03:07
Comment on lines 8 to 9
android:paddingTop="@dimen/appintro_statusbar_height"
android:paddingBottom="@dimen/appintro2_bottombar_height"
Copy link
Member

Choose a reason for hiding this comment

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

Can we also add some horizontal padding? I noticed one heading fitting itself right to the edges.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I think 20dp of horizontal padding is enough, right?

  android:paddingStart="20dp"
  android:paddingEnd="20dp"

Copy link
Member

Choose a reason for hiding this comment

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

yeah, 20 is plenty.

Copy link
Member

@ashutoshgngwr ashutoshgngwr left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! 👍

@ashutoshgngwr ashutoshgngwr merged commit 077eca3 into trynoice:master Mar 13, 2021
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.

Text is cut off on small devices
2 participants