Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

Contextual Action Bar does not cover AndroidX Toolbar even with windowActionModeOverlay set

I'm new to Android development, so I'm worried that my confusion may come from a misunderstanding about the ecosystem as a whole, not the implementation. I have a ListView and want the behavior so ...
Calvin Godfrey's user avatar
4 votes
0 answers
174 views

Android 12 | ActionMode menu items are not showing icons but only title in Contextual Action Mode, type_floating

I am using Action mode type_floating in webview where am showing action mode on long click of webview. It is showing action mode menu items correctly but in Android 12, it is just showing titlte names ...
Kanika's user avatar
  • 10.7k
4 votes
2 answers
761 views

RecyclerView duplicating items after deletion from contextual action mode

In this part of my app, I am trying to implement deleting of selected favorite items via contextual action mode/bar, the problem is when I select an item then delete, it's deleted from the database ...
Dr Mido's user avatar
  • 2,624
2 votes
3 answers
1k views

How to change status bar color on entering contextual action mode

My application uses the app theme that inherits Theme.MaterialComponents.Light.NoActionBar. When user selects a list item and enters the contextual action mode, I want to change the action bar to dark ...
Tushar Kathuria's user avatar
0 votes
1 answer
105 views

Actionmode background issue on fragments

I am using 3 fragments with a tablayout and a toolbar and on each fragment it is possible to select an item to display an action mode. Each fragment has a different style with an "...
Rémy Benalouane's user avatar
0 votes
1 answer
135 views

Actionmode Bar doesn't cover whole titlebar

