Bug 1063765 - Part 2: Adjust top margin for static content on landscape phones. r=antlam

Per discussion with antlam, we shrink the top margin on landscape phones
in the hopes of fitting the content in the window.  On portrait phones
and all tablets, we maintain a larger top margin.
This commit is contained in:
Nick Alexander 2014-09-16 15:41:07 -07:00
Родитель 405e3958e7
Коммит 2f15da9e36
4 изменённых файлов: 26 добавлений и 1 удалений

Просмотреть файл

@ -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>
<!-- Remote Tabs static view top padding. Less in landscape on phones. -->
<dimen name="home_remote_tabs_top_padding">16dp</dimen>
</resources>

Просмотреть файл

@ -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>
<!-- Remote Tabs static view top padding. Less in landscape on phones. -->
<dimen name="home_remote_tabs_top_padding">48dp</dimen>
</resources>

Просмотреть файл

@ -35,6 +35,9 @@
<!-- Page Row height --> <!-- Page Row height -->
<dimen name="page_row_height">64dp</dimen> <dimen name="page_row_height">64dp</dimen>
<!-- Remote Tabs static view top padding. Less in landscape on phones. -->
<dimen name="home_remote_tabs_top_padding">48dp</dimen>
<!-- Search Engine Row height --> <!-- Search Engine Row height -->
<dimen name="search_row_height">48dp</dimen> <dimen name="search_row_height">48dp</dimen>

Просмотреть файл

@ -820,7 +820,7 @@
<style name="RemoteTabsPanelFrame"> <style name="RemoteTabsPanelFrame">
<item name="android:paddingLeft">32dp</item> <item name="android:paddingLeft">32dp</item>
<item name="android:paddingRight">32dp</item> <item name="android:paddingRight">32dp</item>
<item name="android:paddingTop">16dp</item> <item name="android:paddingTop">@dimen/home_remote_tabs_top_padding</item>
<item name="android:orientation">vertical</item> <item name="android:orientation">vertical</item>
<item name="android:layout_gravity">center_horizontal</item> <item name="android:layout_gravity">center_horizontal</item>
<item name="android:layout_width">wrap_content</item> <item name="android:layout_width">wrap_content</item>