I am looking for a solution similar to the list of emails in the gmail application for Android, I want the list to be deleted in order to have a name and an icon with the first title symbol. in my application, this will be used to display some names in the application from the database table, so this icon will look like in the gmail application with the first letter of the name and then next to it. Swiping will make it possible to delete.
here is a screenshot for reference (I would use only the name, icon on the left and time!)

UPDATE
Now I plan to use TextDrawable , as EUGEN reported. Now I have this problem. The Sample adapter provided in the sample library folder uses listarry as a data set.
private List<ListData> mDataList = Arrays.asList( new ListData("Iron Man"), new ListData("Captain America"), new ListData("James Bond"), new ListData("Harry Potter"), new ListData("Sherlock Holmes"), new ListData("Black Widow"), new ListData("Hawk Eye"), new ListData("Iron Man"), new ListData("Guava"), new ListData("Tomato"), new ListData("Pineapple"), new ListData("Strawberry"), new ListData("Watermelon"), new ListData("Pears"), new ListData("Kiwi"), new ListData("Plums") );
I need to use data in the form of an array of strings. I am new to the list of arrays and adapters, so I need help!
source share