|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 <merge xmlns:android="http://schemas.android.com/apk/res/android" |
|
7 xmlns:gecko="http://schemas.android.com/apk/res-auto"> |
|
8 |
|
9 <org.mozilla.gecko.toolbar.ShapedButton android:id="@+id/tabs" |
|
10 style="@style/UrlBar.ImageButton" |
|
11 android:layout_width="84dip" |
|
12 android:layout_alignParentLeft="true" |
|
13 gecko:curveTowards="left" |
|
14 android:background="@drawable/shaped_button" |
|
15 android:gravity="center_vertical" |
|
16 android:paddingLeft="6dip" |
|
17 android:paddingRight="38dip"/> |
|
18 |
|
19 <!-- The TextSwitcher should be shifted 28dp on the right, to avoid |
|
20 the curve. On a 56dp space, centering 24dp image will leave |
|
21 16dp on all sides. However this image has a perception of |
|
22 2 layers. Hence to center this, an additional 4dp is added to the right. |
|
23 The margins will be 12dp on left, 48dp on right, instead of ideal 16dp |
|
24 and 44dp. --> |
|
25 <org.mozilla.gecko.toolbar.TabCounter android:id="@+id/tabs_counter" |
|
26 style="@style/UrlBar.ImageButton.TabCount" |
|
27 android:layout_width="24dip" |
|
28 android:layout_height="24dip" |
|
29 android:layout_marginLeft="12dip" |
|
30 android:layout_marginRight="48dip" |
|
31 android:layout_marginTop="16dp" |
|
32 android:layout_alignLeft="@id/tabs"/> |
|
33 |
|
34 <ImageView android:id="@+id/url_bar_entry" |
|
35 android:layout_width="fill_parent" |
|
36 android:layout_height="fill_parent" |
|
37 android:layout_toRightOf="@id/tabs" |
|
38 android:layout_toLeftOf="@id/menu_items" |
|
39 android:layout_marginLeft="-18dp" |
|
40 android:layout_marginTop="7dp" |
|
41 android:layout_marginBottom="7dp" |
|
42 android:duplicateParentState="true" |
|
43 android:clickable="false" |
|
44 android:focusable="false" |
|
45 android:background="@drawable/url_bar_entry"/> |
|
46 |
|
47 <org.mozilla.gecko.toolbar.ForwardButton style="@style/UrlBar.ImageButton.Forward" |
|
48 android:id="@+id/forward" |
|
49 android:layout_toRightOf="@+id/tabs"/> |
|
50 |
|
51 <org.mozilla.gecko.toolbar.BackButton android:id="@+id/back" |
|
52 style="@style/UrlBar.ImageButton" |
|
53 android:layout_width="50dip" |
|
54 android:layout_height="50dip" |
|
55 android:layout_toRightOf="@id/tabs" |
|
56 android:layout_marginLeft="-28dp" |
|
57 android:layout_centerVertical="true" |
|
58 android:padding="13dp" |
|
59 android:src="@drawable/ic_menu_back" |
|
60 android:contentDescription="@string/back" |
|
61 android:background="@drawable/url_bar_nav_button"/> |
|
62 |
|
63 <org.mozilla.gecko.toolbar.ToolbarEditLayout android:id="@+id/edit_layout" |
|
64 style="@style/UrlBar.Button" |
|
65 android:paddingLeft="12dp" |
|
66 android:paddingRight="4dp" |
|
67 android:visibility="gone" |
|
68 android:orientation="horizontal" |
|
69 android:layout_toRightOf="@id/back" |
|
70 android:layout_toLeftOf="@id/menu_items"/> |
|
71 |
|
72 <org.mozilla.gecko.toolbar.ToolbarDisplayLayout android:id="@+id/display_layout" |
|
73 style="@style/UrlBar.Button.Container" |
|
74 android:layout_toRightOf="@id/back" |
|
75 android:layout_toLeftOf="@id/menu_items"/> |
|
76 |
|
77 <LinearLayout android:id="@+id/menu_items" |
|
78 android:layout_width="wrap_content" |
|
79 android:layout_height="fill_parent" |
|
80 android:layout_marginLeft="3dp" |
|
81 android:orientation="horizontal" |
|
82 android:layout_toLeftOf="@id/menu" |
|
83 android:layout_alignWithParentIfMissing="true"/> |
|
84 |
|
85 <org.mozilla.gecko.widget.ThemedImageButton android:id="@+id/menu" |
|
86 style="@style/UrlBar.ImageButton" |
|
87 android:layout_width="56dip" |
|
88 android:layout_alignParentRight="true" |
|
89 android:contentDescription="@string/menu" |
|
90 android:background="@drawable/action_bar_button" |
|
91 android:visibility="gone"/> |
|
92 |
|
93 <org.mozilla.gecko.widget.ThemedImageView android:id="@+id/menu_icon" |
|
94 style="@style/UrlBar.ImageButton" |
|
95 android:layout_alignLeft="@id/menu" |
|
96 android:layout_alignRight="@id/menu" |
|
97 android:gravity="center_vertical" |
|
98 android:src="@drawable/menu_level" |
|
99 android:visibility="gone"/> |
|
100 |
|
101 <ImageView android:id="@+id/shadow" |
|
102 android:layout_width="fill_parent" |
|
103 android:layout_height="2dp" |
|
104 android:layout_alignParentBottom="true" |
|
105 android:background="@color/url_bar_shadow" |
|
106 android:contentDescription="@null"/> |
|
107 |
|
108 </merge> |