Last modified: 2012-02-24 02:52:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34449, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32449 - Android app menu icons are SUPER HUGE on mdpi devices (G1, Kindle Fire)
Android app menu icons are SUPER HUGE on mdpi devices (G1, Kindle Fire)
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Generic (Other open bugs)
1.0.0 (Android)
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks: hidpi 31447
  Show dependency treegraph
 
Reported: 2011-11-16 21:30 UTC by Brion Vibber
Modified: 2012-02-24 02:52 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: Android
Assignee Huggle Beta Tester: ---


Attachments
Screenshot in Android emulator, 2.3 at mdpi (137.31 KB, image/png)
2011-11-16 21:30 UTC, Brion Vibber
Details
Screenshot on Kindle Fire (97.79 KB, image/png)
2011-11-16 21:32 UTC, Brion Vibber
Details

Description Brion Vibber 2011-11-16 21:30:43 UTC
Created attachment 9477 [details]
Screenshot in Android emulator, 2.3 at mdpi

The android menu plugin is doing some fairly broken things with icon sizing; the current icons display at about the right size only on hdpi (240dpi / 1.5x multiplier) devices. On mdpi (160dpi / 1.0 multiplier) such as an emulator configuration like the classic G1 or the new Amazon Kindle Fire tablet, they're REALLY HUGE and actually block out the text entirely.

Setting as a blocker on the 1.0 release tracking bug 31447.
Comment 1 Brion Vibber 2011-11-16 21:32:32 UTC
Created attachment 9478 [details]
Screenshot on Kindle Fire

An Android 2.3-based tablet without proprietary Google APIs (running with the provisional fix from bug 32445). Shows the same icon sizing error as regular phone emu also at mdpi.
Comment 2 Brion Vibber 2011-11-17 22:21:21 UTC
This question on stack overflow is relevant:

http://stackoverflow.com/questions/7361976/how-to-create-a-drawable-from-a-stream-without-resizing-it

hacking in the suggested fix there into AppMenu's getIcon() ends up with the icons always being drawn at native device resolution, which is what we'd want when loading icons sized for each resolution:

https://github.com/brion/Wikipedia/tree/icon-fixed-size


Alternatively, it could be switched from loading icons out of the Android resources and we can just let the native system take over (resolving from the right subdirs, properly scaling the default size if no native one available). If these icons are meant to be Android-specific then that's probably the nicest thing to do.
Comment 3 Brion Vibber 2011-11-18 23:51:47 UTC
Added a note on Chris McKee's branch: https://github.com/ChrisMcKee/Wikipedia/commit/60bac986c264d80475be078699c03d6788ec364a#commitcomment-731856
Comment 4 Brion Vibber 2011-11-21 03:42:27 UTC
Ok I've got a combination of the various bits together with quickly bulk-resized images as pull req: https://github.com/nitobi/Wikipedia/pull/59

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links