gpt4 book ai didi

android - LinearLayout 内的 GridLayout

转载 作者:行者123 更新时间:2023-11-30 01:29:54 25 4
gpt4 key购买 nike

由于某些复杂的要求,我想将 Gridlayout 放在 LinearLayout 中。我的问题是,推荐吗?如果是这样如何正确地做到这一点?

最佳答案

是否推荐?

From Optimizing Layout

  • Deep layouts - Layouts with too much nesting are bad for performance. Consider using flatter layouts such as RelativeLayout or GridLayout to improve performance. The default maximum depth is 10.

  • Use compound drawables - A LinearLayout which contains an ImageView and a TextView can be more efficiently handled as a compound drawable.

关于android - LinearLayout 内的 GridLayout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35889349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com