Try removing the paddingTop=10 lines On 2013-01-23, at 7:03 PM, John Merlino <[email protected]> wrote:
> I have an xml layout with a listview item in it that looks like this: > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:background="#F7681D" > android:clickable="false" > android:orientation="vertical" > android:paddingLeft="10dp" > android:paddingRight="10dp" > android:paddingTop="10dp" > android:scrollbars="vertical" > android:weightSum="1" > > > <RelativeLayout > android:id="@+id/relativeLayout1" > android:layout_width="fill_parent" > android:layout_height="0dp" > android:layout_above="@+id/linearLayout1_ref" > android:layout_alignLeft="@+id/linearLayout1" > android:layout_below="@+id/linearLayout1" > android:layout_weight="0.93" > android:background="@drawable/bg" > android:paddingBottom="10dp" > > > <LinearLayout > android:id="@+id/title_layout" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_alignParentTop="true" > android:background="@drawable/topbox" > > </LinearLayout> > > > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="" > android:id="@+id/time" > /> > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="" > android:id="@+id/alert"/> > > <ListView > android:id="@+id/SCHEDULE" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:layout_below="@+id/title_layout" > android:layout_margin="0dp" > android:background="@android:color/white" > android:cacheColorHint="#00000000" > android:divider="@android:color/transparent" > android:fadeScrollbars="false" > android:paddingLeft="5dp" > android:paddingRight="5dp" > android:paddingBottom="2dp" > android:paddingTop="2dp" > android:scrollbarSize="2dp" > android:scrollbarStyle="insideOverlay" > android:scrollbarThumbHorizontal="@drawable/ > scrollingbar_thumbb" > android:scrollbarTrackVertical="@drawable/ > scrollingbar_trackk" > > > </ListView> > </RelativeLayout> > > For some reason each of the items contain a huge space vertically > between them. And I am not sure how I can bring the items closer > together to look like a proper list. > > -- > 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 -- 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

