Closed Svenvollfied25 closed 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));
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">
<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"/>
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">