android - Create a scrollable LinearLayout without a ScrollView -
i spent part of day looking scrolling content in android. however, in app need apply custom type of scrolling contains among other things listview. listview has own scrolling , scrollview should never used list view together.
but there must intrinsic scroll functionality views. documentation on view indicate support methods provided not seem provide listeners detect scrolling.
a scrollview built on framelayout problematic in app.
you can make linearlayout scrollable with:
android:isscrollcontainer="true" but doesn't seem anything.
in fact can set scrollbars linearlayout:
android:scrollbars="vertical" but doesn't seem anything.
i don't want control scrolling rather have listener detects scrolling on screen regardless whether listview, framelayout or other control visible. guess looking writing own custom scrollview control without limitations of framelayout , unnecessary overhead don't need. suggestions?
on way resolve above problem have 2 scrollview, 1 outer scrollview contain view , other inner scrollview instead of listview , adding items inside linearlayout dynamically(inside inner scrollview)
Comments
Post a Comment