Skip to content

Instantly share code, notes, and snippets.

View Suleiman19's full-sized avatar

Suleiman Ali Shakir Suleiman19

View GitHub Profile
Suleiman19 / Spinner Setup (Activity)
Last active October 11, 2022 14:10
Theme Aware Material Design Spinner
View Spinner Setup (Activity)
Spinner spinner = (Spinner) findViewById(;
ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(getSupportActionBar().getThemedContext(),
Suleiman19 / RecyclerView Click Listener Util
Last active February 1, 2019 08:05
Small Util class to set a click listener for RecyclerViews
View RecyclerView Click Listener Util
public class CustomRecyclerClickListener implements RecyclerView.OnItemTouchListener {
private OnItemClickListener mListener;
public interface OnItemClickListener {
public void onItemClick(View view, int position);
GestureDetector mGestureDetector;
public CustomRecyclerClickListener(Context context, OnItemClickListener listener) {