|
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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
7 xmlns:gecko="http://schemas.android.com/apk/res-auto" |
|
8 android:layout_width="fill_parent" |
|
9 android:layout_height="fill_parent"> |
|
10 |
|
11 <ViewStub android:id="@+id/tabs_panel" |
|
12 android:layout="@layout/tabs_panel_view" |
|
13 android:layout_width="fill_parent" |
|
14 android:layout_height="fill_parent"/> |
|
15 |
|
16 <view class="org.mozilla.gecko.GeckoApp$MainLayout" |
|
17 android:id="@+id/main_layout" |
|
18 android:layout_width="fill_parent" |
|
19 android:layout_height="fill_parent" |
|
20 android:background="@android:color/transparent"> |
|
21 |
|
22 <RelativeLayout android:id="@+id/gecko_layout" |
|
23 android:layout_width="fill_parent" |
|
24 android:layout_height="fill_parent" |
|
25 android:layout_above="@+id/find_in_page"> |
|
26 |
|
27 <include layout="@layout/shared_ui_components"/> |
|
28 |
|
29 <FrameLayout android:id="@+id/home_pager_container" |
|
30 android:layout_width="fill_parent" |
|
31 android:layout_height="fill_parent" |
|
32 android:visibility="gone"> |
|
33 |
|
34 <ViewStub android:id="@+id/home_pager_stub" |
|
35 android:layout="@layout/home_pager" |
|
36 android:layout_width="fill_parent" |
|
37 android:layout_height="fill_parent"/> |
|
38 |
|
39 <ViewStub android:id="@+id/home_banner_stub" |
|
40 android:layout="@layout/home_banner" |
|
41 android:layout_width="fill_parent" |
|
42 android:layout_height="@dimen/home_banner_height" |
|
43 android:layout_gravity="bottom"/> |
|
44 |
|
45 </FrameLayout> |
|
46 |
|
47 </RelativeLayout> |
|
48 |
|
49 <org.mozilla.gecko.FindInPageBar android:id="@+id/find_in_page" |
|
50 android:layout_width="fill_parent" |
|
51 android:layout_height="wrap_content" |
|
52 android:layout_alignParentBottom="true" |
|
53 style="@style/FindBar" |
|
54 android:visibility="gone"/> |
|
55 |
|
56 <org.mozilla.gecko.MediaCastingBar android:id="@+id/media_casting" |
|
57 android:layout_width="fill_parent" |
|
58 android:layout_height="wrap_content" |
|
59 android:layout_alignParentBottom="true" |
|
60 style="@style/FindBar" |
|
61 android:visibility="gone"/> |
|
62 |
|
63 <FrameLayout android:id="@+id/search_container" |
|
64 android:layout_width="fill_parent" |
|
65 android:layout_height="fill_parent" |
|
66 android:layout_below="@+id/browser_actionbar" |
|
67 android:background="@android:color/white" |
|
68 android:visibility="invisible"/> |
|
69 |
|
70 <!-- When focus is cleared from from BrowserToolbar's EditText to |
|
71 lower the virtual keyboard, focus will be returned to the root |
|
72 view. To make sure the EditText is not the first focusable view in |
|
73 the root view, BrowserToolbar should be specified as low in the |
|
74 view hierarchy as possible. --> |
|
75 |
|
76 <org.mozilla.gecko.widget.GeckoViewFlipper android:id="@id/browser_actionbar" |
|
77 android:layout_width="fill_parent" |
|
78 android:layout_height="@dimen/browser_toolbar_height" |
|
79 android:clickable="true" |
|
80 android:focusable="true"> |
|
81 |
|
82 <org.mozilla.gecko.toolbar.BrowserToolbar |
|
83 android:id="@+id/browser_toolbar" |
|
84 style="@style/BrowserToolbar" |
|
85 android:layout_width="fill_parent" |
|
86 android:layout_height="@dimen/browser_toolbar_height" |
|
87 android:clickable="true" |
|
88 android:focusable="true" |
|
89 android:background="@drawable/url_bar_bg"/> |
|
90 |
|
91 <org.mozilla.gecko.ActionModeCompatView android:id="@+id/actionbar" |
|
92 android:layout_height="fill_parent" |
|
93 android:layout_width="fill_parent" |
|
94 style="@style/GeckoActionBar"/> |
|
95 |
|
96 </org.mozilla.gecko.widget.GeckoViewFlipper> |
|
97 |
|
98 <org.mozilla.gecko.toolbar.ToolbarProgressView android:id="@+id/progress" |
|
99 android:layout_width="fill_parent" |
|
100 android:layout_height="14dp" |
|
101 android:layout_marginTop="-8dp" |
|
102 android:layout_below="@id/browser_actionbar" |
|
103 android:src="@drawable/progress" |
|
104 android:background="@null" |
|
105 android:visibility="gone" /> |
|
106 |
|
107 </view> |
|
108 |
|
109 <ViewStub android:id="@+id/toast_stub" |
|
110 android:layout="@layout/button_toast" |
|
111 style="@style/Toast"/> |
|
112 |
|
113 </RelativeLayout> |