直播平台搭建,RecyclerView实现item图片放大缩小
直播平台搭建,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图片放大缩小,更多内容欢迎关注之后的文章