contextual-action-bar Questions

3

Solved

I have an application that uses theme attribute (colorPrimaryDark) to color the Status Bar on Android v21+: This is working fine. Now, when user long-presses a list item and enters the contextua...
Hypothesis asked 14/4, 2015 at 3:6

3

Solved

In my application there is a ListFragment where each item from the list contains a checkbox. Whenever the user clicks on one of those checkboxes the app starts an ActionMode context menu. But I wan...

4

Solved

I am getting this by default I want this This should be trivial enough but I can't find anything related on Android docs. private void setupContextualBar() { mActionModeCallback = new Actio...

1

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...
Thallium asked 21/11, 2017 at 6:23

2

Solved

I've got a silly little problem. I've registered a ListFragment both as OnItemClickListener and OnItemLongClickListener of its own ListView. When the onItemClick event is called, an intent for the...

0

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 Ho...

3

Solved

I have an app where I want to be able to show a TextView (or EditText) that allows the user to select some text, then press a button to have something done with that text. Implementing this on Andr...
Stomodaeum asked 21/10, 2012 at 6:4

4

After updating my project to use the appcompat library to version 21.0.0 I have a problem with a context menu created with a gridview multichoice modal event. The same code works nice with appcompa...

2

Solved

Is there any way to programmatically start contextual action bar associated with a text view, on a button click? It should contain default options of copy/select all as well. Basically, I want to s...

2

Solved

I'm facing some problems with a SearchView in a Contextual Action Bar called by a Fragment. The major one is that when my SearchView is expanded, it makes disappear all other items in action bar (e...

1

I have an activity with an app bar and a navigation drawer. The app bar is implemented using the new Toolbar class from appcompat-v7 library version 21.+, and the navigation drawer is displayed in ...

3

Solved

The question is similar to this except for the fact that instead of using a View Pager (VP) I want to use a Navigation Drawer (ND). I have a list of elements that activates a Contextual Action Bar ...
Antagonism asked 22/1, 2014 at 16:18

3

Solved

In my application I am showing a contextual action bar and because I don't have room for all the actions, some of them are accessed under the overflow menu button. Now I want to style the overflow ...
Churinga asked 17/12, 2014 at 11:0

1

Solved

I'm trying to use the CAB with a ListView: listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); listView.setMultiChoiceModeListener(new ListView.MultiChoiceModeListener() { @Override pu...

1

Solved

I'm redesigning my current app roughly following Chris Bane's excellent intro here. One thing struck me, though: If I set the new v7-appcompat Toolbar as actionbar replacement via setSupport...
Fenske asked 21/10, 2014 at 7:45

3

Solved

I have a class that extends ListActivity where the list items respond to OnClick events. Adding an OnItemLongClickListener does not work. The onItemLongClick() function is not called (no log-output...
Assignor asked 29/11, 2013 at 18:46

1

Solved

i am using orange color theme in ma action bar ,In edit Text when user try to do copy,paste it invokes the contextual action with default blue color background ,it's little weird for users,can i ch...
Kizzykjersti asked 18/7, 2014 at 8:18

1

I used SherlockActionBar in my application, but after I began to use appcompat. And get error "The method startActionMode(ActionMode.Callback) in the type Activity is not applicable for the argume...

1

Solved

I have implemented an ActionMode.Callback for custom text selection functions within a WebView. The problem that I am having is that the selection and the action mode states do not match. When I l...

4

Solved

I'm looking for style information on the Contextual Action bar (CAB). I just need to change the colour of the text in fact.. As you can see from the above, this is using the standard Theme.Holo....
Stemma asked 26/4, 2012 at 17:19

1

My app's theme looks like shown in the following screenshot: As the theme is based on Theme.Holo.Light which contains dark action bar texts and overflow icon, I adjusted the overflow icon using ...
Too asked 22/10, 2013 at 15:25

2

Solved

I want to override the existing default Contextual Action Bar(CAB) for text selection. I mean, I want to display my own CAB, with my own buttons, when some text is selected on the webview. I tried ...
Delly asked 12/3, 2013 at 19:10

2

My use case: I have an activity with a ViewPager as its only view element, set up with three Fragments for its three pages (using a FragmentPagerAdapter). One of these fragments is a ListFragment,...

1

It is possible to have a split Action Bar only in Action Mode? My application have only the top action bar, but it's Contextual Action Bar needs to be splitted in two (top/bottom). I found this: ...
Phyllisphylloclade asked 27/4, 2013 at 15:59

2

Solved

I want context menu to appear after long clicking an item in a custom list view. I am using the ActionBarSherlock. Trying to debug using Toast notifications I have discovered that Long click event ...
Known asked 19/8, 2013 at 11:1

© 2022 - 2024 — McMap. All rights reserved.