| | |
| | | VideoAlbumAdapter adapter = new VideoAlbumAdapter(mContext, homeType.getVideoInfoList()); |
| | | adapter.initRecyclerViewDisplayWidthRow1(holder.rv_content); |
| | | holder.rv_content.setAdapter(adapter); |
| | | holder.view.setVisibility(View.VISIBLE); |
| | | }else{ |
| | | holder.view.setVisibility(View.GONE); |
| | | } |
| | | } else { |
| | | VideoColumn2Adapter adapter = null; |
| | |
| | | adapter.initRecyclerViewDisplayWidthColumn3(holder.rv_content); |
| | | else |
| | | adapter.initRecyclerViewDisplayWidthRow1(holder.rv_content); |
| | | if (homeType.getVideoInfoList() != null && homeType.getVideoInfoList().size() > 0) |
| | | if (homeType.getVideoInfoList() != null && homeType.getVideoInfoList().size() > 0) { |
| | | holder.view.setVisibility(View.VISIBLE); |
| | | holder.rv_content.setAdapter(adapter); |
| | | } else { |
| | | holder.rv_content.setAdapter(null); |
| | | holder.view.setVisibility(View.GONE); |
| | | } |
| | | } |
| | | |
| | | |