Commit f26bc4b5 authored by wanglei's avatar wanglei

...

parent 2d3feddb
......@@ -3,10 +3,12 @@ package com.base.appzxhy.ui.dialog
import android.animation.ValueAnimator
import android.app.Activity
import android.view.LayoutInflater
import android.view.View
import android.view.animation.LinearInterpolator
import androidx.appcompat.app.AlertDialog
import androidx.constraintlayout.widget.ConstraintLayout
import com.base.appzxhy.R
import com.base.appzxhy.bean.config.AdConfigBean
import com.base.appzxhy.business.ads.AdsMgr
import com.base.appzxhy.databinding.DialogAppExitBinding
......@@ -43,6 +45,9 @@ class AppExitDialog(val activity: Activity) {
}
}.start()
AdsMgr.showNative(binding.flAd, R.layout.layout_admob_native_custom)
if (!AdConfigBean.adsConfigBean.isAdShow) {
binding.fl.visibility = View.GONE
}
binding.ivCancel.setOnClickListener {
dialog.dismiss()
......
......@@ -103,6 +103,7 @@
<FrameLayout
android:id="@+id/fl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="8dp"
......
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