cole
cole

Reputation: 21

what are correct sizes for navigation drawer header images?

I want to set an image as navigation drawer header image, but I don't know the correct sizes to fit all devices. What are the correct sizes in pixels?

Upvotes: 1

Views: 2204

Answers (2)

jmart
jmart

Reputation: 2931

From the answer given by Angad Singh to this question: Background image dimension for Navigation Drawer header, these are the dimensions:

  • mdpi: 384 x 216 px
  • hdpi: 576 x 324 px
  • xhdpi: 768 x 432 px
  • xxhdpi: 1152 x 648 px
  • xxxhdpi: 1728 x 972 px

Note that all sizes follow a 16:9 ratio, as requested by material design guidelines. The xxxhdpi could be optional, as the image could be too large and it seems not even Google uses this size in some of their apps (I'm not using it on my app either).

Upvotes: 4

e-shfiyut
e-shfiyut

Reputation: 3675

You can find navigation drawer specs here: https://www.google.com/design/spec/patterns/navigation-drawer.html

Upvotes: 0

Related Questions