android - Tie the line to the end of ListView -
android - Tie the line to the end of ListView -
in eclipse looks good, on device between line , listview have big distance. how remove distance between list , line? here xml layout:
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/gradient" android:orientation="vertical" > <textview android:id="@+id/reminder" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" /> <view android:layout_width="match_parent" android:layout_height="6dp" android:background="@drawable/line_top" android:layout_marginleft="20dp" android:layout_marginright="20dp" android:layout_margintop="18dp" /> <listview android:id="@+id/mainlist" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="20dp" android:layout_marginright="20dp" android:layout_weight="0.91" > </listview> <view android:layout_width="match_parent" android:layout_height="6dp" android:background="@drawable/line_bottom" android:layout_marginleft="20dp" android:layout_marginright="20dp" android:layout_margintop="18dp" android:layout_marginbottom="18dp" /> </linearlayout>
!
you have set margin_top="18dp" within view. remove layout weight have set listview.
android xml eclipse listview distance
Comments
Post a Comment