38 lines
911 B
Java
38 lines
911 B
Java
package com.gh.gamecenter.collection;
|
|
|
|
import android.os.Bundle;
|
|
import android.support.annotation.Nullable;
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
|
import com.gh.base.fragment.BaseFragment;
|
|
import com.gh.gamecenter.R;
|
|
|
|
import butterknife.BindView;
|
|
|
|
/**
|
|
* Created by khy on 18/07/17.
|
|
*/
|
|
|
|
public class ArticleFragment extends BaseFragment {
|
|
|
|
@BindView(R.id.article_rv)
|
|
RecyclerView mRecyclerView;
|
|
|
|
private ArticleAdapter mAdapter;
|
|
|
|
@Override
|
|
protected int getLayoutId() {
|
|
return R.layout.fragment_article;
|
|
}
|
|
|
|
@Override
|
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
|
|
|
mAdapter = new ArticleAdapter(getContext());
|
|
mRecyclerView.setAdapter(mAdapter);
|
|
}
|
|
}
|