Skip to content

Instantly share code, notes, and snippets.

🤔
why is this a feature?

Marcin Robaczyński scana

🤔
why is this a feature?
View GitHub Profile
@scana
scana / RxAppBarLayout.java
Last active Mar 11, 2016
RxAppBarLayout for observing AppBarLayout vertical offset
View RxAppBarLayout.java
import android.support.design.widget.AppBarLayout;
import rx.Observable;
import rx.Subscriber;
import rx.Subscription;
/**
* Helper class for creating Observable of AppBarLayout visibility.
* Can be easily modified to return Integer values, if one needs to user verticalOffset param directly.
* See for further info: http://stackoverflow.com/questions/30779667/android-collapsingtoolbarlayout-and-swiperefreshlayout-get-stuck
@scana
scana / java
Created Nov 16, 2015
RxAppBarLayout
View java
import android.support.design.widget.AppBarLayout;
import rx.Observable;
import rx.Subscriber;
import rx.Subscription;
/**
* Helper class for creating Observable of AppBarLayout visibility.
* Can be easily modified to return Integer values, if one needs to user verticalOffset param directly.
* See for further info: http://stackoverflow.com/questions/30779667/android-collapsingtoolbarlayout-and-swiperefreshlayout-get-stuck
You can’t perform that action at this time.