Проблема заключается в следующем:
[1
На превьюшке, однако, разметка выглядит иначе:
Разметка:
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="4dp"
android:columnCount="2">
<android.support.v7.widget.CardView
android:layout_margin="10dp"
android:layout_width="0dp"
android:layout_height="100dp"
android:layout_columnWeight="1"
android:layout_gravity="fill">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CardView" />
</android.support.v7.widget.CardView>
<android.support.v7.widget.CardView
android:layout_margin="10dp"
android:layout_width="0dp"
android:layout_height="100dp"
android:layout_columnWeight="1"
android:layout_gravity="fill">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CardView"/>
</android.support.v7.widget.CardView>
</GridLayout>
</android.support.v4.widget.NestedScrollView>