|
@@ -4,8 +4,8 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="5dp"
|
|
|
android:layout_marginStart="6dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
android:layout_marginEnd="6dp"
|
|
|
android:layout_marginBottom="7dp"
|
|
|
android:background="@drawable/bg_white_10dp"
|
|
@@ -75,4 +75,37 @@
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="@+id/iv_avatar"
|
|
|
tools:text="1112人观看" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_live_bg"
|
|
|
+ android:layout_width="60dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:background="@color/color_33000000"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_live_anim_tip"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="直播中"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_live_bg"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_live_anim"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/view_live_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_live_bg" />
|
|
|
+
|
|
|
+ <com.airbnb.lottie.LottieAnimationView
|
|
|
+ android:id="@+id/iv_live_anim"
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginEnd="48dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_live_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_live_bg"
|
|
|
+ app:lottie_autoPlay="false"
|
|
|
+ app:lottie_loop="true"
|
|
|
+ app:lottie_rawRes="@raw/home_talent_style_live_anim" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|