You can set the layout_width in the xml file to x pixels to control
the width, use a TableLayout to add adjacent listviews, but it is a
small screen so it gets crowded in  a hurry.


                <ListView
                        android:id="@+id/listvw01"
                        android:layout_width="45px"
                        android:layout_height="250px"
                        android:typeface="serif"
                        android:textSize="32px"
                        android:paddingLeft="10px"
                        android:paddingRight="20px"
                        android:layout_marginTop="38px"
                        android:divider="#FFCC00"
                        />


intbt

On Nov 3, 1:47 pm, Kostya Vasilyev <kmans...@gmail.com> wrote:
> Mat,
>
> Not sure what kind of "content" a ListView uses for "wrap_content" width
> - maybe that's the root of this problem.
>
> Perhaps you can try, as a test, specifying fixed width for each of the
> list views, using "dp" units.
>
> If that works, take a look at layout_weight to automatically resize each
> list to 1/3 of the available width.
>
> -- Kostya
>
> 03.11.2010 2:06, Mat пишет:
>
>
>
> > Hi,
>
> > I'm looking for a way to put three ListViews side by side.
> > Documentation specify that ListView "displays a scrolling single
> > column list". As I'm a bit stubborn, I've done some tests but I only
> > manage to display one ListView which fill all the screen even if I use
> > "wrap_content" or if I put each ListView in a LinearLayout.
>
> > The final goal is to connect these ListViews together, clicking on an
> > item from the first will update the content of the second, and so on.
>
> > Should I user ScrollView instead ? For those who will say that three
> > ListViews won't fit in a mobile screen, I trying to make an
> > application for a tablet :)
>
> > Thanks in advance.
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

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