Thursday, July 7, 2011

[android-developers] rounded corner // Shape Drawable (via xml) vs. PNG

Hi,


On stackoverflow I found a question about creating a rounded corner graphic.

http://stackoverflow.com/questions/1683185/android-listview-with-rounded-corners

The solution was to create a shape drawable via xml file.

My question: Why he/she recommends a shape drawable xml file and not a
png file (9-patch)? Why is a shape drawable better?

Ralph

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment