私は4つの列と4つのボタンを持っています。私はそれがすべての行に私はそれが欲しいようにそれらを得たが、それらは一緒にすべてscrunchedされています。とにかくレイアウトにスペースがあるようにするにはどうしますか?列の間隔を取得するandroid sdk
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="4">
<TableRow>
<Button
android:layout_column="1"
android:id="@+id/Button01"
android:onClick="OnClick"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/Button01">
</Button>
<Button
android:layout_column="2"
android:id="@+id/Button02"
android:onClick="OnClick"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/Button02">
</Button>
<Button
android:layout_column="3"
android:id="@+id/Button03"
android:onClick="OnClick"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/Button03" >
</Button>
<Button
android:layout_column="4"
android:id="@+id/Button04"
android:onClick="OnClick"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/Button04" >
</Button>
</TableRow>
</TableLayout>
この質問もご覧ください:http://stackoverflow.com/questions/4662038/how-to-separate-icons-from-eachother-android – Stephan
スペースに「空白」の列を追加することに同意するのがベストです! – FROSTYSMOOTH