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.v7.widget.RecyclerView; | |
/** | |
* You may set a scroll listener on a recycler view in order to be notified about scroll events. | |
*/ | |
public class DefaultRecycleViewScrollListener extends RecyclerView.OnScrollListener { | |
OnScrollStateListener onScrollStateListener; |
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
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil'); | |
/** | |
* This adds a content range header to each find response. | |
* That allows us to implement a pagination client side. | |
*/ | |
module.exports = function(req, res) { | |
if (actionUtil.parsePk(req)) { | |
return require('./findOne')(req, res); |
NewerOlder