ThatCakeID / os-thm-android

Open Source Global Theme Manager for Android
https://os-thm.thatcakeid.com
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

Change constraints to linears for more flexibility #45

Open ryenyuku opened 3 years ago

ryenyuku commented 3 years ago

Current version is very heavy at inflating views because of constraintlayout.

iyxan23 commented 3 years ago

Well, First of all, i appreciate your idea of using LinearLayout instead of ConstraintLayout with the reason "too heavy to inflate". You know, ConstraintLayout is a new thing, it's purpose is to allow you to position all of your children without having to nest any other ViewGroups inside the ConstraintLayout. It makes development faster and easier, even if it is a bit heavier than LinearLayout you will only need 1 ConstraintLayout to make a whole layout, but with LinearLayout you will need to nest it over other LinearLayouts to create a complex UI, not only will it take longer to create, but it also consumes more memory and that leads into performace issue. And by that being said, ConstraintLayout is slowly becoming a standard for most android layouts.