I'm using ConstraintLayout in most of my layouts, and I want to know what's the best practice in the performance aspect:
- Using a guideline as a view's limit, including as a margin limit.
Example: 4 guidelines
in total, no margins
.
- Using a view margin, which will result in less accurate spacing, because I will need to insert an arbitrary number of dps.
example: 2 guidelines
in total, 2 margins (top + bottom)
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
If you have another option, I will be happy to read it. Also, I would like to know how to track performance of layout configuration such as this (where have you looked / what have you used to give me the answer).
Thanks.