timusus / RecyclerView-FastScroll

A simple FastScroller for Android's RecyclerView
Other
1.39k stars 183 forks source link

Gridlayout giving too much bottom margin below every item in recyclerview #22

Closed Svenvollfied25 closed 8 years ago

Svenvollfied25 commented 8 years ago

Here's my java code: recyclerView = ((FastScrollRecyclerView)v.findViewById(R.id.recyclerView)); recyclerView.setAdapter(new BaseAdapter()); recyclerView.hasFixedSize(); recyclerView.setLayoutManager(new GridLayoutManager(getActivity().getApplicationContext(),2));

XML:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".Activities.Main2Activity$PlaceholderFragment">

<com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView
    android:id="@+id/recyclerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:fastScrollAutoHide="true"
    app:fastScrollAutoHideDelay="1000"
    app:fastScrollPopupBgColor="@color/colorAccent"
    app:fastScrollPopupTextColor="@android:color/primary_text_dark"
    app:fastScrollThumbColor="@color/colorAccent"
    app:spanCount="2"/>