[fenix] For https://github.com/mozilla-mobile/fenix/issues/7978 - Remove ScrollView from migration activity.
parent
009f16a2b5
commit
a1c73eebe8
@ -0,0 +1,9 @@
|
|||||||
|
<?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/. -->
|
||||||
|
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<corners android:radius="4dp"/>
|
||||||
|
<solid android:color="@color/grey_button_color" />
|
||||||
|
</shape>
|
@ -1,105 +1,115 @@
|
|||||||
<?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/. -->
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true">
|
android:background="@color/white_color">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:id="@+id/migration_firefox_logo"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="@dimen/migration_firefox_logo_size"
|
||||||
android:background="@color/white_color"
|
android:layout_height="@dimen/migration_firefox_logo_size"
|
||||||
android:layout_width="match_parent"
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
||||||
android:layout_height="wrap_content"
|
android:importantForAccessibility="no"
|
||||||
android:paddingStart="20dp"
|
app:layout_constraintBottom_toBottomOf="@+id/migration_welcome_title"
|
||||||
android:paddingTop="55dp"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:paddingEnd="20dp"
|
app:layout_constraintTop_toTopOf="@+id/migration_welcome_title"
|
||||||
android:paddingBottom="67dp">
|
app:srcCompat="@drawable/ic_firefox" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/migration_firefox_logo"
|
android:id="@+id/migration_description"
|
||||||
android:layout_width="67dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="67dp"
|
android:layout_height="wrap_content"
|
||||||
android:importantForAccessibility="no"
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginTop="@dimen/migration_margin_vertical"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
||||||
app:srcCompat="@drawable/ic_firefox" />
|
android:fontFamily="sans-serif-light"
|
||||||
|
android:text="@string/migration_description"
|
||||||
|
android:textColor="@color/text_scale_example_text_color"
|
||||||
|
android:textSize="@dimen/migration_description_text_size"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/guideline_vertical_center"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/migration_welcome_title" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/migration_welcome_title"
|
android:id="@+id/migration_welcome_title"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="24dp"
|
android:layout_marginStart="16dp"
|
||||||
android:maxLines="2"
|
android:layout_marginTop="@dimen/migration_margin_vertical_small"
|
||||||
android:text="@string/migration_title"
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
||||||
android:fontFamily="sans-serif-medium"
|
android:fontFamily="sans-serif-medium"
|
||||||
android:textColor="@color/button_text_color"
|
android:maxLines="2"
|
||||||
android:textStyle="bold"
|
android:text="@string/migration_title"
|
||||||
android:textSize="20sp"
|
android:textColor="@color/button_text_color"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/migration_description"
|
android:textSize="@dimen/migration_welcome_title_text_size"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:textStyle="bold"
|
||||||
app:layout_constraintStart_toEndOf="@+id/migration_firefox_logo"
|
app:layout_constraintBottom_toTopOf="@+id/migration_description"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
tools:text="Welcome to the all-new Firefox Preview" />
|
app:layout_constraintStart_toEndOf="@+id/migration_firefox_logo"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
|
tools:text="Welcome to the all-new Firefox Preview" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/migration_description"
|
android:id="@+id/migration_status_list"
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
||||||
android:text="@string/migration_description"
|
android:layout_marginTop="@dimen/migration_margin_vertical_small"
|
||||||
android:textColor="@color/text_scale_example_text_color"
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
||||||
android:textSize="16sp"
|
android:layout_marginBottom="@dimen/migration_margin_vertical_small"
|
||||||
android:textStyle="bold"
|
app:layout_constraintBottom_toTopOf="@+id/migration_button"
|
||||||
android:fontFamily="sans-serif-light"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/guideline_vertical_center"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/migration_firefox_logo" />
|
tools:itemCount="5"
|
||||||
|
tools:listitem="@layout/migration_list_item" />
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.appcompat.widget.AppCompatButton
|
||||||
android:id="@+id/migration_status_list"
|
android:id="@+id/migration_button"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/migration_button"
|
android:layout_marginBottom="@dimen/migration_margin_vertical"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:background="@drawable/button_background_grey"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:enabled="false"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/migration_description"
|
android:minWidth="200dp"
|
||||||
tools:itemCount="5"
|
android:paddingStart="@dimen/migration_button_padding"
|
||||||
tools:listitem="@layout/migration_list_item" />
|
android:paddingEnd="@dimen/migration_button_padding"
|
||||||
|
android:text="@string/migration_updating_app_button_text"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
android:textColor="@color/button_text_color"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
tools:text="Updating Firefox…" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatButton
|
<androidx.constraintlayout.widget.Guideline
|
||||||
android:id="@+id/migration_button"
|
android:id="@+id/guideline_vertical_center"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:enabled="false"
|
android:orientation="horizontal"
|
||||||
android:minWidth="200dp"
|
app:layout_constraintGuide_percent="0.5" />
|
||||||
android:text="@string/migration_updating_app_button_text"
|
|
||||||
android:paddingStart="@dimen/migration_button_padding"
|
|
||||||
android:paddingEnd="@dimen/migration_button_padding"
|
|
||||||
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…" />
|
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/migration_button_progress_bar"
|
android:id="@+id/migration_button_progress_bar"
|
||||||
style="@style/Widget.AppCompat.ProgressBar"
|
style="@style/Widget.AppCompat.ProgressBar"
|
||||||
android:layout_width="24dp"
|
android:layout_width="@dimen/migration_progress_size"
|
||||||
android:layout_height="24dp"
|
android:layout_height="@dimen/migration_progress_size"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/migration_button"
|
app:layout_constraintBottom_toBottomOf="@+id/migration_button"
|
||||||
app:layout_constraintDimensionRatio="h,1:1"
|
app:layout_constraintStart_toStartOf="@+id/migration_button"
|
||||||
app:layout_constraintStart_toStartOf="@+id/migration_button"
|
app:layout_constraintTop_toTopOf="@+id/migration_button" />
|
||||||
app:layout_constraintTop_toTopOf="@+id/migration_button" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
</ScrollView>
|
|
Loading…
Reference in New Issue