1
Ich muss eine Recyclerview machen, die in einem Cardview mit dem Appbarlayout in einem Koordinator verbunden ist.RecyclerView Padding funktioniert nicht unter NestedScrollview
Ich habe folgendes heirachy Setup
Coordinator
AppBar
NestedScrollView
CardView
Recycler
Ich kann keine Polsterung zur Kartenansicht befestigen. Ein oberer Rand funktioniert nicht.
-Code
<android.support.v4.widget.NestedScrollView
android:id="@+id/nested_scroller"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
app:cardCornerRadius="4dp"
app:cardElevation="@dimen/elevation_small">
<android.support.v7.widget.RecyclerView
android:id="@+id/establishments_rv"
android:layout_width="match_parent"
android:layout_height="match_parent"></android.support.v7.widget.RecyclerView>
</android.support.v7.widget.CardView>
</android.support.v4.widget.NestedScrollView>
Der MarginTop Parameter in der cardview geben keinen Einfluss.
Irgendwelche Zeiger?