How do I specify image dimensions in dp for an Android Gallery?
- by Richard
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!