menu
書いてる野郎
orebike@gmail.com
2012-03-23
ズラズラ並べるにはLinearLayoutを使うLinearLayout | Android Developers
横にズラズラ並べるにはandroid:orientation
属性にhorizontal
を指定する。
<LinearLayout ... android:orientation="horizontal" > <Hoge /> <Hoge /> <Hoge /> </LinearLayout>
内容要素が画面の幅を超えた場合はそのまま画面外に突き抜けていく。途中で勝手に折れたりしない。
縦にズラズラ並べるにはandroid:orientation
属性にvertical
を指定する。
<LinearLayout ... android:orientation="vertical" > <Hoge /> <Hoge /> <Hoge /> </LinearLayout>