1
0
Fork 0

Issue #7890: Make migration screen scrollable. (#7914)

master
Sebastian Kaspari 2020-01-25 03:03:02 +01:00 committed by liuche
parent 2d64cf8e4c
commit 21f342be12
1 changed files with 81 additions and 72 deletions

View File

@ -1,81 +1,90 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><!-- This Source Code Form is subject to the terms of the Mozilla Public <?xml version="1.0" encoding="utf-8" standalone="yes"?><!-- 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 - 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/. --> - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent"
android:background="@color/white_color" android:fillViewport="true">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="20dp"
android:paddingTop="55dp"
android:paddingEnd="20dp"
android:paddingBottom="67dp">
<androidx.appcompat.widget.AppCompatImageView <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/migration_firefox_logo" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="67dp" xmlns:tools="http://schemas.android.com/tools"
android:layout_height="67dp" android:background="@color/white_color"
android:contentDescription="@string/firefox_logo_description" android:layout_width="match_parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_firefox" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/migration_welcome_title"
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="24dp" android:paddingStart="20dp"
android:maxLines="2" android:paddingTop="55dp"
android:text="@string/migration_title" android:paddingEnd="20dp"
android:fontFamily="sans-serif-medium" android:paddingBottom="67dp">
android:textColor="@color/button_text_color"
android:textStyle="bold"
android:textSize="20sp"
app:layout_constraintBottom_toTopOf="@+id/migration_description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/migration_firefox_logo"
app:layout_constraintTop_toTopOf="parent"
tools:text="Welcome to the all-new Firefox Preview" />
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatImageView
android:id="@+id/migration_description" android:id="@+id/migration_firefox_logo"
android:layout_width="0dp" android:layout_width="67dp"
android:layout_height="wrap_content" android:layout_height="67dp"
android:layout_marginTop="24dp" android:contentDescription="@string/firefox_logo_description"
android:text="@string/migration_description" app:layout_constraintStart_toStartOf="parent"
android:textColor="@color/text_scale_example_text_color" app:layout_constraintTop_toTopOf="parent"
android:textSize="16sp" app:srcCompat="@drawable/ic_firefox" />
android:textStyle="bold"
android:fontFamily="sans-serif-light"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/migration_firefox_logo" />
<androidx.recyclerview.widget.RecyclerView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/migration_status_list" android:id="@+id/migration_welcome_title"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/migration_button" android:layout_marginStart="24dp"
app:layout_constraintEnd_toEndOf="parent" android:maxLines="2"
app:layout_constraintStart_toStartOf="parent" android:text="@string/migration_title"
app:layout_constraintTop_toBottomOf="@+id/migration_description" android:fontFamily="sans-serif-medium"
tools:itemCount="5" android:textColor="@color/button_text_color"
tools:listitem="@layout/migration_list_item" /> android:textStyle="bold"
android:textSize="20sp"
app:layout_constraintBottom_toTopOf="@+id/migration_description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/migration_firefox_logo"
app:layout_constraintTop_toTopOf="parent"
tools:text="Welcome to the all-new Firefox Preview" />
<androidx.appcompat.widget.AppCompatButton <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/migration_button" android:id="@+id/migration_description"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:enabled="false" android:layout_marginTop="24dp"
android:minWidth="200dp" android:text="@string/migration_description"
android:text="@string/migration_updating_app_button_text" android:textColor="@color/text_scale_example_text_color"
android:textColor="@color/button_text_color" android:textSize="16sp"
android:textAllCaps="false" android:textStyle="bold"
android:background="@color/grey_button_color" android:fontFamily="sans-serif-light"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/migration_firefox_logo" />
tools:text="Updating Firefox…" />
</androidx.constraintlayout.widget.ConstraintLayout> <androidx.recyclerview.widget.RecyclerView
android:id="@+id/migration_status_list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toTopOf="@+id/migration_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/migration_description"
tools:itemCount="5"
tools:listitem="@layout/migration_list_item" />
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/migration_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:minWidth="200dp"
android:text="@string/migration_updating_app_button_text"
android:textColor="@color/button_text_color"
android:textAllCaps="false"
android:background="@color/grey_button_color"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:text="Updating Firefox…" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>