Commit bfe56a87 authored by wanglei's avatar wanglei

...

parent 14379bbf
......@@ -72,15 +72,6 @@ object AdmobBannerUtils {
override fun onAdClosed() {
super.onAdClosed()
LogEx.logDebug(TAG, "onAdClosed")
val removeList = arrayListOf<View>()
parent.children.forEach {
if (it.tag != "CollapsibleBannerAd") {
removeList.add(it)
}
}
removeList.forEach {
parent.removeView(it)
}
}
}
adView?.loadAd(adRequest)
......
......@@ -25,6 +25,7 @@ import com.artifex.mupdfdemo.MuPDFView
import com.artifex.mupdfdemo.SearchTask
import com.artifex.mupdfdemo.SearchTaskResult
import com.base.pdfviewerscannerwhite.R
import com.base.pdfviewerscannerwhite.ads.admob.AdmobBannerUtils
import com.base.pdfviewerscannerwhite.bean.ConstObject.DO_SAVE_PDF
import com.base.pdfviewerscannerwhite.bean.ConstObject.haveGuideGesture
import com.base.pdfviewerscannerwhite.bean.PdfPageBean
......@@ -115,6 +116,7 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
binding.flGuideGesture.visibility = View.VISIBLE
}
AdmobBannerUtils.showCollapsibleBannerAd(this, binding.flAd)
}
private fun iniSetVerticalSeekbar(max: Int) {
......
......@@ -187,7 +187,7 @@
android:layout_marginEnd="35dp"
android:layout_marginBottom="108dp"
android:src="@mipmap/bianji"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toBottomOf="@id/v_animator_bottom"
app:layout_constraintEnd_toEndOf="parent"
tools:ignore="ContentDescription" />
......@@ -196,6 +196,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="60dp"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent">
......@@ -351,11 +352,31 @@
</ViewAnimator>
<FrameLayout
android:visibility="gone"
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="60dp"
app:layout_constraintBottom_toBottomOf="parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@mipmap/zhanweitu2"
tools:ignore="ContentDescription" />
</FrameLayout>
<FrameLayout
android:id="@+id/fl_guide_gesture"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#336C677C">
android:visibility="gone">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#336C677C"
tools:ignore="UselessParent">
<com.base.pdfviewerscannerwhite.ui.view.XmlLottieAnimationView
android:id="@+id/lottie"
......@@ -363,9 +384,11 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
app:lottie_autoPlay="true"
app:lottie_repeatCount="0"
app:lottie_loop="true"
app:lottie_rawRes="@raw/enlarge"
app:lottie_loop="true" />
app:lottie_repeatCount="0" />
</FrameLayout>
</FrameLayout>
......
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