summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/layout/toolbar_display_layout.xml
blob: 4caacb3797bfb218b72c58b1317a6da477967a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?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">

    <!-- The site security icon is misaligned with the page title so
         we add a bottom margin to align their bottoms.
         Site security icon must have exact position and size as search icon in
         edit layout -->
    <ImageButton android:id="@+id/site_security"
                 style="@style/UrlBar.ImageButton"
                 android:layout_width="@dimen/browser_toolbar_site_security_width"
                 android:layout_height="@dimen/browser_toolbar_site_security_height"
                 android:scaleType="fitCenter"
                 android:layout_marginRight="@dimen/browser_toolbar_site_security_margin_right"
                 android:layout_marginBottom="@dimen/browser_toolbar_site_security_margin_bottom"
                 android:paddingLeft="@dimen/browser_toolbar_site_security_padding_horizontal"
                 android:paddingRight="@dimen/browser_toolbar_site_security_padding_horizontal"
                 android:paddingTop="@dimen/browser_toolbar_site_security_padding_vertical"
                 android:paddingBottom="@dimen/browser_toolbar_site_security_padding_vertical"
                 android:src="@drawable/site_security_level"
                 android:contentDescription="@string/site_security"
                 android:layout_gravity="center_vertical" />

    <org.mozilla.gecko.widget.FadedMultiColorTextView
            android:id="@+id/url_bar_title"
            style="@style/UrlBar.Title"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1.0"
            gecko:fadeWidth="40dip"
            gecko:fadeBackgroundColor="@color/toolbar_display_layout_bg"
            gecko:autoUpdateTheme="false"/>

    <org.mozilla.gecko.toolbar.PageActionLayout android:id="@+id/page_action_layout"
                                                android:layout_width="wrap_content"
                                                android:layout_height="match_parent"
                                                android:visibility="gone"
                                                android:orientation="horizontal"/>

    <ImageButton android:id="@+id/stop"
                 android:layout_width="@dimen/page_action_button_width"
                 android:layout_height="match_parent"
                 android:src="@drawable/urlbar_stop"
                 android:contentDescription="@string/stop"
                 android:background="#00ffffff"
                 android:visibility="gone"/>

</merge>