How to find out the preferred icon size for MenuItem?

In my application, I have one large PNG file containing a hi-res image. Depending on the situation, I would like to use this image either as an icon or as a placeholder for ImageView.

For MenuItem, this image is too large, so I need to scale it to a suitable size. I mean, if it should be displayed on a sufficiently large device such as the Samsung Galaxy Tab - I need to use one scale, for small ones - etc. I just noticed that for small devices, the MenuItem icon does not scale just cut - which is ugly.

So the question is how to determine which one is preferred?

+3
source share

Source: https://habr.com/ru/post/1785218/


All Articles