Managed to override setLayoutParams in my custom layout and i was able
to override the parameters specified in the layout xml.

On Oct 17, 1:15 pm, Ubuntu guy <[email protected]> wrote:
> Hello,
>
>    I'm developing a custom layout with a fixed width and i don't want
> the users of this custom layout to specify their own width. I was
> looking at an option to specify the width via setLayoutParams() in the
> constructor of the custom layout but without layout_width, i get a
> runtime exception indicating that layout_width is mandatory, even for
> a custom layout. ("You must supply a layout_width attribute").
>
>    Is there any way to achieve this?

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

Reply via email to