[android-developers] Re: Setting height of ListView dynamically in run-time

2008-05-21 Thread Mark Murphy
patrick wrote: > I want to set the height of a ListView during run-time of my > application. It seems that setPreferredHeight(int) doesn't do this job > and I can't find any similar function. I haven't tried this, but here are two ideas: 1. It's possible you need to call requestLayout() on the L

[android-developers] Re: Setting height of ListView dynamically in run-time

2008-05-21 Thread patrick
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