2021-10-12 15:55:54 -03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<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:layout_marginStart="@dimen/dsl_settings_gutter"
|
2022-09-29 09:32:49 -03:00
|
|
|
android:layout_marginTop="10dp"
|
2022-12-06 15:55:10 -04:00
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
|
|
|
tools:viewBindingIgnore="true">
|
2021-10-12 15:55:54 -03:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/boost_1"
|
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:backgroundTint="@color/signal_selectable_button_background_tint"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:cornerRadius="18dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/boost_2"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:strokeColor="@color/signal_selectable_button_stroke"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:strokeWidth="2dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
tools:text="$3" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/boost_2"
|
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:backgroundTint="@color/signal_selectable_button_background_tint"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:cornerRadius="18dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/boost_3"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/boost_1"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:strokeColor="@color/signal_selectable_button_stroke"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:strokeWidth="2dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
tools:text="$5" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/boost_3"
|
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:backgroundTint="@color/signal_selectable_button_background_tint"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:cornerRadius="18dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/boost_2"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:strokeColor="@color/signal_selectable_button_stroke"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:strokeWidth="2dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
tools:text="$10" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/boost_4"
|
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2022-09-29 09:32:49 -03:00
|
|
|
android:layout_marginTop="19dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:backgroundTint="@color/signal_selectable_button_background_tint"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:cornerRadius="18dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/boost_5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/boost_1"
|
|
|
|
app:strokeColor="@color/signal_selectable_button_stroke"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:strokeWidth="2dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
tools:text="$20" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/boost_5"
|
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:layout_marginStart="10dp"
|
2022-09-29 09:32:49 -03:00
|
|
|
android:layout_marginTop="19dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:backgroundTint="@color/signal_selectable_button_background_tint"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:cornerRadius="18dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/boost_6"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/boost_4"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/boost_2"
|
|
|
|
app:strokeColor="@color/signal_selectable_button_stroke"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:strokeWidth="2dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
tools:text="$50" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/boost_6"
|
|
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2022-09-29 09:32:49 -03:00
|
|
|
android:layout_marginTop="19dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:gravity="center"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
app:backgroundTint="@color/signal_selectable_button_background_tint"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:cornerRadius="18dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/boost_5"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/boost_3"
|
|
|
|
app:strokeColor="@color/signal_selectable_button_stroke"
|
2022-09-29 09:32:49 -03:00
|
|
|
app:strokeWidth="2dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
tools:text="$100" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatEditText
|
|
|
|
android:id="@+id/boost_custom"
|
|
|
|
android:layout_width="0dp"
|
2022-11-07 10:11:22 -04:00
|
|
|
android:layout_height="58sp"
|
2022-09-29 09:32:49 -03:00
|
|
|
android:layout_marginTop="19dp"
|
|
|
|
android:background="@drawable/custom_donation_amount_background"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:gravity="center"
|
|
|
|
android:hint="@string/Boost__enter_custom_amount"
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:textAppearance="@style/Signal.Text.Body"
|
|
|
|
android:textColor="@color/signal_text_primary"
|
|
|
|
android:textColorHint="@color/signal_text_primary"
|
2021-12-03 17:58:03 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/boost_4" />
|
|
|
|
|
2022-12-06 15:55:10 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/boost_custom_too_small"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textAppearance="@style/Signal.Text.BodySmall"
|
|
|
|
android:textColor="@color/signal_colorError"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/boost_custom"
|
|
|
|
tools:text="@string/Boost__the_minimum_amount_you_can_donate_is_s" />
|
|
|
|
|
2021-10-12 15:55:54 -03:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|