Android Listview Inside Viewpager Fragement- No Scroll
I am trying to create a ListView inside a Viewpager. ViewPager is using Fragements. So ListView is inside the Fragement. My Listview is not scrolling, although in Listview onitmcl
Solution 1:
Set the height of your ListView to wrap_content
android:layout_height = "wrap_content"
When you fix the height, it won't scroll.
EDIT
Also remove this section:
lvalltourney.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
lvalltourney.getParent().requestDisallowInterceptTouchEvent(
true);
int action = event.getActionMasked();
switch (action) {
case MotionEvent.ACTION_UP:
lvalltourney.getParent()
.requestDisallowInterceptTouchEvent(false);
break;
}
returnfalse;
}
});
Post a Comment for "Android Listview Inside Viewpager Fragement- No Scroll"