|
|
|
@ -15,34 +15,17 @@
|
|
|
|
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/migration_welcome_title"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/migration_welcome_title"
|
|
|
|
|
app:srcCompat="@drawable/ic_firefox" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/migration_description"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_margin_vertical"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
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" />
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
app:layout_constraintRight_toLeftOf="@id/migration_welcome_title"
|
|
|
|
|
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_marginStart="16dp"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_margin_vertical_small"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_margin"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
|
android:maxLines="2"
|
|
|
|
@ -51,65 +34,76 @@
|
|
|
|
|
android:textSize="@dimen/migration_welcome_title_text_size"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
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"
|
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
|
tools:text="Welcome to the all-new Firefox Preview" />
|
|
|
|
|
app:layout_constraintLeft_toRightOf="@id/migration_firefox_logo"
|
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
tools:text="Welcome to the all-new Firefox Preview"
|
|
|
|
|
app:layout_constraintVertical_chainStyle="spread"/>
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/migration_description"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_margin"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
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_constraintLeft_toLeftOf="parent"
|
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/migration_status_list"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/migration_welcome_title" />
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/migration_status_list"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_margin_vertical_small"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_margin"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:layout_marginBottom="@dimen/migration_margin_vertical_small"
|
|
|
|
|
android:layout_marginBottom="@dimen/migration_margin"
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/migration_button"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/guideline_vertical_center"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/migration_description"
|
|
|
|
|
tools:itemCount="5"
|
|
|
|
|
tools:listitem="@layout/migration_list_item" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/migration_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_margin_horizontal_large"
|
|
|
|
|
android:layout_marginBottom="@dimen/migration_margin_vertical"
|
|
|
|
|
android:background="@drawable/button_background_grey"
|
|
|
|
|
android:enabled="false"
|
|
|
|
|
android:minWidth="200dp"
|
|
|
|
|
android:paddingStart="@dimen/migration_button_padding"
|
|
|
|
|
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…" />
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/migration_status_list"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
android:background="@drawable/button_background_grey"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
|
|
android:id="@+id/guideline_vertical_center"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
app:layout_constraintGuide_percent="0.5" />
|
|
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/migration_button_progress_bar"
|
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
|
|
|
android:layout_width="@dimen/migration_progress_size"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/migration_margin"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_progress_margin_start"/>
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/migration_button_progress_bar"
|
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
|
|
|
android:layout_width="@dimen/migration_progress_size"
|
|
|
|
|
android:layout_height="@dimen/migration_progress_size"
|
|
|
|
|
android:layout_marginStart="@dimen/migration_progress_margin_start"
|
|
|
|
|
android:layout_marginTop="@dimen/migration_progress_margin_vertical"
|
|
|
|
|
android:layout_marginBottom="@dimen/migration_progress_margin_vertical"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/migration_button"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/migration_button"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/migration_button" />
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/migration_button_text_view"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="@dimen/migration_progress_margin_compound"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:text="@string/migration_updating_app_button_text"
|
|
|
|
|
android:textAllCaps="false"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/button_text_color"
|
|
|
|
|
tools:text="Updating Firefox…" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|