Commit e0531d72 authored by wanglei's avatar wanglei

...ad

parent c6b6f04c
......@@ -76,6 +76,9 @@ class AppManagerActivity : BaseActivity<ActivityAppManagerBinding>() {
launch(Dispatchers.Main) {
binding.progressBar.visibility = View.GONE
adapter.setData(list)
if(list.size>6){
AdmobUtils.showNativeAd(this@AppManagerActivity,binding.flAd)
}
}
}
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:width="1dp" android:color="#E5E5E5"/>
<stroke
android:width="1dp"
android:color="#E5E5E5" />
<solid android:color="@color/white" />
</shape>
\ No newline at end of file
......@@ -67,6 +67,11 @@
</FrameLayout>
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
......@@ -77,10 +82,7 @@
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_uninstall_app" />
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<ProgressBar
......
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