Friday, September 7, 2012

Re: [android-developers] How can I put different resources for different dpi on ICS with the same sw800dp smallest width?



On Saturday, September 8, 2012 1:22:35 AM UTC+4, Mark Murphy (a Commons Guy) wrote:
On Fri, Sep 7, 2012 at 5:06 PM, Leo <leonid...@gmail.com> wrote:
> Asus Transformer Prime - 1280 mdpi - res/values-sw800dp-hdpi/ - why?

Can't answer that. I lost my Prime on a United flight, DEN->SFO, back
in March. So if yours has "CW" engraved on the back, I'm coming to
your place to pick it up, m'kay? :-)
I think it will be cheaper to buy a new one, I'm in Russia :)
 
> Galaxy Tab 7 (but with custom 4.0.4) - 1024 mdpi - res/values-sw600dp-tvdpi/
> - why?

Check the densityDpi value from DisplayMetrics. If it reports
DENSITY_TV, then that's what whoever cooked the ROM decided to use.

Of course, I checked everything in DisplayMetrics and on Prime it reports 160 MDPI.
 
> I also tried creating emulator with 1280x800 mdpi 4.0.3 and 4.1 and got the
> same res/values-sw800dp-hdpi not mdpi.

Now that's a bit interesting. I can reproduce that behavior, and
densityDpi is reporting 160. I'll have to poke at that scenario a bit
more.

I'm happy that you believed me :)
I'll be waiting for your results my next morning.(02 AM now).

Thank you.
 
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment