[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-04 Thread nadam
Yes Dianne, that's obvious to you and me. I didn't mean to insinuate
that there is something wrong. Just wanted to clarify for people who
might not know what a mipmap is.

Are mipmaps used for enlarging any other parts of the UI or is it only
for launcher icons?

On 4 Juli, 05:42, Dianne Hackborn hack...@android.com wrote:
 Yes as I said this is some initial work on doing mipmaps, and oh hey look at
 that if you are doing a mipmap there is a larger bitmap there that can be
 used if you want a larger size image.









 On Sun, Jul 3, 2011 at 2:16 PM, nadam a...@anyro.se wrote:
  Just tested this on my Motorola XOOM with Android 3.0.1 and it is
  using the icon.png from res/drawable-hdpi even though the device is
  mdpi.

  On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote:
   On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote:

Don't force the Xoom to use hdpi.  You will be inconsistent with every
  other
app, all of which are using the Xoom's correct density which is mdpi.

Why do you want to do this?

As I've said, Galaxy Tab made a design decision to use a larger density
  and
thus have a blown up UI.  Again use the density the device reports so
  you
are consistent with the UI in the rest of the device.

Trying to play games like this is only going to lead to pain.  Use the
density the device reports.

   Doesn't the stock Honeycomb Launcher force HDPI drawables for the app
   icons?

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-03 Thread Federico Carnales
On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote:
 Don't force the Xoom to use hdpi.  You will be inconsistent with every other
 app, all of which are using the Xoom's correct density which is mdpi.

 Why do you want to do this?

 As I've said, Galaxy Tab made a design decision to use a larger density and
 thus have a blown up UI.  Again use the density the device reports so you
 are consistent with the UI in the rest of the device.

 Trying to play games like this is only going to lead to pain.  Use the
 density the device reports.

Doesn't the stock Honeycomb launcher force HDPI drawables for the app
icons?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-03 Thread Federico Carnales
On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote:
 Don't force the Xoom to use hdpi.  You will be inconsistent with every other
 app, all of which are using the Xoom's correct density which is mdpi.

 Why do you want to do this?

 As I've said, Galaxy Tab made a design decision to use a larger density and
 thus have a blown up UI.  Again use the density the device reports so you
 are consistent with the UI in the rest of the device.

 Trying to play games like this is only going to lead to pain.  Use the
 density the device reports.

Doesn't the stock Honeycomb Launcher force HDPI drawables for the app
icons?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-03 Thread Dianne Hackborn
It uses a facility that is under development in the platform to do mipmap
style drawables.  It isn't in any way running at hdpi; it is loading
application icons to have a larger size.

On Sun, Jul 3, 2011 at 1:03 AM, Federico Carnales fedecarna...@gmail.comwrote:

 On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote:
  Don't force the Xoom to use hdpi.  You will be inconsistent with every
 other
  app, all of which are using the Xoom's correct density which is mdpi.
 
  Why do you want to do this?
 
  As I've said, Galaxy Tab made a design decision to use a larger density
 and
  thus have a blown up UI.  Again use the density the device reports so you
  are consistent with the UI in the rest of the device.
 
  Trying to play games like this is only going to lead to pain.  Use the
  density the device reports.

 Doesn't the stock Honeycomb launcher force HDPI drawables for the app
 icons?

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-03 Thread nadam
Just tested this on my Motorola XOOM with Android 3.0.1 and it is
using the icon.png from res/drawable-hdpi even though the device is
mdpi.

On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote:
 On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote:

  Don't force the Xoom to use hdpi.  You will be inconsistent with every other
  app, all of which are using the Xoom's correct density which is mdpi.

  Why do you want to do this?

  As I've said, Galaxy Tab made a design decision to use a larger density and
  thus have a blown up UI.  Again use the density the device reports so you
  are consistent with the UI in the rest of the device.

  Trying to play games like this is only going to lead to pain.  Use the
  density the device reports.

 Doesn't the stock Honeycomb Launcher force HDPI drawables for the app
 icons?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-07-03 Thread Dianne Hackborn
Yes as I said this is some initial work on doing mipmaps, and oh hey look at
that if you are doing a mipmap there is a larger bitmap there that can be
used if you want a larger size image.

On Sun, Jul 3, 2011 at 2:16 PM, nadam a...@anyro.se wrote:

 Just tested this on my Motorola XOOM with Android 3.0.1 and it is
 using the icon.png from res/drawable-hdpi even though the device is
 mdpi.

 On 3 Juli, 10:05, Federico Carnales fedecarna...@gmail.com wrote:
  On May 23, 7:49 pm, Dianne Hackborn hack...@android.com wrote:
 
   Don't force the Xoom to use hdpi.  You will be inconsistent with every
 other
   app, all of which are using the Xoom's correct density which is mdpi.
 
   Why do you want to do this?
 
   As I've said, Galaxy Tab made a design decision to use a larger density
 and
   thus have a blown up UI.  Again use the density the device reports so
 you
   are consistent with the UI in the rest of the device.
 
   Trying to play games like this is only going to lead to pain.  Use the
   density the device reports.
 
  Doesn't the stock Honeycomb Launcher force HDPI drawables for the app
  icons?

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-06-01 Thread nadam
Strange, I thought I wrote a reply here some days ago. One more try...

Thanks Dianne, it's good to know that drawable-nodpi is an option for
this. I promise to think twice before using it.

I think it's all a matter of taste. Some people actually prefer larger
images on larger devices. A good example when this makes sense is the
virtual keyboard which is bigger on a tablet than on a phone.
Generally, when you feel like you've had to squeeze in the interface
on a phone screen, it makes sense to blow it up a bit on a tablet.

Currently, to keep the images proportional and avoid pixelation, I
have limited the size of my app to max 480x1024 on hdpi devices and
320x1024 on mdpi devices. I'm doing this using Display.getWidth()/
getHeight() and Window.setLayout(). It looks pretty good on the Galaxy
Tab but a bit too small on the Xoom.

On 27 Maj, 01:13, Dianne Hackborn hack...@android.com wrote:
 On Thu, May 26, 2011 at 3:35 PM, nadam a...@anyro.se wrote:
  I want to do this because it's what my client tells me to do. Not my
  decision. They have designed the app for phone size only and want it
  to scale up for larger devices (or not run on larger devices at all).
  The app contains many specially designed images, some that should
  cover the whole screen and some that should fill the width of the
  screen (portrait mode only) while maintaining the original aspect
  ratio.

 You will need to put them all under drawable-nodpi and manually scale each
 image as appropriate to get this different effects you want.

 And again, I would very strongly discourage this.  You are setting yourself
 up for pain.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-05-26 Thread nadam
I want to do this because it's what my client tells me to do. Not my
decision. They have designed the app for phone size only and want it
to scale up for larger devices (or not run on larger devices at all).
The app contains many specially designed images, some that should
cover the whole screen and some that should fill the width of the
screen (portrait mode only) while maintaining the original aspect
ratio.

On 24 Maj, 00:49, Dianne Hackborn hack...@android.com wrote:
 Don't force the Xoom to use hdpi.  You will be inconsistent with every other
 app, all of which are using the Xoom's correct density which is mdpi.

 Why do you want to do this?

 As I've said, Galaxy Tab made a design decision to use a larger density and
 thus have a blown up UI.  Again use the density the device reports so you
 are consistent with the UI in the rest of the device.

 Trying to play games like this is only going to lead to pain.  Use the
 density the device reports.









 On Sun, May 22, 2011 at 11:37 PM, nadam a...@anyro.se wrote:
  Samsung decided to make it's mdpi-device Galaxy Tab use hdpi drawables
  simply because it looks better. Motorola decided to stick to mdpi on
  the Xoom. This is probably the core of the issues people have with
  making their apps look good on tablets.

  I know there are ways to make it right which possibly work for ~95%
  of all apps. Then we have the ~5% apps where it makes more sense to
  have larger drawables on larger screens.

  Is there any way to force the Xoom (and similar devices) to use the
  hdpi drawables or even xhdpi?

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-05-26 Thread Dianne Hackborn
On Thu, May 26, 2011 at 3:35 PM, nadam a...@anyro.se wrote:

 I want to do this because it's what my client tells me to do. Not my
 decision. They have designed the app for phone size only and want it
 to scale up for larger devices (or not run on larger devices at all).
 The app contains many specially designed images, some that should
 cover the whole screen and some that should fill the width of the
 screen (portrait mode only) while maintaining the original aspect
 ratio.


You will need to put them all under drawable-nodpi and manually scale each
image as appropriate to get this different effects you want.

And again, I would very strongly discourage this.  You are setting yourself
up for pain.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Force hdpi drawables on mdpi-xlarge devices

2011-05-23 Thread Zsolt Vasvari
I would just use a set of drawables with the largest DPI your minimum
SDK version allows and let the system scale it for you.  So typically,
just have HDPI drawables if your minSdkVersion  8, and XHDPI
drawables if your minSdkVersion = 8.   You may get a slight
performance improvement if you provide all the various DPI drawables,
but not only a the size of your APK will increase, but it also becomes
an ongoing maintanence concern.


On May 23, 2:37 pm, nadam a...@anyro.se wrote:
 Samsung decided to make it's mdpi-device Galaxy Tab use hdpi drawables
 simply because it looks better. Motorola decided to stick to mdpi on
 the Xoom. This is probably the core of the issues people have with
 making their apps look good on tablets.

 I know there are ways to make it right which possibly work for ~95%
 of all apps. Then we have the ~5% apps where it makes more sense to
 have larger drawables on larger screens.

 Is there any way to force the Xoom (and similar devices) to use the
 hdpi drawables or even xhdpi?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en