For a limited set of padding values, you could use different layouts (using <include> and <merge> to reuse the XML and reduce the total size taken in the APK).
This might not be as flexible as some users would like, but then again, I'm sure _some_ would not be happy with integer padding values and demand fractional padding anyway :) :) :) -- Kostya 2011/9/23 Mark Murphy <[email protected]>: > Not that I am aware of, sorry. > > On Thu, Sep 22, 2011 at 4:29 PM, b_t <[email protected]> wrote: >> Hi, >> >> Sorry, I mean I would like to change it runtime. >> It would be fine if my users could customize my widgets by changing >> paddings. >> >> So when I update my widges I would like to call >> >> remoteViews.setInt(viewId, "setPadding", getIntPreference("padding")); >> >> or >> >> remoteViews.setViewPadding(viewId, getIntPreference("padding")); >> >> Can it be done somehow? >> Thanks, >> Tamás >> >> >> On Sep 22, 9:59 pm, Mark Murphy <[email protected]> wrote: >>> You can specify it in the layout file you hand to the RemoteViews, but >>> I don't see off the top how you would change it via Java code. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> On Thu, Sep 22, 2011 at 3:47 PM, b_t <[email protected]> wrote: >>> > Hi, >>> >>> > Is there any way to set padding using RemoteViews? >>> >>> > It would be fine if there were a method like >>> >>> > remoteViews.setInt(viewId, "setPadding", resourceId); >>> >>> > or >>> >>> > remoteViews.setInt(viewId, "setPaddingLeft", resourceId); >>> >>> > Tamás? >>> >>> > -- >>> > 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 >>> >>> -- >>> Mark Murphy (a Commons >>> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy >>> >>> Warescription: Three Android Books, Plus Updates, One Low Price! >> >> -- >> 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 >> > > > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! > > -- > 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 -- 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

