mobile/android/base/resources/layout-large-v11/browser_toolbar.xml
author Ryan VanderMeulen <ryanvm@gmail.com>
Fri, 15 Aug 2014 15:12:45 -0400
changeset 199784 d18d3e14ac3ebce527241cdc585c1f92aed1e818
parent 199779 5083e681191a1db01e70462b7f93765aa459bba5
child 200026 0a0c695b4576da15069ccac5283f836eb5519716
permissions -rw-r--r--
Backed out 11 changesets (bug 1010740, bug 1054264, bug 1010739, bug 1042804, bug 1019035, bug 1010741, bug 1053884, bug 1054268) for frequent robocop failures. Backed out changeset 31d4832196f6 (bug 1054268) Backed out changeset 9e0e63359e77 (bug 1054264) Backed out changeset 5083e681191a (bug 1054264) Backed out changeset 7844cf23c521 (bug 1053884) Backed out changeset dd1a8ebbfae3 (bug 1042804) Backed out changeset e56bbc8b5bd0 (bug 1019035) Backed out changeset 6908f8780c29 (bug 1010740) Backed out changeset aaa50f34df6d (bug 1010740) Backed out changeset 8474627f88d5 (bug 1010739) Backed out changeset cbb72f0aa532 (bug 1010741) Backed out changeset 54179c9a121a (bug 1010741)

<?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">

    <org.mozilla.gecko.toolbar.ShapedButton android:id="@+id/tabs"
                                            style="@style/UrlBar.ImageButton"
                                            android:layout_width="84dip"
                                            android:layout_alignParentLeft="true"
                                            gecko:curveTowards="left"
                                            android:background="@drawable/shaped_button"
                                            android:gravity="center_vertical"
                                            android:paddingLeft="6dip"
                                            android:paddingRight="38dip"/>

    <!-- The TextSwitcher should be shifted 28dp on the right, to avoid
         the curve. On a 56dp space, centering 24dp image will leave
         16dp on all sides. However this image has a perception of
         2 layers. Hence to center this, an additional 4dp is added to the right.
         The margins will be 12dp on left, 48dp on right, instead of ideal 16dp
         and 44dp. -->
    <org.mozilla.gecko.toolbar.TabCounter android:id="@+id/tabs_counter"
                        style="@style/UrlBar.ImageButton.TabCount"
                        android:layout_width="24dip"
                        android:layout_height="24dip"
                        android:layout_marginLeft="12dip"
                        android:layout_marginRight="48dip"
                        android:layout_marginTop="16dp"
                        android:layout_alignLeft="@id/tabs"/>

    <!-- In editing mode, the toolbar shrinks by changing to
         dynamically constructed LayoutParams. -->
    <ImageView android:id="@+id/url_bar_entry"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_toRightOf="@id/tabs"
               android:layout_toLeftOf="@id/menu_items"
               android:layout_marginLeft="-18dp"
               android:layout_marginTop="7dp"
               android:layout_marginBottom="7dp"
               android:duplicateParentState="true"
               android:clickable="false"
               android:focusable="false"
               android:background="@drawable/url_bar_entry"/>

    <org.mozilla.gecko.toolbar.ForwardButton style="@style/UrlBar.ImageButton.Forward"
                                             android:id="@+id/forward"
                                             android:layout_toRightOf="@+id/tabs"/>

    <org.mozilla.gecko.toolbar.BackButton android:id="@+id/back"
                                          style="@style/UrlBar.ImageButton"
                                          android:layout_width="50dip"
                                          android:layout_height="50dip"
                                          android:layout_toRightOf="@id/tabs"
                                          android:layout_marginLeft="-28dp"
                                          android:layout_centerVertical="true"
                                          android:padding="13dp"
                                          android:src="@drawable/ic_menu_back"
                                          android:contentDescription="@string/back"
                                          android:background="@drawable/url_bar_nav_button"/>

    <org.mozilla.gecko.toolbar.ToolbarEditLayout android:id="@+id/edit_layout"
                  style="@style/UrlBar.Button"
                  android:paddingLeft="12dp"
                  android:paddingRight="12dp"
                  android:visibility="gone"
                  android:orientation="horizontal"
                  android:layout_toRightOf="@id/back"
                  android:layout_toLeftOf="@id/menu_items"/>

    <org.mozilla.gecko.toolbar.ToolbarDisplayLayout android:id="@+id/display_layout"
                  style="@style/UrlBar.Button.Container"
                  android:layout_toRightOf="@id/back"
                  android:layout_toLeftOf="@id/menu_items"/>

    <LinearLayout android:id="@+id/menu_items"
                  android:layout_width="wrap_content"
                  android:layout_height="match_parent"
                  android:layout_marginLeft="3dp"
                  android:orientation="horizontal"
                  android:layout_toLeftOf="@id/menu"
                  android:layout_alignWithParentIfMissing="true"/>

    <org.mozilla.gecko.widget.ThemedImageButton android:id="@+id/menu"
                                                style="@style/UrlBar.ImageButton"
                                                android:layout_width="56dip"
                                                android:layout_alignParentRight="true"
                                                android:contentDescription="@string/menu"
                                                android:background="@drawable/action_bar_button"
                                                android:visibility="gone"/>

    <org.mozilla.gecko.widget.ThemedImageView android:id="@+id/menu_icon"
                                              style="@style/UrlBar.ImageButton"
                                              android:layout_alignLeft="@id/menu"
                                              android:layout_alignRight="@id/menu"
                                              android:gravity="center_vertical"
                                              android:src="@drawable/menu_level"
                                              android:visibility="gone"/>

    <ImageView android:id="@+id/shadow"
               android:layout_width="match_parent"
               android:layout_height="2dp"
               android:layout_alignParentBottom="true"
               android:background="@color/url_bar_shadow"
               android:contentDescription="@null"/>

    <!-- We draw after the menu items so when they are hidden, the cancel button,
         which is thus drawn on top, may be pressed. -->
    <org.mozilla.gecko.widget.ThemedImageView
            android:id="@+id/edit_cancel"
            style="@style/UrlBar.ImageButton.Icon"
            android:layout_alignParentRight="true"
            android:src="@drawable/close_edit_mode_selector"
            android:paddingLeft="2dp"
            android:paddingRight="2dp"
            android:contentDescription="@string/edit_mode_cancel"
            android:visibility="gone"/>

</merge>