Commit 1a868595 authored by wanglei's avatar wanglei

...

parent f720ec66
package com.base.filerecoveryrecyclebin.activity.battery package com.base.filerecoveryrecyclebin.activity.battery
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Intent
import android.content.IntentFilter import android.content.IntentFilter
import android.graphics.Color import android.graphics.Color
import android.os.BatteryManager import android.os.BatteryManager
import androidx.activity.addCallback import androidx.activity.addCallback
import androidx.core.view.updatePadding import androidx.core.view.updatePadding
import com.base.filerecoveryrecyclebin.activity.ResultActivity
import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper import com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import com.base.filerecoveryrecyclebin.bean.ConstObject.BATTERY_INFO
import com.base.filerecoveryrecyclebin.databinding.ActivityBatteryBinding import com.base.filerecoveryrecyclebin.databinding.ActivityBatteryBinding
import com.base.filerecoveryrecyclebin.help.BaseActivity import com.base.filerecoveryrecyclebin.help.BaseActivity
import com.base.filerecoveryrecyclebin.receiver.BatteryReceiver import com.base.filerecoveryrecyclebin.receiver.BatteryReceiver
...@@ -64,6 +67,12 @@ class BatteryActivity : BaseActivity<ActivityBatteryBinding>() { ...@@ -64,6 +67,12 @@ class BatteryActivity : BaseActivity<ActivityBatteryBinding>() {
binding.flFanhui.setOnClickListener { binding.flFanhui.setOnClickListener {
onBackPressedDispatcher.onBackPressed() onBackPressedDispatcher.onBackPressed()
} }
binding.tvFinish.setOnClickListener {
startActivity(Intent(this, ResultActivity::class.java).apply {
putExtra("from", BATTERY_INFO)
})
finish()
}
} }
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")
......
...@@ -147,7 +147,7 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() { ...@@ -147,7 +147,7 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
emptyFolder.addAll(emptyFolder5) emptyFolder.addAll(emptyFolder5)
emptyFolder.addAll(emptyFolder6) emptyFolder.addAll(emptyFolder6)
emptyFolder.forEach { l -> emptyFolder.forEach { l ->
list.add(ChildBean(R.mipmap.kongwenjian, l.name, l.path, 4198)) list.add(ChildBean(R.mipmap.kongwenjian, l.name, l.path, 1))
} }
delay(Random.nextLong(1500, 2000)) delay(Random.nextLong(1500, 2000))
}.await() }.await()
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main" android:id="@+id/main"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#FAFAFA" android:background="#FAFAFA"
android:orientation="vertical"
tools:context=".activity.battery.BatteryActivity"> tools:context=".activity.battery.BatteryActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -469,12 +466,31 @@ ...@@ -469,12 +466,31 @@
</LinearLayout> </LinearLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<FrameLayout <FrameLayout
android:id="@+id/fl_ad" android:id="@+id/fl_ad"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" /> android:layout_marginTop="16dp" />
</LinearLayout>
</FrameLayout>
<TextView
android:id="@+id/tv_finish"
android:layout_width="290dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginVertical="20dp"
android:background="@drawable/bg_4773ff_20"
android:gravity="center"
android:text="Finish"
android:textColor="@color/white"
android:textSize="19sp"
tools:ignore="HardcodedText" />
</androidx.core.widget.NestedScrollView> </LinearLayout>
\ No newline at end of file \ 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