Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
File Recovery RecycleBin
Commits
2af31753
Commit
2af31753
authored
Jul 26, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
....
parent
a6ee511a
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
674 additions
and
59 deletions
+674
-59
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+22
-6
data.json
app/src/main/assets/app_manager/data.json
+1
-0
img_0.png
app/src/main/assets/app_manager/images/img_0.png
+0
-0
img_1.png
app/src/main/assets/app_manager/images/img_1.png
+0
-0
img_2.png
app/src/main/assets/app_manager/images/img_2.png
+0
-0
SplashActivity.kt
...om/base/filerecoveryrecyclebin/activity/SplashActivity.kt
+7
-0
AppProcessActivity.kt
...overyrecyclebin/activity/appprocess/AppProcessActivity.kt
+105
-0
AppProcessAnimationActivity.kt
...clebin/activity/appprocess/AppProcessAnimationActivity.kt
+54
-0
AppManagerAdapter.kt
.../base/filerecoveryrecyclebin/adapter/AppManagerAdapter.kt
+48
-0
AppBean.kt
...main/java/com/base/filerecoveryrecyclebin/bean/AppBean.kt
+7
-0
ConstObject.kt
.../java/com/base/filerecoveryrecyclebin/bean/ConstObject.kt
+4
-1
NotificationUtil.kt
...a/com/base/filerecoveryrecyclebin/fcm/NotificationUtil.kt
+10
-1
HomeFragment.kt
.../com/base/filerecoveryrecyclebin/fragment/HomeFragment.kt
+7
-0
AppProcessStringManager.java
...filerecoveryrecyclebin/utils/AppProcessStringManager.java
+28
-0
RamUtils.kt
...in/java/com/base/filerecoveryrecyclebin/utils/RamUtils.kt
+16
-0
bg_d9e2fd_15.xml
app/src/main/res/drawable/bg_d9e2fd_15.xml
+5
-0
shape_ram_pb.xml
app/src/main/res/drawable/shape_ram_pb.xml
+25
-0
activity_app_process.xml
app/src/main/res/layout/activity_app_process.xml
+140
-0
activity_app_process_animation.xml
app/src/main/res/layout/activity_app_process_animation.xml
+53
-0
fragment_home_3.xml
app/src/main/res/layout/fragment_home_3.xml
+102
-51
item_app_manager.xml
app/src/main/res/layout/item_app_manager.xml
+40
-0
h_process.png
app/src/main/res/mipmap-xxhdpi/h_process.png
+0
-0
xiala_h.png
app/src/main/res/mipmap-xxhdpi/xiala_h.png
+0
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
2af31753
...
@@ -14,6 +14,15 @@
...
@@ -14,6 +14,15 @@
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<uses-permission
android:name=
"android.permission.REQUEST_DELETE_PACKAGES"
/>
<uses-permission
android:name=
"android.permission.REQUEST_DELETE_PACKAGES"
/>
<queries>
<intent>
<action
android:name=
"android.intent.action.MAIN"
/>
</intent>
<intent>
<action
android:name=
"android.intent.action.VIEW"
/>
</intent>
</queries>
<application
<application
android:name=
".MyApplication"
android:name=
".MyApplication"
android:allowBackup=
"true"
android:allowBackup=
"true"
...
@@ -36,6 +45,18 @@
...
@@ -36,6 +45,18 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
<activity
android:name=
".activity.appprocess.AppProcessAnimationActivity"
android:exported=
"false"
android:launchMode=
"singleTop"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
android:name=
".activity.appprocess.AppProcessActivity"
android:exported=
"false"
android:launchMode=
"singleTop"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
<activity
android:name=
".activity.photomanager.PhotoManagerAnimationActivity"
android:name=
".activity.photomanager.PhotoManagerAnimationActivity"
android:exported=
"false"
android:exported=
"false"
...
@@ -53,12 +74,7 @@
...
@@ -53,12 +74,7 @@
android:exported=
"false"
android:exported=
"false"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<!-- <activity -->
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<!-- android:name=".activity.vip.VipActivity" -->
<!-- android:exported="false" -->
<!-- android:launchMode="singleTop" -->
<!-- android:screenOrientation="portrait" -->
<!-- tools:ignore="DiscouragedApi,LockedOrientationActivity" /> -->
<activity
<activity
android:name=
".activity.recyclebin.RecycleBinDetailActivity"
android:name=
".activity.recyclebin.RecycleBinDetailActivity"
android:exported=
"false"
android:exported=
"false"
...
...
app/src/main/assets/app_manager/data.json
0 → 100644
View file @
2af31753
{
"v"
:
"5.4.4"
,
"fr"
:
60
,
"ip"
:
0
,
"op"
:
240
,
"w"
:
720
,
"h"
:
1280
,
"nm"
:
"2a"
,
"ddd"
:
0
,
"assets"
:[{
"id"
:
"image_0"
,
"w"
:
498
,
"h"
:
497
,
"u"
:
"images/"
,
"p"
:
"img_0.png"
,
"e"
:
0
},{
"id"
:
"image_1"
,
"w"
:
498
,
"h"
:
251
,
"u"
:
"images/"
,
"p"
:
"img_1.png"
,
"e"
:
0
},{
"id"
:
"image_2"
,
"w"
:
512
,
"h"
:
497
,
"u"
:
"images/"
,
"p"
:
"img_2.png"
,
"e"
:
0
},{
"id"
:
"comp_0"
,
"layers"
:[{
"ddd"
:
0
,
"ind"
:
1
,
"ty"
:
2
,
"nm"
:
"scan.png"
,
"cl"
:
"png"
,
"refId"
:
"image_0"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
0
,
"s"
:[
30
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.833
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.167
],
"y"
:[
0
]},
"t"
:
15
,
"s"
:[
100
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.833
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.167
],
"y"
:[
0
]},
"t"
:
222
,
"s"
:[
100
],
"e"
:[
0
]},{
"t"
:
239
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
360
,
552
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
249
,
248.5
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.667
,
0.667
,
0.667
],
"y"
:[
0.731
,
0.731
,
-28.047
]},
"o"
:{
"x"
:[
0.333
,
0.333
,
0.333
],
"y"
:[
0
,
0
,
0
]},
"t"
:
0
,
"s"
:[
0
,
0
,
100
],
"e"
:[
108
,
108
,
100
]},{
"i"
:{
"x"
:[
0.667
,
0.667
,
0.667
],
"y"
:[
0.52
,
0.52
,
3.935
]},
"o"
:{
"x"
:[
0.333
,
0.333
,
0.333
],
"y"
:[
-0.88
,
-0.88
,
10.562
]},
"t"
:
11
,
"s"
:[
108
,
108
,
100
],
"e"
:[
96
,
96
,
100
]},{
"i"
:{
"x"
:[
0.667
,
0.667
,
0.667
],
"y"
:[
1
,
1
,
1
]},
"o"
:{
"x"
:[
0.333
,
0.333
,
0.333
],
"y"
:[
-1.081
,
-1.081
,
-2.202
]},
"t"
:
15
,
"s"
:[
96
,
96
,
100
],
"e"
:[
100
,
100
,
100
]},{
"t"
:
18
}],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
720
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
2
,
"ty"
:
2
,
"nm"
:
"sm.png"
,
"cl"
:
"png"
,
"refId"
:
"image_1"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
17
,
"s"
:[
0
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
32
,
"s"
:[
100
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
47
,
"s"
:[
0
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
64
,
"s"
:[
100
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
81
,
"s"
:[
0
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
96
,
"s"
:[
0
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
111
,
"s"
:[
100
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
126
,
"s"
:[
0
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
143
,
"s"
:[
100
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
160
,
"s"
:[
0
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
175
,
"s"
:[
0
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
190
,
"s"
:[
100
],
"e"
:[
0
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
205
,
"s"
:[
0
],
"e"
:[
100
]},{
"i"
:{
"x"
:[
0.667
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.333
],
"y"
:[
0
]},
"t"
:
222
,
"s"
:[
100
],
"e"
:[
0
]},{
"t"
:
239
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.667
,
"y"
:
1
},
"o"
:{
"x"
:
0.333
,
"y"
:
0
},
"t"
:
17
,
"s"
:[
360
,
432
,
0
],
"e"
:[
360
,
912
,
0
],
"to"
:[
0
,
80
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
1
},
"o"
:{
"x"
:
0.333
,
"y"
:
0
},
"t"
:
47
,
"s"
:[
360
,
912
,
0
],
"e"
:[
360
,
432
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
80
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
0.667
},
"o"
:{
"x"
:
0.333
,
"y"
:
0.333
},
"t"
:
81
,
"s"
:[
360
,
432
,
0
],
"e"
:[
360
,
432
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
1
},
"o"
:{
"x"
:
0.333
,
"y"
:
0
},
"t"
:
96
,
"s"
:[
360
,
432
,
0
],
"e"
:[
360
,
912
,
0
],
"to"
:[
0
,
80
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
1
},
"o"
:{
"x"
:
0.333
,
"y"
:
0
},
"t"
:
126
,
"s"
:[
360
,
912
,
0
],
"e"
:[
360
,
432
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
80
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
0.667
},
"o"
:{
"x"
:
0.333
,
"y"
:
0.333
},
"t"
:
160
,
"s"
:[
360
,
432
,
0
],
"e"
:[
360
,
432
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
1
},
"o"
:{
"x"
:
0.333
,
"y"
:
0
},
"t"
:
175
,
"s"
:[
360
,
432
,
0
],
"e"
:[
360
,
912
,
0
],
"to"
:[
0
,
80
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"i"
:{
"x"
:
0.667
,
"y"
:
1
},
"o"
:{
"x"
:
0.333
,
"y"
:
0
},
"t"
:
205
,
"s"
:[
360
,
912
,
0
],
"e"
:[
360
,
432
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
80
,
0
]},{
"t"
:
239
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
249
,
125.5
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
720
,
"st"
:
0
,
"bm"
:
0
}]}],
"layers"
:[{
"ddd"
:
0
,
"ind"
:
1
,
"ty"
:
0
,
"nm"
:
"scan"
,
"refId"
:
"comp_0"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
360
,
640
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
360
,
640
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"w"
:
720
,
"h"
:
1280
,
"ip"
:
0
,
"op"
:
720
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
2
,
"ty"
:
2
,
"nm"
:
"2-phone.png"
,
"cl"
:
"png"
,
"refId"
:
"image_2"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
360
,
552
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
256
,
248.5
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
720
,
"st"
:
0
,
"bm"
:
0
}],
"markers"
:[]}
\ No newline at end of file
app/src/main/assets/app_manager/images/img_0.png
0 → 100644
View file @
2af31753
3.07 KB
app/src/main/assets/app_manager/images/img_1.png
0 → 100644
View file @
2af31753
11.1 KB
app/src/main/assets/app_manager/images/img_2.png
0 → 100644
View file @
2af31753
80.9 KB
app/src/main/java/com/base/filerecoveryrecyclebin/activity/SplashActivity.kt
View file @
2af31753
...
@@ -10,6 +10,7 @@ import android.text.style.UnderlineSpan
...
@@ -10,6 +10,7 @@ import android.text.style.UnderlineSpan
import
android.view.View
import
android.view.View
import
androidx.lifecycle.lifecycleScope
import
androidx.lifecycle.lifecycleScope
import
com.base.filerecoveryrecyclebin.MyApplication
import
com.base.filerecoveryrecyclebin.MyApplication
import
com.base.filerecoveryrecyclebin.activity.appprocess.AppProcessAnimationActivity
import
com.base.filerecoveryrecyclebin.activity.guide.GuideActivity
import
com.base.filerecoveryrecyclebin.activity.guide.GuideActivity
import
com.base.filerecoveryrecyclebin.activity.junkclean.ScanJunkActivity
import
com.base.filerecoveryrecyclebin.activity.junkclean.ScanJunkActivity
import
com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerAnimationActivity
import
com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerAnimationActivity
...
@@ -19,6 +20,7 @@ import com.base.filerecoveryrecyclebin.activity.screenshot.ScreenShotActivity
...
@@ -19,6 +20,7 @@ import com.base.filerecoveryrecyclebin.activity.screenshot.ScreenShotActivity
import
com.base.filerecoveryrecyclebin.activity.whatsapp.WhatsAppCleanerAnimationActivity
import
com.base.filerecoveryrecyclebin.activity.whatsapp.WhatsAppCleanerAnimationActivity
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.bean.ConstObject
import
com.base.filerecoveryrecyclebin.bean.ConstObject
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_APP_PROCESS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_JUNK_CLEAN_PUSH
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_JUNK_CLEAN_PUSH
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_DOCUMENTS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_DOCUMENTS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_PHOTOS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_PHOTOS
...
@@ -148,6 +150,11 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
...
@@ -148,6 +150,11 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
startActivity
(
Intent
(
this
,
WhatsAppCleanerAnimationActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
WhatsAppCleanerAnimationActivity
::
class
.
java
))
}
}
ID_APP_PROCESS
->
{
startActivity
(
Intent
(
this
,
AppProcessAnimationActivity
::
class
.
java
))
}
else
->
{
else
->
{
val
isHotLaunch
=
intent
?.
extras
?.
getBoolean
(
"isHotLaunch"
,
false
)
?:
false
val
isHotLaunch
=
intent
?.
extras
?.
getBoolean
(
"isHotLaunch"
,
false
)
?:
false
if
(!
isHotLaunch
)
{
if
(!
isHotLaunch
)
{
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/activity/appprocess/AppProcessActivity.kt
0 → 100644
View file @
2af31753
package
com.base.filerecoveryrecyclebin.activity.appprocess
import
android.annotation.SuppressLint
import
android.content.Context
import
android.content.Intent
import
android.content.pm.ApplicationInfo
import
android.content.pm.PackageInfo
import
android.graphics.Color
import
android.net.Uri
import
android.provider.Settings
import
android.view.View
import
androidx.core.view.updatePadding
import
androidx.lifecycle.lifecycleScope
import
com.base.filerecoveryrecyclebin.adapter.AppManagerAdapter
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.bean.AppBean
import
com.base.filerecoveryrecyclebin.databinding.ActivityAppProcessBinding
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
com.base.filerecoveryrecyclebin.help.KotlinExt.toFormatSize
import
com.base.filerecoveryrecyclebin.utils.BarUtils
import
com.base.filerecoveryrecyclebin.utils.RamUtils.ramPair
import
com.base.filerecoveryrecyclebin.view.DialogViews.showExitFunctionDialog
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.launch
class
AppProcessActivity
:
BaseActivity
<
ActivityAppProcessBinding
>()
{
override
val
binding
:
ActivityAppProcessBinding
by
lazy
{
ActivityAppProcessBinding
.
inflate
(
layoutInflater
)
}
private
lateinit
var
adapter
:
AppManagerAdapter
@SuppressLint
(
"SetTextI18n"
)
override
fun
initView
()
{
BarUtils
.
setStatusBarLightMode
(
this
,
true
)
BarUtils
.
setStatusBarColor
(
this
,
Color
.
TRANSPARENT
)
binding
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
val
ramPair
=
ramPair
()
val
percent
=
((
ramPair
.
first
.
toFloat
()
/
ramPair
.
second
.
toFloat
())
*
100
).
toInt
()
binding
.
tvPercent
.
text
=
percent
.
toString
()
binding
.
pbRam
.
progress
=
percent
binding
.
tvSize
.
text
=
"${ramPair.first.toFormatSize()}/${ramPair.second.toFormatSize()}"
adapter
=
AppManagerAdapter
{
pkg
->
val
intent
=
Intent
(
Settings
.
ACTION_APPLICATION_DETAILS_SETTINGS
)
val
uri
=
Uri
.
fromParts
(
"package"
,
pkg
,
null
)
// 替换为需要跳转的应用包名
intent
.
setData
(
uri
)
startActivity
(
intent
)
}
binding
.
rv
.
adapter
=
adapter
initData
()
}
override
fun
initListener
()
{
super
.
initListener
()
binding
.
flFanhui
.
setOnClickListener
{
showExitFunctionDialog
{
showAd
->
if
(
showAd
)
{
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
)
{
finishToMain
()
}
}
else
{
finishToMain
()
}
}
}
}
@SuppressLint
(
"QueryPermissionsNeeded"
)
private
fun
initData
()
=
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
val
pm
=
packageManager
val
packages
=
pm
.
getInstalledPackages
(
0
)
val
list
=
arrayListOf
<
AppBean
>()
packages
.
forEach
{
app
->
if
(
isLaunchApp
(
this
@AppProcessActivity
,
app
))
{
val
appBean
=
AppBean
(
app
.
applicationInfo
.
loadIcon
(
pm
),
app
.
applicationInfo
.
loadLabel
(
pm
).
toString
(),
app
.
applicationInfo
.
packageName
)
list
.
add
(
appBean
)
}
}
launch
(
Dispatchers
.
Main
)
{
binding
.
pbLoading
.
visibility
=
View
.
GONE
adapter
.
setData
(
list
)
}
}
private
fun
isLaunchApp
(
context
:
Context
,
app
:
PackageInfo
,
filterSystem
:
Boolean
=
true
):
Boolean
{
val
flagSystem
=
(
app
.
applicationInfo
.
flags
and
ApplicationInfo
.
FLAG_SYSTEM
)
<
1
val
flag
=
if
(
filterSystem
)
flagSystem
else
true
return
flag
&&
app
.
applicationInfo
.
packageName
!=
context
.
packageName
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/activity/appprocess/AppProcessAnimationActivity.kt
0 → 100644
View file @
2af31753
package
com.base.filerecoveryrecyclebin.activity.appprocess
import
android.annotation.SuppressLint
import
android.content.Intent
import
android.view.View
import
android.widget.Toast
import
androidx.activity.addCallback
import
androidx.lifecycle.lifecycleScope
import
com.base.filerecoveryrecyclebin.ads.AdmobMaxHelper
import
com.base.filerecoveryrecyclebin.databinding.ActivityAppProcessAnimationBinding
import
com.base.filerecoveryrecyclebin.help.BaseActivity
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.delay
import
kotlinx.coroutines.launch
import
kotlin.random.Random
class
AppProcessAnimationActivity
:
BaseActivity
<
ActivityAppProcessAnimationBinding
>()
{
override
val
binding
:
ActivityAppProcessAnimationBinding
by
lazy
{
ActivityAppProcessAnimationBinding
.
inflate
(
layoutInflater
)
}
override
fun
initView
()
{
playLottie
()
}
override
fun
initListener
()
{
onBackPressedDispatcher
.
addCallback
{
Toast
.
makeText
(
this
@AppProcessAnimationActivity
,
"wait a moment"
,
Toast
.
LENGTH_SHORT
).
show
()
}
}
@SuppressLint
(
"SetTextI18n"
)
private
fun
playLottie
()
{
binding
.
lottie
.
imageAssetsFolder
=
"app_manager/images/"
binding
.
lottie
.
setAnimation
(
"app_manager/data.json"
)
binding
.
lottie
.
playAnimation
()
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
Random
.
nextLong
(
4000
,
6000
))
binding
.
lottie
.
visibility
=
View
.
GONE
binding
.
lottieCompleted
.
visibility
=
View
.
VISIBLE
binding
.
lottieCompleted
.
playAnimation
()
binding
.
tv
.
text
=
"Completed!"
delay
(
1000
)
AdmobMaxHelper
.
admobMaxShowInterstitialAd
(
this
@AppProcessAnimationActivity
)
{
startActivity
(
Intent
(
this
@AppProcessAnimationActivity
,
AppProcessActivity
::
class
.
java
))
finish
()
}
}
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/adapter/AppManagerAdapter.kt
0 → 100644
View file @
2af31753
package
com.base.filerecoveryrecyclebin.adapter
import
android.annotation.SuppressLint
import
android.view.View
import
android.view.ViewGroup
import
androidx.recyclerview.widget.RecyclerView
import
com.base.filerecoveryrecyclebin.R
import
com.base.filerecoveryrecyclebin.bean.AppBean
import
com.base.filerecoveryrecyclebin.databinding.ItemAppManagerBinding
import
com.base.filerecoveryrecyclebin.view.XmlEx.inflate
class
AppManagerAdapter
(
val
click
:
(
packageName
:
String
)
->
Unit
)
:
RecyclerView
.
Adapter
<
AppManagerAdapter
.
AAA
>()
{
private
val
beanList
=
arrayListOf
<
AppBean
>()
class
AAA
(
view
:
View
)
:
RecyclerView
.
ViewHolder
(
view
)
override
fun
onCreateViewHolder
(
parent
:
ViewGroup
,
viewType
:
Int
):
AAA
{
return
AAA
(
R
.
layout
.
item_app_manager
.
inflate
(
parent
))
}
override
fun
getItemCount
():
Int
{
return
beanList
.
size
}
override
fun
onBindViewHolder
(
holder
:
AAA
,
position
:
Int
)
{
val
binding
=
ItemAppManagerBinding
.
bind
(
holder
.
itemView
)
val
bean
=
beanList
[
position
]
binding
.
iv
.
setImageDrawable
(
bean
.
icon
)
binding
.
tvName
.
text
=
bean
.
name
binding
.
tvStop
.
setOnClickListener
{
click
.
invoke
(
bean
.
packageName
)
}
}
@SuppressLint
(
"NotifyDataSetChanged"
)
fun
setData
(
list
:
List
<
AppBean
>)
{
beanList
.
clear
()
beanList
.
addAll
(
list
)
notifyDataSetChanged
()
}
@SuppressLint
(
"NotifyDataSetChanged"
)
fun
removeBean
(
pkg
:
String
)
{
beanList
.
removeIf
{
it
.
packageName
==
pkg
}
notifyDataSetChanged
()
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/bean/AppBean.kt
0 → 100644
View file @
2af31753
package
com.base.filerecoveryrecyclebin.bean
import
android.graphics.drawable.Drawable
class
AppBean
(
val
icon
:
Drawable
,
val
name
:
String
,
val
packageName
:
String
)
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/bean/ConstObject.kt
View file @
2af31753
...
@@ -10,8 +10,10 @@ object ConstObject {
...
@@ -10,8 +10,10 @@ object ConstObject {
const
val
ID_RECOVERY_PHOTOS
=
13000
const
val
ID_RECOVERY_PHOTOS
=
13000
const
val
ID_RECOVERY_VIDEOS
=
13001
const
val
ID_RECOVERY_VIDEOS
=
13001
const
val
ID_RECOVERY_DOCUMENTS
=
13002
const
val
ID_RECOVERY_DOCUMENTS
=
13002
// const val ID_PRIVACY_SPACE = 13003
// const val ID_PRIVACY_SPACE = 13003
const
val
ID_WHATSAPP
=
12001
//截图清理
const
val
ID_WHATSAPP
=
12001
//截图清理
const
val
ID_APP_PROCESS
=
12056
//截图清理
const
val
RECOVERY_PHOTOS
=
"Recovery Photos"
const
val
RECOVERY_PHOTOS
=
"Recovery Photos"
const
val
RECOVERY_VIDEOS
=
"Recovery Videos"
const
val
RECOVERY_VIDEOS
=
"Recovery Videos"
...
@@ -23,6 +25,7 @@ object ConstObject {
...
@@ -23,6 +25,7 @@ object ConstObject {
const
val
PRIVACY_SPACE
=
"Privacy Space"
const
val
PRIVACY_SPACE
=
"Privacy Space"
const
val
RECYCLE_BIN
=
"Recycle Bin"
const
val
RECYCLE_BIN
=
"Recycle Bin"
const
val
WHATSAPP_CLEANER
=
"WhatsApp Cleaner"
const
val
WHATSAPP_CLEANER
=
"WhatsApp Cleaner"
const
val
APP_PROCESS
=
"App Process"
const
val
SCAN_PHOTOS
=
1
const
val
SCAN_PHOTOS
=
1
const
val
SCAN_DOCUMENTS
=
2
const
val
SCAN_DOCUMENTS
=
2
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/fcm/NotificationUtil.kt
View file @
2af31753
...
@@ -17,6 +17,7 @@ import androidx.core.graphics.drawable.IconCompat
...
@@ -17,6 +17,7 @@ import androidx.core.graphics.drawable.IconCompat
import
com.base.filerecoveryrecyclebin.MyApplication
import
com.base.filerecoveryrecyclebin.MyApplication
import
com.base.filerecoveryrecyclebin.R
import
com.base.filerecoveryrecyclebin.R
import
com.base.filerecoveryrecyclebin.activity.SplashActivity
import
com.base.filerecoveryrecyclebin.activity.SplashActivity
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_APP_PROCESS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_JUNK_CLEAN_PUSH
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_JUNK_CLEAN_PUSH
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_DOCUMENTS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_DOCUMENTS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_PHOTOS
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_RECOVERY_PHOTOS
...
@@ -25,6 +26,7 @@ import com.base.filerecoveryrecyclebin.bean.ConstObject.ID_SCREENSHOT_CLEAN
...
@@ -25,6 +26,7 @@ import com.base.filerecoveryrecyclebin.bean.ConstObject.ID_SCREENSHOT_CLEAN
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_SIMILAR_IMAGE
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_SIMILAR_IMAGE
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_WHATSAPP
import
com.base.filerecoveryrecyclebin.bean.ConstObject.ID_WHATSAPP
import
com.base.filerecoveryrecyclebin.utils.AppPreferences
import
com.base.filerecoveryrecyclebin.utils.AppPreferences
import
com.base.filerecoveryrecyclebin.utils.AppProcessStringManager
import
com.base.filerecoveryrecyclebin.utils.CleanJunkStringResourceManager
import
com.base.filerecoveryrecyclebin.utils.CleanJunkStringResourceManager
import
com.base.filerecoveryrecyclebin.utils.DocumentRecoveryStringManager
import
com.base.filerecoveryrecyclebin.utils.DocumentRecoveryStringManager
import
com.base.filerecoveryrecyclebin.utils.DuplicatePhotoStringResourceManager
import
com.base.filerecoveryrecyclebin.utils.DuplicatePhotoStringResourceManager
...
@@ -93,6 +95,12 @@ object NotificationUtil {
...
@@ -93,6 +95,12 @@ object NotificationUtil {
desc
=
WhatsappCleanerStringManager
.
getNextCleanerCopy
()
desc
=
WhatsappCleanerStringManager
.
getNextCleanerCopy
()
btn
=
"WhatsApp Cleaner"
btn
=
"WhatsApp Cleaner"
}
}
ID_APP_PROCESS
->
{
icon
=
R
.
mipmap
.
h_process
desc
=
AppProcessStringManager
.
getNextDesc
()
btn
=
"WhatsApp Cleaner"
}
}
}
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
icon
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
icon
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
...
@@ -273,6 +281,7 @@ object NotificationUtil {
...
@@ -273,6 +281,7 @@ object NotificationUtil {
ID_RECOVERY_PHOTOS
,
ID_RECOVERY_PHOTOS
,
ID_RECOVERY_VIDEOS
,
ID_RECOVERY_VIDEOS
,
ID_RECOVERY_DOCUMENTS
,
ID_RECOVERY_DOCUMENTS
,
ID_WHATSAPP
ID_WHATSAPP
,
ID_APP_PROCESS
)
)
}
}
\ No newline at end of file
app/src/main/java/com/base/filerecoveryrecyclebin/fragment/HomeFragment.kt
View file @
2af31753
...
@@ -7,6 +7,7 @@ import android.view.View
...
@@ -7,6 +7,7 @@ import android.view.View
import
androidx.lifecycle.lifecycleScope
import
androidx.lifecycle.lifecycleScope
import
com.base.filerecoveryrecyclebin.activity.MainActivity
import
com.base.filerecoveryrecyclebin.activity.MainActivity
import
com.base.filerecoveryrecyclebin.activity.SettingActivity
import
com.base.filerecoveryrecyclebin.activity.SettingActivity
import
com.base.filerecoveryrecyclebin.activity.appprocess.AppProcessAnimationActivity
import
com.base.filerecoveryrecyclebin.activity.junkclean.ScanJunkActivity
import
com.base.filerecoveryrecyclebin.activity.junkclean.ScanJunkActivity
import
com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerAnimationActivity
import
com.base.filerecoveryrecyclebin.activity.photomanager.PhotoManagerAnimationActivity
import
com.base.filerecoveryrecyclebin.activity.recovery.FileScanResultActivity
import
com.base.filerecoveryrecyclebin.activity.recovery.FileScanResultActivity
...
@@ -68,12 +69,18 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
...
@@ -68,12 +69,18 @@ class HomeFragment : BaseFragment<FragmentHome3Binding>() {
binding
.
cardWhatsapp
.
setOnClickListener
{
binding
.
cardWhatsapp
.
setOnClickListener
{
startActivity
(
Intent
(
requireContext
(),
WhatsAppCleanerAnimationActivity
::
class
.
java
))
startActivity
(
Intent
(
requireContext
(),
WhatsAppCleanerAnimationActivity
::
class
.
java
))
}
}
binding
.
cardAppProcess
.
setOnClickListener
{
startActivity
(
Intent
(
requireContext
(),
AppProcessAnimationActivity
::
class
.
java
))
}
binding
.
flSetting
.
setOnClickListener
{
binding
.
flSetting
.
setOnClickListener
{
startActivity
(
Intent
(
requireContext
(),
SettingActivity
::
class
.
java
))
startActivity
(
Intent
(
requireContext
(),
SettingActivity
::
class
.
java
))
}
}
// binding.ivVip.setOnClickListener {
// binding.ivVip.setOnClickListener {
// startActivity(Intent(requireContext(), VipActivity::class.java))
// startActivity(Intent(requireContext(), VipActivity::class.java))
// }
// }
binding
.
ivArrowUp
.
setOnClickListener
{
binding
.
nestedScrollView
.
smoothScrollTo
(
0
,
0
)
}
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
(
requireActivity
()
as
MainActivity
).
photoSizeFlow
.
collectLatest
{
(
requireActivity
()
as
MainActivity
).
photoSizeFlow
.
collectLatest
{
...
...
app/src/main/java/com/base/filerecoveryrecyclebin/utils/AppProcessStringManager.java
0 → 100644
View file @
2af31753
package
com
.
base
.
filerecoveryrecyclebin
.
utils
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
AppProcessStringManager
{
private
static
final
List
<
String
>
appManagerCopies
=
new
ArrayList
<>();
private
static
int
currentCopyIndex
=
0
;
static
{
// 初始化并添加文案到列表
appManagerCopies
.
add
(
"Manage Your Apps: Keep your device running smoothly with our App Process Manager."
);
appManagerCopies
.
add
(
"App Process Alert: Time to clean up your device's background processes."
);
appManagerCopies
.
add
(
"Optimize Performance: Discover which apps are running in the background and manage them with ease."
);
appManagerCopies
.
add
(
"App Process Check: Ensure your device is running efficiently by managing your app processes."
);
}
public
static
String
getNextDesc
()
{
if
(
appManagerCopies
.
isEmpty
())
{
return
null
;
// 根据您的需要处理错误情况
}
String
copy
=
appManagerCopies
.
get
(
currentCopyIndex
);
currentCopyIndex
=
(
currentCopyIndex
+
1
)
%
appManagerCopies
.
size
();
return
copy
;
}
}
app/src/main/java/com/base/filerecoveryrecyclebin/utils/RamUtils.kt
0 → 100644
View file @
2af31753
package
com.base.filerecoveryrecyclebin.utils
import
android.app.ActivityManager
import
android.content.Context
object
RamUtils
{
fun
Context
.
ramPair
():
Pair
<
Long
,
Long
>
{
val
outInfo
=
ActivityManager
.
MemoryInfo
()
val
activityManager
=
getSystemService
(
Context
.
ACTIVITY_SERVICE
)
as
ActivityManager
?
activityManager
!!
.
getMemoryInfo
(
outInfo
)
val
totalMem
=
outInfo
.
totalMem
val
usedMem
=
outInfo
.
totalMem
-
outInfo
.
availMem
return
Pair
(
usedMem
,
totalMem
)
}
}
\ No newline at end of file
app/src/main/res/drawable/bg_d9e2fd_15.xml
0 → 100644
View file @
2af31753
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#D9E2FD"
/>
<corners
android:radius=
"15dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_ram_pb.xml
0 → 100644
View file @
2af31753
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:id=
"@android:id/background"
>
<shape>
<!-- <stroke-->
<!-- android:width="1px"-->
<!-- android:color="#FF3835" />-->
<solid
android:color=
"#E4EAFF"
/>
<corners
android:radius=
"12.5dp"
/>
</shape>
</item>
<!-- android:bottom="3dp"-->
<!-- android:end="3dp"-->
<!-- android:start="3dp"-->
<!-- android:top="3dp"-->
<item
android:id=
"@android:id/progress"
>
<scale
android:scaleWidth=
"100%"
>
<shape>
<corners
android:radius=
"12.5dp"
/>
<solid
android:color=
"#4772FD"
/>
</shape>
</scale>
</item>
</layer-list>
\ No newline at end of file
app/src/main/res/layout/activity_app_process.xml
0 → 100644
View file @
2af31753
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
tools:context=
".activity.appprocess.AppProcessActivity"
>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
tools:ignore=
"UselessParent"
>
<FrameLayout
android:id=
"@+id/fl_fanhui"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding=
"20dp"
tools:ignore=
"UselessParent"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/quit"
tools:ignore=
"ContentDescription"
/>
</FrameLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"App Process"
android:textSize=
"19sp"
android:textStyle=
"bold"
tools:ignore=
"HardcodedText"
/>
</FrameLayout>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_percent"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:includeFontPadding=
"false"
android:textSize=
"54sp"
android:textStyle=
"bold"
tools:text=
"68"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:layout_marginStart=
"2dp"
android:layout_marginBottom=
"5dp"
android:includeFontPadding=
"false"
android:text=
"%"
android:textSize=
"18sp"
android:textStyle=
"bold"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"16dp"
android:text=
"RAM Used"
android:textSize=
"15sp"
android:textStyle=
"bold"
tools:ignore=
"HardcodedText"
/>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"18dp"
>
<ProgressBar
android:id=
"@+id/pb_ram"
style=
"@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width=
"345dp"
android:layout_height=
"25dp"
android:max=
"100"
android:progressDrawable=
"@drawable/shape_ram_pb"
tools:progress=
"50"
/>
<TextView
android:id=
"@+id/tv_size"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|end"
android:layout_marginEnd=
"20dp"
android:text=
"5.6GB/7.9GB"
android:textSize=
"12sp"
android:textStyle=
"bold"
tools:ignore=
"HardcodedText"
/>
</FrameLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"25dp"
android:text=
"Manager user apps"
android:textColor=
"#999999"
android:textSize=
"15sp"
tools:ignore=
"HardcodedText"
/>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem=
"@layout/item_app_manager"
/>
<ProgressBar
android:id=
"@+id/pb_loading"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
/>
</FrameLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/activity_app_process_animation.xml
0 → 100644
View file @
2af31753
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
>
<com.base.filerecoveryrecyclebin.view.XmlLottieAnimationView
android:id=
"@+id/lottie"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:adjustViewBounds=
"true"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
/>
<com.base.filerecoveryrecyclebin.view.XmlLottieAnimationView
android:id=
"@+id/lottie_completed"
android:layout_width=
"90dp"
android:layout_height=
"90dp"
android:layout_gravity=
"center"
android:visibility=
"gone"
app:layout_constraintBottom_toTopOf=
"@id/tv"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:lottie_autoPlay=
"false"
app:lottie_rawRes=
"@raw/loading_completed"
/>
<TextView
android:id=
"@+id/tv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal|bottom"
android:layout_marginBottom=
"250dp"
android:text=
"Wait a moment..."
android:textColor=
"#333333"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
tools:ignore=
"HardcodedText"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/fragment_home_3.xml
View file @
2af31753
...
@@ -8,66 +8,66 @@
...
@@ -8,66 +8,66 @@
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
".fragment.HomeFragment"
>
tools:context=
".fragment.HomeFragment"
>
<
androidx.core.widget.NestedScrollView
<
FrameLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|start"
android:layout_marginStart=
"16dp"
android:text=
"@string/app_name"
android:textSize=
"19sp"
android:textStyle=
"bold"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"
match_par
ent"
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:layout_gravity=
"center_vertical|end"
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/iv_vip"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"5dp"
android:src=
"@mipmap/h_vipicon"
android:visibility=
"gone"
tools:ignore=
"ContentDescription"
/>
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:id=
"@+id/fl_setting"
android:layout_height=
"wrap_content"
>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
<TextView
android:padding=
"10dp"
android:id=
"@+id/tv_title"
tools:ignore=
"UselessParent"
>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|start"
android:layout_marginStart=
"16dp"
android:text=
"@string/app_name"
android:textSize=
"19sp"
android:textStyle=
"bold"
/>
<
LinearLayout
<
ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|end"
android:layout_marginEnd=
"6dp"
android:orientation=
"horizontal"
>
android:src=
"@mipmap/shezhi"
tools:ignore=
"ContentDescription"
/>
<ImageView
</FrameLayout>
android:id=
"@+id/iv_vip"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"5dp"
android:src=
"@mipmap/h_vipicon"
android:visibility=
"gone"
tools:ignore=
"ContentDescription"
/>
<FrameLayout
android:id=
"@+id/fl_setting"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:padding=
"10dp"
tools:ignore=
"UselessParent"
>
<ImageView
</LinearLayout>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"6dp"
android:src=
"@mipmap/shezhi"
tools:ignore=
"ContentDescription"
/>
</FrameLayout>
</Linear
Layout>
</Frame
Layout>
</FrameLayout>
<androidx.core.widget.NestedScrollView
android:id=
"@+id/nestedScrollView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/fl_scan"
android:id=
"@+id/fl_scan"
...
@@ -114,16 +114,14 @@
...
@@ -114,16 +114,14 @@
</FrameLayout>
</FrameLayout>
<
Text
View
<
Image
View
android:id=
"@+id/
tv_junk_ti
p"
android:id=
"@+id/
iv_arrow_u
p"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginBottom=
"25dp"
android:layout_marginBottom=
"25dp"
android:textColor=
"@color/black"
android:src=
"@mipmap/xiala_h"
android:textSize=
"16sp"
tools:ignore=
"ContentDescription"
android:textStyle=
"bold"
android:visibility=
"gone"
tools:text=
"Scanned junk files 29.69MB"
/>
tools:text=
"Scanned junk files 29.69MB"
/>
...
@@ -480,6 +478,59 @@
...
@@ -480,6 +478,59 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"8dp"
android:orientation=
"horizontal"
tools:ignore=
"DisableBaselineAlignment"
>
<androidx.cardview.widget.CardView
android:id=
"@+id/card_app_process"
android:layout_width=
"0dp"
android:layout_height=
"80dp"
android:layout_margin=
"8dp"
android:layout_weight=
"1"
android:background=
"@mipmap/photo"
app:cardBackgroundColor=
"@color/white"
app:cardCornerRadius=
"10dp"
app:cardElevation=
"0dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"12dp"
android:text=
"App\nProcess"
android:textColor=
"@color/black"
android:textSize=
"16sp"
tools:ignore=
"HardcodedText"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|end"
android:layout_marginEnd=
"8dp"
android:src=
"@mipmap/h_process"
tools:ignore=
"ContentDescription"
/>
</androidx.cardview.widget.CardView>
<FrameLayout
android:layout_width=
"0dp"
android:layout_height=
"80dp"
android:layout_margin=
"8dp"
android:layout_weight=
"1"
android:background=
"@mipmap/videos"
android:visibility=
"invisible"
app:cardBackgroundColor=
"@color/white"
app:cardCornerRadius=
"10dp"
app:cardElevation=
"0dp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.core.widget.NestedScrollView>
...
...
app/src/main/res/layout/item_app_manager.xml
0 → 100644
View file @
2af31753
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"18dp"
android:layout_marginVertical=
"12.5dp"
>
<ImageView
android:id=
"@+id/iv"
android:layout_width=
"38dp"
android:layout_height=
"38dp"
android:layout_gravity=
"center_vertical"
tools:ignore=
"ContentDescription"
/>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginHorizontal=
"10dp"
android:layout_weight=
"1"
android:ellipsize=
"middle"
android:singleLine=
"true"
android:textColor=
"@color/black"
android:textSize=
"15sp"
tools:text=
"Google Play Store"
/>
<TextView
android:id=
"@+id/tv_stop"
android:layout_width=
"80dp"
android:layout_height=
"30dp"
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/bg_d9e2fd_15"
android:gravity=
"center"
android:text=
"Stop"
android:textColor=
"#4773FF"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/mipmap-xxhdpi/h_process.png
0 → 100644
View file @
2af31753
11.4 KB
app/src/main/res/mipmap-xxhdpi/xiala_h.png
0 → 100644
View file @
2af31753
2.8 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment