mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 05:00:13 -10:00
This patch does several things: 1) It wraps static panel content in a ScrollView. 2) It tightens the static panels vertically. We can fit landscape on many high-end phones by reducing the space before the header and between the header and the body text slightly. 3) It makes the body text just a little narrower than the button. The idea is for the call to action button to dominate the page horizontally. 4) It caps the maximum width of the content in the ScrollView. I would have used maxWidth, but that doesn't exist for LinearLayouts (or ScrollViews). Instead, I set a maxWidth for every RemoteTabsPanelItem, which combined with wrap_content on the containing LinearLayout achieves the same goal. It's what I intended to do on tablets.
41 lines
1.6 KiB
XML
41 lines
1.6 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/.
|
|
-->
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" >
|
|
|
|
<LinearLayout style="@style/RemoteTabsPanelFrame" >
|
|
|
|
<TextView
|
|
style="@style/RemoteTabsPanelItem.TextAppearance.Header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/fxaccount_confirm_account_header" />
|
|
|
|
<TextView
|
|
style="@style/RemoteTabsPanelItem.TextAppearance"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/home_remote_tabs_need_to_verify" />
|
|
|
|
<Button
|
|
android:id="@+id/remote_tabs_needs_verification_resend_email"
|
|
style="@style/RemoteTabsPanelItem.Button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/fxaccount_confirm_account_resend_email" />
|
|
|
|
<TextView
|
|
android:id="@+id/remote_tabs_needs_verification_help"
|
|
style="@style/RemoteTabsPanelItem.TextAppearance.Linkified"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/home_remote_tabs_trouble_verifying" />
|
|
</LinearLayout>
|
|
</ScrollView>
|