The parent of the ListView should be Linear Layout, just ensure that,
and it should work.

But I suspect that what you want is really not what this will give
you. If you can be more specific, that would help.

-Kumar Bibek
http://techdroid.kbeanie.com

On Oct 1, 1:48 pm, Rocky <rkjhaw1...@gmail.com> wrote:
> hi Bibek,
>
> still same problem,
>
> <ListView android:id="@+id/ListView01"
>              android:layout_height="wrap_content"
>              android:layout_weight="1"
>              android:layout_width="fill_parent">
>          </ListView>
>
> or
>
> <ListView android:id="@+id/ListView01"
>              android:layout_height="fill_parent"
>              android:layout_weight="1"
>              android:layout_width="fill_parent">
>          </ListView>
>
> is i'm writing right way of weight.
>
>
>
> On Fri, Oct 1, 2010 at 1:25 PM, Kumar Bibek <coomar....@gmail.com> wrote:
> > Try weight parameter in a LinearLayout. That should solve your
> > problem.
>
> > -Kumar Bibek
> >http://techdroid.kbeanie.com
>
> > On Oct 1, 11:56 am, Rocky <rkjhaw1...@gmail.com> wrote:
> > > Hi Bibek,
>
> > > if i'm using fill_parent, also it fill entire screen, and my bottom
> > button
> > > goes off, (footer button not showing that case)
>
> > > is any dynamic approach, thr that i can set the height according to
> > device,
> > > in java file (coding)
>
> > > --RKJ
>
> > > On Fri, Oct 1, 2010 at 12:14 PM, Kumar Bibek <coomar....@gmail.com>
> > wrote:
> > > > Wrap_content is not suitable for listview's height. AFAIK.
>
> > > > Either you set the height, or allow it to expand, by setting
> > > > fill_parent
>
> > > > -Kumar Bibek
> > > >http://techdroid.kbeanie.com
>
> > > > On Oct 1, 11:08 am, "RKJ (Android developer)" <rkjhaw1...@gmail.com>
> > > > wrote:
> > > > > Hi Techie,
>
> > > > > I'm facing a problem in height of ListView (in my list i'v some time
> > 1
> > > > > item or some times 20-30 items)
>
> > > > >                 <ListView android:id="@+id/ListView01"
> > > > >                          android:layout_height="330px"
> > > > >                          android:layout_width="fill_parent">
> > > > >                  </ListView>
>
> > > > > Here I want
> > > > > android:layout_height = " wrap_content"
>
> > > > > or
>
> > > > > android:layout_height = "fill_parent"
>
> > > > > but in both the case lower part of button is not showing, if i fix
> > > > > height=330px, den its comming appropriately in my emumlator,
>
> > > > > i want height should be dynamic, wrap_content
>
> > > > > so please help me, how to fix the height of list view according to
> > > > > devices, so that it will fit in any devices,
>
> > > > > thaanks
>
> > > > > __RKJ
>
> > > > --
> > > > 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<android-developers%2bunsubscr...@googlegroups.com>
> > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com>
>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Thanks & Regards
>
> > > Rakesh Kumar Jha
> > > Software Developer
> > > Symphony Services Corp (India) Pvt Ltd
> > > Bangalore
> > > (O) +918030273740
> > > (R) +919886336619
>
> > --
> > 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<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Thanks & Regards
>
> Rakesh Kumar Jha
> Software Developer
> Symphony Services Corp (India) Pvt Ltd
> Bangalore
> (O) +918030273740
> (R) +919886336619

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