mobile/android/base/resources/layout-large-v11/browser_toolbar.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/base/resources/layout-large-v11/browser_toolbar.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,108 @@
     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 +<merge xmlns:android="http://schemas.android.com/apk/res/android"
    1.10 +       xmlns:gecko="http://schemas.android.com/apk/res-auto">
    1.11 +
    1.12 +    <org.mozilla.gecko.toolbar.ShapedButton android:id="@+id/tabs"
    1.13 +                                            style="@style/UrlBar.ImageButton"
    1.14 +                                            android:layout_width="84dip"
    1.15 +                                            android:layout_alignParentLeft="true"
    1.16 +                                            gecko:curveTowards="left"
    1.17 +                                            android:background="@drawable/shaped_button"
    1.18 +                                            android:gravity="center_vertical"
    1.19 +                                            android:paddingLeft="6dip"
    1.20 +                                            android:paddingRight="38dip"/>
    1.21 +
    1.22 +    <!-- The TextSwitcher should be shifted 28dp on the right, to avoid
    1.23 +         the curve. On a 56dp space, centering 24dp image will leave
    1.24 +         16dp on all sides. However this image has a perception of
    1.25 +         2 layers. Hence to center this, an additional 4dp is added to the right.
    1.26 +         The margins will be 12dp on left, 48dp on right, instead of ideal 16dp
    1.27 +         and 44dp. -->
    1.28 +    <org.mozilla.gecko.toolbar.TabCounter android:id="@+id/tabs_counter"
    1.29 +                        style="@style/UrlBar.ImageButton.TabCount"
    1.30 +                        android:layout_width="24dip"
    1.31 +                        android:layout_height="24dip"
    1.32 +                        android:layout_marginLeft="12dip"
    1.33 +                        android:layout_marginRight="48dip"
    1.34 +                        android:layout_marginTop="16dp"
    1.35 +                        android:layout_alignLeft="@id/tabs"/>
    1.36 +
    1.37 +    <ImageView android:id="@+id/url_bar_entry"
    1.38 +               android:layout_width="fill_parent"
    1.39 +               android:layout_height="fill_parent"
    1.40 +               android:layout_toRightOf="@id/tabs"
    1.41 +               android:layout_toLeftOf="@id/menu_items"
    1.42 +               android:layout_marginLeft="-18dp"
    1.43 +               android:layout_marginTop="7dp"
    1.44 +               android:layout_marginBottom="7dp"
    1.45 +               android:duplicateParentState="true"
    1.46 +               android:clickable="false"
    1.47 +               android:focusable="false"
    1.48 +               android:background="@drawable/url_bar_entry"/>
    1.49 +
    1.50 +    <org.mozilla.gecko.toolbar.ForwardButton style="@style/UrlBar.ImageButton.Forward"
    1.51 +                                             android:id="@+id/forward"
    1.52 +                                             android:layout_toRightOf="@+id/tabs"/>
    1.53 +
    1.54 +    <org.mozilla.gecko.toolbar.BackButton android:id="@+id/back"
    1.55 +                                          style="@style/UrlBar.ImageButton"
    1.56 +                                          android:layout_width="50dip"
    1.57 +                                          android:layout_height="50dip"
    1.58 +                                          android:layout_toRightOf="@id/tabs"
    1.59 +                                          android:layout_marginLeft="-28dp"
    1.60 +                                          android:layout_centerVertical="true"
    1.61 +                                          android:padding="13dp"
    1.62 +                                          android:src="@drawable/ic_menu_back"
    1.63 +                                          android:contentDescription="@string/back"
    1.64 +                                          android:background="@drawable/url_bar_nav_button"/>
    1.65 +
    1.66 +    <org.mozilla.gecko.toolbar.ToolbarEditLayout android:id="@+id/edit_layout"
    1.67 +                  style="@style/UrlBar.Button"
    1.68 +                  android:paddingLeft="12dp"
    1.69 +                  android:paddingRight="4dp"
    1.70 +                  android:visibility="gone"
    1.71 +                  android:orientation="horizontal"
    1.72 +                  android:layout_toRightOf="@id/back"
    1.73 +                  android:layout_toLeftOf="@id/menu_items"/>
    1.74 +
    1.75 +    <org.mozilla.gecko.toolbar.ToolbarDisplayLayout android:id="@+id/display_layout"
    1.76 +                  style="@style/UrlBar.Button.Container"
    1.77 +                  android:layout_toRightOf="@id/back"
    1.78 +                  android:layout_toLeftOf="@id/menu_items"/>
    1.79 +
    1.80 +    <LinearLayout android:id="@+id/menu_items"
    1.81 +                  android:layout_width="wrap_content"
    1.82 +                  android:layout_height="fill_parent"
    1.83 +                  android:layout_marginLeft="3dp"
    1.84 +                  android:orientation="horizontal"
    1.85 +                  android:layout_toLeftOf="@id/menu"
    1.86 +                  android:layout_alignWithParentIfMissing="true"/>
    1.87 +
    1.88 +    <org.mozilla.gecko.widget.ThemedImageButton android:id="@+id/menu"
    1.89 +                                                style="@style/UrlBar.ImageButton"
    1.90 +                                                android:layout_width="56dip"
    1.91 +                                                android:layout_alignParentRight="true"
    1.92 +                                                android:contentDescription="@string/menu"
    1.93 +                                                android:background="@drawable/action_bar_button"
    1.94 +                                                android:visibility="gone"/>
    1.95 +
    1.96 +    <org.mozilla.gecko.widget.ThemedImageView android:id="@+id/menu_icon"
    1.97 +                                              style="@style/UrlBar.ImageButton"
    1.98 +                                              android:layout_alignLeft="@id/menu"
    1.99 +                                              android:layout_alignRight="@id/menu"
   1.100 +                                              android:gravity="center_vertical"
   1.101 +                                              android:src="@drawable/menu_level"
   1.102 +                                              android:visibility="gone"/>
   1.103 +
   1.104 +    <ImageView android:id="@+id/shadow"
   1.105 +               android:layout_width="fill_parent"
   1.106 +               android:layout_height="2dp"
   1.107 +               android:layout_alignParentBottom="true"
   1.108 +               android:background="@color/url_bar_shadow"
   1.109 +               android:contentDescription="@null"/>
   1.110 +
   1.111 +</merge>

mercurial