Signal-Android/app/src/main/res/layout/boost_bottom_sheet.xml

80 wiersze
3.2 KiB
XML

<?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"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:importantForAccessibility="no"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/bottom_sheet_handle" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:orientation="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/handle"
app:layout_constraintVertical_bias="0" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/boost1_animation"
android:layout_width="60dp"
android:layout_height="360dp"
app:lottie_rawRes="@raw/boost_smile"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/boost2_animation"
android:layout_width="60dp"
android:layout_height="360dp"
app:lottie_rawRes="@raw/boost_clap"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/boost3_animation"
android:layout_width="60dp"
android:layout_height="360dp"
app:lottie_rawRes="@raw/boost_heart_eyes"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/boost4_animation"
android:layout_width="60dp"
android:layout_height="360dp"
app:lottie_rawRes="@raw/boost_fire"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/boost5_animation"
android:layout_width="60dp"
android:layout_height="360dp"
app:lottie_rawRes="@raw/boost_shock"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/boost6_animation"
android:layout_width="60dp"
android:layout_height="360dp"
app:lottie_rawRes="@raw/boost_rockets"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>