Revision control

Copy as Markdown

<?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/. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- The actual size of FirstrunCardView is determined in onMeasure() -->
<org.mozilla.focus.firstrun.FirstrunCardView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:elevation="4dp"
cardview:cardCornerRadius="6dp"
cardview:cardBackgroundColor="@color/menuBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fadingEdgeLength="12sp"
android:fillViewport="true"
android:requiresFadingEdge="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:orientation="vertical">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="24dp"
tools:src="@drawable/onboarding_img1" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:gravity="center"
android:lineSpacingMultiplier="1.25"
android:textColor="@color/primaryText"
android:textStyle="bold"
android:textSize="18sp"
tools:text="@string/firstrun_tracking_title" />
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:layout_marginTop="16dp"
android:gravity="center"
android:lineSpacingMultiplier="1.25"
android:textColor="@color/secondaryText"
android:textSize="14sp"
tools:text="@string/firstrun_tracking_text" />
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="?android:attr/selectableItemBackground"
android:textColor="@color/accentBright"
android:textSize="16sp"
tools:text="@string/firstrun_next_button" />
</LinearLayout>
</org.mozilla.focus.firstrun.FirstrunCardView>
</FrameLayout>