view_floatgift_anim.xml 2.51 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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">

    <RelativeLayout
        android:id="@+id/animation_person_rl"
        android:layout_width="165dp"
        android:layout_height="39dp"
        android:layout_marginTop="22dp"
        android:background="@drawable/bg_giftlayout">

        <TextView
            android:id="@+id/gift_usernickname_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:ellipsize="end"
            android:maxLength="8"
            android:maxLines="1"
            android:text="匿名"
            android:textColor="#ffffff"
            android:textSize="12sp" />

        <TextView
            android:id="@+id/gift_usersign_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:layout_toRightOf="@id/gift_usernickname_tv"
            android:ellipsize="end"
            android:text="送了"
            android:textColor="#00FFFF"
            android:textSize="11sp" />

        <com.facebook.drawee.view.SimpleDraweeView
            android:id="@+id/sdv_gift"
            android:layout_width="40dip"
            android:layout_height="40dip"
            android:layout_alignParentRight="true"
            app:placeholderImage="@drawable/click_refresh"
            app:placeholderImageScaleType="centerCrop"
            app:roundAsCircle="false" />
        <!--diamond2x-->
    </RelativeLayout>

    <ImageView
        android:id="@+id/animation_light"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="95dp"
        android:src="@drawable/light_star_anim" />

    <com.cnlive.goldenline.ui.widget.hostgift.StrokeTextView
        android:id="@+id/animation_num"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="12dp"
        android:layout_toRightOf="@+id/animation_person_rl"
        android:text="x 1"
        android:textColor="#0076ff"
        android:textSize="24sp"
        app:innnerColor="#ffffff"
        app:outerColor="#0076ff" />

</RelativeLayout>