mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
156 lines
8.2 KiB
XML
156 lines
8.2 KiB
XML
<?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">
|
|
|
|
<ImageButton android:id="@+id/back"
|
|
style="@style/AddressBar.ImageButton.Back"/>
|
|
|
|
<ImageButton android:id="@+id/forward"
|
|
style="@style/AddressBar.ImageButton.Forward"/>
|
|
|
|
<org.mozilla.gecko.BrowserToolbarBackground android:id="@+id/address_bar_bg"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="@drawable/address_bar_bg"/>
|
|
|
|
<ImageView android:id="@+id/awesome_bar_entry"
|
|
style="@style/AddressBar.Button"
|
|
android:layout_marginLeft="4dp"
|
|
android:layout_marginRight="-19dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toLeftOf="@+id/tabs"
|
|
android:paddingRight="4dp"
|
|
android:duplicateParentState="true"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:src="@drawable/address_bar_url"
|
|
android:scaleType="fitXY"/>
|
|
|
|
<ImageView android:id="@+id/awesome_bar_right_edge"
|
|
style="@style/AddressBar.Button"
|
|
android:layout_alignLeft="@id/awesome_bar_entry"
|
|
android:layout_alignRight="@id/awesome_bar_entry"
|
|
android:layout_alignTop="@id/awesome_bar_entry"
|
|
android:layout_alignBottom="@id/awesome_bar_entry"
|
|
android:paddingRight="4dp"
|
|
android:duplicateParentState="true"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:src="@drawable/address_bar_right_edge"
|
|
android:scaleType="fitXY"/>
|
|
|
|
<LinearLayout android:id="@+id/menu_items"
|
|
style="@style/AddressBar.ImageButton.Unused"/>
|
|
|
|
<org.mozilla.gecko.ShapedButton android:id="@+id/menu"
|
|
style="@style/AddressBar.ImageButton"
|
|
android:layout_width="48dip"
|
|
android:layout_alignParentRight="true"
|
|
android:contentDescription="@string/menu"
|
|
android:background="@drawable/shaped_button"
|
|
android:visibility="gone"/>
|
|
|
|
<org.mozilla.gecko.GeckoImageView android:id="@+id/menu_icon"
|
|
style="@style/AddressBar.ImageButton"
|
|
android:layout_alignLeft="@id/menu"
|
|
android:layout_alignRight="@id/menu"
|
|
android:gravity="center_vertical"
|
|
android:src="@drawable/menu_level"
|
|
android:visibility="gone"/>
|
|
|
|
<org.mozilla.gecko.ShapedButton android:id="@+id/tabs"
|
|
style="@style/AddressBar.ImageButton"
|
|
android:layout_width="72dip"
|
|
android:layout_toLeftOf="@id/menu"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
gecko:curveTowards="right"
|
|
android:background="@drawable/shaped_button"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="37dip"
|
|
android:paddingRight="11dip"/>
|
|
|
|
<!-- The TextSwitcher should be shifted 24dp on the left, to avoid
|
|
the curve. On a 48dp space, centering 24dp image will leave
|
|
12dp on all sides. However this image has a perception of
|
|
2 layers. Hence to center this, an additional 4dp is added to the left.
|
|
The margins will be 40dp on left, 8dp on right, instead of ideal 30dp
|
|
and 12dp. -->
|
|
<org.mozilla.gecko.TabCounter android:id="@+id/tabs_counter"
|
|
style="@style/AddressBar.ImageButton.TabCount"
|
|
android:layout_width="24dip"
|
|
android:layout_height="24dip"
|
|
android:layout_marginLeft="40dip"
|
|
android:layout_marginRight="8dip"
|
|
android:layout_marginTop="12dip"
|
|
android:layout_alignRight="@id/tabs"/>
|
|
|
|
<LinearLayout android:id="@+id/awesome_bar_display_container"
|
|
style="@style/AddressBar.Button"
|
|
android:layout_toLeftOf="@id/tabs"
|
|
android:layout_marginRight="-24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton android:id="@+id/favicon"
|
|
style="@style/AddressBar.ImageButton"
|
|
android:layout_width="@dimen/browser_toolbar_favicon_size"
|
|
android:layout_height="fill_parent"
|
|
android:scaleType="fitCenter"
|
|
android:paddingLeft="12dip"
|
|
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="@dimen/browser_toolbar_lock_width"
|
|
android:scaleType="fitCenter"
|
|
android:layout_marginLeft="-4dip"
|
|
android:src="@drawable/site_security_level"
|
|
android:contentDescription="@string/site_security"
|
|
android:visibility="gone"/>
|
|
|
|
<org.mozilla.gecko.GeckoTextView 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="@color/awesome_bar_title"
|
|
android:textColorHint="@color/awesome_bar_title_hint"
|
|
android:gravity="center_vertical|left"
|
|
android:hint="@string/awesomebar_default_text"
|
|
android:layout_gravity="center_vertical"
|
|
gecko:autoUpdateTheme="false"/>
|
|
|
|
<org.mozilla.gecko.PageActionLayout android:id="@+id/page_action_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginRight="12dp"
|
|
android:visibility="gone"
|
|
android:orientation="horizontal"/>
|
|
|
|
<ImageButton android:id="@+id/stop"
|
|
style="@style/AddressBar.ImageButton.Icon"
|
|
android:src="@drawable/urlbar_stop"
|
|
android:contentDescription="@string/stop"
|
|
android:visibility="gone"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<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:contentDescription="@null"
|
|
android:visibility="gone"/>
|
|
|
|
</merge>
|