Skip to content

Instantly share code, notes, and snippets.

View saber-solooki's full-sized avatar

saber solooki saber-solooki

  • Adjust.com
  • Berlin/Germany
View GitHub Profile
@saber-solooki
saber-solooki / MyRxRecyclerView
Created April 26, 2018 11:06
Detect when the RecyclerView reaches the bottom in Observable manner
package com.saber.ekip.views.rxRecyclerView;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import io.reactivex.Observable;
import static com.saber.ekip.views.rxRecyclerView.Preconditions.checkNotNull;
@saber-solooki
saber-solooki / SimpleRecyclerView.java
Created July 7, 2018 18:40
Sticky Header RecyclerView
package com.saber.customstickyheader;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;