Kamal
Kamal

Reputation: 1081

Adding icon on arraylist

i'm displaying folders from sdcard dynamically. How to add icon on ArrayList.

Code:

if(file.isDirectory())
{
    item.add(file.getName() + "/");    
}

I need to add icon to the left of file.getName().

Can anyone help me?

Upvotes: 0

Views: 284

Answers (1)

5hssba
5hssba

Reputation: 8079

I think you can add its path as a string... and then get the icon when displaying from specified path..

Upvotes: 1

Related Questions