In my app I need to use the ActionMode. I have followed several Guides and Tutorials (https://medium.com/asos-techblog/style-actionmode-on-android-5e613fa77c32, https://developer.android.com/guide/...
Winter's user avatar
  • 5
1 vote
1 answer
415 views

Problem with displaying top app and contextual action bar in fragment

Initially, I tried to make the context menu appear after a long press on the RecyclerView element of the first fragment. Then I decided to make it at least appear. My application consists of three ...
Кирилл Химов's user avatar
0 votes
1 answer
305 views

Black status bar doesn't disappear when closing Contex Action Mode

To be able to make the drawer layout go under the status bar, I've needed to set its color to transparent and set SystemUIVisibility to fullscreen. When starting Context Action Mode the status bar ...
David Marquez's user avatar
0 votes
0 answers
35 views

Contextual action mode remove side bars onClick() : webview

I'm trying to hide sidebars that we usually see on selecting any text on webview, look at the image below: i want to hide these blue bars of selected text as its overlapping with my framelayout(...
josh's user avatar
  • 107
1 vote
1 answer
537 views

How handle click listener for recyclerView item from contextual action mode?

I want to make recyclerview item click like this image.When i selected recyclerview item press long click then contextual action mode is enable.If i select only one item then show edit menu item else ...
Rabbi hasan's user avatar
1 vote
1 answer
442 views

Contextual Action Bar (CAB) does not overlay Toolbar

I am really stuck with this. I want to use a CAB in a fragment, so I'm using actionMode = ((MainActivity)getActivity()).startActionMode(actionModeCallbacks); to call startActionMode I've been ...
Vento's user avatar
  • 155
0 votes
1 answer
1k views

Issue with recycler view contextual action mode

I have implemented a contextual action bar in my recycler view on long press of the row. Here I am showing a checkbox for each row when in action mode. And hiding based on a flag to check if it is not ...
dissect tech's user avatar
1 vote
1 answer
93 views

ActionBar changes colour after changing phone orientation and closing Contextual Action Bar

Problem First my ActionBar (with custom menu) is purple, then: Trigger CAB by long-click on my ListView Change phone orientation Cancel CAB ActionBar becomes white. This does not happen without ...
Hawk's user avatar
  • 2,092
0 votes
0 answers
60 views

Removing Toolbar on longclick the item

How to replace toolbar with contextual menu .... I had tried but i got 2 toolbar one is required contextual menu and other is normal toolbar as shown in pic
Sitaram Kommaraju's user avatar
2 votes
1 answer
966 views

startSupportActionMode() throws NullPointerException

I am calling startSupportActionMode() inside an AppCompatActivity. This activity is created by clicking "Basic Activity" in Android Studio. It uses AppBarLayout and ToolBar to create ActionBar. ...
Sanket Bhat's user avatar
0 votes
1 answer
774 views

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 ...
AJW's user avatar
  • 1,723
1 vote
2 answers
4k views

CardView selector?

I'm creating a notes app and I'm using a contextual action bar to delete notes. I have my notes displayed in a card view. I have the action bar working to the point where I can select notes and delete ...
Shadow Suave's user avatar
1 vote
0 answers
162 views

Can't Open Context Menu on Click of Menu Button in Android

I have a problem with the contextual menu, I have to control "MenuButton" without using of "Contextual Action bar menu (CAB)" when you make a long click and short click displays a context menu.I need ...
Secret's user avatar
  • 621
0 votes
1 answer
221 views

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 ...
Dhruv Verma's user avatar
4 votes
1 answer
1k views

Contextual action bar not overlapping toolbar completely

I'm adding contextual action bar after long click of RecyclerView element. Problem is toolbar is still visible. Contextual action bar doesn't overlap completely. Tried searching for info, but no or ...
Vygintas B's user avatar
  • 1,694
3 votes
2 answers
2k views

Disable contextual Action bar in android webview on text selection

How to disable contextual action bar in web view? I Want text selection feature to remain as it is , but i don't want the Contextual action bar to come, how can i disable it ? Using this code hides ...
Manohar's user avatar
  • 23.2k
2 votes
5 answers
4k views

How to highlight or check selected list items

How should I go about implementing Java or XML code for highlighting (or showing a checkbox over) a list row or grid item in Multiple-Choice Modal mode in Android for use with a contextual action bar? ...
Mo Sanei's user avatar
  • 475
0 votes
0 answers
173 views

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 ...
Han Che's user avatar
  • 8,459
1 vote
1 answer
334 views

Contextual Action Bar - action bar added above existing action bar (two action bars)

I have a RecyclerView which holds multiple CardView's and when a user long clicks a CardView, a Contextual Action Bar is shown with "delete" option. I used the recyclerview-multiselect library to do ...
Ofek Agmon's user avatar
  • 5,190
1 vote
0 answers
282 views

Contextual Action Mode for listview

(+):pros (-):cons Enabling the contextual action mode for individual views: (+) Can trigger contextual action bar (CAB) by clicking on particular view. (-) Do not provide onItemCheckedStateChanged()...
Van Cong Minh's user avatar
10 votes
0 answers
864 views

Open Custom dialog on text selection of webview

I have implement code of text selection in webview. It's working very fine without any issue. But I want to open custom dialog instead of default dialog. The which I have use its link is below How ...
Anand Savjani's user avatar
1 vote
1 answer
578 views

How to trigger contextual action bar (CAB) in Android without long-click event in order to select multiple items from ListView in Android

I've just learned how to create listview but do not know how to select multiple items without long-click on any item. I want trigger CAB after pressing button "Select" from action bar and then delete ...
Van Cong Minh's user avatar
0 votes
1 answer
131 views

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 ...
Aralox's user avatar
  • 1,459
4 votes
0 answers
236 views

Disabling Contextual Action Bar Crosswalk-Cordova

Contextual Action Bar (CAB) won't disable using Crosswalk as a plugin in Cordova. Tried everything, starting with the CSS, all the way through HTML & JavaScript, and even MainActivity.java & ...
Matías's user avatar
  • 363
2 votes
2 answers
3k views

remove back/home button from action mode on long press in android

I have implemented contextual action mode on long press inside recycler view. For that i have called ActionModeCallback from creating action mode . While creating action mode , back arrow is showing ...
user2021938's user avatar
1 vote
3 answers
588 views

Change bottom line color from Blue to something when in Action Mode

I want to know that can we change the bottom line color when user long press on list item and action mode is activated. In the Screenshot you can see that the bottom line color in action mode is blue. ...
Arslan Ali's user avatar
2 votes
0 answers
565 views

Android Contextual Action Bar (CAB) backgroundSplit attribute not working

I am assuming the backgroundSplit attribute controls what is shown as the orange line on the bottom of the CAB: When I go to style my CAB and change the background color, the backgroundSplit ...
mcp's user avatar
  • 2,036
0 votes
1 answer
89 views

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 ...
Ammar's user avatar
  • 1,821
0 votes
1 answer
204 views

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 ...
radzak's user avatar
  • 3,088
0 votes
1 answer
315 views

How to change CAB style in Android?

I'm trying to change the Contextual Action Bar style using this snippet <style name="AppTheme.Reader" parent="AppTheme"> <item name="android:actionModeStyle">@style/AppTheme....
Eric's user avatar
  • 488
0 votes
0 answers
445 views

How to delete Android listview items using Contextual Action Mode

I have succeeded in populating data from an SQLite db into a listview using SimpleCursorAdapter. Now I want to use Contextual Action Mode to delete some specific rows from listview and their ...
Niamh Doyle's user avatar
  • 1,939
3 votes
0 answers
90 views

Regarding Contextual Action Bar in webview?

I wanted to hide Contextual action bar in webview long press click. Is there any way to hide or disable it. I tried with below code: webView.setOnLongClickListener(new View.OnLongClickListener() { ...
Ganesh Katikar's user avatar
0 votes
0 answers
44 views

CAB menu not working

I Have a tablayout, within which in each tab, i have listviews that use custom adapters. I have setup the listview to Multi MODAL and defined a cabmenu. I have used the same cabmenu in another ...
user6005433's user avatar
2 votes
0 answers
146 views

Hide/Show ActionMode while Navigationdrawer opened/closed

I have a RecyclerView with Cards and i use the Contextual Actionbar only for one selected Card. Beside i implemented the NavigationDrawer from support design libary. And when the NavigationDrawer is ...
Muhammed Misir's user avatar
0 votes
2 answers
128 views

First long click is ignored in listview

I'm trying to build a listview that, when the user long clicks an item, shows the Contextual Action Bar (CAB) and lets the user select multiple items. The only issue I'm running into is that the first ...
Anubis's user avatar
  • 1,212
1 vote
1 answer
453 views

Android Contextual Action Bar - Get RecyclerView Position

I followed this tutorial (http://www.startingandroid.com/how-to-use-sqlite-database-in-android/) as I am relatively new to Android development and wanted to get an idea of how SQL works. As I am ...
Toby Clench's user avatar
0 votes
2 answers
1k views

Android startActionMode cannot be resolved

I have followed a tutorial (https://www.youtube.com/watch?v=8XR0cy3YgLo), modified it slightly and then incorporated the onLongClickListener (https://www.youtube.com/watch?v=jGW95imi9tw) where all of ...
Toby Clench's user avatar
0 votes
4 answers
131 views

OnItemLongClickListener() doesn't result in log tap gesture in ListFragment

Long tap gesture not working in ListFragment in combination with AdapterView.OnItemLongClickListener. I'm trying to achieve the GMail like long-tap selection and continuous selection on upcoming ...
Faisal's user avatar
  • 1,442
0 votes
2 answers
36 views

How can I change the background of a text in action bar?

I have an contextual Action Bar which appears when elements from a ListView are selected. It looks like this Sample Text is actually a button which icon="@null" and title="Sample Text", which will ...
rafaelc's user avatar
  • 59.1k
2 votes
1 answer
2k views

Android Webview : How to copy selected text in webview.

I am new in android development, I am create an apps to store selected webview content into sqlite database. When user select of word, custom contextual action bar will display in webview. And now I ...
Chan Yoong Hon's user avatar
-1 votes
2 answers
359 views

How to get a Contextual Action Bar visibility?

My question is pretty simple.How can I get a Contextual Action Bar (CAB) visibility? For instance, I have a ActionMode and a callback. mActionMode = activity.startActionMode(mCallback); Now I ...
rafaelc's user avatar
  • 59.1k
1 vote
2 answers
1k views

Android Webview: Override Contextual Action Bar

I am trying to override a contextual action bar in Android Webview. When I long click on a selected word, the custom action bar is displayed. However, when I click on the action bar button, nothing ...
Chan Yoong Hon's user avatar
0 votes
1 answer
210 views

How to make sure color change happens simultanously on both status bar and contextual action moded toolbar

Currently, I'm following suggestion from https://stackoverflow.com/a/29748810/72437 , in order to change status bar color, when entering contextual action mode. However, from the following video, ...
Cheok Yan Cheng's user avatar
4 votes
2 answers
2k views

Contextual Action Mode AppCompatActivity not show

I have my activity extending AppCompatActivity, and I wish to set a contextual action bar on it. So here is my onCreate method Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); ...
aiqency's user avatar
  • 1,033
0 votes
0 answers
125 views

How to remove Text Selection Text coming in contextual actionbar in android

I have set textView.setTextIsSelectable on textviews in my android app. It is working fine. But when I Long Click on any Textview it shows contextual actionbar in which it shows Back button, "Text ...
Prithniraj Nicyone's user avatar

1
2 3 4 5