ahmedre/quran_android — pull request #156 by afarra (2012-07-25 07:21:04+00:00)
Title: Change Bookmark removing dialog to Contextual Action Bar instead

Initially it wasn't much changes; only to BookmarkFragment and it was working fine on my ICS. But when I tested on 2.2 emulator it didn't work because I was using [android:background="?android:attr/activatedBackgroundIndicator"] which turns out to be only 3.0+.

Not having this attribute means that even though items would be selected, no style would be applied to them so the user wouldn't know which list items are checked and which aren't. After some research, found the workaround for this on pre-HC devices is to extend the layout and implement the Checkable interface: http://www.marvinlabs.com/2010/10/custom-listview-ability-check-items/

Hence the changes in index_sura_row and QuranListAdapter.