Questions tagged [hdpi]

HDPI refers to a high-density screen (about 240 dpi) used on an Android device.

Term or suffix used in Android that stands for high density displays. -hdpi can be added to layout, drawable, etc. folders in order to maintain artifacts that have especially been designed for this density.

Beside hdpi, one might use ldpi, mdpi or xhdpi, too. The Android system automatically chooses the appropriate resource files.

See official documentation for more.

141 questions
1
vote
0 answers

css scaling based on character count of fixed size font

I'm getting ready to start on a webapp/phonegap app that will be displaying code. I will be using highlight.js to display code. HighlightJs uses pre tags and has a style called monokai_sublime that uses a fixed width font I have snippets of code…
AwokeKnowing
  • 7,728
  • 9
  • 36
  • 47
1
vote
0 answers

Generating @1x, @2x, @3x, @4x sprites with Sass

I'm wanting to create retina sprites to support @1x, @2x, @3x, @4x retina displays. I'm using Codekit, hooked up to an external version of Compass. I've tried a few plugins…
JamesBE
  • 25
  • 6
1
vote
1 answer

SDL2 retina display macbook blurry window

I'm trying to create a window with SDL v2.0.3 using Xcode 6 with my 2012 retina display Macbook Pro like this: gWindow = SDL_CreateWindow( "SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 2880, 1800, SDL_WINDOW_SHOWN…
CoffeeCrisp
  • 253
  • 3
  • 6
  • 19
1
vote
0 answers

Android hdpi splash screen, need explanation

I dont understand why my Nexus 7 has a 1920×1200 pixels resolution, but I should only use a 800-480px image to make a splash screen, its what I have been reading on internet for hdpi screen. Why not use a 1920×1200 pixel image, theres is clearly…
user3288840
  • 69
  • 2
  • 7
1
vote
2 answers

what should be PSD file dimensions and resolution for Android app design

I am working on android application and want to make user interface in photoshop. App will support all screens ldpi to xxhdpi. What should be dimensions of psd file? I am searching for two days not achieve exact result. Should I make it 1280x720…
nikinci
  • 444
  • 6
  • 25
1
vote
2 answers

Test for high resolution laptop on low resolution laptop

The situation: Working on an adaptive website for my job. I've got the media queries and CSS adjusted properly for my 2012 non-retina macbook pro and for iphone retina screens. But, I was at Best Buy trying the new site on a macbook pro with retina,…
ahainen
  • 766
  • 1
  • 5
  • 12
1
vote
0 answers

Different screen size layout

After reading AndroidDev: Supporting Multiple Screens, I still wondering on multi-screen support. As document says: res/layout/my_layout.xml // layout for normal screen size ("default") res/layout-small/my_layout.xml // layout for…
RRTW
  • 3,160
  • 1
  • 35
  • 54
1
vote
5 answers

Where to store images in Android drawables folder?

I am working on Android application that should support 2.1 till latest Android OS (4.2) version. Currently I have few images to display in my image-gallery module. I need to support my app on all devices (smartphone and tablet) which support OS…
Rohit
  • 6,941
  • 17
  • 58
  • 102
1
vote
1 answer

is size related with screen density?

its the fist time I watch my app in a tablet, I always used mobiles. It's a nexus 7, and its not beauty. I ckecked adding a l, m, h and xh that it uses h density, but the button are small. the last button has the same width than the background but…
user1256477
  • 10,763
  • 7
  • 38
  • 62
1
vote
1 answer

Android scales hdpi image on hdpi device

I have noticed that all the images in my application seems to be smaller than originals. For example. I placed image on activity like this:
darja
  • 4,985
  • 9
  • 33
  • 47
1
vote
1 answer

Image fetch issue in multilingual app

I've developed a app which supports two languages English (en) & Spanish (es), to support multilingual I followed developer.android's link http://developer.android.com/training/basics/supporting-devices/languages.html I've put Spanish images in…
1
vote
0 answers

hdpi device choosing mdpi images

I'm new to android. Trying to figure out why this is happening with this: I have an image in a hdpi drawable folder that is not getting used. It's 1.5 times greater in size than the mdpi image both with the same name. I have a different layout for…
user1763170
  • 119
  • 1
  • 2
  • 13
1
vote
1 answer

how to design tablet ui with high resolution but less density screens?

I want the emulator to make use of the files present in the xhdpi folder and at the same time it should have low density. My emulator is set to a resolution of 1280 X 800 similar to motorola xoom tablet. Now if i keep a density of 149 ppi, android…
ashi
  • 63
  • 2
  • 10
1
vote
3 answers

When designing a UI interface for MDPI and HDPI ANdroid how do i beat the height issue?

Having designed an interface for HDPI in Fireworks (480x800) and now moving it over ready for an MDPI version (320x480) i've come across an issue Proportionally, the HDPI screen is slightly taller than the MDPI screen. I know my images will resize,…
1
vote
1 answer

Wrong layout is used on AVD of WVGA854 and 160dpi

There are two layouts: layout-sw480dp-hdpi and layout-sw480dp-mdpi An AVD of WVGA854 and density 160dpi On this AVD, my application always uses layout-sw480dp-hdpi, but not layout-sw480dp-mdpi. I think layout-sw480dp-mdpi should be used.