本文整理汇总了Java中com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter类的典型用法代码示例。如果您正苦于以下问题:Java StickyRecyclerHeadersAdapter类的具体用法?Java StickyRecyclerHeadersAdapter怎么用?Java StickyRecyclerHeadersAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StickyRecyclerHeadersAdapter类属于com.timehop.stickyheadersrecyclerview包,在下文中一共展示了StickyRecyclerHeadersAdapter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MyHeaderPositionCalculator
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter; //导入依赖的package包/类
public MyHeaderPositionCalculator(StickyRecyclerHeadersAdapter adapter, HeaderProvider headerProvider,
OrientationProvider orientationProvider, DimensionCalculator dimensionCalculator) {
mAdapter = adapter;
mHeaderProvider = headerProvider;
mOrientationProvider = orientationProvider;
mDimensionCalculator = dimensionCalculator;
}
示例2: MyStickyRecyclerHeadersDecoration
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter; //导入依赖的package包/类
private MyStickyRecyclerHeadersDecoration(StickyRecyclerHeadersAdapter adapter, MyHeaderRenderer headerRenderer,
OrientationProvider orientationProvider, DimensionCalculator dimensionCalculator, HeaderProvider headerProvider,
MyHeaderPositionCalculator headerPositionCalculator) {
mAdapter = adapter;
mHeaderProvider = headerProvider;
mOrientationProvider = orientationProvider;
mRenderer = headerRenderer;
mDimensionCalculator = dimensionCalculator;
mHeaderPositionCalculator = headerPositionCalculator;
}
示例3: HeadersDecoration
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter; //导入依赖的package包/类
private HeadersDecoration(StickyRecyclerHeadersAdapter adapter, OrientationProvider orientationProvider,
DimensionCalculator dimensionCalculator, HeaderRenderer headerRenderer, HeaderProvider headerProvider) {
this(adapter, headerRenderer, orientationProvider, dimensionCalculator, headerProvider,
new HeaderPositionCalculator(adapter, headerProvider, orientationProvider,
dimensionCalculator) {
@Override
public boolean hasStickyHeader(View itemView, int orientation, int position) {
return false;
}
});
}
示例4: StickyRecyclerHeadersElevationDecoration
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter; //导入依赖的package包/类
public StickyRecyclerHeadersElevationDecoration(StickyRecyclerHeadersAdapter adapter) {
mAdapter = adapter;
}
示例5: HeaderViewCache
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter; //导入依赖的package包/类
public HeaderViewCache(StickyRecyclerHeadersAdapter adapter,
OrientationProvider orientationProvider) {
mAdapter = adapter;
mOrientationProvider = orientationProvider;
}
示例6: HeaderViewCache
import com.timehop.stickyheadersrecyclerview.StickyRecyclerHeadersAdapter; //导入依赖的package包/类
public HeaderViewCache(StickyRecyclerHeadersAdapter adapter,
OrientationProvider orientationProvider) {
mAdapter = adapter;
mOrientationProvider = orientationProvider;
}