| | |
| | | } |
| | | }); |
| | | |
| | | viewHolder.tv_close.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | contentList.remove(videoContent); |
| | | notifyDataSetChanged(); |
| | | } |
| | | }); |
| | | |
| | | viewHolder.tv_name.setText(ad.getTitle()); |
| | | viewHolder.tv_actors.setText(ad.getDesc()); |
| | | |
| | |
| | | TextView tv_type; |
| | | TextView tv_actors; |
| | | TextView tv_play; |
| | | TextView tv_close; |
| | | View view; |
| | | NativeAdContainer mNativeAdContainer; |
| | | RatioLayout rl_picture; |
| | |
| | | tv_play = view.findViewById(R.id.tv_play); |
| | | mNativeAdContainer = view.findViewById(R.id.root); |
| | | rl_picture = view.findViewById(R.id.rl_picture); |
| | | tv_close = view.findViewById(R.id.tv_close); |
| | | } |
| | | } |
| | | |