-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
AppTabs icons and label too big on Android #5435
Comments
I agree we should match whatever "expected" tab size is on the platform. |
Ignore solution B - if the widget uses theme then a custom style can be accomplished by ThemeOverride container. As far as I can see option A is right, and it's essentially just a theme change which we do from time to time. It could be mobile specific - or perhaps apply somehow to desktop in the horizontal arrangements as well? That I think is open to discussion :) |
I think the size problem is equally viable on the Linux mobile simulator as on Android if I remember correctly. |
This could relate to #3746 if theme is included in the solution. |
Checklist
Describe the bug
The icon and labels of AppTabs on Android are rendered much larger then for it's native pendant the Navigation Bar. This is not ideal, because it means that in comparison much more vertical space is occupied by the bar and less space available for the actual content of a tab. It also makes a Fyne app look very different from the a native app. The total number of icons appears to be the same though (maximum of 5 for both).
This might be a bug where Fyne's renderer fails to determine the correct icon and label size from Android.
How to reproduce
go run -tags mobile .
)Screenshots
For example here is how the AppTabs are rendered on Android:
For comparison this is how the an app using the native Navigation Bar looks on Android:
Example code
Fyne version
v2.5.3
Go compiler version
1.23.4
Operating system and version
Waydroid 1.4.3 with Android Version 11
Additional Information
See also related discussion on Discord: https://discord.com/channels/953020122690359327/953030515152281650/1330254101774209034
The text was updated successfully, but these errors were encountered: