Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
SuperEasyClean
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
songjianyu
SuperEasyClean
Commits
97113490
Commit
97113490
authored
Jun 04, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[新增]截图清理
parent
2bea702d
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
522 additions
and
3 deletions
+522
-3
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+5
-0
data.json
app/src/main/assets/screenshot/scan/data.json
+1
-0
img_0.png
app/src/main/assets/screenshot/scan/images/img_0.png
+0
-0
img_1.png
app/src/main/assets/screenshot/scan/images/img_1.png
+0
-0
img_2.png
app/src/main/assets/screenshot/scan/images/img_2.png
+0
-0
img_3.png
app/src/main/assets/screenshot/scan/images/img_3.png
+0
-0
BaseActivity.kt
app/src/main/java/com/base/appzxhy/base/BaseActivity.kt
+9
-3
ScreenshotCleanActivity.kt
...com/base/appzxhy/ui/screenshot/ScreenshotCleanActivity.kt
+222
-0
bg_enable_4.xml
app/src/main/res/drawable/bg_enable_4.xml
+6
-0
shadow_background.xml
app/src/main/res/drawable/shadow_background.xml
+5
-0
shadow_background_bottom.xml
app/src/main/res/drawable/shadow_background_bottom.xml
+7
-0
activity_screenshot_clean.xml
app/src/main/res/layout/activity_screenshot_clean.xml
+185
-0
item_screenshot_clean_child.xml
app/src/main/res/layout/item_screenshot_clean_child.xml
+53
-0
item_screenshot_clean_group.xml
app/src/main/res/layout/item_screenshot_clean_group.xml
+27
-0
strings.xml
app/src/main/res/values/strings.xml
+2
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
97113490
...
...
@@ -73,6 +73,11 @@
android:exported=
"false"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<activity
android:name=
".ui.screenshot.ScreenshotCleanActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
tools:ignore=
"DiscouragedApi,LockedOrientationActivity"
/>
<provider
android:name=
"androidx.core.content.FileProvider"
...
...
app/src/main/assets/screenshot/scan/data.json
0 → 100644
View file @
97113490
{
"v"
:
"5.6.3"
,
"fr"
:
25
,
"ip"
:
0
,
"op"
:
36
,
"w"
:
870
,
"h"
:
870
,
"nm"
:
"1-扫描动画"
,
"ddd"
:
0
,
"assets"
:[{
"id"
:
"image_0"
,
"w"
:
120
,
"h"
:
120
,
"u"
:
"images/"
,
"p"
:
"img_0.png"
,
"e"
:
0
},{
"id"
:
"image_1"
,
"w"
:
198
,
"h"
:
198
,
"u"
:
"images/"
,
"p"
:
"img_1.png"
,
"e"
:
0
},{
"id"
:
"image_2"
,
"w"
:
678
,
"h"
:
678
,
"u"
:
"images/"
,
"p"
:
"img_2.png"
,
"e"
:
0
},{
"id"
:
"image_3"
,
"w"
:
678
,
"h"
:
678
,
"u"
:
"images/"
,
"p"
:
"img_3.png"
,
"e"
:
0
}],
"layers"
:[{
"ddd"
:
0
,
"ind"
:
1
,
"ty"
:
4
,
"nm"
:
"小飞圆"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.833
],
"y"
:[
0.833
]},
"o"
:{
"x"
:[
0.167
],
"y"
:[
0.167
]},
"t"
:
20
,
"s"
:[
60
],
"e"
:[
0
]},{
"t"
:
40
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.833
,
"y"
:
0.833
},
"o"
:{
"x"
:
0.167
,
"y"
:
0.167
},
"t"
:
20
,
"s"
:[
141
,
893
,
0
],
"e"
:[
437
,
429
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"t"
:
35
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"shapes"
:[{
"ty"
:
"gr"
,
"it"
:[{
"d"
:
1
,
"ty"
:
"el"
,
"s"
:{
"a"
:
0
,
"k"
:[
16
,
16
],
"ix"
:
2
},
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
3
},
"nm"
:
"椭圆路径 1"
,
"mn"
:
"ADBE Vector Shape - Ellipse"
,
"hd"
:
false
},{
"ty"
:
"fl"
,
"c"
:{
"a"
:
0
,
"k"
:[
1
,
1
,
1
,
1
],
"ix"
:
4
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
5
},
"r"
:
1
,
"bm"
:
0
,
"nm"
:
"填充 1"
,
"mn"
:
"ADBE Vector Graphic - Fill"
,
"hd"
:
false
},{
"ty"
:
"tr"
,
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
300
,
300
],
"ix"
:
3
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
6
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
7
},
"sk"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
4
},
"sa"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
5
},
"nm"
:
"变换"
}],
"nm"
:
"小飞圆"
,
"np"
:
2
,
"cix"
:
2
,
"bm"
:
0
,
"ix"
:
1
,
"mn"
:
"ADBE Vector Group"
,
"hd"
:
false
}],
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
2
,
"ty"
:
4
,
"nm"
:
"小飞圆"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.8
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.2
],
"y"
:[
0
]},
"t"
:
5
,
"s"
:[
60
],
"e"
:[
0
]},{
"t"
:
25
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.8
,
"y"
:
1
},
"o"
:{
"x"
:
0.2
,
"y"
:
0
},
"t"
:
5
,
"s"
:[
892
,
226
,
0
],
"e"
:[
462
,
460
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"t"
:
20
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"shapes"
:[{
"ty"
:
"gr"
,
"it"
:[{
"d"
:
1
,
"ty"
:
"el"
,
"s"
:{
"a"
:
0
,
"k"
:[
16
,
16
],
"ix"
:
2
},
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
3
},
"nm"
:
"椭圆路径 1"
,
"mn"
:
"ADBE Vector Shape - Ellipse"
,
"hd"
:
false
},{
"ty"
:
"fl"
,
"c"
:{
"a"
:
0
,
"k"
:[
1
,
1
,
1
,
1
],
"ix"
:
4
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
5
},
"r"
:
1
,
"bm"
:
0
,
"nm"
:
"填充 1"
,
"mn"
:
"ADBE Vector Graphic - Fill"
,
"hd"
:
false
},{
"ty"
:
"tr"
,
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
300
,
300
],
"ix"
:
3
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
6
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
7
},
"sk"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
4
},
"sa"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
5
},
"nm"
:
"变换"
}],
"nm"
:
"小飞圆"
,
"np"
:
2
,
"cix"
:
2
,
"bm"
:
0
,
"ix"
:
1
,
"mn"
:
"ADBE Vector Group"
,
"hd"
:
false
}],
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
3
,
"ty"
:
4
,
"nm"
:
"小飞圆"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.8
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.2
],
"y"
:[
0
]},
"t"
:
5
,
"s"
:[
60
],
"e"
:[
0
]},{
"t"
:
25
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.8
,
"y"
:
1
},
"o"
:{
"x"
:
0.2
,
"y"
:
0
},
"t"
:
5
,
"s"
:[
-81
,
761
,
0
],
"e"
:[
431
,
435
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"t"
:
30
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"shapes"
:[{
"ty"
:
"gr"
,
"it"
:[{
"d"
:
1
,
"ty"
:
"el"
,
"s"
:{
"a"
:
0
,
"k"
:[
22
,
22
],
"ix"
:
2
},
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
3
},
"nm"
:
"椭圆路径 1"
,
"mn"
:
"ADBE Vector Shape - Ellipse"
,
"hd"
:
false
},{
"ty"
:
"fl"
,
"c"
:{
"a"
:
0
,
"k"
:[
1
,
1
,
1
,
1
],
"ix"
:
4
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
5
},
"r"
:
1
,
"bm"
:
0
,
"nm"
:
"填充 1"
,
"mn"
:
"ADBE Vector Graphic - Fill"
,
"hd"
:
false
},{
"ty"
:
"tr"
,
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
300
,
300
],
"ix"
:
3
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
6
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
7
},
"sk"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
4
},
"sa"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
5
},
"nm"
:
"变换"
}],
"nm"
:
"小飞圆"
,
"np"
:
2
,
"cix"
:
2
,
"bm"
:
0
,
"ix"
:
1
,
"mn"
:
"ADBE Vector Group"
,
"hd"
:
false
}],
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
4
,
"ty"
:
4
,
"nm"
:
"小飞圆"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.8
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.2
],
"y"
:[
0
]},
"t"
:
10
,
"s"
:[
60
],
"e"
:[
0
]},{
"t"
:
30
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.8
,
"y"
:
1
},
"o"
:{
"x"
:
0.2
,
"y"
:
0
},
"t"
:
10
,
"s"
:[
574
,
-48
,
0
],
"e"
:[
434
,
408
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"t"
:
30
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"shapes"
:[{
"ty"
:
"gr"
,
"it"
:[{
"d"
:
1
,
"ty"
:
"el"
,
"s"
:{
"a"
:
0
,
"k"
:[
20
,
20
],
"ix"
:
2
},
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
3
},
"nm"
:
"椭圆路径 1"
,
"mn"
:
"ADBE Vector Shape - Ellipse"
,
"hd"
:
false
},{
"ty"
:
"fl"
,
"c"
:{
"a"
:
0
,
"k"
:[
1
,
1
,
1
,
1
],
"ix"
:
4
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
5
},
"r"
:
1
,
"bm"
:
0
,
"nm"
:
"填充 1"
,
"mn"
:
"ADBE Vector Graphic - Fill"
,
"hd"
:
false
},{
"ty"
:
"tr"
,
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
300
,
300
],
"ix"
:
3
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
6
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
7
},
"sk"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
4
},
"sa"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
5
},
"nm"
:
"变换"
}],
"nm"
:
"小飞圆"
,
"np"
:
2
,
"cix"
:
2
,
"bm"
:
0
,
"ix"
:
1
,
"mn"
:
"ADBE Vector Group"
,
"hd"
:
false
}],
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
5
,
"ty"
:
4
,
"nm"
:
"小飞圆"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.8
],
"y"
:[
1
]},
"o"
:{
"x"
:[
0.2
],
"y"
:[
0
]},
"t"
:
0
,
"s"
:[
60
],
"e"
:[
0
]},{
"t"
:
20
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.8
,
"y"
:
1
},
"o"
:{
"x"
:
0.2
,
"y"
:
0
},
"t"
:
0
,
"s"
:[
-48
,
-40
,
0
],
"e"
:[
444
,
444
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"t"
:
18
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"shapes"
:[{
"ty"
:
"gr"
,
"it"
:[{
"d"
:
1
,
"ty"
:
"el"
,
"s"
:{
"a"
:
0
,
"k"
:[
36
,
36
],
"ix"
:
2
},
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
3
},
"nm"
:
"椭圆路径 1"
,
"mn"
:
"ADBE Vector Shape - Ellipse"
,
"hd"
:
false
},{
"ty"
:
"fl"
,
"c"
:{
"a"
:
0
,
"k"
:[
1
,
1
,
1
,
1
],
"ix"
:
4
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
5
},
"r"
:
1
,
"bm"
:
0
,
"nm"
:
"填充 1"
,
"mn"
:
"ADBE Vector Graphic - Fill"
,
"hd"
:
false
},{
"ty"
:
"tr"
,
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
300
,
300
],
"ix"
:
3
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
6
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
7
},
"sk"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
4
},
"sa"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
5
},
"nm"
:
"变换"
}],
"nm"
:
"小飞圆"
,
"np"
:
2
,
"cix"
:
2
,
"bm"
:
0
,
"ix"
:
1
,
"mn"
:
"ADBE Vector Group"
,
"hd"
:
false
}],
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
6
,
"ty"
:
4
,
"nm"
:
"小飞圆"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.833
],
"y"
:[
0.833
]},
"o"
:{
"x"
:[
0.2
],
"y"
:[
0
]},
"t"
:
16
,
"s"
:[
60
],
"e"
:[
0
]},{
"t"
:
36
}],
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:
0.8
,
"y"
:
1
},
"o"
:{
"x"
:
0.2
,
"y"
:
0
},
"t"
:
16
,
"s"
:[
1018
,
824
,
0
],
"e"
:[
446
,
462
,
0
],
"to"
:[
0
,
0
,
0
],
"ti"
:[
0
,
0
,
0
]},{
"t"
:
31
}],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"shapes"
:[{
"ty"
:
"gr"
,
"it"
:[{
"d"
:
1
,
"ty"
:
"el"
,
"s"
:{
"a"
:
0
,
"k"
:[
26
,
26
],
"ix"
:
2
},
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
3
},
"nm"
:
"椭圆路径 1"
,
"mn"
:
"ADBE Vector Shape - Ellipse"
,
"hd"
:
false
},{
"ty"
:
"fl"
,
"c"
:{
"a"
:
0
,
"k"
:[
1
,
1
,
1
,
1
],
"ix"
:
4
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
5
},
"r"
:
1
,
"bm"
:
0
,
"nm"
:
"填充 1"
,
"mn"
:
"ADBE Vector Graphic - Fill"
,
"hd"
:
false
},{
"ty"
:
"tr"
,
"p"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
0
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
300
,
300
],
"ix"
:
3
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
6
},
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
7
},
"sk"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
4
},
"sa"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
5
},
"nm"
:
"变换"
}],
"nm"
:
"小飞圆"
,
"np"
:
2
,
"cix"
:
2
,
"bm"
:
0
,
"ix"
:
1
,
"mn"
:
"ADBE Vector Group"
,
"hd"
:
false
}],
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
7
,
"ty"
:
2
,
"nm"
:
"icon_clean_home"
,
"refId"
:
"image_0"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
435
,
435
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
60
,
60
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
8
,
"ty"
:
2
,
"nm"
:
"小圆"
,
"refId"
:
"image_1"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
435
,
435
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
99
,
99
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
9
,
"ty"
:
2
,
"nm"
:
"转圈园"
,
"refId"
:
"image_2"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
11
},
"r"
:{
"a"
:
1
,
"k"
:[{
"i"
:{
"x"
:[
0.833
],
"y"
:[
0.833
]},
"o"
:{
"x"
:[
0.167
],
"y"
:[
0.167
]},
"t"
:
0
,
"s"
:[
0
],
"e"
:[
360
]},{
"t"
:
35
}],
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
435
,
435
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
339
,
339
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
},{
"ddd"
:
0
,
"ind"
:
10
,
"ty"
:
2
,
"nm"
:
"背景圆"
,
"refId"
:
"image_3"
,
"sr"
:
1
,
"ks"
:{
"o"
:{
"a"
:
0
,
"k"
:
100
,
"ix"
:
11
},
"r"
:{
"a"
:
0
,
"k"
:
0
,
"ix"
:
10
},
"p"
:{
"a"
:
0
,
"k"
:[
435
,
435
,
0
],
"ix"
:
2
},
"a"
:{
"a"
:
0
,
"k"
:[
339
,
339
,
0
],
"ix"
:
1
},
"s"
:{
"a"
:
0
,
"k"
:[
100
,
100
,
100
],
"ix"
:
6
}},
"ao"
:
0
,
"ip"
:
0
,
"op"
:
75
,
"st"
:
0
,
"bm"
:
0
}],
"markers"
:[]}
\ No newline at end of file
app/src/main/assets/screenshot/scan/images/img_0.png
0 → 100644
View file @
97113490
5.18 KB
app/src/main/assets/screenshot/scan/images/img_1.png
0 → 100644
View file @
97113490
2.75 KB
app/src/main/assets/screenshot/scan/images/img_2.png
0 → 100644
View file @
97113490
84 KB
app/src/main/assets/screenshot/scan/images/img_3.png
0 → 100644
View file @
97113490
39 KB
app/src/main/java/com/base/appzxhy/base/BaseActivity.kt
View file @
97113490
...
...
@@ -32,6 +32,7 @@ import com.base.appzxhy.R
import
com.base.appzxhy.bean.FeatureBean.Companion.BATTERY_INFO
import
com.base.appzxhy.bean.FeatureBean.Companion.JUNK_CLEAN
import
com.base.appzxhy.bean.FeatureBean.Companion.LARGE_FILE_CLEAN
import
com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import
com.base.appzxhy.bean.FileBean
import
com.base.appzxhy.business.ads.AdsMgr
import
com.base.appzxhy.business.ads.AdsShowCallBack
...
...
@@ -41,6 +42,7 @@ import com.base.appzxhy.ui.batteryinfo.BatteryInfoActivity
import
com.base.appzxhy.ui.clean.JunkCleanActivity
import
com.base.appzxhy.ui.largefile.LargeFileCleanActivity
import
com.base.appzxhy.ui.main.MainActivity
import
com.base.appzxhy.ui.screenshot.ScreenshotCleanActivity
import
com.base.appzxhy.utils.ActivityLauncher
import
com.base.appzxhy.utils.ActivityManagerUtils
import
com.base.appzxhy.utils.FileUtils
...
...
@@ -370,6 +372,11 @@ fun Activity.jumpAction(key: String) {
LARGE_FILE_CLEAN
->
{
goToAc
(
LargeFileCleanActivity
::
class
.
java
)
}
SCREENSHOT_CLEAN
->
{
goToAc
(
ScreenshotCleanActivity
::
class
.
java
)
}
}
}
...
...
@@ -378,10 +385,9 @@ enum class LottieConfig(val data: String, val images: String? = null, val isLoop
BATTERY_INFO_LOTTIE
(
"battery_info/scan/data.json"
,
"battery_info/scan/images"
,
true
),
CLEAN_LOTTIE
(
"clean.json"
),
LARGE_FILE_LOTTIE
(
"large_files/scan/data.json"
,
"large_files/scan/images"
),
SCREENSHOT_LOTTIE
(
"screenshot/scan/data.json"
,
"screenshot/scan/images"
),
// PHOTO_COMPRESSION_LOTTIE("photo_compression/scan/data.json", "photo_compression/scan/images"),
// PHOTO_COMPRESSION("photo_compression/scan/data.json", "photo_compression/scan/images"),
// PHOTO_COMPRESSION_COMPRESS("photo_compression/compress/data.json", "photo_compression/compress/images"),
// SCREENSHOT("screenshot/scan/data.json", "screenshot/scan/images"),
// SIMILAR_PHOTOS("similar_photos/scan/data.json", "similar_photos/scan/images"),
// WHATSAPP("whatsapp/scan/data.json", "whatsapp/scan/images"),
// WEATHER(""),
...
...
app/src/main/java/com/base/appzxhy/ui/screenshot/ScreenshotCleanActivity.kt
0 → 100644
View file @
97113490
package
com.base.appzxhy.ui.screenshot
import
android.annotation.SuppressLint
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
android.widget.TextView
import
androidx.core.view.ViewCompat
import
androidx.core.view.WindowInsetsCompat
import
androidx.core.view.setPadding
import
androidx.lifecycle.lifecycleScope
import
androidx.recyclerview.widget.GridLayoutManager
import
com.base.appzxhy.R
import
com.base.appzxhy.base.BaseActivity
import
com.base.appzxhy.base.LottieConfig
import
com.base.appzxhy.base.cleanFiles
import
com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import
com.base.appzxhy.bean.FileBean
import
com.base.appzxhy.business.ads.AdsMgr
import
com.base.appzxhy.business.ads.AdsShowCallBack
import
com.base.appzxhy.databinding.ActivityScreenshotCleanBinding
import
com.base.appzxhy.databinding.ItemScreenshotCleanChildBinding
import
com.base.appzxhy.databinding.ItemScreenshotCleanGroupBinding
import
com.base.appzxhy.ui.cleanresult.CleanResultActivity
import
com.base.appzxhy.ui.dialog.ConfirmDialog
import
com.base.appzxhy.utils.MediaUtils
import
com.base.appzxhy.utils.Utils
import
com.bumptech.glide.Glide
import
com.bumptech.glide.load.resource.bitmap.CenterCrop
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
import
com.bumptech.glide.request.RequestOptions
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.launch
import
pokercc.android.expandablerecyclerview.ExpandableAdapter
class
ScreenshotCleanActivity
:
BaseActivity
<
ActivityScreenshotCleanBinding
>(
ActivityScreenshotCleanBinding
::
inflate
)
{
private
var
list
=
mutableListOf
<
FileBean
>()
private
var
isSelectAll
=
false
private
var
total
:
Long
=
0
private
var
selectedFiles
=
listOf
<
FileBean
>()
private
val
adapter
by
lazy
{
class
ChildViewHolder
(
val
binding
:
ItemScreenshotCleanChildBinding
)
:
ExpandableAdapter
.
ViewHolder
(
binding
.
root
)
class
GroupViewHolder
(
val
binding
:
ItemScreenshotCleanGroupBinding
)
:
ExpandableAdapter
.
ViewHolder
(
binding
.
root
)
object
:
ExpandableAdapter
<
ExpandableAdapter
.
ViewHolder
>()
{
override
fun
getChildCount
(
groupPosition
:
Int
):
Int
=
list
[
groupPosition
].
items
.
size
override
fun
getGroupCount
():
Int
=
list
.
size
override
fun
onCreateChildViewHolder
(
viewGroup
:
ViewGroup
,
viewType
:
Int
):
ViewHolder
{
val
binding
=
ItemScreenshotCleanChildBinding
.
inflate
(
LayoutInflater
.
from
(
viewGroup
.
context
),
viewGroup
,
false
)
return
ChildViewHolder
(
binding
)
}
override
fun
onCreateGroupViewHolder
(
viewGroup
:
ViewGroup
,
viewType
:
Int
):
ViewHolder
{
val
binding
=
ItemScreenshotCleanGroupBinding
.
inflate
(
LayoutInflater
.
from
(
viewGroup
.
context
),
viewGroup
,
false
)
return
GroupViewHolder
(
binding
)
}
override
fun
onGroupViewHolderExpandChange
(
holder
:
ViewHolder
,
groupPosition
:
Int
,
animDuration
:
Long
,
expand
:
Boolean
)
{
}
override
fun
onBindGroupViewHolder
(
holder
:
ViewHolder
,
groupPosition
:
Int
,
expand
:
Boolean
,
payloads
:
List
<
Any
>
)
{
holder
as
GroupViewHolder
val
group
=
list
[
groupPosition
]
holder
.
binding
.
tvName
.
text
=
group
.
name
holder
.
itemView
.
setOnClickListener
{
}
}
override
fun
onBindChildViewHolder
(
holder
:
ViewHolder
,
groupPosition
:
Int
,
childPosition
:
Int
,
payloads
:
List
<
Any
>
)
{
holder
as
ChildViewHolder
val
child
=
list
[
groupPosition
].
items
[
childPosition
]
val
width
=
resources
.
displayMetrics
.
widthPixels
var
margin
=
this
@ScreenshotCleanActivity
.
resources
.
getDimensionPixelSize
(
R
.
dimen
.
dp_45
)
val
imageWidth
=
(
width
-
margin
)
/
3
holder
.
binding
.
ivImage
.
layoutParams
.
width
=
imageWidth
holder
.
binding
.
ivImage
.
layoutParams
.
height
=
imageWidth
margin
=
this
@ScreenshotCleanActivity
.
resources
.
getDimensionPixelSize
(
R
.
dimen
.
dp_15
)
if
(
childPosition
%
3
==
0
)
{
holder
.
itemView
.
setPadding
(
margin
,
0
,
0
,
0
)
}
else
if
(
childPosition
%
3
==
2
)
{
holder
.
itemView
.
setPadding
(
0
,
0
,
margin
,
0
)
}
else
{
holder
.
itemView
.
setPadding
(
margin
/
2
,
0
,
margin
/
2
,
0
)
}
val
round
=
this
@ScreenshotCleanActivity
.
resources
.
getDimensionPixelSize
(
R
.
dimen
.
dp_8
).
toInt
()
val
options
=
RequestOptions
().
transform
(
CenterCrop
(),
RoundedCorners
(
round
))
Glide
.
with
(
holder
.
itemView
.
context
)
.
load
(
child
.
path
)
.
apply
(
options
)
.
into
(
holder
.
binding
.
ivImage
)
holder
.
binding
.
tvSize
.
text
=
Utils
.
getSizeFormat
(
child
.
length
)
holder
.
binding
.
ivSelect
.
isSelected
=
child
.
isSelected
holder
.
binding
.
clContainer
.
setOnClickListener
{
child
.
isSelected
=
!
child
.
isSelected
notifyChildChange
(
groupPosition
,
childPosition
)
updateSelection
()
}
}
}
}
private
fun
updateSelection
()
{
selectedFiles
=
list
.
flatMap
{
it
.
items
.
takeIf
{
it
.
isNotEmpty
()
}
?.
filter
{
it
.
isSelected
}
?:
emptyList
()
}
total
=
selectedFiles
.
sumOf
{
it
.
length
}
updateView
(
selectedFiles
.
isNotEmpty
())
}
private
fun
updateView
(
isSelection
:
Boolean
)
{
binding
.
ivSelectAll
.
isSelected
=
isSelectAll
binding
.
tvDelete
.
isEnabled
=
isSelection
setTextSize
(
binding
.
tvDelete
,
getString
(
R
.
string
.
delete
),
total
)
}
fun
setTextSize
(
view
:
TextView
,
content
:
String
,
total
:
Long
)
{
view
.
text
=
if
(
total
>
0
)
"$content (${Utils.getSizeFormat(total)})"
else
content
}
override
fun
useDefaultImmersive
()
{
setStatusBarColor
()
ViewCompat
.
setOnApplyWindowInsetsListener
(
binding
.
root
)
{
v
,
insets
->
val
systemBars
=
insets
.
getInsets
(
WindowInsetsCompat
.
Type
.
systemBars
())
v
.
setPadding
(
systemBars
.
left
,
0
,
systemBars
.
right
,
systemBars
.
bottom
)
binding
.
clTop
.
setPadding
(
0
,
systemBars
.
top
,
0
,
0
)
insets
}
}
override
fun
initView
()
{
super
.
initView
()
binding
.
expandableFiles
.
adapter
=
adapter
val
gridLayoutManager
=
GridLayoutManager
(
this
,
3
)
gridLayoutManager
.
spanSizeLookup
=
MediaImageSpanLookup
(
3
,
adapter
)
binding
.
expandableFiles
.
layoutManager
=
gridLayoutManager
initData
()
showAdAnimation
(
LottieConfig
.
SCREENSHOT_LOTTIE
)
{
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_native_custom
)
}
}
@SuppressLint
(
"NotifyDataSetChanged"
)
private
fun
initData
()
{
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
MediaUtils
.
findScreenshotsFiles
(
this
@ScreenshotCleanActivity
)
{
total
,
result
->
list
=
result
val
value
=
Utils
.
getSizeArray
(
total
)
launch
(
Dispatchers
.
Main
)
{
updateSelection
()
binding
.
tvSize
.
text
=
value
[
0
]
binding
.
tvUnit
.
text
=
value
[
1
]
adapter
.
expandAllGroup
()
adapter
.
notifyDataSetChanged
()
binding
.
ivEmpty
.
visibility
=
if
(
list
.
isEmpty
())
View
.
VISIBLE
else
View
.
GONE
binding
.
llBottom
.
visibility
=
if
(
list
.
isEmpty
())
View
.
GONE
else
View
.
VISIBLE
}
}
}
}
override
fun
initListener
()
{
super
.
initListener
()
binding
.
ivBack
.
setOnClickListener
{
onBackPressedDispatcher
.
onBackPressed
()
}
binding
.
llSelectAll
.
setOnClickListener
{
isSelectAll
=
!
isSelectAll
list
.
forEach
{
it
.
items
.
forEach
{
it
.
isSelected
=
isSelectAll
}
}
adapter
.
notifyDataSetChanged
()
updateSelection
()
}
binding
.
tvDelete
.
setOnClickListener
{
if
(
total
<=
0
)
return
@setOnClickListener
val
dialog
=
ConfirmDialog
(
this
)
dialog
.
action
=
{
AdsMgr
.
showInsert
(
this
,
showCallBack
=
object
:
AdsShowCallBack
()
{
override
fun
next
()
{
cleanFiles
(
selectedFiles
)
CleanResultActivity
.
total
=
total
CleanResultActivity
.
functionKey
=
SCREENSHOT_CLEAN
CleanResultActivity
.
titleName
=
getString
(
R
.
string
.
screenshot_clean
)
goToAc
(
CleanResultActivity
::
class
.
java
)
}
})
}
dialog
.
showDialog
(
"delete"
)
}
}
internal
class
MediaImageSpanLookup
(
private
val
spanCount
:
Int
,
private
val
expandableAdapter
:
ExpandableAdapter
<*>
)
:
GridLayoutManager
.
SpanSizeLookup
()
{
override
fun
getSpanSize
(
position
:
Int
):
Int
{
val
viewType
=
expandableAdapter
.
getItemViewType
(
position
)
return
if
(
expandableAdapter
.
isGroup
(
viewType
))
spanCount
else
1
}
}
}
\ No newline at end of file
app/src/main/res/drawable/bg_enable_4.xml
0 → 100644
View file @
97113490
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/colorPrimary"
/>
<corners
android:radius=
"4dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shadow_background.xml
0 → 100644
View file @
97113490
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/color_66000000"
/>
<corners
android:radius=
"8dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shadow_background_bottom.xml
0 → 100644
View file @
97113490
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/color_66000000"
/>
<corners
android:bottomLeftRadius=
"8dp"
android:bottomRightRadius=
"8dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_screenshot_clean.xml
0 → 100644
View file @
97113490
<?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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_top"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/colorPrimary"
app:layout_constraintTop_toTopOf=
"parent"
>
<FrameLayout
android:id=
"@+id/ll_title"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingVertical=
"6dp"
app:layout_constraintTop_toTopOf=
"parent"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/ivBack"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/dp_8"
android:padding=
"@dimen/dp_8"
android:src=
"@drawable/icon_return_w"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"@string/screenshot_clean"
android:textColor=
"@color/white"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_size"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"34dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/ll_title"
>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_size"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"0"
android:textColor=
"@color/white"
android:textSize=
"32sp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:ignore=
"HardcodedText"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_unit"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"KB"
android:textColor=
"@color/white"
android:textSize=
"12sp"
app:layout_constraintStart_toEndOf=
"@id/tv_size"
app:layout_constraintTop_toTopOf=
"parent"
tools:ignore=
"HardcodedText,TextContrastCheck"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"67dp"
android:text=
"@string/screenshots_totally"
android:textColor=
"@color/white"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/cl_size"
tools:ignore=
"TextContrastCheck"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.base.appzxhy.business.ads.NativeParentView
android:id=
"@+id/flAd"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"12dp"
app:layout_constraintTop_toBottomOf=
"@id/cl_top"
>
<androidx.appcompat.widget.AppCompatImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:src=
"@drawable/zhanwei1"
tools:ignore=
"ImageContrastCheck"
/>
</com.base.appzxhy.business.ads.NativeParentView>
<pokercc.android.expandablerecyclerview.ExpandableRecyclerView
android:id=
"@+id/expandable_files"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:background=
"@color/white"
android:paddingTop=
"8dp"
android:paddingBottom=
"12dp"
app:layout_constraintBottom_toTopOf=
"@id/ll_bottom"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/flAd"
tools:ignore=
"SpeakableTextPresentCheck"
/>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/iv_empty"
android:layout_width=
"@dimen/dp_150"
android:layout_height=
"@dimen/dp_150"
android:layout_marginTop=
"@dimen/dp_80"
android:src=
"@drawable/queshengtu"
android:visibility=
"invisible"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<androidx.appcompat.widget.LinearLayoutCompat
android:id=
"@+id/ll_bottom"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:gravity=
"center"
android:orientation=
"horizontal"
android:padding=
"16dp"
app:layout_constraintBottom_toBottomOf=
"parent"
>
<androidx.appcompat.widget.LinearLayoutCompat
android:id=
"@+id/ll_select_all"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:orientation=
"vertical"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/iv_select_all"
android:layout_width=
"@dimen/dp_30"
android:layout_height=
"@dimen/dp_30"
android:src=
"@drawable/bg_select_yuan"
tools:ignore=
"ImageContrastCheck"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:text=
"@string/select_all"
android:textColor=
"@color/color_666666"
android:textSize=
"12sp"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_delete"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_weight=
"1"
android:background=
"@drawable/bg_enable_4"
android:gravity=
"center"
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
android:text=
"@string/delete"
android:textColor=
"@color/white"
android:textSize=
"14sp"
tools:ignore=
"TextContrastCheck"
/>
</androidx.appcompat.widget.LinearLayoutCompat>
<include
android:id=
"@+id/layout_animation"
layout=
"@layout/layout_animation"
android:visibility=
"gone"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/item_screenshot_clean_child.xml
0 → 100644
View file @
97113490
<?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:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_container"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/iv_image"
android:layout_width=
"110dp"
android:layout_height=
"110dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:ignore=
"ImageContrastCheck"
/>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/iv_select"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"8dp"
android:src=
"@drawable/bg_select_yuan"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/iv_image"
tools:ignore=
"ImageContrastCheck"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_size"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shadow_background"
android:gravity=
"center"
android:paddingTop=
"4dp"
android:paddingBottom=
"4dp"
android:text=
"12.5MB"
android:textColor=
"@color/white"
android:textSize=
"14sp"
app:layout_constraintBottom_toBottomOf=
"@id/iv_image"
app:layout_constraintEnd_toEndOf=
"@id/iv_image"
app:layout_constraintStart_toStartOf=
"@id/iv_image"
tools:ignore=
"HardcodedText,TextContrastCheck"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/item_screenshot_clean_group.xml
0 → 100644
View file @
97113490
<?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"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<View
android:id=
"@+id/view_bg"
android:layout_width=
"match_parent"
android:layout_height=
"12dp"
android:background=
"@color/color_f7fafa"
app:layout_constraintTop_toTopOf=
"parent"
/>
<androidx.appcompat.widget.AppCompatTextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginVertical=
"16dp"
android:layout_marginHorizontal=
"15dp"
android:text=
"2024/10/10"
android:textColor=
"@color/color_666666"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/view_bg"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
97113490
...
...
@@ -92,6 +92,8 @@ Please rest assured that we will handle your information in strict accordance wi
<string
name=
"cancel"
>
Cancel
</string>
<string
name=
"delete_title"
>
Sure to delete?
</string>
<string
name=
"delete_content"
>
Selected files cannot be recovered after deletion. Continue anyway?
</string>
<string
name=
"screenshots_totally"
>
Screenshots totally
</string>
<string
name=
"select_all"
>
Select All
</string>
</resources>
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