mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-28 20:54:38 +01:00
Add new styling for active subscription pref item.
This commit is contained in:
committed by
Cody Henthorne
parent
5150564fe2
commit
b14209d5cf
@@ -4,20 +4,18 @@
|
||||
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_marginStart="@dimen/active_subscription_gutter_start"
|
||||
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
||||
tools:viewBindingIgnore="true">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/subscription_row_item_background">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<org.thoughtcrime.securesms.badges.BadgeImageView
|
||||
android:id="@+id/my_support_badge"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="28dp"
|
||||
app:badge_size="xlarge"
|
||||
app:layout_constraintBottom_toBottomOf="@id/my_support_expiry"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -27,25 +25,26 @@
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/my_support_progress"
|
||||
style="?circularProgressIndicatorStyle"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminate="true"
|
||||
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"
|
||||
app:indicatorColor="@color/signal_colorOnSurfaceVariant"
|
||||
app:indicatorSize="24dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/my_support_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginStart="22dp"
|
||||
android:layout_marginTop="11dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginEnd="22dp"
|
||||
android:textAppearance="@style/Signal.Text.BodyLarge"
|
||||
app:layout_constraintEnd_toStartOf="@id/my_support_progress"
|
||||
app:layout_constraintStart_toEndOf="@id/my_support_badge"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Subscription Name" />
|
||||
@@ -54,13 +53,13 @@
|
||||
android:id="@+id/my_support_expiry"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginStart="22dp"
|
||||
android:layout_marginEnd="22dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:textAppearance="@style/TextAppearance.Signal.Body2"
|
||||
android:textAppearance="@style/Signal.Text.BodyMedium"
|
||||
android:textColor="@color/signal_text_secondary"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/my_support_progress"
|
||||
app:layout_constraintStart_toEndOf="@id/my_support_badge"
|
||||
app:layout_constraintTop_toBottomOf="@id/my_support_title"
|
||||
tools:text="$400.00" />
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
<dimen name="media_bubble_gif_width">260dp</dimen>
|
||||
<dimen name="dsl_settings_gutter">24dp</dimen>
|
||||
<dimen name="active_subscription_gutter_start">22dp</dimen>
|
||||
<dimen name="media_overview_toggle_gutter">10dp</dimen>
|
||||
<dimen name="wallpaper_selection_gutter">16dp</dimen>
|
||||
<dimen name="safety_number_recipient_row_item_gutter">12dp</dimen>
|
||||
|
||||
@@ -171,6 +171,7 @@
|
||||
<dimen name="payment_recovery_phrase_outline_margin">32dp</dimen>
|
||||
|
||||
<dimen name="dsl_settings_gutter">16dp</dimen>
|
||||
<dimen name="active_subscription_gutter_start">14dp</dimen>
|
||||
<dimen name="media_overview_toggle_gutter">2dp</dimen>
|
||||
<dimen name="wallpaper_selection_gutter">8dp</dimen>
|
||||
<dimen name="safety_number_recipient_row_item_gutter">4dp</dimen>
|
||||
|
||||
Reference in New Issue
Block a user