Android Question Icons sizes?

U

unba1300

Guest
Hi. So far, I've made all my buttons BitmapDrawables in the Designer and put the PNG files in the Files folder. But now I read in the book about using four different subfolders and sizes of PNG files. Someone else posted though not to bother and just use 48 x 48 size. Any opinions on what would be better? And if I did use four different sizes and subfolders, which one would I choose after clicking Add Image in the Designer? Thanks.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can use the same high resolution image with all devices. In most cases it will look good on all devices.

The second option is to use Android resources mechanism and create the folders and then load the drawables with this library: http://www.b4x.com/android/forum/threads/33762/#content

Android will choose the folder based on the current device scale.

I recommend you to start with the first approach and see whether it fits your requirements.
 
Last edited:
Upvote 0
U

unba1300

Guest
If I stick with one size fits all then, which size would be best? The book recommends 48 x 48, but I haven't seen any negative effects from using 128 x 128. Thanks.
 
Upvote 0
U

unba1300

Guest
I have two buttons, both 48 x 48, and loaded one with a 48 x 48 png image and the other with the 96 x 96 version of the same image (both in the Files folder). Yet the 96 x 96 version looks much better downscaled to fit the 48 x 48 button than the other 48 x 48 size image.
It leaves me reluctant to use the 48 x 48 size png images. Or is this an absolute requirement for mdpi devices?
 
Upvote 0
U

unba1300

Guest
Thanks Erel, but do you know if Google Play will accept this approach? Thanks.
 
Upvote 0
Top