Reputation: 1081
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
Reputation: 8079
I think you can add its path as a string... and then get the icon when displaying from specified path..
Upvotes: 1