ActionBar Menu Items Icon sizes are not working properly Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of ActionBar Menu Items Icon sizes are not working properly without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I have re-sized the icon according to drawables like: 32px, 48px,96px, etc.

But when running the app it is showing the bigger image. Is there anything else that I have to do?

Thank you.

Answer

The correct size for ActionBar menu icons:

drawable-ldpi - 16 × 16 area in 16 × 16

drawable-mdpi - 24 × 24 area in 32 × 32

drawable-hdpi - 36 × 36 area in 48 × 48

drawable-xhdpi - 48 × 48 area in 64 × 64

drawable-xxhdpi - 72 × 72 area in 96 × 96

drawable-xxxhdpi - 96 × 96 area in 128 × 128 

The first number is the size of the icon area, and the second is file size.

We are here to answer your question about ActionBar Menu Items Icon sizes are not working properly - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji