Hi, I'm playing around with a file browser tutorial just to learn and
I ran into this problem.
Currently I can list folder just fine.. what I'm trying to add
something extra to the list item in the in interface, like another
string, or whatever I want.
This is what I have:
private void fill(File[] files) {
items = new ArrayList<String>();
items.add(getString(R.string.to_top));
for (File file : files)
items.add(file.getPath());
ArrayAdapter<String> fileList = new ArrayAdapter<String>(this,
R.layout.file_row, items);
setListAdapter(fileList);
}
If in file_row.xml I only put a TextView it works but how can I do to
add extra stuff to the list item?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---