gecko-dev/mobile/android/base/resources/values-large-v11/fxaccount_styles.xml
Nick Alexander e43493cbed Bug 973529 - Fix FxAccount activity layout and gravity on Android tablets. r=rnewman
========

dfae76b630
Author: Nick Alexander <nalexander@mozilla.com>
    Bug 973529 - Fix FxAccount activity layout and gravity on Android tablets.
2014-04-10 14:17:06 -07:00

33 lines
1.5 KiB
XML

<?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 xmlns:android="http://schemas.android.com/apk/res/android">
<style name="FxAccountMiddle">
<item name="android:orientation">vertical</item>
<item name="android:layout_width">500dp</item>
<item name="android:minWidth">500dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1</item>
<!-- layout_gravity controls where the middle container goes
in its parent, and gravity controls where the container
places its internal content. Usually, the middle
container is a LinearLayout and the container is a
ScrollView. In this case, layout_gravity="center"
interacts badly with vertical scrolling. What is needed
is layout_gravity="center_horizontal" and
gravity="center". -->
<item name="android:gravity">center</item>
<item name="android:layout_gravity">center_horizontal</item>
<item name="android:paddingTop">25dp</item>
<item name="android:paddingLeft">12dp</item>
<item name="android:paddingRight">12dp</item>
<item name="android:paddingBottom">15dp</item>
</style>
</resources>