Hard code the LinearLayout's height, not the ListView

On Thursday, 6 September 2012 09:39:19 UTC+3, tvdalia wrote:
>
>
> Calin, hardcoding my ListView layout_height="200dp" gave the results. // 
> 100dp was too small so made 200
>
> But I use the method to create various items of List - their maybe just 2 
> items or 20. If I made it 200dp, then the list that has just 2 items was 
> shown big with extra space below. If I made it 100dp, then the items with 
> 200 was showing too small & it can be made bigger. 
>
> In such situation what to do to handle the situation !!!!
>
>
> On Thursday, 6 September 2012 01:13:55 UTC+5:30, Calin Perebiceanu wrote:
>>
>> Use layout_height="100dp" in the layout xml
>
>

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