直播电商平台开发,RecyclerView实现item图片放大缩小
((ShopDetailsViewHolder) holder).img_list.setOnClickListener(new View.OnClickListener() {
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public void onClick(View v) {
Intent intent = new Intent(v.getContext(), OtherActivity.class);
Bundle bundle = new Bundle();
bundle.putSerializable("imgUrl", list.get(position));
intent.putExtras(bundle);
v.getContext().startActivity(intent);
//图片放大操作
ActivityOptions.makeSceneTransitionAnimation((Activity) v.getContext(), v, "sharedView").toBundle();
}
});
以上就是直播电商平台开发,RecyclerView实现item图片放大缩小, 更多内容欢迎关注之后的文章
标签:getContext,item,直播,new,电商,RecyclerView From: https://www.cnblogs.com/yunbaomengnan/p/17451622.html