LoginSignup
1
1

More than 3 years have passed since last update.

code上でConstraintLayoutを利用したときに `All children of ConstraintLayout must have ids to use ConstraintSet` でクラッシュ

Last updated at Posted at 2019-06-11

小ビューにidをふることで解決した

 (0 until constraintLayout.childCount).forEach {
        constraintLayout.getChildAt(it).id = View.generateViewId()
 }
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1