Try doing this:

<ListView
    android:layout_height="0dp"

    android:layout_weight="1"
    />

Got it from here:
http://stackoverflow.com/questions/4300170/listview-ignoring-wrap-content



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


On Thu, Sep 6, 2012 at 6:09 AM, tvdalia <truptida...@gmail.com> wrote:

>
> Calin,
>
>     Made LineatLayout layout_height - 150dp & ListView's height =
> match_parent. Unfortunately, no success. Infact the result was same as
> shown above. Also tried ListView height as wrap_content, both show same
> results as show above.
>
>
>     <LinearLayout xmlns:android="
> http://schemas.android.com/apk/res/android";
>         android:layout_width="match_parent" android:layout_height="150dp"
>         android:orientation="vertical" android:id="@+id/genListLayId"  >
>         <TextView android:id="@+id/genListTitTv"
> style="@style/inResultTitleStyle"
>             android:text="" />
>
>         <ListView android:id="@+id/genList"
> android:layout_width="match_parent" android:layout_height="match_parent"
>               android:dividerHeight="0dp" android:divider="@null"
> android:layout_marginLeft="10dp" />
>     </LinearLayout>
>
>    Oh godness, how to make this work now ???
>
>
>
> On Thursday, 6 September 2012 12:49:29 UTC+5:30, Calin Perebiceanu wrote:
>>
>> Hard code the LinearLayout's height, not the ListView
>>
>>
>>  --
> 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