<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<merge xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:gecko="http://schemas.android.com/apk/res-auto">

    <!-- Overall, we want 12dp of padding from mic to the right edge of the toolbar.
         However, setting a value of 12dp (using the padding from the parent container)
         does not match drawablePadding=12dp. Part of this is the url_bar_entry drawable
         overlaps the EditText, but I can't figure out the rest. Thus eyeballing for
         paddingRight. -->
    <org.mozilla.gecko.toolbar.ToolbarEditText
          android:id="@+id/url_edit_text"
          style="@style/UrlBar.Title"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1.0"
          android:inputType="textUri|textNoSuggestions"
          android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
          android:selectAllOnFocus="true"
          android:contentDescription="@string/url_bar_default_text"
          android:drawablePadding="12dp"
          android:paddingRight="8dp"
          gecko:autoUpdateTheme="false"/>

    <ImageButton android:id="@+id/qrcode"
                 android:layout_width="@dimen/page_action_button_width"
                 android:layout_height="match_parent"
                 android:src="@drawable/ab_qrcode"
                 android:background="@android:color/transparent"/>

    <ImageButton android:id="@+id/mic"
                 android:layout_width="@dimen/page_action_button_width"
                 android:layout_height="match_parent"
                 android:src="@drawable/ab_mic"
                 android:background="@android:color/transparent"/>

</merge>
