Commit 154efb00 authored by wanglei's avatar wanglei

...ad

parent 1bcd6b61
......@@ -216,7 +216,9 @@ class LargeFileCleanActivity : BaseActivity<ActivityLayoutLargeFileBinding>() {
binding.llSize.isEnabled = true
binding.llTime.isEnabled = true
}
AdmobUtils.showNativeAd(this@LargeFileCleanActivity, binding.flAd)
if (largeFileList.size > 6) {
AdmobUtils.showNativeAd(this@LargeFileCleanActivity, binding.flAd)
}
}
}
......
......@@ -76,6 +76,9 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
val sizeF = size.toFormatSize().split(" ")
binding.tvSize.text = sizeF[0]
binding.tvUnit.text = sizeF[1]
if (list.size > 6) {
AdmobUtils.showNativeAd(this@ScreenShotActivity, binding.flAd)
}
}
}
......
......@@ -107,7 +107,9 @@ class RepeatPhotoActivity : BaseActivity<ActivityLayoutRepeatPhotoBinding>() {
binding.idRlList.layoutManager = GridLayoutManager(this, 3)
binding.idRlList.adapter = mAdapter
}
AdmobUtils.showNativeAd(this, binding.flAd)
if (fileList.size > 6) {
AdmobUtils.showNativeAd(this, binding.flAd)
}
}
} else {
......
......@@ -55,14 +55,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:drawableTop="@mipmap/sada"
android:layout_centerVertical="true"
android:drawableTop="@mipmap/sada"
android:drawablePadding="10dp"
android:visibility="gone"
android:gravity="center"
android:text="No photos found"
android:textColor="#666666"
android:textSize="13sp"/>
android:textSize="13sp"
android:visibility="gone"
tools:ignore="HardcodedText,UseCompatTextViewDrawableXml" />
<LinearLayout
android:id="@+id/btn_continue_layout"
......
......@@ -152,6 +152,11 @@
</LinearLayout>
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -203,10 +208,6 @@
</FrameLayout>
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:layout_width="match_parent"
......@@ -231,5 +232,4 @@
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -66,6 +66,12 @@
</com.noober.background.view.BLConstraintLayout>
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/rv_fun"
app:layout_constraintTop_toBottomOf="@id/cl_top" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_fun"
......@@ -74,17 +80,11 @@
android:paddingTop="20dp"
android:paddingBottom="15dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toTopOf="@id/fl_ad"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/cl_top"
app:layout_constraintTop_toBottomOf="@id/fl_ad"
app:layout_constraintVertical_bias="0.0" />
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -11,7 +11,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F4F5F9"
android:orientation="vertical">
android:orientation="vertical"
tools:ignore="UselessParent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
......@@ -122,6 +123,11 @@
android:layout_weight="1"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="80dp">
......@@ -176,5 +182,4 @@
</LinearLayout>
</FrameLayout>
\ No newline at end of file
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