Had I used a normal spinner, I could have set a default value by
String day = customCurrentDay();
spinner.setSelection(day);
Since I used ActionBarSherlock, ArrayAdapter and NavigationListener
,
I had to get the position of the default index that I want from the ArrayAdapter
and setSelectedNavigationItem
passing that as a parameter.
this.getSherlock().getActionBar().setListNavigationCallbacks(list, this);
this.getSherlock().getActionBar().setSelectedNavigationItem(list.getPosition(day));