Skip to content

Instantly share code, notes, and snippets.

🤔
why is this a feature?

Marcin Robaczyński scana

🤔
why is this a feature?
Block or report user

Report or block scana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
@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
You can’t perform that action at this time.