use of cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder in project BGARefreshLayout-Android by bingoogolapple.
the class RefreshSwipeRecyclerViewFragment method processLogic.
@Override
protected void processLogic(Bundle savedInstanceState) {
// mRefreshLayout.setCustomHeaderView(DataEngine.getCustomHeaderView(mApp), false);
mAdapter.addHeaderView(DataEngine.getCustomHeaderView(mApp));
BGAMoocStyleRefreshViewHolder moocStyleRefreshViewHolder = new BGAMoocStyleRefreshViewHolder(mApp, true);
moocStyleRefreshViewHolder.setOriginalImage(R.mipmap.bga_refresh_moooc);
moocStyleRefreshViewHolder.setUltimateColor(R.color.imoocstyle);
mRefreshLayout.setRefreshViewHolder(moocStyleRefreshViewHolder);
mDataRv.addItemDecoration(new Divider(mApp));
mDataRv.setLayoutManager(new LinearLayoutManager(mApp));
mDataRv.setAdapter(mAdapter.getHeaderAndFooterAdapter());
}
use of cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder in project BGARefreshLayout-Android by bingoogolapple.
the class RefreshWebViewFragment method processLogic.
@Override
protected void processLogic(Bundle savedInstanceState) {
BGAMoocStyleRefreshViewHolder moocStyleRefreshViewHolder = new BGAMoocStyleRefreshViewHolder(mApp, false);
moocStyleRefreshViewHolder.setOriginalImage(R.mipmap.bga_refresh_moooc);
moocStyleRefreshViewHolder.setUltimateColor(R.color.imoocstyle);
mRefreshLayout.setRefreshViewHolder(moocStyleRefreshViewHolder);
// mRefreshLayout.setCustomHeaderView(DataEngine.getCustomHeaderView(mApp), true);
mContentWv.getSettings().setJavaScriptEnabled(true);
mContentWv.loadUrl("https://github.com/bingoogolapple");
}
use of cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder in project BGARefreshLayout-Android by bingoogolapple.
the class RefreshGridViewFragment method processLogic.
@Override
protected void processLogic(Bundle savedInstanceState) {
BGAMoocStyleRefreshViewHolder moocStyleRefreshViewHolder = new BGAMoocStyleRefreshViewHolder(mApp, true);
moocStyleRefreshViewHolder.setOriginalImage(R.mipmap.bga_refresh_moooc);
moocStyleRefreshViewHolder.setUltimateColor(R.color.imoocstyle);
mRefreshLayout.setRefreshViewHolder(moocStyleRefreshViewHolder);
mDataGv.setAdapter(mAdapter);
}
use of cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder in project BGARefreshLayout-Android by bingoogolapple.
the class WebViewActivity method processLogic.
@Override
protected void processLogic(Bundle savedInstanceState) {
BGAMoocStyleRefreshViewHolder moocStyleRefreshViewHolder = new BGAMoocStyleRefreshViewHolder(mApp, false);
moocStyleRefreshViewHolder.setOriginalImage(R.mipmap.bga_refresh_moooc);
moocStyleRefreshViewHolder.setUltimateColor(R.color.imoocstyle);
mRefreshLayout.setRefreshViewHolder(moocStyleRefreshViewHolder);
mContentWv.getSettings().setJavaScriptEnabled(true);
mContentWv.loadUrl("https://github.com/bingoogolapple");
}
use of cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder in project BGARefreshLayout-Android by bingoogolapple.
the class RefreshListViewFragment method processLogic.
@Override
protected void processLogic(Bundle savedInstanceState) {
BGAMoocStyleRefreshViewHolder moocStyleRefreshViewHolder = new BGAMoocStyleRefreshViewHolder(mApp, true);
moocStyleRefreshViewHolder.setUltimateColor(R.color.custom_imoocstyle);
moocStyleRefreshViewHolder.setOriginalImage(R.mipmap.custom_mooc_icon);
// moocStyleRefreshViewHolder.setLoadMoreBackgroundColorRes(R.color.custom_imoocstyle);
moocStyleRefreshViewHolder.setSpringDistanceScale(0.2f);
// moocStyleRefreshViewHolder.setRefreshViewBackgroundColorRes(R.color.custom_imoocstyle);
mRefreshLayout.setRefreshViewHolder(moocStyleRefreshViewHolder);
mRefreshLayout.setCustomHeaderView(DataEngine.getCustomHeaderView(mApp), true);
mDataLv.setAdapter(mAdapter);
}
Aggregations