scrollview 내부에 scrollview가 있습니다. 항목이 있고 그 중 일부를 화면 맨 위에 고정하고 싶습니다 (scrollableListener와 유사) scrollView에 의존합니다. scrollY. 나는 거의 모든 것을 시도했다.scrollview 내부의 뷰 위치를 변경하여 화면 상단에 고정하는 방법은 무엇입니까?
내 머리글 항목 Y 위치를 0으로 설정하면 위치가 변경되지만 이후에는 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
PS
내 목표는 내가있는 ScrollView 안에이 library 시도있는 ScrollView 내부 stickyheader 목록 항목을 만드는 것입니다,하지만이 일을하지 않는, 모든 항목은 일반적으로 잘