mobile/android/base/resources/layout/gecko_app.xml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. -->
     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">
    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"/>
    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">
    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">
    27             <include layout="@layout/shared_ui_components"/>
    29             <FrameLayout android:id="@+id/home_pager_container"
    30                          android:layout_width="fill_parent"
    31                          android:layout_height="fill_parent"
    32                          android:visibility="gone">
    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"/>
    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"/>
    45             </FrameLayout>
    47         </RelativeLayout>
    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"/>
    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"/>
    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"/>
    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. -->
    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">
    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"/>
    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"/>
    96         </org.mozilla.gecko.widget.GeckoViewFlipper>
    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" />
   107     </view>
   109     <ViewStub android:id="@+id/toast_stub"
   110               android:layout="@layout/button_toast"
   111               style="@style/Toast"/>
   113 </RelativeLayout>

mercurial