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

Contextual ActionBar copy text from custom ListView

I have a custom ListView adapter which contains 2 Textviews for each item , On long click on the item I want to have the option to copy the text from 1 of these Textviews to the clipboard, the question is how can i get this Textview's text? …
0
votes
0 answers

Contextual Action Bar in Webview text Selection

I found a lot of question about this problem, but I can't fix it. I am creating custom contextual action bars (CAB) within WebView i followed this Tutorial My problem is CAB working fine in setOnLongClickListener but i cant able to select the…
prabhakaran
  • 668
  • 2
  • 10
  • 33
0
votes
0 answers

Android - Contextual ActionBar with ListFragments inside ViewPager

Good evening! Question: What is the best method of invoking the Contextual ActionBar when long selecting a row inside of a ListFragment? My Situation: I have a ViewPager backed by a FragmentStatePagerAdapter, this ViewPager contains 9 different…
Nick H
  • 8,897
  • 9
  • 41
  • 64
0
votes
1 answer

Support Contextual Action Bar never inflates

In order to add a contextual action bar to my application using the support action bar v7 library I implemented it like this : My ActionBarActivity (support v7) : package com.supinfo.cubbyhole.mobileapp.activities; import…
0
votes
0 answers

Selecting all Items in a ListView - ActionMode

I have an ListView that has ActionMode features implemented. Long-pressing any list item brings up the contextual ActionMode. And it has multi-select and all that. What I'm trying to do is and cannot figure out how to is select all items in the list…
0
votes
1 answer

How to add more options to Android default Contextual Action Bar

As we know, by default, after selecting some text on views, android displays Contextual Action Bar (CAB) with some default options, such as: copy, cut, select all... Now, I want to have an application (that has only 2 options: ON/OFF), If I turn it…
Toan Tran Van
  • 695
  • 1
  • 7
  • 25
0
votes
1 answer

Nested Contextual Action Bars

I am creating custom contextual action bars (CAB) within a custom WebView. My requirements are such that selecting a particular option from the first CAB will open a second CAB. This is the end goal: I have made this happen, but the selection is…
Sean Beach
  • 2,050
  • 4
  • 26
  • 35
0
votes
1 answer

building something like a contextual actionbar

I am working on a project and it's nearly finished. but I've been stuck on a problem for so long now. My application uses contextual actionbar for selecting list items but as you must know, Contextual actionbar is not available for older versions of…
0
votes
1 answer

ListView which allows long press for contextual menu, yet also allow selecting text

I'm not sure if this possible, but I'd like to somehow have text on rows of a List to be selectable for copying but also, long press to bring up a contextual menu. I know that long press is required for selecting individual text, but its being…
wired00
  • 13,930
  • 7
  • 70
  • 73
0
votes
1 answer

ExpandableListView: make groups make non-selectable in ActionMode

My problem is - I've got an ExpandableListView and want to use Contextual Action Bar (CAB) on it's child items. The bad thing is - the group items are also get selected by long-click, which is bad for me. So is there any way to make them…
0
votes
1 answer

How Do i Show Contextual Action Bar from List Adapter?

I'm a noob to android development and I am trying to display a CAB from a List_Adapter when a user clicks a button on a listview item. I'm following the ActionbarSherlock sample but am not able to figure why I am getting the error "The method…
0
votes
1 answer

Dialog and Contextual Action Bar

I have a Dialog that has a ListView in it, and when you select an item a contextual actionBar needs to appear. This is what I have so far This is inside my Dialog's ListView adapter's getView method. searchView is the view. bAct is my Activity that…
TMH
  • 6,096
  • 7
  • 51
  • 88
0
votes
1 answer

ListView contextual action bar for pre honeycomb devices with ActionBarSherlock

To use contextual action bar on Android Honeycomb and later, I would normally check for the SDK_INT being 11 or later, and then proceed with mListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); Now, with ActionBarSherlock I am trying to…
0
votes
0 answers

how to change the position of Action menu item in an action bar?

I would like to change the position of the item in my action bar. I would like to have something like the theme used by samsung the figure below(https://i.stack.imgur.com/LCpkV.jpg). the menu item is given by the code below.
0
votes
1 answer

How to create an OK/Submit button in the ActionBar?

I actually have two questions: Is there a way to mark a menu item in the ActionBar as the OK/submission button, or is it just a regular item? Is there a built-in theme for an OK button in the ActionBar (maybe something that looks like a tick-mark?)…
1 2 3
14
15