WebViewAdd Custom Menu Item in Contextual Action Bar with overriding existing - android

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 system provided action mode. In this way, I can't add my menu items.

May this will solve your problem.
https://github.com/TheFinestArtist/FinestWebView-Android

Related

Is it possible to customize items in split action bar?

I'm working with split action bar for my project, i would like to know is it possible to customize the items position in split action bar (i.e) i want some of the menu items in top of the action bar and some of them bottom of the action bar dynamically as my wish is it possible ?
Thanks in advance,
It is not possible to use normal actions on the top and split ActionBar at the same time. There is a trick you can use that is described below:
How to display both normal and split ActionBar?
But it is an old question and ActionBar is deprecated. You can now use multiple Toolbar objects instead of ActionBar. That way you can keep one of them at the bottom and add whatever actions you want to it.

Android: Action Bar with Different Action Buttons

I am using Android Tab Navigation using Combat Action Bar. I have implemented Custom Action Bar.
Now i want to add different buttons to Action Bar According to tabs. i want some thing like that.
In some fragment i need this button, while in other i need different button.
Any Help Will be Appreciated.
Thanks
you can use custom action bar to add number of buttons.
Try This:-
Link Here: http://www.djbp.co.uk/android-actionbar-adding-buttons/

How to get notified when when action items get into the overflow menu?

When you put a lot of action items on the action bar, some of them get to be inserted into the overflow menu, or become available by clicking on the menu button (if present).
Is there a way to be notified when this occurs? Maybe even know which items got to be into the overflow menu (or available via the menu button) ?
Again, I don't ask how to put items there and I don't need to get explanation about how to define action items. I ask how to know when and which items get to be there.
You cannot decide which item to be into Action overflow menu but you can decide which to be shown always on Action bar.
You can also use "always" to declare that an item always appear as
an action button. However, you should not force an item to appear in
the action bar this way. Doing so can create layout problems on
devices with a narrow screen. It's best to instead use "ifRoom" to
request that an item appear in the action bar, but allow the system to
move it into the overflow when there's not enough room. However, it
might be necessary to use this value if the item includes an action
view that cannot be collapsed and must always be visible to provide
access to a critical feature.
http://developer.android.com/guide/topics/ui/actionbar.html

Drop down menu in android

I have a problem with action bar and menu. I want to create drop down menu in action bar.I have icon which when I click on it I get drop down list with items where item have icon and title. Is there any standard icon in action bar or I need create something else?
Study these links link1
link2 Hope this will solve your problem
Add Menus items to your ActionBar and set android:showAsAction="never" , ActionBar will create a dropdown menu and display all your Menu items if there is no room on the standard action bar.
You can also change the style using android:actionDropDownStyle.
Read this

Action Bar Sherlock - Hide Actions on Collapse

I have three actions with the property SHOW_AS_ACTION_ALWAYS since I want to have the three of them always showing. However one of them has a collapse action view, and I wan't to hide the other two to have the full action bar for my layout when I click the action. Is there any way to do this?
This only seems to work if I use SHOW_AS_ACTION_IF_ROOM but this way I only get two items on the action bar instead of three.

Categories

Resources