Bug 1128431 - 'Start browsing' link from onboarding v1.5 is not visible on small screen devices. r=liuche
authorAllison Naaktgeboren <ally@mozilla.com>
Tue, 24 Mar 2015 15:05:27 -0700
changeset 264356 466c2dfda162855809c3899b6ebc8bbc25977fe4
parent 264355 690cfd1cf8421dc4f395599c1834273e22527b46
child 264357 74cf6d15cfdde05e4263b7ee12b0067b6feebf3c
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1128431
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1128431 - 'Start browsing' link from onboarding v1.5 is not visible on small screen devices. r=liuche
mobile/android/base/resources/layout-mdpi/firstrun_welcome_fragment.xml
new file mode 100644
--- /dev/null
+++ b/mobile/android/base/resources/layout-mdpi/firstrun_welcome_fragment.xml
@@ -0,0 +1,69 @@
+<?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_height="wrap_content"
+            android:layout_width="match_parent"
+            android:orientation="vertical"
+            android:fillViewport="true">
+
+    <LinearLayout android:layout_width="match_parent"
+                  android:layout_height="match_parent"
+                  android:minHeight="@dimen/firstrun_min_height"
+                  android:orientation="vertical">
+
+       <LinearLayout android:layout_width="match_parent"
+                     android:layout_height="0dp"
+                     android:layout_weight="21"
+                     android:orientation="vertical"
+                     android:gravity="center"
+                     android:padding="10dp">
+
+           <ImageView android:layout_width="100dp"
+                      android:layout_height="100dp"
+                      android:layout_gravity="center"
+                      android:src="@drawable/large_icon"/>
+
+        </LinearLayout>
+        <LinearLayout android:layout_width="match_parent"
+                      android:layout_height="0dp"
+                      android:layout_weight="29"
+                      android:orientation="vertical"
+                      android:gravity="center_horizontal"
+                      android:background="@color/android:white">
+
+            <TextView android:layout_width="@dimen/firstrun_content_width"
+                      android:layout_height="wrap_content"
+                      android:gravity="center_horizontal"
+                      android:paddingTop="30dp"
+                      android:textAppearance="@style/TextAppearance.FirstrunLight.Main"
+                      android:text="@string/firstrun_welcome_message"/>
+
+            <TextView android:layout_width="@dimen/firstrun_content_width"
+                      android:layout_height="wrap_content"
+                      android:paddingTop="20dp"
+                      android:paddingBottom="30dp"
+                      android:gravity="center"
+                      android:textAppearance="@style/TextAppearance.FirstrunRegular.Body"
+                      android:text="@string/firstrun_welcome_subtext"/>
+
+            <Button android:id="@+id/welcome_account"
+                    style="@style/Widget.Firstrun.Button"
+                    android:background="@drawable/firstrun_button_background"
+                    android:layout_gravity="center"
+                    android:text="@string/firstrun_welcome_button_account"/>
+
+            <TextView android:id="@+id/welcome_browse"
+                      android:layout_width="@dimen/firstrun_content_width"
+                      android:layout_height="wrap_content"
+                      android:minHeight="92dp"
+                      android:padding="20dp"
+                      android:gravity="center"
+                      android:textAppearance="@style/TextAppearance.FirstrunRegular.Link"
+                      android:text="@string/firstrun_welcome_button_browser"/>
+        </LinearLayout>
+    </LinearLayout>
+</ScrollView>