How does setting baselineAligned to false improve performance in LinearLayout?

后端 未结 3 943
青春惊慌失措
青春惊慌失措 2020-12-22 19:22

I was just building some UI in xml, and Lint gave me a warning and said to set android:baselineAligned to false to improve performance in ListView.

The docs for the

3条回答
  •  被撕碎了的回忆
    2020-12-22 19:56

    By setting android:baselineAligned="false" , you're preventing the extra work your app's layout has to do in order to Align its children's baselines; which can obviously increase the performance. (Fewer unnecessary operations on UI => Better performance)

提交回复
热议问题