ManuelPeinado / MultiChoiceAdapter

Android - A ListView adapter with support for multiple choice modal selection
Apache License 2.0
849 stars 260 forks source link

Added option to change ActionMode title #20

Closed fedefernandez closed 10 years ago

fedefernandez commented 10 years ago

I have added a method to MultiChoiceAdapter interface that receive the count of selected items and returns the title for ActionMode. By default it returns Resources.getQuantityString(R.plurals.selected_items, count, count) but the user can extends this method in Adapter.

I have changed the plugin gradle version to compile successfully with Gradle 1.10

I changed the activity names in samples and I have fixed a bug in the class com.manuelpeinado.multichoiceadapter.extras.actionbarsherlock.MultiChoiceAdapterHelper

Hope this helps

ManuelPeinado commented 10 years ago

Awesome, thanks! I've added a new sample activity to showcase the new "change action mode title" functionality