Grid Layout Vs. Table Layout

后端 未结 7 2197
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 17:15

I am working on a booking engine android app like an airline booking system. To fetch the content of say all the available airlines specific to a passenger search, this is t

7条回答
  •  心在旅途
    2020-12-02 17:39

    Since android 4.0, there is such a thing as a GridLayout. GridLayout is always preferable to TableLayout. It provides all that you already have on TableLayout, and can replace other layouts too.

    It seems quite cool, and it seems that Google wish it to be as popular as the LinearLayout (according to their videos of Android 4.0).


    EDIT: if you have to show a lot of items, consider using RecyclerView with GridLayoutManager. This can help in terms of memory and CPU usage.

提交回复
热议问题