package etong.bottomnavigation.demo;

import android.support.v4.app.Fragment;

/**
 * Created by hwt on 2016/3/19.
 */
public class NewsstandFragment extends Fragment {
}

@@ -50,122 +50,1692 @@
 oid.
-support.v4.app.Fragment;%0A%0A/**%0A * Created by hwt on 2016/3/19.%0A */%0Apublic class NewsstandFragment extends Fragment %7B
+os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v7.widget.LinearLayoutManager;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0A%0A%0Apublic class NewsstandFragment extends Fragment %7B%0A%0A    private RecyclerView recycleView;%0A%0A%0A    public NewsstandFragment() %7B%0A        // Required empty public constructor%0A    %7D%0A%0A    public static NewsstandFragment newInstance() %7B%0A        NewsstandFragment fragment = new NewsstandFragment();%0A        return fragment;%0A    %7D%0A%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container,%0A                             Bundle savedInstanceState) %7B%0A        // Inflate the layout for this fragment%0A        View contentView = inflater.inflate(R.layout.fragment_books, container, false);%0A        recycleView = (RecyclerView) contentView.findViewById(R.id.recycleView);%0A        recycleView.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));%0A        recycleView.setAdapter(new BookAdapter());%0A        return contentView;%0A    %7D%0A%0A    private class BookAdapter extends RecyclerView.Adapter%3CViewHolder%3E%7B%0A%0A        @Override%0A        public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) %7B%0A            return null;%0A        %7D%0A%0A        @Override%0A        public void onBindViewHolder(ViewHolder holder, int position) %7B%0A%0A        %7D%0A%0A        @Override%0A        public int getItemCount() %7B%0A            return 0;%0A        %7D%0A    %7D%0A%0A    private class ViewHolder extends RecyclerView.ViewHolder%7B%0A%0A        public ViewHolder(View itemView) %7B%0A            super(itemView);%0A        %7D%0A    %7D
 %0A%7D%0A

change fragment when click bottomtab