2021-10-12 15:55:54 -03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.cardview.widget.CardView 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"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
|
|
|
app:cardCornerRadius="10dp"
|
|
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/rounded_outline">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/my_support_badge"
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
app:badge_size="xlarge"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/my_support_expiry"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/my_support_title"
|
|
|
|
tools:src="@drawable/test_gradient" />
|
|
|
|
|
2021-11-15 13:47:51 -04:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/my_support_progress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/my_support_badge"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/my_support_badge"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/my_support_badge"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/my_support_badge" />
|
|
|
|
|
2021-10-12 15:55:54 -03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/my_support_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/my_support_badge"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Subscription Name" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/my_support_price"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/my_support_badge"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/my_support_title"
|
|
|
|
tools:text="Earn a badge!" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/my_support_expiry"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2022-05-02 14:29:42 -03:00
|
|
|
android:layout_marginBottom="15dp"
|
2021-10-12 15:55:54 -03:00
|
|
|
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
|
|
|
android:textColor="@color/signal_text_secondary"
|
2022-05-02 14:29:42 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-10-12 15:55:54 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/my_support_badge"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/my_support_price"
|
|
|
|
tools:text="$400.00" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|