Questions tagged [contextual-action-bar]

The contextual action bar (CAB) is a temporary action bar that overlays the app's current action bar while data is selected. It appears after the user long-presses on a selectable data item.

The contextual action bar from the platform was introduced in API level 11(Honeycomb) to provide a new way to show contextual actions for selected content instead of the traditional context menu. Although it was introduced in the SDK starting with Honeycomb the contextual action bar is available to lower API versions thanks to various libraries(like the ActionBarSherlock library). The contextual action bar should be preferred to the old context menu because it offers a richer and better user experience. More information about the contextual action bar can be found in:

219 questions
0
votes
1 answer

RecyclerView: how to start Contextual Action Bar CAB with a Checkbox?

I have a RecyclerView list of CardViews and am using AppCompatActivity. Each CardView has a checkbox. When I click on the checkbox I would like to start a Contextual Action Bar. I would like to use an OnCheckedChangeListener and am having no…
AJW
  • 1,578
  • 3
  • 36
  • 77
0
votes
1 answer

Getting value of each selected item using a contextual action bar

I am using a contextual action bar and wish to retrieve each value selected to pass to another activity after I click on the 'mail' button. How can I do this?e Code for the CAB. mAdapter = new SelectionAdapter(this, R.layout.activity_result,…
Dhruv Verma
  • 420
  • 5
  • 13
0
votes
0 answers

angular 2 - contextual navbar

I'm thinking of implementing a "contextual" navbar, which displays elements (input, buttons, links...) according to the current routed pages need (so basically what macOS or the mac touchbar does) My approach is to have a separate navbar and page…
Han Che
  • 8,239
  • 19
  • 70
  • 116
0
votes
1 answer

Hide app/action bar when copy-pasting (contextual action bar)

I am making small changes to an open-source app I use called 'WaniKani for Android'. When I long-press some text (in WebReviewActivity), the copy-paste contextual action bar appears, but the regular action bar does not hide itself (as it should,…
0
votes
1 answer

WebViewAdd Custom Menu Item in Contextual Action Bar with overriding existing

I need to add some custom menu items in contextual action bar for WebView. My current research shows that only one of the following two things can be done. Override action mode to supply custom action items. In this case default items are gone. Use…
Ammar
  • 1,811
  • 5
  • 26
  • 60
0
votes
1 answer

Adding more options to Android default Contextual Action Bar

Is it possible to add more options to Android default Contextual Action Bar, what I mean is not only changing it in one application, but also altering all CABs in the entire system. If it's not possible, is there any other way to write an app which…
radzak
  • 2,986
  • 1
  • 18
  • 27
0
votes
1 answer

How to change CAB style in Android?

I'm trying to change the Contextual Action Bar style using this snippet