You can use LayoutParams of the enclosing view group (a nested class) to set
layout_ parametes of a view (setLayoutParams).

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

09.11.2010 21:39 пользователь "bobetko" <[email protected]> написал:

I tried another approach. I defined my RelativeLayout in XML exactly
the way I liked it. Then I used inflater and dynamically added my
RelativeLayout to ScrollView
It didn't work. It simply ignored all my XML settings.  For example,
it fully filled the parent (ScrollView) even though I explicitly
specified to WRAP_CONTENT in my XML file. All this seems to me very
very wrong...


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" ...

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