use of com.quran.labs.androidquran.ui.helpers.QuranListAdapter in project quran_android by quran.
the class BookmarksFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.quran_list, container, false);
final Context context = getActivity();
recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
recyclerView.setLayoutManager(new LinearLayoutManager(context));
recyclerView.setItemAnimator(new DefaultItemAnimator());
bookmarksAdapter = new QuranListAdapter(context, recyclerView, new QuranRow[0], true);
bookmarksAdapter.setQuranTouchListener(this);
recyclerView.setAdapter(bookmarksAdapter);
return view;
}
use of com.quran.labs.androidquran.ui.helpers.QuranListAdapter in project quran_android by quran.
the class JuzListFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.quran_list, container, false);
final Context context = getActivity();
mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
mRecyclerView.setHasFixedSize(true);
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
final QuranListAdapter adapter = new QuranListAdapter(context, mRecyclerView, getJuz2List(), false);
mRecyclerView.setAdapter(adapter);
return view;
}
use of com.quran.labs.androidquran.ui.helpers.QuranListAdapter in project quran_android by quran.
the class SuraListFragment method onCreateView.
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.quran_list, container, false);
final Context context = getActivity();
mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
mRecyclerView.setHasFixedSize(true);
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
final QuranListAdapter adapter = new QuranListAdapter(context, mRecyclerView, getSuraList(), false);
mRecyclerView.setAdapter(adapter);
return view;
}
Aggregations