本文整理汇总了Java中com.jcodecraeer.xrecyclerview.ProgressStyle类的典型用法代码示例。如果您正苦于以下问题:Java ProgressStyle类的具体用法?Java ProgressStyle怎么用?Java ProgressStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProgressStyle类属于com.jcodecraeer.xrecyclerview包,在下文中一共展示了ProgressStyle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setupRecycleView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
private void setupRecycleView() {
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallSpinFadeLoader);
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
onRecyclerViewResponseRefresh();
}
@Override
public void onLoadMore() {
onRecycleViewResponseLoadMore();
}
});
setupRecycleViewAndAdapter();
}
开发者ID:henryblue,项目名称:TeaCup,代码行数:23,代码来源:BaseFragment.java
示例2: setupRecyclerView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
private void setupRecyclerView() {
mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(3,
StaggeredGridLayoutManager.VERTICAL));
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
mLoadIndex = 1;
startRefreshData();
}
@Override
public void onLoadMore() {
if (mDatas.size() <= 0) {
mRecyclerView.loadMoreComplete();
} else {
startLoadData();
}
}
});
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallSpinFadeLoader);
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
}
开发者ID:henryblue,项目名称:TeaCup,代码行数:25,代码来源:MoreMovieShowActivity.java
示例3: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
protected void init() {
mACache=ACache.get(context);
mErrorView = View.inflate(context, R.layout.error_view, null);
mNoNetWorkView = View.inflate(context, R.layout.no_network_view, null);
mEmptyView = View.inflate(context, R.layout.empty_view, null);
//mLoadingView=View.inflate(context,R.layout.loading_view,null);
LinearLayoutManager layoutManager = new LinearLayoutManager(context);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mXRecyclerView.setLayoutManager(layoutManager);
mXRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
mXRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
mXRecyclerView.setArrowImageView(R.mipmap.iconfont_downgrey);
mXRecyclerView.setLoadingListener(this);
mvpPresenter.loadData(ApiStores.NEWS_API_KEY, page);
}
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:18,代码来源:HomeFragment.java
示例4: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
protected void init() {
mACache=ACache.get(context);
mErrorView = View.inflate(context, R.layout.error_view, null);
mNoNetWorkView = View.inflate(context, R.layout.no_network_view, null);
mEmptyView = View.inflate(context, R.layout.empty_view, null);
//mLoadingView=View.inflate(context,R.layout.loading_view,null);
StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(2,StaggeredGridLayoutManager.VERTICAL);
mXRecyclerView.setLayoutManager(layoutManager);
mXRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
mXRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
mXRecyclerView.setArrowImageView(R.mipmap.iconfont_downgrey);
mXRecyclerView.setLoadingListener(this);
mvpPresenter.loadData(ApiStores.NEWS_API_KEY, page);
}
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:17,代码来源:PhotoFragment.java
示例5: initData
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
protected void initData() {
id=getIntent().getIntExtra("id",0);
tvTitle.setText(getIntent().getStringExtra("name"));
ivLeft.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
LinearLayoutManager layoutManager = new LinearLayoutManager(context);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mXRecyclerView.setLayoutManager(layoutManager);
mXRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
mXRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
mXRecyclerView.setArrowImageView(R.mipmap.iconfont_downgrey);
mXRecyclerView.setLoadingListener(this);
mvpPresenter.loadData(ApiStores.NEWS_API_KEY,id,page);
}
开发者ID:ydmmocoo,项目名称:StudyApp,代码行数:22,代码来源:CookBookListActivity.java
示例6: initView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
protected void initView() {
mFABSearch = customFindViewById(R.id.fab_search);
LinearLayoutManager LayoutManager = new LinearLayoutManager(getContext());
mRecyclerView = customFindViewById(R.id.recyclerview);
mBookAdapter = new BookAdapter(getMContext(), new ArrayList<BookBean>());
mRecyclerView.setAdapter(mBookAdapter);
mRecyclerView.setLayoutManager(LayoutManager);
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
switchAction(ACTION_REFRESH);
}
@Override
public void onLoadMore() {
switchAction(ACTION_LOAD_MORE);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallClipRotatePulse);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.SquareSpin);
mFABSearch.setOnClickListener(this);
initInputDialog();
dynamicAddSkinView(mFABSearch, "backgroundTint", R.color.colorAccent);
}
开发者ID:XinRan5312,项目名称:QxChangeThemeSkin,代码行数:26,代码来源:BookFragment.java
示例7: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
public void init() {
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setAdapter(new ShopCirRecyclerViewAdapter(DummyContent.ITEMS, mListener));
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
},3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:ShopFragment.java
示例8: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
public void init() {
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
// mRecyclerView.setAdapter(new ShopCirRecyclerViewAdapter(DummyContent.ITEMS, mListener));
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
},3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
showEmptyView(R.layout.combo_empty);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:34,代码来源:ComboSelectedFragment.java
示例9: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
public void init() {
mListener = new OnItemClickListener() {
@Override
public void onItemClick(int position) {
startActivity(new Intent(getActivity(), OrderDetailActivity.class), true);
}
};
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setAdapter(new OrderRecyclerViewAdapter(DummyContent.ITEMS, mListener));
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
}, 3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
}, 3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:37,代码来源:OrderFragment.java
示例10: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
public void init() {
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setAdapter(new ComboRecyclerViewAdapter(DummyContent.ITEMS, position -> {
}));
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
},3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:34,代码来源:TcListFragment.java
示例11: initXRecyclerView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
private void initXRecyclerView() {
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mAdapter=new ShopCartAdapter(DummyContent.ITEMS, null);
mRecyclerView.setAdapter(mAdapter);
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
},3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:31,代码来源:CartFragment.java
示例12: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
public void init() {
mListener=new OnListFragmentInteractionListener() {
@Override
public void onListFragmentInteraction(DummyContent.DummyItem item) {
startActivity(new Intent(getActivity(), ShopActivity.class));
}
};
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setAdapter(new ShopRecyclerViewAdapter(DummyContent.ITEMS, mListener));
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
},3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:38,代码来源:VipFragment.java
示例13: init
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
public void init() {
mRecyclerView.setLayoutManager(new LinearLayoutManager(context));
mRecyclerView.setAdapter(new OMYOListRecyclerViewAdapter(DummyContent.ITEMS, mListener));
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getActivity().getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mRecyclerView.loadMoreComplete();
}
},3000);
}
});
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallBeat);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:OMYOListFragment.java
示例14: initRecylcer
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
private void initRecylcer() {
mXRecylcer.setLayoutManager(new LinearLayoutManager(context));
mXRecylcer.setAdapter(new ChargeRecordAdapter(DummyContent.ITEMS, position -> {
}));
mXRecylcer.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
//refresh data here
new Handler(getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mXRecylcer.refreshComplete();
}
},3000);
}
@Override
public void onLoadMore() {
// load more data here
new Handler(getMainLooper()).postDelayed(new Runnable() {
@Override
public void run() {
mXRecylcer.loadMoreComplete();
}
},3000);
}
});
mXRecylcer.setRefreshProgressStyle(ProgressStyle.BallBeat);
mXRecylcer.setLoadingMoreProgressStyle(ProgressStyle.BallPulseSync);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:PhoneChargeRecordActivity.java
示例15: setLinearLayout
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
public void setLinearLayout(Context context, XRecyclerView mRecy) {
LinearLayoutManager layoutManager = new LinearLayoutManager(context);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRecy.setLayoutManager(layoutManager);
//设置分隔线
// mRecy.addItemDecoration(new SpacesItemDecoration(1));
mRecy.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
mRecy.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
mRecy.setArrowImageView(R.drawable.abc_icon_down_arrow);
}
开发者ID:Alex-Jerry,项目名称:LLApp,代码行数:12,代码来源:XRecyclerViewHelper.java
示例16: initXRecyclerView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
protected void initXRecyclerView() {
LinearLayoutManager layoutManager = new LinearLayoutManager(mContext);
layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
mRvJoke.setLayoutManager(layoutManager);
mRvJoke.setLoadingMoreProgressStyle(ProgressStyle.BallTrianglePath);
mRvJoke.setRefreshProgressStyle(ProgressStyle.BallTrianglePath);
mRvJoke.setAdapter(mBaseRVAdapter);
}
开发者ID:GaoGersy,项目名称:LiveShow,代码行数:9,代码来源:BaseJokeFragment.java
示例17: initView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
@Override
protected void initView() {
mLLReloadWarp = customFindViewById(R.id.ll_reload_wrap);
mBtnReload = customFindViewById(R.id.btn_reload);
mRecyclerView = customFindViewById(R.id.recyclerview);
mRecyclerView.setLayoutManager(setLayoutManager());
mRecyclerView.setRefreshProgressStyle(ProgressStyle.BallClipRotatePulse);
mRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.SquareSpin);
//设置适配器
mAdapter = setAdapter();
mRecyclerView.setAdapter(mAdapter);
mRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
switchActionAndLoadData(ACTION_REFRESH);
}
@Override
public void onLoadMore() {
switchActionAndLoadData(ACTION_LOAD_MORE);
}
});
mBtnReload.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mLLReloadWarp.setVisibility(View.GONE);
mRecyclerView.setRefreshing(true);
}
});
}
开发者ID:XinRan5312,项目名称:QxChangeThemeSkin,代码行数:36,代码来源:BaseRecyclerViewFragment.java
示例18: initRecyclerView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
private void initRecyclerView() {
//初始化达人文章地业务逻辑操作类
if (null != rvList) {
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
rvList.setLayoutManager(linearLayoutManager);
rvList.setHasFixedSize(true);
rvList.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
rvList.setLoadingMoreProgressStyle(ProgressStyle.BallRotate);
rvList.setArrowImageView(R.drawable.iconfont_downgrey);
rvList.setAdapter(adapter == null ? adapter = new MainAdapter(getActivity()) : adapter);
rvList.setPullRefreshEnabled(true);
rvList.setLoadingMoreEnabled(true);
adapter.setOnItemClickListener(new MainAdapter.OnItemListener() {
@Override public void onItemClick(View view, int position) {
MainItemNewOrderBean mainItemNewOrderBean = newOrderBeen.get(position);
Bundle bundle = new Bundle();
bundle.putString(Constant.ORDER_ID, mainItemNewOrderBean.getId());
bundle.putString(Constant.ORDER_CREATER, SharedPreferenceHelper.getUserAccount());
InvokeStartActivityUtils.startActivity(getActivity(), PaiWorkerListActivity.class, bundle,
false);
}
});
rvList.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override public void onRefresh() {
//上拉刷新
pn = 1;
onLoadData();
}
@Override public void onLoadMore() {
pn++;
onLoadData();
}
});
}
}
开发者ID:binarylife,项目名称:Ydkd,代码行数:37,代码来源:MineOrderFragment.java
示例19: onCreate
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_route);
setStatusBar();
routeRecyclerView = (XRecyclerView) findViewById(R.id.recyclerview_route);
no_route = (TextView) findViewById(R.id.no_route);
routeRecyclerView.setLayoutManager(new LinearLayoutManager(this));
// routeList = getAllPoints();
routeList = new ArrayList<RouteRecord>();
RouteDBHelper helper = new RouteDBHelper(this);
db = helper.getWritableDatabase();
itemCount = getItemCount();
routeList = loadPage();
if (routeList != null) {
routeAdapter = new MyRouteAdapter(this, routeList);
routeRecyclerView.setAdapter(routeAdapter);
routeRecyclerView.addItemDecoration(new MyRouteDividerDecoration(10));
routeAdapter.setOnClickListener(this);
}else{
no_route.setVisibility(View.VISIBLE);
}
routeRecyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
routeRecyclerView.setLoadingMoreProgressStyle(ProgressStyle.BallScale);
routeRecyclerView.setArrowImageView(R.drawable.iconfont_downgrey);
routeRecyclerView.setPullRefreshEnabled(false);
// View header = LayoutInflater.from(this).inflate(R.layout.recyclerview_header, (ViewGroup)findViewById(android.R.id.content),false);
// routeRecyclerView.addHeaderView(header);
routeRecyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
// Toast.makeText(MyRouteActivity.this, "onRefresh", Toast.LENGTH_SHORT).show();
routeRecyclerView.refreshComplete();
}
@Override
public void onLoadMore() {
// Toast.makeText(MyRouteActivity.this, "onLoadMore", Toast.LENGTH_SHORT).show();
loadPage();
routeRecyclerView.loadMoreComplete();
routeAdapter.notifyDataSetChanged();
}
});
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:48,代码来源:MyRouteActivity.java
示例20: setupRecycleView
import com.jcodecraeer.xrecyclerview.ProgressStyle; //导入依赖的package包/类
private void setupRecycleView() {
recyclerView = (XRecyclerView) findViewById(R.id.base_recycler_view);
if (recyclerView != null) {
recyclerView.setHasFixedSize(true);
}
LinearLayoutManager mLayoutManager = new LinearLayoutManager(FindBookActivity.this);
mLayoutManager.setOrientation(OrientationHelper.VERTICAL);
recyclerView.setLayoutManager(mLayoutManager);
recyclerView.setItemAnimator(new DefaultItemAnimator());
recyclerView.setLoadingMoreEnabled(false);
recyclerView.setRefreshProgressStyle(ProgressStyle.BallSpinFadeLoader);
recyclerView.setLoadingListener(new XRecyclerView.LoadingListener() {
@Override
public void onRefresh() {
sendParseDataMessage(REFRESH_START);
}
@Override
public void onLoadMore() {
}
});
mAdapter = new FindRecycleAdapter(this, mDatas);
mAdapter.setOnItemClickListener(new FindRecycleAdapter.OnItemClickListener() {
@Override
public void onItemClick(View view, int position) {
Intent intent = new Intent(FindBookActivity.this, BookDetailActivity.class);
intent.putExtra("book", mDatas.get(position));
ActivityOptionsCompat options =
ActivityOptionsCompat.makeSceneTransitionAnimation(FindBookActivity.this,
view.findViewById(R.id.iv_book_img),
getString(R.string.transition_book_img));
ActivityCompat.startActivity(FindBookActivity.this, intent, options.toBundle());
}
});
recyclerView.setAdapter(mAdapter);
}
开发者ID:henryblue,项目名称:TeaCup,代码行数:42,代码来源:FindBookActivity.java
注:本文中的com.jcodecraeer.xrecyclerview.ProgressStyle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论