ConstraintLayoutPerformanceTest
ConstraintLayoutPerformanceTest copied to clipboard
Ensure the layout xml's match
A few updates need to be made to properly measure performance between these ViewGroups:
- Update the
ImageView's inConstraintLayoutto have the samescaleTypeas the other two layouts. Currently both theRelativeLayoutandLinearLayoutusecenterCrop. - Update the first, ie main,
ImageView's in both theConstraintLayoutand theLinearLayoutto use the same src; I'm assuming we want to use sample_03 based on your blog post. - Update the
TextView's in theConstraintLayoutto have the proper text, it's currently missing, as well as text color, text size, backgrounds, line counts, ellipsize. - Update the
ImageViews in theConstraintLayoutto have the correct sources, it looks like a bunch of them are set to the same src, as well as padding, tint, etc.
When done can you re-measure performance and update your blog post? I'm really curious what the results would be.