Thursday, September 22, 2011

Re: [android-developers] Re: RemoteViews + padding

Not that I am aware of, sorry.

On Thu, Sep 22, 2011 at 4:29 PM, b_t <bartatamas@gmail.com> 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 <mmur...@commonsware.com> 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 <bartata...@gmail.com> 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 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
>>
>> --
>> 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 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
>

--
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 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