erik
erik

Reputation: 4948

setting up dimens Nexus 5

my project currently just has one dimens file.. I know all my dimens look good on a nexus 5 which i believe has a dpi of 445 and a dpx of 3. My question is does that make it mdpi, hdpi, xhdpi? I am asking as i want to use this as the standard when i go ahead and make my other dimens files.

according to this graph: https://i.sstatic.net/1NXYH.png that would make it xxhdpi which seems wrong to me, especially since our dimens seem really small on a tab 4 which has a much bigger screen than the nexus 5.

Upvotes: 1

Views: 1387

Answers (1)

Jitin Jassal
Jitin Jassal

Reputation: 137

A set of six generalized densities: ldpi (low) ~120dpi mdpi (medium) ~160dpi hdpi (high) ~240dpi xhdpi (extra-high) ~320dpi xxhdpi (extra-extra-high) ~480dpi xxxhdpi (extra-extra-extra-high) ~640dpi

Since Nexus 5 has pixel density of 445 therefore it is xxhdpi

Read this android developer link

Also have a look at this question

Upvotes: 2

Related Questions