0
A
回答
4
可以使用的LinearLayout與水平方向:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:weightSum="2" >
<android.support.v7.widget.CardView
android:id="@+id/card_viewLeft"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginRight="5dp"
android:layout_weight="1" />
<android.support.v7.widget.CardView
android:id="@+id/card_viewRight"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="5dp"
android:layout_weight="1" />
</LinearLayout>
相關問題
- 1. 並排排列兩個NSArrays
- 2. 將兩個並排
- 3. 兩個Div並非並排排列
- 4. 並排顯示兩個TableLayouts
- 5. 居中兩個並排ImageViews
- 6. Yii2兩個DetailView並排
- 7. 並排對齊兩個div
- 8. CSS:兩個輸入並排
- 9. 兩個視頻並排
- 10. 並排放置兩個div
- 11. 兩個流體div並排
- 12. 兩個並排按鈕
- 13. CSS兩個div並排
- 14. 居中兩個並排div
- 15. 對齊兩個錨並排
- 16. Android - 兩個ImageViews並排
- 17. 並排顯示兩個iFrame
- 18. CSS:兩個div並排
- 19. 並排取得兩個div
- 20. 並排浮動兩個div
- 21. 如何排列兩個div並排?
- 22. android - 如何安排兩個textview並排
- 23. RecyclerView中的多個CardViews
- 24. 並行合併兩個排序列表
- 25. 並排顯示兩個div並行塊
- 26. PHP GD庫,將兩個圖像並排放入一個並排
- 27. Excel - 兩個圖中的一個(並排)
- 28. 兩個並排,一個橢圓
- 29. Android 3.1,並排顯示兩個計數器並排顯示
- 30. 並排顯示兩個子報表
嘿@D。數學,下面的答案有幫助嗎? – Lino
是的,它幫了很多,謝謝! –