This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { | |
View view = inflater.inflate(R.layout.fragment_city_list, container, false) | |
// Replace 'android.R.id.list' with the 'id' of your RecyclerView | |
mRecyclerView = (RecyclerView) view.findViewById(android.R.id.list); | |
mLayoutManager = new LinearLayoutManager(this.getActivity()); | |
mRecyclerView.setLayoutManager(mLayoutManager); | |
mAdapter = new RecyclerAdapter(getNames()); |
NewerOlder