I have created a simple CollapsingToolbarLayout and it works like a charm. My problem is, that if I try to use a fling scroll on the nestedscrollvie
Am just posting this here so that others do not miss it in Comments. The answer by Jinang works beautifully, but kudos to AntPachon for pointing out a far simpler method for the same. Instead of implementing an OnClick
method on the Child of the NestedScrollView
programatically, a better way is to set clickable=true
in the xml for the child.
(Using the same example as Jinang's)