How to implement new Android selection mode while retaining backward compatibility with Android 2.x? -


according android design guidelines new convention long pressing on list item switch 'selection mode'.

i realise the selection mode new , heavily integrates actionbar not expecting available 2.x devices. wondering strategies being used support new selection mode ics devices while retaining backward compatibility 2.x devices?

shortly, can use actionbarsherlock 4.0 give action bar action modes works across android versions 2.1 onwards. 4.0 being released today if understand correctly.

if not wish this, use context menus on android 1.x/2.x devices , action modes on android 3.0+ devices. here sample project demonstrating using checklist , action mode on android 3.0+ while using context menus on older devices.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -