Commit 0b340486 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent fede1557
......@@ -225,8 +225,6 @@ dependencies {
implementation 'androidx.work:work-runtime-ktx:2.7.1'
// 三方接入
// 穿山甲 增长参谋
// implementation 'com.bytedance.applog:RangersAppLog-Lite-cn:6.10.0'
// talkingdata接入
// 支付
api project(':rxpay')
......@@ -241,19 +239,9 @@ dependencies {
implementation 'com.tencent.bugly:crashreport:3.3.92'
implementation 'com.tencent.bugly:nativecrashreport:3.0'
// 应用管理中心分包
// implementation(name: 'humesdk-1.0.0', ext: 'aar')
// sharesdk
implementation 'com.squareup:javawriter:2.1.1'
// umeng
// implementation(name: 'umeng-apm-v1.9.1', ext: 'aar')
// implementation(name: 'umeng-common-9.6.1', ext: 'aar')
// implementation(name: 'umeng-asms-armeabi-v1.8.0', ext: 'aar')
// switchbutton
implementation 'com.github.iielse:switchbutton:1.0.4'
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
implementation 'com.github.yyued:SVGAPlayer-Android:2.1.4'
testImplementation 'junit:junit:4.13.2'
......
{"v":"5.9.6","fr":29.9700012207031,"ip":0,"op":750.000030548126,"w":720,"h":1000,"nm":"封面滚动动效","ddd":0,"assets":[{"id":"image_0","w":1078,"h":1856,"u":"images/","p":"choose_pay_img_0.png","e":0},{"id":"comp_0","nm":"封面图","fr":29.9700012207031,"layers":[{"ddd":0,"ind":1,"ty":2,"nm":"封面2.png","cl":"png","refId":"image_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[539,928,0],"to":[0,-309.5,0],"ti":[0,309.5,0]},{"t":749.000030507395,"s":[539,-929,0]}],"ix":2,"l":2},"a":{"a":0,"k":[539,928,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":750.000030548126,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":2,"nm":"封面2.png","cl":"png","refId":"image_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[539,2784,0],"to":[0,-309.333,0],"ti":[0,309.333,0]},{"t":749.000030507395,"s":[539,928,0]}],"ix":2,"l":2},"a":{"a":0,"k":[539,928,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":750.000030548126,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"封面图","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":20,"ix":10},"p":{"a":0,"k":[374,400,0],"ix":2,"l":2},"a":{"a":0,"k":[539,928,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":1078,"h":1856,"ip":0,"op":750.000030548126,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
......@@ -9,6 +9,9 @@ import android.view.KeyEvent
import android.view.View
import android.widget.CompoundButton
import androidx.recyclerview.widget.GridLayoutManager
import com.airbnb.lottie.LottieComposition
import com.airbnb.lottie.LottieCompositionFactory
import com.airbnb.lottie.LottieDrawable
import com.daimajia.androidanimations.library.Techniques
import com.daimajia.androidanimations.library.YoYo
import com.jobo.alipay.AliPay
......@@ -302,6 +305,16 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, VipAdapter.On
}
private fun initListener() {
val lottieDrawable = LottieDrawable()
LottieCompositionFactory.fromAsset(context, "choose_pay.json")
.addListener { result: LottieComposition? ->
lottieDrawable.setImagesAssetsFolder("images/")
lottieDrawable.composition = result
lottieDrawable.loop(true)
lottieDrawable.playAnimation()
}
ic_vip_top.setImageDrawable(lottieDrawable)
shimmer_text?.postDelayed({
shimmer_text?.startShimmerAnimation()
breathAnim =
......
......@@ -22,11 +22,11 @@
<ImageView
android:id="@+id/ic_vip_top"
android:layout_width="match_parent"
android:layout_height="100dp"
android:scaleType="centerCrop"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="10dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_vip_banner" />
<androidx.recyclerview.widget.RecyclerView
......
......@@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Thu Jun 29 17:28:05 CST 2023
sdk.dir=C\:\\Users\\ccc\\AppData\\Local\\Android\\Sdk
#Thu Jun 29 18:04:53 CST 2023
sdk.dir=/Users/mcg/Library/Android/sdk
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