1

I am working on a big application , and I have to use a lot of nested layouts especially LinearLayout . some times android studio warn me about using a lot of (weight) attribute , I am just wondering , does using a lot of nested layouts will make the application slower ?

maysara
  • 5,873
  • 2
  • 23
  • 34

1 Answers1

2

I would say yes, especially in the older devices with limited hardware capabilities. Take a look for instance at:

https://developer.android.com/training/improving-layouts/optimizing-layout.html

Simpler layouts means less work to do in the UI thread in order to draw it therefore your app will be faster and more responsive.

Lino
  • 5,084
  • 3
  • 21
  • 39