How do I specify image dimensions in dp for an Android Gallery?
Posted
by Richard
on Stack Overflow
See other posts from Stack Overflow
or by Richard
Published on 2010-04-17T00:05:41Z
Indexed on
2010/04/19
0:13 UTC
Read the original article
Hit count: 185
android
All the examples I've see for using the Gallery view in Android set a specific pixel size for the images using:
i.setLayoutParams(new Gallery.LayoutParams(200, 200));
Can someone give me an example of how to size a gallery image using XML so that I can use dp units?
Thanks!
© Stack Overflow or respective owner