This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |