0

Specs for Nexus7 is 7-inch screen, 1280 x 800 resolution and 216 pixels-per-inch. I made drawable-xlarge-hdpi folder and put image in that folder. But when I check bitmap size, I get smaller size than actual size. What is wrong? I tried drawable-large-hdpi, but the result is the same.

image = BitmapFactory.decodeResource(res, R.drawable.image);
int width = image.getWidth(); // this returns smaller than actual size.
user1301568
  • 2,103
  • 4
  • 25
  • 32

1 Answers1

0

This is from a blogpost title: Getting Your App Ready for Jelly Bean and Nexus 7

As developers we see this as around 600 * 960 density independent pixels and a density of tvdpi.

The post in the same line also asks you not to rush and create new Assets for this density.

This fact is again outlined by Dianne Hackborn (she works at Google) here: https://plus.google.com/105051985738280261832/posts/6eWwQvFGLV8

If you look at the Google IO 2012 source code, it also suggests (I may have, of course, missed the obvious) that no special assets were created for the Nexus 7 and yet, it looks and works great on it. If you go through both the links, you will find a couple of tips on making sure your hdpi Assets will look good on the Nexus 7 too.

Siddharth Lele
  • 27,623
  • 15
  • 98
  • 151