content: /*
  ******************************* Copyright (c)*********************************\
  **
  **                 (c) Copyright 2015, Allen, china, shanghai
  **                          All Rights Reserved
  **
  **                          
  **                         
  **-----------------------------------版本信息------------------------------------
  ** 版    本: V0.1
  **
  **------------------------------------------------------------------------------
  ********************************End of Head************************************\
  */
  package com.allen.recyclerview.adapter;
  
  import android.support.v7.widget.LinearLayoutManager;
  import android.support.v7.widget.RecyclerView;
  
  import com.allen.recyclerview.R;
  import com.allen.recyclerview.data.DataServer;
  import com.allen.recyclerview.entry.News;
  import com.chad.library.adapter.base.BaseQuickAdapter;
  import com.chad.library.adapter.base.BaseViewHolder;
  
  import java.util.List;
  
  /**
   * 文 件 名: GooglePlayItemAdapter
   * 创 建 人: Allen
   * 创建日期: 16/12/29 10:50
   * 邮   箱: AllenCoder@126.com
   * 修改时间：
   * 修改备注：
   */
  public class GooglePlayItemAdapter extends BaseQuickAdapter<News, BaseViewHolder> {
      public GooglePlayItemAdapter(final List<News> data) {
          super(R.layout.item_googleplay,data);
      }
  
      @Override
      protected void convert(final BaseViewHolder baseViewHolder, final News news) {
          final RecyclerView recyclerView = (RecyclerView) baseViewHolder.getView(R.id.item_recyclerview);
          recyclerView.setLayoutManager(new LinearLayoutManager(baseViewHolder.getConvertView().getContext(),LinearLayoutManager.HORIZONTAL,false));
          recyclerView.setHasFixedSize(true);
          GooglePlayAdapter   mQuickAdapter = new GooglePlayAdapter(DataServer.getNews());
          recyclerView.setAdapter(mQuickAdapter);
      }
      private void initAdapter() {
  
      }
  }
  