I’m trying to set the left padding programmatically of my ImageView,
to be scalable I want to use dp (dip) pixels.  I‘ve found the method
iv.setPadding(10, 0, 0, 0) but I think this only allows me to use
regular pixels. Does anyone know a way to set padding in dp
programmatically? It’s easy in XML.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to