103 lines
4.7 KiB
XML
103 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.carousel.MaskableFrameLayout 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/carousel_add_story"
|
|
android:layout_width="120dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:background="?attr/colorStoryImage"
|
|
app:shapeAppearance="?attr/shapeAppearanceCornerExtraLarge"
|
|
tools:context="androidx.recyclerview.widget.RecyclerView">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/carousel_image_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@string/story_image"
|
|
android:scaleType="centerCrop"
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/add_story"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toTopOf="@id/my_story"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/carousel_add_story_icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:contentDescription="@string/add_story"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/collection_add"
|
|
app:layout_constraintBottom_toTopOf="@id/textView"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="?attr/colorOnStoryImage" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/add_story"
|
|
android:textColor="?attr/colorOnStoryImage"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/carousel_add_story_icon" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/my_story"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/add_story"
|
|
tools:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/my_story_icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:contentDescription="@string/my_story"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/story_play"
|
|
app:layout_constraintBottom_toTopOf="@id/my_story_text"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="?attr/colorOnStoryImage" />
|
|
|
|
<TextView
|
|
android:id="@+id/my_story_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/my_story"
|
|
android:textColor="?attr/colorOnStoryImage"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/my_story_icon" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.carousel.MaskableFrameLayout>
|