Code example for List

Methods: addAll

0
 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        emotions = GlobalContext.getInstance().getEmotionsPics();
        index.addAll(emotions.keySet());
    } 
 
    @Override 
    public void onDetach() { 
        super.onDetach(); 
        emotions = null;
    } 
 
    @Override 
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
 
        View view = getActivity().getLayoutInflater().inflate(R.layout.emotions_fragment_gridview_layout, null);
        GridView gridview = (GridView) view.findViewById(R.id.gridview);
        gridview.setAdapter(new ImageAdapter(getActivity()));