Commit d57d5a82 authored by wanglei's avatar wanglei

...

parent 1bdb535a
package com.test.easy.easycleanerjunk.view
import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import com.airbnb.lottie.LottieAnimationView
class XmlLottieAnimationView : LottieAnimationView {
constructor(context: Context?) : super(context)
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr)
override fun draw(canvas: Canvas) {
try {
super.draw(canvas)
} catch (e: Exception) {
}
}
override fun playAnimation() {
super.playAnimation()
}
}
\ No newline at end of file
......@@ -96,7 +96,7 @@
android:orientation="vertical"
tools:ignore="UselessParent">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -33,15 +33,15 @@
</RelativeLayout>
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/compressing_animation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="-160dp"
app:lottie_rawRes="@raw/compression_ing"
app:lottie_autoPlay="true"
app:lottie_loop="true" />
app:lottie_loop="true"
app:lottie_rawRes="@raw/compression_ing" />
<LinearLayout
android:layout_width="match_parent"
......
......@@ -238,10 +238,10 @@
android:id="@+id/id_cons_one"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:background="#0ec897">
android:background="#0ec897"
android:visibility="gone">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_battery_lottie"
android:layout_width="match_parent"
android:layout_height="0dp"
......
......@@ -242,7 +242,7 @@
app:layout_constraintTop_toTopOf="parent">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/lottie"
android:layout_width="0dp"
android:layout_height="0dp"
......
......@@ -33,7 +33,7 @@
</RelativeLayout>
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_junk_scan"
android:layout_width="match_parent"
android:layout_height="0dp"
......
......@@ -15,7 +15,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
......@@ -27,7 +27,7 @@
android:layout_height="80dp"
android:visibility="gone" />
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:lottie_autoPlay="true"
......
......@@ -36,7 +36,7 @@
app:layout_constraintTop_toTopOf="@id/iv_back"
tools:text="Junk Cleaner" />
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/ic_success"
android:layout_width="46dp"
android:layout_height="46dp"
......
......@@ -35,7 +35,7 @@
</RelativeLayout>
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_junk_scan"
android:layout_width="match_parent"
android:layout_height="0dp"
......
......@@ -182,7 +182,7 @@
android:layout_height="match_parent"
android:background="#4772ff">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -5,7 +5,7 @@
android:layout_height="match_parent"
android:background="#4772ff">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_lottie1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -135,7 +135,7 @@
android:orientation="vertical"
tools:ignore="UselessParent">
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -28,7 +28,7 @@
android:textColor="@color/white"
android:textSize="13sp" />
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_lottie_full_file"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......
......@@ -36,7 +36,7 @@
android:layout_marginBottom="38dp"
android:textSize="13sp" />
<com.airbnb.lottie.LottieAnimationView
<com.test.easy.easycleanerjunk.view.XmlLottieAnimationView
android:id="@+id/id_full_lottie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......@@ -62,7 +62,8 @@
android:textColor="#000000"
android:textSize="17sp"
app:bl_corners_radius="18dp"
app:bl_solid_color="#F5F5F5" />
app:bl_solid_color="#F5F5F5"
tools:ignore="HardcodedText" />
<com.noober.background.view.BLTextView
android:id="@+id/id_tv_allow"
......@@ -74,9 +75,11 @@
android:textColor="@color/white"
android:textSize="17sp"
app:bl_corners_radius="18dp"
app:bl_solid_color="#355bea" />
app:bl_solid_color="#355bea"
tools:ignore="HardcodedText" />
</androidx.appcompat.widget.LinearLayoutCompat>
</com.noober.background.view.BLLinearLayout>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment