android-components / mozilla.components.browser.toolbar / BrowserToolbar / <init>

# <init>

`BrowserToolbar(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)`

A customizable toolbar for browsers.

The toolbar can switch between two modes: display and edit. The display mode displays the current URL and controls for navigation. In edit mode the current URL can be edited. Those two modes are implemented by the DisplayToolbar and EditToolbar classes.

        +----------------+
        | BrowserToolbar |
        +--------+-------+
                 +
         +-------+-------+
         |               |

+---------v------+ +-------v--------+ | DisplayToolbar | | EditToolbar | +----------------+ +----------------+