2012-08-31 12:00:24 -07:00
|
|
|
#filter substitution
|
2012-07-09 13:21:20 -07:00
|
|
|
<?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"
|
2012-08-31 12:00:24 -07:00
|
|
|
xmlns:gecko="http://schemas.android.com/apk/res/@ANDROID_PACKAGE_NAME@"
|
2012-07-09 13:21:20 -07:00
|
|
|
android:id="@+id/browser_toolbar"
|
|
|
|
style="@style/BrowserToolbar">
|
|
|
|
|
|
|
|
<RelativeLayout android:id="@+id/address_bar"
|
2012-10-12 04:57:07 -07:00
|
|
|
style="@style/AddressBar">
|
|
|
|
|
2012-10-31 22:12:02 -07:00
|
|
|
<org.mozilla.gecko.BrowserToolbarBackground android:id="@+id/address_bar_bg"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
gecko:curveTowards="left"
|
|
|
|
android:background="@drawable/address_bar_bg"/>
|
2012-07-09 13:21:20 -07:00
|
|
|
|
2012-08-31 12:00:24 -07:00
|
|
|
<org.mozilla.gecko.TabsButton android:id="@+id/tabs"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
|
|
|
android:layout_width="84dip"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
gecko:curveTowards="left"
|
|
|
|
gecko:cropped="true"
|
2012-10-31 22:12:02 -07:00
|
|
|
gecko:sidebar="true"
|
2012-08-31 12:00:24 -07:00
|
|
|
android:background="@drawable/tabs_button"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:src="@drawable/tabs_level"
|
|
|
|
android:paddingLeft="6dip"
|
|
|
|
android:paddingRight="32dip"/>
|
2012-07-09 13:21:20 -07:00
|
|
|
|
2012-11-15 23:59:25 -08:00
|
|
|
<Gecko.TextSwitcher android:id="@+id/tabs_count"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
|
|
|
android:layout_width="52dip"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_alignLeft="@id/tabs"
|
|
|
|
android:gravity="center_horizontal"/>
|
2012-11-28 18:55:05 -08:00
|
|
|
|
2012-11-16 00:21:46 -08:00
|
|
|
<Gecko.ImageButton android:id="@+id/menu"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
|
|
|
android:layout_width="56dip"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:src="@drawable/menu_level"
|
|
|
|
android:contentDescription="@string/menu"
|
|
|
|
android:background="@drawable/action_bar_button"
|
|
|
|
android:paddingLeft="14dip"
|
|
|
|
android:paddingRight="14dip"
|
|
|
|
android:visibility="gone"/>
|
2012-07-12 15:03:09 -07:00
|
|
|
|
|
|
|
<LinearLayout android:id="@+id/menu_items"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_toLeftOf="@id/menu"/>
|
2012-08-23 14:54:31 -07:00
|
|
|
|
2012-10-12 04:57:07 -07:00
|
|
|
<RelativeLayout style="@style/AddressBar.Button"
|
|
|
|
android:layout_toRightOf="@id/tabs"
|
|
|
|
android:layout_toLeftOf="@id/menu_items"
|
|
|
|
android:layout_marginLeft="-28dp"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_centerVertical="true">
|
|
|
|
|
2012-11-15 21:40:57 -08:00
|
|
|
<Gecko.RelativeLayout android:id="@+id/awesome_bar"
|
|
|
|
style="@style/AddressBar.Button"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true">
|
|
|
|
|
|
|
|
<Gecko.ImageView style="@style/AddressBar.Button"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="0dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:background="@drawable/address_bar_url"/>
|
2012-10-12 04:57:07 -07:00
|
|
|
|
2012-10-31 22:12:02 -07:00
|
|
|
<view class="org.mozilla.gecko.BrowserToolbar$RightEdge"
|
|
|
|
android:id="@+id/awesome_bar_right_edge"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:duplicateParentState="true">
|
2012-10-12 04:57:07 -07:00
|
|
|
|
2012-11-15 21:40:57 -08:00
|
|
|
<Gecko.ImageView android:layout_width="50dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:layout_marginLeft="-26dp"
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:src="@drawable/address_bar_url"/>
|
2012-10-12 04:57:07 -07:00
|
|
|
|
2012-10-31 22:12:02 -07:00
|
|
|
</view>
|
2012-10-12 04:57:07 -07:00
|
|
|
|
2012-11-15 21:40:57 -08:00
|
|
|
</Gecko.RelativeLayout>
|
2012-08-23 11:27:11 -07:00
|
|
|
|
2012-11-30 13:16:45 -08:00
|
|
|
<org.mozilla.gecko.ForwardButton android:id="@+id/forward"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
|
|
|
android:layout_width="64dip"
|
|
|
|
android:layout_height="42dip"
|
|
|
|
android:layout_marginLeft="22dp"
|
|
|
|
android:paddingLeft="22dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:src="@drawable/ic_menu_forward"
|
|
|
|
android:contentDescription="@string/forward"
|
|
|
|
android:background="@drawable/address_bar_nav_button"/>
|
|
|
|
|
|
|
|
<org.mozilla.gecko.BackButton android:id="@+id/back"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
|
|
|
android:layout_width="50dip"
|
|
|
|
android:layout_height="50dip"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:src="@drawable/ic_menu_back"
|
|
|
|
android:contentDescription="@string/back"
|
|
|
|
android:background="@drawable/address_bar_nav_button"/>
|
2012-08-23 11:27:11 -07:00
|
|
|
|
|
|
|
<LinearLayout style="@style/AddressBar.Button"
|
|
|
|
android:layout_marginLeft="84dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginBottom="6dp"
|
|
|
|
android:layout_marginRight="0dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton android:id="@+id/favicon"
|
|
|
|
style="@style/AddressBar.ImageButton"
|
2012-11-06 19:51:06 -08:00
|
|
|
android:layout_width="@dimen/browser_toolbar_favicon_size"
|
2012-08-23 11:27:11 -07:00
|
|
|
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"
|
2012-08-23 11:27:11 -07:00
|
|
|
android:layout_width="@dimen/browser_toolbar_lock_width"
|
2012-08-23 11:27:11 -07:00
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:layout_marginLeft="-4dip"
|
|
|
|
android:src="@drawable/site_security_level"
|
|
|
|
android:contentDescription="@string/site_security"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
2012-11-15 21:40:57 -08:00
|
|
|
<Gecko.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="@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"/>
|
2012-08-23 11:27:11 -07:00
|
|
|
|
|
|
|
<ImageButton android:id="@+id/reader"
|
|
|
|
style="@style/AddressBar.ImageButton.Icon"
|
|
|
|
android:src="@drawable/reader"
|
2012-09-10 10:24:38 -07:00
|
|
|
android:contentDescription="@string/reader"
|
2012-08-23 11:27:11 -07:00
|
|
|
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>
|
|
|
|
|
2012-10-12 04:57:07 -07:00
|
|
|
</RelativeLayout>
|
2012-07-09 13:21:20 -07:00
|
|
|
|
|
|
|
<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>
|