Tuesday, February 7, 2012

[android-developers] Re: imageButton and weight

Solved:

imgButton.setLayoutParams(new
TableRow.LayoutParams(LayoutParams.wrap_content,LayoutParams.wrap_content,
1f));

Tha last parameter is the weight.

Rocco

On 7 Feb, 09:57, pidduweb <rocco.pirre...@gmail.com> wrote:
> Hi all,
>   i want to set at runtime the layout weight of an imageButton, but i
> not found any method setWeight, any one can help me?
>
> Thanks
> Rocco

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate