johannilsson / android-actionbar

DEPRECATED Android Action Bar Implementation
1.3k stars 564 forks source link

create custom action bar menu layout. #79

Closed samirmangroliya closed 11 years ago

samirmangroliya commented 11 years ago

untitled-1

this is my requirement when i select some row in listview its show this actionbar,how can i set action menu item(like 2 selected) in left side?

Regards samir

johannilsson commented 11 years ago

Hi @samirmangroliya this is called Contextual Action Bar and is not supported with this implementation of the action bar. An easier route would be to consider Sherlock which supports this and falls back on the native api when available. You could simulate it by updating the title using setTitle and remove the actions with removeAllActions when items is selected and then rebuild it when going out of the select context.