i have layout 1 layout inside of inside scrollview. trying whole screen scroll content inside of listview textviews underneath listview. whole listview populate , show correctly bottom layout textviews not show up.
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <include android:id="@+id/app_bar" layout="@layout/app_bar" /> <scrollview android:layout_width="match_parent" android:layout_height="match_parent" android:fillviewport="true" android:layout_below="@id/app_bar"> <relativelayout android:layout_width="match_parent" android:layout_height="match_parent" android:padding="10dp"> <imageview android:id="@+id/bannerreceiptlogo" android:layout_width="170dp" android:layout_height="75dp" android:layout_centerhorizontal="true" android:layout_margintop="30dp" android:background="@drawable/img_logo_receipt_cub" /> <textview android:id="@+id/banneraddressheader" android:layout_width="200dp" android:layout_height="wrap_content" android:layout_below="@id/bannerreceiptlogo" android:layout_centerhorizontal="true" android:layout_margintop="10dp" android:text="@string/storeheader" android:textalignment="center" android:textsize="18sp" /> <listview android:id="@+id/fullereceiptlistview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/banneraddressheader" android:layout_margintop="10dp" android:scrollbars="none"/> <relativelayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_below="@id/fullereceiptlistview" android:layout_weight="1"> <view android:id="@+id/totaldivider" android:layout_width="match_parent" android:layout_height="3dp" android:background="@color/colorgrey" /> <textview android:id="@+id/txtsubtotal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="subtotal" android:textsize="20sp" android:layout_below="@+id/totaldivider"/> <textview android:id="@+id/txtsubtotalfinal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="$13.58" android:layout_alignparentright="true" android:textsize="20dp" android:layout_below="@+id/totaldivider"/> <textview android:id="@+id/txttaxtext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="tax" android:textsize="20sp" android:layout_below="@+id/txtsubtotal"/> <textview android:id="@+id/txttaxtotal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="$0.80" android:layout_alignparentright="true" android:textsize="20dp" android:layout_below="@+id/txtsubtotalfinal"/> <textview android:id="@+id/txtcompletetotal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="total" android:textsize="20sp" android:layout_below="@+id/txttaxtext"/> <textview android:id="@+id/txtcompletetotalnumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="$14.38" android:layout_alignparentright="true" android:textsize="20dp" android:layout_below="@+id/txttaxtext"/> </relativelayout> </relativelayout> </scrollview> </relativelayout>
do not put listview
inside scrollview
. listview
widget scrollable. see nestedscrollview
support library.
Comments
Post a Comment