New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed height ChipsView does not scroll #8
Comments
For anyone else with issues of having a This SO worked for me, ensuring the surrounding |
Hey @jlindenbaum, |
Is there a way to disable the scroll? I have two chipViews and I only want to add chips for the second one while the first one only has one not editable chip In the meantime, I disabled with this http://stackoverflow.com/questions/18893198/how-to-disable-and-enable-the-scrolling-on-android-scrollview |
When setting the
layout_height
to a fixed height, instead ofwrap_content
it's not possible to scroll through the chips added.EDIT
It's easy to wrap the
ChipsView
in aScrollView
with a fixed height, and setting theChipsView
tomatch_parent
. This almost gives the desired result. An odd case where if the scroll view is not scrolled it is not possible to remove chips, the second "remove" tap is swallowed. A work around is tofullScroll(VIEW.FOCUS_DOWN)
on the containing scroll view each time a chip is added in theChipsListener
call back. This properly allows the removal of chips again.I stepped through this in the debugger a bit, and it's a difficult problem to express. If the
ChipsView
is contained in aScrollView
theunSelectChipsExcept()
function acts up. It always marks all chips as unselected, but the UI never updates to reflect that. The chip remains visually selected, but its selected flag is set to false. For whatever reason this is mitigated when theScrollView
is scrolled.The text was updated successfully, but these errors were encountered: