1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/base/resources/layout/gecko_app.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,113 @@ 1.4 +<?xml version="1.0" encoding="utf-8"?> 1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.6 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.8 + 1.9 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 1.10 + xmlns:gecko="http://schemas.android.com/apk/res-auto" 1.11 + android:layout_width="fill_parent" 1.12 + android:layout_height="fill_parent"> 1.13 + 1.14 + <ViewStub android:id="@+id/tabs_panel" 1.15 + android:layout="@layout/tabs_panel_view" 1.16 + android:layout_width="fill_parent" 1.17 + android:layout_height="fill_parent"/> 1.18 + 1.19 + <view class="org.mozilla.gecko.GeckoApp$MainLayout" 1.20 + android:id="@+id/main_layout" 1.21 + android:layout_width="fill_parent" 1.22 + android:layout_height="fill_parent" 1.23 + android:background="@android:color/transparent"> 1.24 + 1.25 + <RelativeLayout android:id="@+id/gecko_layout" 1.26 + android:layout_width="fill_parent" 1.27 + android:layout_height="fill_parent" 1.28 + android:layout_above="@+id/find_in_page"> 1.29 + 1.30 + <include layout="@layout/shared_ui_components"/> 1.31 + 1.32 + <FrameLayout android:id="@+id/home_pager_container" 1.33 + android:layout_width="fill_parent" 1.34 + android:layout_height="fill_parent" 1.35 + android:visibility="gone"> 1.36 + 1.37 + <ViewStub android:id="@+id/home_pager_stub" 1.38 + android:layout="@layout/home_pager" 1.39 + android:layout_width="fill_parent" 1.40 + android:layout_height="fill_parent"/> 1.41 + 1.42 + <ViewStub android:id="@+id/home_banner_stub" 1.43 + android:layout="@layout/home_banner" 1.44 + android:layout_width="fill_parent" 1.45 + android:layout_height="@dimen/home_banner_height" 1.46 + android:layout_gravity="bottom"/> 1.47 + 1.48 + </FrameLayout> 1.49 + 1.50 + </RelativeLayout> 1.51 + 1.52 + <org.mozilla.gecko.FindInPageBar android:id="@+id/find_in_page" 1.53 + android:layout_width="fill_parent" 1.54 + android:layout_height="wrap_content" 1.55 + android:layout_alignParentBottom="true" 1.56 + style="@style/FindBar" 1.57 + android:visibility="gone"/> 1.58 + 1.59 + <org.mozilla.gecko.MediaCastingBar android:id="@+id/media_casting" 1.60 + android:layout_width="fill_parent" 1.61 + android:layout_height="wrap_content" 1.62 + android:layout_alignParentBottom="true" 1.63 + style="@style/FindBar" 1.64 + android:visibility="gone"/> 1.65 + 1.66 + <FrameLayout android:id="@+id/search_container" 1.67 + android:layout_width="fill_parent" 1.68 + android:layout_height="fill_parent" 1.69 + android:layout_below="@+id/browser_actionbar" 1.70 + android:background="@android:color/white" 1.71 + android:visibility="invisible"/> 1.72 + 1.73 + <!-- When focus is cleared from from BrowserToolbar's EditText to 1.74 + lower the virtual keyboard, focus will be returned to the root 1.75 + view. To make sure the EditText is not the first focusable view in 1.76 + the root view, BrowserToolbar should be specified as low in the 1.77 + view hierarchy as possible. --> 1.78 + 1.79 + <org.mozilla.gecko.widget.GeckoViewFlipper android:id="@id/browser_actionbar" 1.80 + android:layout_width="fill_parent" 1.81 + android:layout_height="@dimen/browser_toolbar_height" 1.82 + android:clickable="true" 1.83 + android:focusable="true"> 1.84 + 1.85 + <org.mozilla.gecko.toolbar.BrowserToolbar 1.86 + android:id="@+id/browser_toolbar" 1.87 + style="@style/BrowserToolbar" 1.88 + android:layout_width="fill_parent" 1.89 + android:layout_height="@dimen/browser_toolbar_height" 1.90 + android:clickable="true" 1.91 + android:focusable="true" 1.92 + android:background="@drawable/url_bar_bg"/> 1.93 + 1.94 + <org.mozilla.gecko.ActionModeCompatView android:id="@+id/actionbar" 1.95 + android:layout_height="fill_parent" 1.96 + android:layout_width="fill_parent" 1.97 + style="@style/GeckoActionBar"/> 1.98 + 1.99 + </org.mozilla.gecko.widget.GeckoViewFlipper> 1.100 + 1.101 + <org.mozilla.gecko.toolbar.ToolbarProgressView android:id="@+id/progress" 1.102 + android:layout_width="fill_parent" 1.103 + android:layout_height="14dp" 1.104 + android:layout_marginTop="-8dp" 1.105 + android:layout_below="@id/browser_actionbar" 1.106 + android:src="@drawable/progress" 1.107 + android:background="@null" 1.108 + android:visibility="gone" /> 1.109 + 1.110 + </view> 1.111 + 1.112 + <ViewStub android:id="@+id/toast_stub" 1.113 + android:layout="@layout/button_toast" 1.114 + style="@style/Toast"/> 1.115 + 1.116 +</RelativeLayout>