I am currently working with recyclerView and cards.
I have a cards layout. Now i want to add scrollview inside the cards is that possible. If yes then how ? The brown layout is the recycler view layout while the blue layout is the cards layout. Inside each card i need a scrollview is that possible ?
I am not sure if this will work but you can try this
This can be acheived like this
//For scrollView
scrollView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
// Disallow the touch request for parent scroll on touch of child view
view.getParent().requestDisallowInterceptTouchEvent(false);
return true;
}
});
see if this helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With