Day: March 19, 2013

Android DialogFragment that gives the user some list options to choose from

  • DialogFragment that creates an AlertDialog with the title and options specified in the constructor
  • Can store some a data object (useful if you want the user to select an action on a specific item)
  • Is retained in case of an orientation change
  • Works great with ActionBarSherlock
  • FIXME: do not use custom constructor, but add data with .setArguments and a Bundle

Read More