0
A
答えて
0
にGridViewの同様のは、複数のビューの所有者にカスタムアダプタを作成したいですその後、リンクはより役に立つかもしれません以下、あなたのデザインに応じてhttps://guides.codepath.com/android/Heterogenous-Layouts-inside-RecyclerView
0
この
http://www.theappguruz.com/blog/learn-recyclerview-with-an-example-in-android
みをビューを膨らませますは、このコードスニペットを試してみて、あなたがこの
よろしく
0
を探しているホープ:
<GridLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alignmentMode="alignBounds"
android:columnCount="2"
android:columnOrderPreserved="false"
android:useDefaultMargins="true"
>
<Button
android:layout_rowSpan="2"
android:layout_column="0"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:layout_row="0"
android:text="Button 1" />
<Button
android:layout_gravity="fill"
android:layout_column="1"
android:layout_columnWeight="0.5"
android:layout_row="0"
android:text="Button 2" />
<Button
android:layout_gravity="fill"
android:layout_column="1"
android:layout_row="1"
android:text="Button 3" />
<Button
android:layout_gravity="fill"
android:layout_column="0"
android:layout_row="2"
android:text="Button 4" />
<Button
android:layout_gravity="fill"
android:layout_column="0"
android:layout_row="3"
android:text="Button 5" />
<Button
android:layout_gravity="fill"
android:layout_column="1"
android:layout_row="2"
android:layout_rowSpan="2"
android:text="Button 6" />
<Button
android:layout_gravity="fill"
android:layout_column="0"
android:layout_row="4"
android:layout_rowSpan="2"
android:text="Button 7" />
<Button
android:layout_gravity="fill"
android:layout_column="1"
android:layout_row="4"
android:text="Button 8" />
<Button
android:layout_gravity="fill"
android:layout_column="1"
android:layout_row="5"
android:text="Button 9" />
</GridLayout>
関連する問題
- 1. バインドリピータ項目とデータ項目
- 2. のTextView項目の高さ
- 3. メニュー項目の高さ
- 4. Jquery Sortable - 必須項目とオプション項目
- 5. リストビュー項目と画像リスト項目missmatching
- 6. 同一の項目
- 7. 第3のクリックダウンメニュー項目が表示されない
- 8. 複数の項目をテキスト項目に重複項目を追加する
- 9. optionSplit、中項目と一致
- 10. 項目
- 11. 項目
- 12. PHPで2番目と3番目に高い値と最後の項目を選択するMySQLクエリ
- 13. 項目が
- 14. UIPickerView項目が
- 15. 項目テンプレートが
- 16. ポジショニングフレックス項目が
- 17. メニュー項目が
- 18. タブバー項目が
- 19. Rails 3.単一項目のクエリ
- 20. 項目が動的であるListViewの項目を更新したい
- 21. Doctrine 2:選択項目のタイプ別選択項目
- 22. 項目2回目のクリックで更新
- 23. RSS項目に
- 24. MVVMを使用したコンテキストメニュー項目のWPF +バインディングコマンドと項目
- 25. カスタム3項目ListViewアダプタ
- 26. Rails 3 - Dynamic Menu項目
- 27. リストビューの動的項目の高さ
- 28. Silverlightのコンボボックスヌル項目の高さ
- 29. XMLパーサ、一つの項目
- 30. Wagtail StreamFieldの単一項目
使用スタッガードグリッドビューを。 – Ankita