Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Action bar Icon not fit like other android icons

I'm Making andriod application, every thing is going well, but when I use a large images for action bar , android platform does not fit the size of action bar, the Icon appear very large , so how can set width and heights of icons in action bar in android

like image 906
Amira Elsayed Ismail Avatar asked Jan 14 '23 08:01

Amira Elsayed Ismail


2 Answers

I hope you have read Action Bar Icons document, because document already contains sizes of icons.

enter image description here

Anyway, here is the Android Asset Studio tool which would help you to generate Action bar icons.

like image 158
Paresh Mayani Avatar answered Jan 20 '23 21:01

Paresh Mayani


I have solved this problem by making dim files for each density according to android standard, and when receive the images from the server re-size them with the corresponding dim value and then add them to my action bar

like image 30
Amira Elsayed Ismail Avatar answered Jan 20 '23 23:01

Amira Elsayed Ismail