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 <[email protected]> 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 [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

