Hi Mark,

On May 21, 4:31 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> 2. It's also possible that you really need to adjust the height field of
> the LayoutParams for your ListView (obtained through getLayoutParams()),
> then call requestLayout(). Check out the Layout section of the View
> class documentation to see what I mean:

this is the one that works! Here a small code snippet:

AbsoluteLayout al = (AbsoluteLayout)
findViewById(R.id.attachment_layout);
ViewGroup.LayoutParams params = al.getLayoutParams();
params.height = 400;
al.requestLayout();

where the height is specified in "px"

Thanks!
Patrick
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to