summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/values-large
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/base/resources/values-large')
-rw-r--r--mobile/android/base/resources/values-large/bool.xml11
-rw-r--r--mobile/android/base/resources/values-large/dimens.xml37
-rw-r--r--mobile/android/base/resources/values-large/integers.xml12
-rw-r--r--mobile/android/base/resources/values-large/styles.xml89
4 files changed, 149 insertions, 0 deletions
diff --git a/mobile/android/base/resources/values-large/bool.xml b/mobile/android/base/resources/values-large/bool.xml
new file mode 100644
index 000000000..73fde40be
--- /dev/null
+++ b/mobile/android/base/resources/values-large/bool.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ This Source Code Form is subject to the terms of the Mozilla Public
+ ~ License, v. 2.0. If a copy of the MPL was not distributed with this
+ ~ file, you can obtain one at http://mozilla.org/MPL/2.0/.
+ -->
+
+<resources>
+ <!-- See definition in values/ for explanation. -->
+ <bool name="is_large_resource">true</bool>
+</resources>
diff --git a/mobile/android/base/resources/values-large/dimens.xml b/mobile/android/base/resources/values-large/dimens.xml
new file mode 100644
index 000000000..a94ef6fb1
--- /dev/null
+++ b/mobile/android/base/resources/values-large/dimens.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+ <dimen name="doorhanger_offsetY">100dp</dimen>
+
+ <dimen name="browser_toolbar_height">56dp</dimen>
+ <!-- This value is the height of the Tabs Panel header view
+ (browser_toolbar_height) minus the height of the indicator
+ (6dp). This value should change when the height of the view changes. -->
+ <dimen name="tabs_panel_indicator_selected_padding_top">50dp</dimen>
+
+ <dimen name="browser_toolbar_height_flipper">60dp</dimen>
+ <dimen name="browser_toolbar_button_padding">16dp</dimen>
+ <dimen name="browser_toolbar_favicon_size">16dp</dimen>
+
+ <dimen name="browser_toolbar_site_security_height">60dp</dimen>
+ <dimen name="browser_toolbar_site_security_width">34dp</dimen>
+ <dimen name="browser_toolbar_site_security_margin_right">1dp</dimen>
+ <!-- We primarily use padding (instead of margins) to increase the hit area. -->
+ <dimen name="browser_toolbar_site_security_padding_vertical">21dp</dimen>
+ <dimen name="browser_toolbar_site_security_padding_horizontal">8dp</dimen>
+
+ <dimen name="firstrun_background_height">300dp</dimen>
+
+ <dimen name="tabs_panel_indicator_width">72dp</dimen>
+ <dimen name="tabs_panel_button_width">60dp</dimen>
+ <dimen name="panel_grid_view_column_width">200dp</dimen>
+
+ <dimen name="overlay_prompt_container_width">360dp</dimen>
+
+ <item name="tab_strip_content_start" type="dimen">72dp</item>
+
+</resources>
diff --git a/mobile/android/base/resources/values-large/integers.xml b/mobile/android/base/resources/values-large/integers.xml
new file mode 100644
index 000000000..2688e5de5
--- /dev/null
+++ b/mobile/android/base/resources/values-large/integers.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+ <integer name="number_of_inline_share_devices">3</integer>
+ <integer name="max_search_suggestions">4</integer>
+ <integer name="max_saved_suggestions">4</integer>
+
+</resources>
diff --git a/mobile/android/base/resources/values-large/styles.xml b/mobile/android/base/resources/values-large/styles.xml
new file mode 100644
index 000000000..79867a802
--- /dev/null
+++ b/mobile/android/base/resources/values-large/styles.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<resources>
+
+ <style name="UrlBar.ImageButton" parent="UrlBar.ImageButtonBase">
+ <item name="android:layout_width">@dimen/tablet_browser_toolbar_menu_item_width</item>
+ </style>
+
+ <!-- If this style wasn't actually shared outside the
+ url bar, this name could be improved (bug 1197424). -->
+ <style name="UrlBar.ImageButton.BrowserToolbarColors">
+ <item name="drawableTintList">@color/action_bar_menu_item_colors</item>
+ </style>
+
+ <style name="UrlBar.Button.Container">
+ <item name="android:layout_marginTop">6dp</item>
+ <item name="android:layout_marginBottom">6dp</item>
+ <!-- Start with forward hidden -->
+ <item name="android:orientation">horizontal</item>
+ </style>
+
+ <style name="TabsLayout" parent="TabsLayoutBase">
+ <item name="android:scrollbars">vertical</item>
+ </style>
+
+ <style name="TabsItem">
+ <item name="android:nextFocusDown">@+id/close</item>
+ </style>
+
+ <style name="TabsItemClose">
+ <item name="android:nextFocusUp">@+id/info</item>
+ </style>
+
+ <style name="Toast" parent="ToastBase">
+ <item name="android:layout_width">400dp</item>
+
+ <!-- Same as pre-19 Toast style, but with no left and right margins.
+ They're removed since large tablets are never going to be only 400dp wide. -->
+ </style>
+
+ <style name="Widget.MenuItemActionBar">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:background">@drawable/browser_toolbar_action_bar_button</item>
+ <item name="drawableTintList">@color/action_bar_menu_item_colors</item>
+ <item name="android:scaleType">center</item>
+
+ <!-- layout_width/height doesn't work here, likely because it's only
+ added programmatically, so we use padding for the width instead.
+ layout_height is set to MATCH_PARENT programmatically in
+ org.mozilla.gecko.toolbar.BrowserToolbarTabletBase.addActionItem(View) -->
+
+ <item name="android:paddingLeft">@dimen/tablet_browser_toolbar_menu_item_padding_horizontal</item>
+ <item name="android:paddingRight">@dimen/tablet_browser_toolbar_menu_item_padding_horizontal</item>
+ </style>
+
+ <style name="Widget.BookmarksListView" parent="Widget.HomeListView">
+ <item name="android:scrollbarStyle">outsideOverlay</item>
+ </style>
+
+ <style name="Widget.TopSitesGridView" parent="Widget.GridView">
+ <item name="android:paddingLeft">5dp</item>
+ <item name="android:paddingRight">5dp</item>
+ <item name="android:paddingBottom">30dp</item>
+ <item name="android:horizontalSpacing">10dp</item>
+ <item name="android:verticalSpacing">10dp</item>
+ </style>
+
+ <style name="Widget.TopSitesListView" parent="Widget.BookmarksListView">
+ <item name="android:paddingTop">30dp</item>
+ <item name="android:paddingLeft">32dp</item>
+ <item name="android:paddingRight">32dp</item>
+ <item name="android:clipToPadding">false</item>
+ <item name="topDivider">false</item>
+ </style>
+
+ <style name="Widget.HomeBanner">
+ <item name="android:paddingLeft">32dp</item>
+ <item name="android:paddingRight">32dp</item>
+ </style>
+
+ <style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Medium">
+ <item name="android:textSize">16sp</item>
+ </style>
+
+</resources>