I have a constraintlayout with too many views (atleast 50+) in it. Now it is getting difficult to manage the xml code as it exceeds 1000 lines. I am trying to use tags to divide the code in multiple layouts as mentioned in this post but in tag it does not hold the constraints as views are dependent on other views or parent. So other approach is to use nested constraint layouts as mentioned in this post. So i have two questions:
1- How to use tag with constraintlayout and keep constraints intact?
2- Or use nested constraint layouts? But it think it kills the purpose of having flat view hierarchy