how can use sizes of icons put in items of action bar?
e.g. if put width 50dp left/right margins 5 behave same in devices?
recommended approach determining correct sizes when adding custom icons menu items in action bar?
the official documentation says
action bar icons should 32-bit pngs alpha channel transparency.
the finished action bar icon dimensions, corresponding given generalized screen density, are:
- ldpi: 18 x 18 px
- mdpi: 24 x 24 px
- hdpi: 36 x 36 px
- xhdpi: 48 x 48 px
to generate drawable densities, including xxhdpi , xxxdpi, can use android asset studio.
Comments
Post a Comment