'How to add emoji in a spinner in an array with list items

I want to have spinner which contains list of items in a way where every entry have an emoji with it. I have already an array but I don't know how can I add emoji's with the list items.



Solution 1:[1]

First of all in main activity try this code outlistView = (ListView) findViewById(R.id.listview); datamodels = new ArrayList<>(); datamodels.add(new Model(R.drawable.ic_menu_camera,"Girl",R.drawable.ic_play_arrow_black_24dp,500, 44100,R.drawable.ic_more_vert_black_24dp,false)); datamodels.add(new Model(R.drawable.ic_android_black_24dp,"Cave",R.drawable.ic_play_arrow_black_24dp,200, 500,R.drawable.ic_more_vert_black_24dp,false)); datamodels.add(new Model(R.drawable.ic_menu_gallery,"Speaker",R.drawable.ic_play_arrow_black_24dp,-9079435, 4300,R.drawable.ic_more_vert_black_24dp,false));

After this create a model listview in your project like this and after that you should need to create a layout in xml you want.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Usman Ali