1
  • I clicked "Infer Constraints"
  • My Text views were fine but my Button and EditText views' layout height and width are automatically set to 0dp, rendering them invisible.
  • I'm not sure if it's a bug or just a natural effect of this feature
June
  • 15
  • 5

1 Answers1

0

0dp is not a bug, it means match_constraints; so android studio tries to infer the constraints according to how you laid out your views with relation to each other and to the parent ConstraintLayout.

For more info check here

Zain
  • 37,492
  • 7
  • 60
  • 84