I have an ArrayList() that I want to display as a Spinner. Problem is, I need to display something other than the File.toString(). I would like to set the Spinner’s view text to the file name (formatted), not the full file path returned by File.toString(), so I believe this rules out just using ArrayAdapter? Thanks!
Share
Android SDK docs for ArrayAdapter recommend the following:
Which means you can still use
ArrayAdapter, but you would need to create a wrapper object which contains your true File egFileFormatwhich overwritestoString()with your desired format.