Android listview doesn't expand all -
this design:
<?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <listview android:id="@+id/listview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_margintop="10dp" android:divider="#88888888" android:dividerheight="0dp" /> </linearlayout> </scrollview>
my problem listview can't expand items, want see items in listview.
use inside java code
mlistview.setontouchlistener(new view.ontouchlistener() { // setting on touch listener handling touch inside // scrollview @suppresslint("clickableviewaccessibility") @override public boolean ontouch(view v, motionevent event) { // disallow touch request parent scroll on touch of // child view v.getparent().requestdisallowintercepttouchevent(true); return false; } });
Comments
Post a Comment