WRAP_CONTENT will make your height depend of the number of items you have
> in the list.You should use a hard coded layout_height
>
This is true (I should have thought of that).  But, if you have a listview
with lots of items WHY do you not want the dialog to take up as much room
as it needs to?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 1:49 AM, tvdalia <truptida...@gmail.com> wrote:

> Calin,
>    For hard coded layout_height, how to figure out that. I can have the
> MainBody's height, but how do I set it as hard coded something like "300dp"
> or so.
>      I believe I will have to do that in createAlertDialog() - due to
> different screen sizes, right. I gave this line in method below
> layoutInflater.inflate...
>
>> view.setLayoutParams(new
>> ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, 100));
>>
>
>   But yet I see the same results. 100 was given just for testing and
> nothing specific.
>
>  How & Where to set that ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to