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

Adjust the height for item text to prevent DPI issue #37

Merged
merged 1 commit into from May 29, 2020
Merged

Adjust the height for item text to prevent DPI issue #37

merged 1 commit into from May 29, 2020

Conversation

BoredOutOfMyGit
Copy link
Contributor

I was unable to replicate this issue while using a regular user app but when in
use with AOSP, I noticed an issue when adjusting font size to anything above 'Default'.

Test:

  • Import aar to AOSP
  • Utilize the library
  • Adjust the font size to Large or above under Settings

See image to notice issue described above

I was unable to replicate this issue while using a regular user app but when in
use with AOSP, I noticed an issue when adjusting font size to anything above 'Default'.

Test:
- Import aar to AOSP
- Utilize the library
- Adjust the font size to Large or above under Settings

See image to notice issue described above
- https://i.imgur.com/zm4s2mz.jpg
@st235
Copy link
Owner

st235 commented May 29, 2020

Hi @BoredOutOfMyGit 👋

First of all, thanks for using this library and mostly for the contribution. I very appreciate it!
I try to keep the behaviour of this widget consistent to native BottomNavigationBar. Of course, the text should be scaled.

I made a small research, and you were right - its really possible text view would be trimmed by image view height when used upscaled font size. It was a nice catch, thank you.

With MATCH_PARENT height

Screenshot_1590777054

With WRAP_CONTENT height

Screenshot_1590776969

As you can see, u've made a great research, but small thing should be done here - now ImageView is not centred at menu item. I will fix it in separate PR.

Hopefully, you will make other important discoveries further. Thanks

@st235 st235 merged commit 387fc89 into st235:master May 29, 2020
@BoredOutOfMyGit
Copy link
Contributor Author

Thank you! I look forward to seeing the PR for centering the imageview as well :)

I'll definitely report any issues I come across and if possible, submit PR's to fix said issues.

Keep up the good work! I love this library!

@st235
Copy link
Owner

st235 commented May 29, 2020

1.1.6 live now
This version contains fixes related to the problem

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.

None yet

2 participants