Anybody?
On Dec 28, 11:57 pm, androidian <[email protected]> wrote: > Hi, > > Can someone tell me how to use the ScaleDrawable class? In particular, > instantiating it. There is only one constructor: > > public ScaleDrawable(Drawable drawable, int gravity, float scaleWidth, > float scaleHeight) > > ...but it has no supporting javadoc documentation. What is the gravity > constant I must pass? I guess I want the drawable which is contained > in the ScaleDrawable to appear pretty much to the left of the canvas, > with perhaps a bit of padding. What should the scaleWidth and > scaleHeight values be? I know from the description of the class that > this is the right one for my purpose (to display a static, non-moving > progress-bar-like image) but I can't work out how to do this. Let's > say the view that contains this image is 150px x 30px and i want the > progress to show 1/3, how do I use ScaleDrawable to do this? > > cheers, > Ian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

