mobile/android/base/resources/layout-land-v14/browser_toolbar.xml
author Lucas Rocha <lucasr@mozilla.com>
Thu, 23 Aug 2012 19:27:11 +0100
changeset 105458 fde4b39fa70805ed32e7f6989146f7079c4a1f22
parent 105257 7fb25861ffd9d6b23d10d783f8e68160f3527315
child 105459 7e5db456160a178717f044d5fba40862c7402141
permissions -rw-r--r--
Bug 771380 - Reorganize toolbar layout to better handle dynamic icons (r=sriram) * * * fold me * * * title fix

<?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/. -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/browser_toolbar"
              style="@style/BrowserToolbar">

    <RelativeLayout android:id="@+id/address_bar"
                    style="@style/AddressBar">

        <ImageButton android:id="@+id/back"
                     android:contentDescription="@string/back"
                     style="@style/AddressBar.ImageButton.Unused"/>

        <ImageButton android:id="@+id/forward"
                     android:contentDescription="@string/forward"
                     style="@style/AddressBar.ImageButton.Unused"/>

        <LinearLayout android:id="@+id/menu_items"
                      android:layout_width="0dip"
                      android:layout_height="0dip"
                      android:visibility="gone"/>

        <View android:id="@+id/curve"
              android:layout_width="60dip"
              android:layout_height="fill_parent"
              android:layout_alignParentRight="true"
              android:background="@drawable/address_bar_bg_curve"/>

        <View android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_alignParentLeft="true"
              android:layout_alignParentBottom="true"
              android:layout_toLeftOf="@id/curve"
              android:background="@drawable/address_bar_bg"/>

        <ImageButton android:id="@+id/menu"
                     style="@style/AddressBar.ImageButton.Unused"/>

        <ImageButton android:id="@+id/tabs"
                     style="@style/AddressBar.ImageButton"
                     android:layout_width="60dip"
                     android:layout_alignParentRight="true"
                     android:background="@drawable/tabs_crop_button"
                     android:gravity="center_vertical"
                     android:src="@drawable/tabs_level"
                     android:paddingLeft="30dip"
                     android:paddingRight="10dip"/>

        <TextSwitcher android:id="@+id/tabs_count"
                     style="@style/AddressBar.ImageButton"
                     android:layout_width="39dip"
                     android:layout_height="wrap_content"
                     android:layout_marginTop="4.5dp"
                     android:layout_alignRight="@id/tabs"
                     android:gravity="center_horizontal"/>

        <FrameLayout style="@style/AddressBar.Button"
                     android:layout_marginTop="3dp"
                     android:layout_marginBottom="3dp"
                     android:layout_marginLeft="4dp"
                     android:layout_marginRight="45dp"
                     android:layout_alignParentLeft="true"
                     android:layout_alignParentBottom="true"
                     android:layout_centerVertical="true">

            <Button android:id="@+id/awesome_bar"
                    style="@style/AddressBar.Button"
                    android:background="@drawable/address_bar_url"/>

            <LinearLayout style="@style/AddressBar.Button"
                          android:orientation="horizontal">

                <ImageButton android:id="@+id/favicon"
                             style="@style/AddressBar.ImageButton"
                             android:layout_width="29.33dip"
                             android:layout_height="fill_parent"
                             android:scaleType="fitCenter"
                             android:paddingLeft="8dip"
                             android:layout_marginRight="4dip"
                             android:layout_gravity="center_vertical"
                             android:src="@drawable/favicon"/>

                <ImageButton android:id="@+id/site_security"
                             style="@style/AddressBar.ImageButton"
                             android:layout_width="21.33dip"
                             android:scaleType="fitCenter"
                             android:layout_marginLeft="-4dip"
                             android:paddingLeft="1dp"
                             android:paddingRight="1dp"
                             android:src="@drawable/site_security_level"
                             android:contentDescription="@string/site_security"
                             android:visibility="gone"/>

                <TextView android:id="@+id/awesome_bar_title"
                          style="@style/AddressBar.Button"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:layout_weight="1.0"
                          android:singleLine="true"
                          android:paddingRight="8dp"
                          android:textColor="#222222"
                          android:gravity="center_vertical|left"
                          android:hint="@string/awesomebar_default_text"
                          android:layout_gravity="center_vertical"/>

                <ImageButton android:id="@+id/reader"
                             style="@style/AddressBar.ImageButton.Icon"
                             android:src="@drawable/reader"
                             android:contentDescription="@string/reader_mode"
                             android:visibility="gone"/>

                <ImageButton android:id="@+id/stop"
                             style="@style/AddressBar.ImageButton.Icon"
                             android:src="@drawable/urlbar_stop"
                             android:contentDescription="@string/stop"
                             android:visibility="gone"/>

            </LinearLayout>

        </FrameLayout>

         <ImageView android:id="@+id/shadow"
                    android:layout_width="fill_parent"
                    android:layout_height="2dp"
                    android:layout_alignParentBottom="true"
                    android:background="@drawable/address_bar_bg_shadow_repeat"
                    android:visibility="gone"/>

    </RelativeLayout>

</LinearLayout>