Android: creating two columns in a linearlayout

后端 未结 7 2314
囚心锁ツ
囚心锁ツ 2020-12-13 02:08


        
7条回答
  •  情话喂你
    2020-12-13 02:44

    A potential issue with just having two vertical LinearLayouts for you columns is that nothing ensures rows will line up if row heights are variable. TableLayout is best for this, and also gives you a bunch of control on how columns shrink or grow to fill available space.

    The link has changed since @santhosh-shettigar posted.
    Guide: https://developer.android.com/guide/topics/ui/layout/grid.html
    Reference: http://developer.android.com/reference/android/widget/TableLayout.html

提交回复
热议问题