Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
3 列 3 行のグリッドと、各セル (セルの中央) に画像ボタンを配置したいと考えています。
gridview で試してみましたが、行数を修正できません。tablelayout と 3 つの tablerows を試しましたが、実行時に幅と高さを変更できません
何か案は?
テーブルレイアウトを使用している場合は、各 ImageButton で次の操作を行うだけです。
this.setPadding(0, 0, 0, 0); this.setScaleType(ScaleType.CENTER_INSIDE);