Skip to content

Instantly share code, notes, and snippets.

@GRizzi91
Last active August 2, 2021 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GRizzi91/6266340fdcc06510b674dfaec0c130de to your computer and use it in GitHub Desktop.
Save GRizzi91/6266340fdcc06510b674dfaec0c130de to your computer and use it in GitHub Desktop.
ExpandableStackView
for (i in 0 until adapter.count) {
val view = adapter.getView(i, null, this)
view.id = View.generateViewId()
startSet.constrainHeight(view.id, ConstraintSet.WRAP_CONTENT)
endSet.constrainHeight(view.id, ConstraintSet.WRAP_CONTENT)
connectViewToParent(startSet, view)
connectViewToParent(endSet, view)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment