レイアウトファイルの場所のTextViewとボタンを使用しようとしています。Androidでウィジェットの行を配置する
Row 1: [ TextView (~2/3 of the screen) ] [ Button (~1/3 of the screen) ]
Row 2: [ TextView (~2/3 of the screen) ] [ Button (~1/3 of the screen) ]
Row 3: [ TextView (~2/3 of the screen) ] [ Button (~1/3 of the screen) ]
Row 4: [ TextView (~2/3 of the screen) ] [ Button (~1/3 of the screen) ]
Row 5: [ TextView (~2/3 of the screen) ] [ Button (~1/3 of the screen) ]
.....
これを行う方法は混乱しています。 TableLayoutまたはRelativeLayoutsでそれを行うことはできますか?私はXMLの使い方が分からないので、サンプルコードを誰かに見せてもらえますか?あなたのお手伝いをしてくれてありがとう!
これを明確にするために、これはListViewの行レイアウトになります。 – Brandon
ごめんなさいListViewが何であるか分かりません。 1つのListView全体で複数のLinearLayoutsを持つことになりますか? – lordmarinara
@ordmarinara私は使用法の詳細については私の答えを更新しました。 – ocanal