Skip to content

Instantly share code, notes, and snippets.

View njha6185's full-sized avatar

Nitish Kumar Jha njha6185

  • India
View GitHub Profile
@njha6185
njha6185 / ItemClickSupport.java
Created September 22, 2018 12:37 — forked from nesquena/ItemClickSupport.java
Click handling for RecyclerView
/*
Source: http://www.littlerobots.nl/blog/Handle-Android-RecyclerView-Clicks/
USAGE:
ItemClickSupport.addTo(mRecyclerView).setOnItemClickListener(new ItemClickSupport.OnItemClickListener() {
@Override
public void onItemClicked(RecyclerView recyclerView, int position, View v) {
// do it
}
});
@njha6185
njha6185 / mainactivity.xml
Last active March 15, 2018 11:20
android xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:background="#000000"
tools:context="com.example.nitishkumar.quizzapp.QuizActivity">
<VideoView