I have a scrollview, inside scrollview I have items and I want to pin some of them to top of the screen (Like stickyheaderListview) depend on scrollView scrollY . I have tried almost everything.
If I set my header item Y position to zero it changes position,but after that it is first item inside scrollView.
header.animate().y(0).setDuration(0).start(); // first attempt
header.setTop(0); // second attempt
header.animate().y(mScrollView.getLastItem().getBottom).setDuration(0).start();// third attempt
P.S
My goal is to make stickyheader list items inside scrollView I tried this library inside scrollview, but it does not worked, all items were scrolling usually