Code example for Fragment

Methods: setArguments

0
 
    // Bundle 
    public GenresFragment() { 
    } 
 
    public GenresFragment(Bundle args) {
        setArguments(args);
    } 
 
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        // GenreAdapter 
        mGenreAdapter = new GenreAdapter(getActivity(), R.layout.listview_items, null,
                new String[] {}, new int[] {}, 0);
        mListView.setOnCreateContextMenuListener(this);
        mListView.setOnItemClickListener(this);
        mListView.setAdapter(mGenreAdapter);
 
        // Important! 
Contextual code suggestions in your IDE  Get Codota for Java