2022-02-24 13:40:28 -04: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"
|
2022-08-09 13:29:04 -03:00
|
|
|
tools:viewBindingIgnore="true"
|
2022-02-24 13:40:28 -04:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/conversation_list_item_background"
|
|
|
|
android:paddingStart="@dimen/dsl_settings_gutter"
|
|
|
|
android:paddingEnd="@dimen/dsl_settings_gutter">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.avatar.view.AvatarView
|
|
|
|
android:id="@+id/avatar"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.badges.BadgeImageView
|
|
|
|
android:id="@+id/badge"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2022-04-06 10:39:08 -03:00
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginTop="28dp"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:badge_size="medium"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/avatar" />
|
|
|
|
|
2022-07-22 16:41:13 -03:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/add_to_story"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginTop="28dp"
|
2023-01-12 16:10:32 -05:00
|
|
|
android:padding="5dp"
|
2022-07-22 16:41:13 -03:00
|
|
|
android:background="@drawable/stories_my_story_add_background"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/avatar"
|
2023-01-12 16:10:32 -05:00
|
|
|
app:tint="@color/signal_colorBackground"
|
|
|
|
app:srcCompat="@drawable/symbol_plus_compact_16" />
|
2022-07-22 16:41:13 -03:00
|
|
|
|
2022-03-10 15:42:45 -04:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
2022-02-24 13:40:28 -04:00
|
|
|
android:id="@+id/sender"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_marginStart="@dimen/stories_landing_item_text_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/stories_landing_item_text_horizontal_margin"
|
2022-06-17 16:43:58 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyLarge"
|
|
|
|
android:textColor="@color/signal_colorOnSurface"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/date"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/story"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="My Stories" />
|
|
|
|
|
2022-03-10 12:13:36 -04:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/error_indicator"
|
|
|
|
android:layout_width="14dp"
|
|
|
|
android:layout_height="14dp"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_marginStart="@dimen/stories_landing_item_text_horizontal_margin"
|
2022-03-10 12:13:36 -04:00
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/date"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/date"
|
|
|
|
app:srcCompat="@drawable/ic_error_outline_24"
|
2022-06-17 16:43:58 -03:00
|
|
|
app:tint="@color/signal_colorError"
|
2022-03-10 12:13:36 -04:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2022-02-24 13:40:28 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/date"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2022-03-10 12:13:36 -04:00
|
|
|
android:layout_marginStart="7dp"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_marginEnd="@dimen/stories_landing_item_text_horizontal_margin"
|
2022-06-17 16:43:58 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyMedium"
|
|
|
|
android:textColor="@color/signal_colorOnSurfaceVariant"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/icon"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/story"
|
2022-03-10 12:13:36 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@id/error_indicator"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/sender"
|
2022-04-04 15:52:29 -03:00
|
|
|
app:layout_goneMarginStart="@dimen/stories_landing_item_text_horizontal_margin"
|
2022-02-24 13:40:28 -04:00
|
|
|
tools:text="10m" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_marginStart="@dimen/stories_landing_item_text_horizontal_margin"
|
2022-02-24 13:40:28 -04:00
|
|
|
android:importantForAccessibility="no"
|
2022-04-06 13:12:04 -03:00
|
|
|
android:scaleType="centerInside"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/avatar"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/date"
|
2022-03-10 13:21:16 -04:00
|
|
|
app:srcCompat="@drawable/ic_messages_solid_20"
|
2022-06-17 16:43:58 -03:00
|
|
|
app:tint="@color/signal_colorOnSurfaceVariant" />
|
2022-02-24 13:40:28 -04:00
|
|
|
|
2022-04-06 10:46:12 -03:00
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
2022-02-24 13:40:28 -04:00
|
|
|
android:id="@+id/story_multi"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_width="@dimen/stories_landing_item_thumb_secondary_width"
|
|
|
|
android:layout_height="@dimen/stories_landing_item_thumb_secondary_height"
|
2022-04-01 17:00:12 -03:00
|
|
|
android:layout_marginEnd="14dp"
|
2022-02-24 13:40:28 -04:00
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:rotation="-10.89"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/story"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/story"
|
|
|
|
app:shapeAppearance="@style/ShapeAppearanceOverlay.Signal.Story.Preview"
|
2022-10-21 11:04:40 -04:00
|
|
|
tools:background="@color/green_500"
|
2022-02-24 13:40:28 -04:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2022-04-01 17:00:12 -03:00
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/story_outline"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_width="@dimen/stories_landing_item_thumb_outline_width"
|
|
|
|
android:layout_height="@dimen/stories_landing_item_thumb_outline_height"
|
2022-02-24 13:40:28 -04:00
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
2022-04-04 15:25:51 -03:00
|
|
|
android:src="@color/transparent"
|
2022-02-24 13:40:28 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2022-04-01 17:00:12 -03:00
|
|
|
app:shapeAppearance="@style/ShapeAppearanceOverlay.Signal.Story.Preview" />
|
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/story"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_width="@dimen/stories_landing_item_thumb_width"
|
|
|
|
android:layout_height="@dimen/stories_landing_item_thumb_height"
|
2022-04-01 17:00:12 -03:00
|
|
|
android:background="@color/signal_background_primary"
|
|
|
|
android:transitionName="story"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/story_outline"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/story_outline"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/story_outline"
|
2022-04-04 15:52:29 -03:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/story_outline"
|
2022-04-01 17:00:12 -03:00
|
|
|
app:shapeAppearance="@style/ShapeAppearanceOverlay.Signal.Story.Preview"
|
|
|
|
tools:src="@drawable/test_gradient" />
|
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/story_blur"
|
2022-04-04 15:52:29 -03:00
|
|
|
android:layout_width="@dimen/stories_landing_item_thumb_width"
|
|
|
|
android:layout_height="@dimen/stories_landing_item_thumb_height"
|
2022-04-01 17:00:12 -03:00
|
|
|
android:background="@color/signal_background_primary"
|
|
|
|
android:transitionName="story"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/story_outline"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/story_outline"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/story_outline"
|
2022-04-04 15:52:29 -03:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/story_outline"
|
2022-04-01 17:00:12 -03:00
|
|
|
app:shapeAppearance="@style/ShapeAppearanceOverlay.Signal.Story.Preview"
|
|
|
|
tools:src="@drawable/test_gradient" />
|
2022-02-24 13:40:28 -04:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|