1
코디네이터 내부의 appbarlayout에 연결된 cardview 내부에있는 recyclerview를 만들어야합니다.RecyclerView 패딩이 nestedscrollview에서 작동하지 않습니다.
나는
Coordinator
AppBar
NestedScrollView
CardView
Recycler
내가 카드보기에 패딩을 첨부 할 수없는 나는 다음과 같은 heirachy 설정을 가지고있다. 위쪽 여백이 작동하지 않습니다.
코드 것은
<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>
cardview의 margintop 매개 변수는 영향을주지 않는다.
모든 포인터?