|
|
|
<?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/. -->
|
|
|
|
<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:id="@+id/tip_card"
|
|
|
|
android:background="@drawable/cfr_background_gradient"
|
|
|
|
style="@style/OnboardingCardLight"
|
|
|
|
android:padding="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tip_header_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:lineSpacingExtra="2dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="@color/primary_text_dark_theme"
|
|
|
|
android:textAppearance="@style/HeaderTextStyle"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
tools:text="Header text"
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tip_close" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/tip_close"
|
|
|
|
android:tint="@color/primary_text_dark_theme"
|
|
|
|
app:srcCompat="@drawable/ic_close"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/create_collection_close"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tip_description_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:lineSpacingExtra="2dp"
|
|
|
|
android:textAppearance="@style/Body14TextStyle"
|
|
|
|
android:textColor="@color/primary_text_dark_theme"
|
|
|
|
tools:text="Tip description"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tip_header_text"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tip_close"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tip_learn_more"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/search_suggestions_onboarding_learn_more_link"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/primary_text_dark_theme"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/tip_description_text"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tip_description_text"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tip_description_text"
|
|
|
|
tools:textColor="@color/accent_high_contrast_private_theme"/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
style="@style/NeutralButton"
|
|
|
|
android:id="@+id/tip_button"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
tools:text="Call to action"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tip_learn_more"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|