2012-11-18から1日間の記事一覧
目的 画面の全体にmarginをセットする 下地にはRelativeLayoutを使う その上にLinearLayoutをのせる point ViewGroup#setMargins() ViewGroup#MarginLayoutParams android.view.ViewGroup.MarginLayoutParams marginParams = (MarginLayoutParams)liConteine…
目的 TableLayoutを使う Button[] を12個配置する point TableLayoutのインスタンスに行インスタンス TableRowを追加 行インスタンスにボタンを配置 TableLayout table = new TableLayout(context); //forループ TableRow row = new TableRow(context); //Ta…