0
我有一个RecyclerView
像这样的项目布局:GridLayout的孩子被修剪
<?xml version="1.0" encoding="utf-8"?>
<GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnCount="2"
android:rowCount="2">
<ImageView
android:id="@+id/imageView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_rowSpan="2" />
<TextView
android:id="@+id/textView"
android:layout_row="0"
android:layout_column="1"
android:layout_marginRight="8dp"
android:padding="8dp" />
<android.webkit.WebView
android:id="@+id/webView"
android:layout_height="200dp"
android:layout_row="1"
android:layout_column="1"
android:layout_marginRight="8dp" />
</GridLayout>
的问题是,在TextView
和WebView
延长我期待在禁区外。他们的右手边被切断。它们被切断的量看起来像是第一列的宽度。
这是什么原因造成的?我该如何纠正?
凸轮你发布视图的截图? – jitenagarwal19