@ -2,90 +2,88 @@
<!-- 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/. -->
<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_height="wrap_content"
android:background="?foundation"
android:paddingBottom="16dp">
<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_height="wrap_content"
android:paddingBottom="16dp"
android:background="?foundation">
<ImageView
android:id="@+id/download_notification_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:scaleType="center"
app:srcCompat="@drawable/mozac_feature_download_ic_download_complete"
android:importantForAccessibility="no"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:tint="?primaryText"/>
<ImageView
android:id="@+id/download_notification_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:importantForAccessibility="no"
android:scaleType="center"
android:tint="?primaryText"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/mozac_feature_download_ic_download_complete" />
<TextView
android:id="@+id/download_notification_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="11dp "
android:layout_marginStart="3dp"
android:textSize="16s p"
android:textColor="?primaryText "
android:paddingTop="4 dp"
android:paddingStart="5 dp"
android:paddingEnd="5dp"
android:layout_alignParentTop="true "
android:layout_marginTop="16d p"
app:layout_constraintTop_toTopOf="parent "
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintEnd_to StartOf="@id/download_notification_close_butt on"
app:layout_constraintStart_toEndOf="@id/download_notification_icon "
tools:text="Download (85.7 MB)"/>
<TextView
android:id="@+id/download_notification_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginStart="3dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="11dp"
android:paddingStart="5 dp"
android:paddingTop="4 dp"
android:paddingEnd="5dp"
android:textColor="?primaryText "
android:textSize="16s p"
app:layout_constraintEnd_toStartOf="@id/download_notification_close_button "
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEnd Of="@id/download_notification_i con"
app:layout_constraintTop_toTopOf="parent "
tools:text="Download (85.7 MB)" />
<ImageButton
android:id="@+id/download_notification_close_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12 dp"
android:layout_marginStart="3 dp"
android:contentDescription="@string/mozac_feature_downloads_button_close "
android:background="@null"
android:tint="?primaryText "
app:srcCompat="@drawable/mozac_ic_close "
app:layout_constraintTop_toTop Of="parent"
app:layout_constraintEnd_toEnd Of="parent"
android:layout_marginTop="16dp" />
<ImageButton
android:id="@+id/download_notification_close_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3 dp"
android:layout_marginTop="16 dp"
android:layout_marginEnd="12dp "
android:background="@null"
android:contentDescription="@string/mozac_feature_downloads_button_close "
android:tint="?primaryText "
app:layout_constraintEnd_toEnd Of="parent"
app:layout_constraintTop_toTop Of="parent"
app:srcCompat="@drawable/mozac_ic_close" />
<TextView
android:id="@+id/download_notification_filename"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:textColor="?primaryText "
android:paddingTop="4 dp"
android:paddingStart="5 dp"
android:paddingEnd="5dp"
android:layout_marginTop="16dp "
app:layout_constraintTop_toBottomOf="@id/download_notification_title "
app:layout_constraintStart_toEndOf="@id/download_notification_icon "
tools:text="Firefox_Preview_v2.1.apk"/>
<TextView
android:id="@+id/download_notification_filename"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:layout_marginTop="16dp "
android:paddingStart="5 dp"
android:paddingTop="4 dp"
android:paddingEnd="5dp"
android:textColor="?primaryText "
app:layout_constraintStart_toEndOf="@id/download_notification_icon "
app:layout_constraintTop_toBottomOf="@id/download_notification_title "
tools:text="Firefox_Preview_v2.1.apk" />
<Button
android:id="@+id/download_notification_action_button"
android:textColor="?contrastTex t"
android:backgroundTint="?accentBrigh t"
android:background="@drawable/rounded_all_corners "
app:layout_constraintEnd_toEndOf="parent "
app:layout_constraintTop_toBottomOf="@id/download_notification_filename "
app:layout_constraintBottom_toBottomOf="parent "
android:layout_marginTop="16dp "
android:layout_marginEnd="16dp "
android:layout_marginBottom="4dp "
android:layout_marginStart="8dp "
android:textAllCaps="false "
android:layout_width="wrap_cont ent"
android:layout_height="wrap_cont ent"
android:text="@string/mozac_feature_downloads_button_open" />
</androidx.constraintlayout.widget.ConstraintLayout>
<Button
android:id="@+id/download_notification_action_button"
android:layout_width="wrap_conten t"
android:layout_height="wrap_conten t"
android:layout_marginStart="8dp "
android:layout_marginTop="16dp "
android:layout_marginEnd="16dp "
android:layout_marginBottom="4dp "
android:background="@drawable/rounded_all_corners "
android:backgroundTint="?accent "
android:text="@string/mozac_feature_downloads_button_open "
android:textAllCaps="false "
android:textColor="?contrastText "
app:layout_constraintBottom_toBottomOf="par ent"
app:layout_constraintEnd_toEndOf="par ent"
app:layout_constraintTop_toBottomOf="@id/download_notification_filename" />
</androidx.constraintlayout.widget.ConstraintLayout>