Search in sources :

Example 1 with BGAMoocStyleRefreshViewHolder

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());
}
Also used : BGAMoocStyleRefreshViewHolder(cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) Divider(cn.bingoogolapple.refreshlayout.demo.widget.Divider)

Example 2 with BGAMoocStyleRefreshViewHolder

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");
}
Also used : BGAMoocStyleRefreshViewHolder(cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder)

Example 3 with BGAMoocStyleRefreshViewHolder

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);
}
Also used : BGAMoocStyleRefreshViewHolder(cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder)

Example 4 with BGAMoocStyleRefreshViewHolder

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");
}
Also used : BGAMoocStyleRefreshViewHolder(cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder)

Example 5 with BGAMoocStyleRefreshViewHolder

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);
}
Also used : BGAMoocStyleRefreshViewHolder(cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder)

Aggregations

BGAMoocStyleRefreshViewHolder (cn.bingoogolapple.refreshlayout.BGAMoocStyleRefreshViewHolder)6 Divider (cn.bingoogolapple.refreshlayout.demo.widget.Divider)2 GridLayoutManager (android.support.v7.widget.GridLayoutManager)1 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 List (java.util.List)1