android - How to add a button to toolbar, and top of menu -


is possible add button toolbar of android firefox, , top of pop menu shown in screenshot below:

edit: found screenshot of addon had other addons installed added button there, pleease see addon screenshots: https://addons.mozilla.org/en-us/android/addon/quitnow/

here screenshot:

see nightly globe , whatever left of it, im trying same :) top row in second picture toolbar button icons show in top toolbar when there enough screen space im interested in learning how add 1st , second row

the documentation developing firefox mobile marks ui apis not supported. mozilla uses native ui of android build firefox android. therefore related xul might not work @ all.

now there extensions firefox android api , thing related you'd achieve can found pageactions.jsm, can used like:

pageactions.add({   icon: "drawable://alert_app",   title: "my page action",   clickcallback: function() { win.alert("clicked!"); } }); 

these added toolbar, displayed inside of adressbar not beside it. in screenshot posted, little book icon pageaction. there's limitation well:

note: maximum of 2 page action items shown users @ time. if users have 3 page actions showing, overflow menu appear handle ones. action has no control on whether shown in urlbar or overflow. don't depend on page action showing in main urlbar.

the buttons find @ top of menu can't changed neither. star @ left bookmarks , graph on right button sharing web page. space inbetween used display last 2 applications shared web page with.

so basically, you'd not possible @ , addons know trying achieve similar use page actions.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -