Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
FileManager
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
yanglin
FileManager
Commits
1597a141
Commit
1597a141
authored
Apr 17, 2024
by
yanglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善所有功能
parent
2f8a9c9e
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
602 additions
and
411 deletions
+602
-411
app-release.apk
MyDemo3/app/release/app-release.apk
+0
-0
output-metadata.json
MyDemo3/app/release/output-metadata.json
+20
-0
AndroidManifest.xml
MyDemo3/app/src/main/AndroidManifest.xml
+8
-0
BatteryActivity.kt
...java/com/xm/test/myfilemaster/activity/BatteryActivity.kt
+1
-1
CleanActivity.kt
...n/java/com/xm/test/myfilemaster/activity/CleanActivity.kt
+22
-24
MediaActivity.kt
...n/java/com/xm/test/myfilemaster/activity/MediaActivity.kt
+2
-2
ResultPageActivity.kt
...a/com/xm/test/myfilemaster/activity/ResultPageActivity.kt
+74
-0
ScanResultActivity.kt
...a/com/xm/test/myfilemaster/activity/ScanResultActivity.kt
+9
-0
AntivirusActivity.kt
...a/com/xm/test/myfilemaster/antivirus/AntivirusActivity.kt
+23
-10
FileUtil.kt
...p/src/main/java/com/xm/test/myfilemaster/util/FileUtil.kt
+18
-0
activity_antivirus.xml
MyDemo3/app/src/main/res/layout/activity_antivirus.xml
+0
-55
activity_clean.xml
MyDemo3/app/src/main/res/layout/activity_clean.xml
+1
-41
activity_scan_result.xml
MyDemo3/app/src/main/res/layout/activity_scan_result.xml
+1
-1
ad_layout.xml
MyDemo3/app/src/main/res/layout/ad_layout.xml
+34
-31
check_the_source_layout.xml
MyDemo3/app/src/main/res/layout/check_the_source_layout.xml
+6
-6
dialog_agreement.xml
MyDemo3/app/src/main/res/layout/dialog_agreement.xml
+59
-0
dialog_custom_layout.xml
MyDemo3/app/src/main/res/layout/dialog_custom_layout.xml
+2
-1
fragment_home.xml
MyDemo3/app/src/main/res/layout/fragment_home.xml
+0
-4
result_layout.xml
MyDemo3/app/src/main/res/layout/result_layout.xml
+318
-235
dimens.xml
MyDemo3/app/src/main/res/values/dimens.xml
+4
-0
key.jks
MyDemo3/key.jks
+0
-0
No files found.
MyDemo3/app/release/app-release.apk
0 → 100644
View file @
1597a141
File added
MyDemo3/app/release/output-metadata.json
0 → 100644
View file @
1597a141
{
"version"
:
3
,
"artifactType"
:
{
"type"
:
"APK"
,
"kind"
:
"Directory"
},
"applicationId"
:
"com.xm.test.myfilemaster"
,
"variantName"
:
"release"
,
"elements"
:
[
{
"type"
:
"SINGLE"
,
"filters"
:
[],
"attributes"
:
[],
"versionCode"
:
1
,
"versionName"
:
"1.0"
,
"outputFile"
:
"app-release.apk"
}
],
"elementType"
:
"File"
}
\ No newline at end of file
MyDemo3/app/src/main/AndroidManifest.xml
View file @
1597a141
...
@@ -35,7 +35,15 @@
...
@@ -35,7 +35,15 @@
tools:targetApi=
"31"
>
tools:targetApi=
"31"
>
<activity
<activity
android:name=
".activity.ImageShowActivity"
android:name=
".activity.ImageShowActivity"
android:screenOrientation=
"portrait"
android:theme=
"@style/MediaActivityTheme"
android:exported=
"false"
/>
android:exported=
"false"
/>
<activity
android:name=
".activity.ResultPageActivity"
android:exported=
"false"
android:screenOrientation=
"portrait"
android:theme=
"@style/BatteryActivityTheme"
tools:ignore=
"DiscouragedApi"
/>
<activity
<activity
android:name=
".activity.ScanResultActivity"
android:name=
".activity.ScanResultActivity"
android:exported=
"false"
android:exported=
"false"
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/BatteryActivity.kt
View file @
1597a141
...
@@ -50,7 +50,7 @@ class BatteryActivity : AppCompatActivity() {
...
@@ -50,7 +50,7 @@ class BatteryActivity : AppCompatActivity() {
super
.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_battery
)
setContentView
(
R
.
layout
.
activity_battery
)
BatteryUtil
.
ReceiverBatteryOhterInfo
(
this
)
BatteryUtil
.
ReceiverBatteryOhterInfo
(
this
)
PermissionUtil
.
requestLocationPermission
(
this
)
//
PermissionUtil.requestLocationPermission(this)
initView
()
initView
()
setOnClickListener
()
setOnClickListener
()
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/CleanActivity.kt
View file @
1597a141
...
@@ -3,6 +3,7 @@ package com.xm.test.myfilemaster.activity
...
@@ -3,6 +3,7 @@ package com.xm.test.myfilemaster.activity
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.content.Intent
import
android.content.Intent
import
android.os.Bundle
import
android.os.Bundle
import
android.os.Environment
import
android.os.Handler
import
android.os.Handler
import
android.os.Looper
import
android.os.Looper
import
android.util.Log
import
android.util.Log
...
@@ -30,6 +31,7 @@ import com.xm.test.myfilemaster.antivirus.AntivirusActivity
...
@@ -30,6 +31,7 @@ import com.xm.test.myfilemaster.antivirus.AntivirusActivity
import
com.xm.test.myfilemaster.model.CleanBean
import
com.xm.test.myfilemaster.model.CleanBean
import
com.xm.test.myfilemaster.model.FileBean
import
com.xm.test.myfilemaster.model.FileBean
import
com.xm.test.myfilemaster.util.FileUtil
import
com.xm.test.myfilemaster.util.FileUtil
import
kotlinx.coroutines.runInterruptible
import
java.io.File
import
java.io.File
class
CleanActivity
:
AppCompatActivity
(),
CleanAdapter2
.
IClean
{
class
CleanActivity
:
AppCompatActivity
(),
CleanAdapter2
.
IClean
{
...
@@ -37,9 +39,8 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
...
@@ -37,9 +39,8 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
private
var
mHintTv
:
TextView
?
=
null
private
var
mHintTv
:
TextView
?
=
null
private
var
mProgress
:
ProgressBar
?
=
null
private
var
mProgress
:
ProgressBar
?
=
null
private
lateinit
var
mListView
:
RecyclerView
private
lateinit
var
mListView
:
RecyclerView
private
lateinit
var
mCleanSuccessView
:
View
private
lateinit
var
mScaningView
:
View
private
lateinit
var
mScaningView
:
View
private
lateinit
var
mCleanSizeSuccessTv
:
TextView
private
var
mCleanSizeSuccessTv
:
String
=
""
// private var mCleanAdapter: CleanAdapter? = null
// private var mCleanAdapter: CleanAdapter? = null
private
var
mCleanAdapter2
:
CleanAdapter2
?
=
null
private
var
mCleanAdapter2
:
CleanAdapter2
?
=
null
...
@@ -75,12 +76,12 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
...
@@ -75,12 +76,12 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
mAdView
=
findViewById
(
R
.
id
.
ad_layout
)
mAdView
=
findViewById
(
R
.
id
.
ad_layout
)
mAnimation
=
findViewById
(
R
.
id
.
clean_animation
)
mAnimation
=
findViewById
(
R
.
id
.
clean_animation
)
mCleanBtn
=
findViewById
(
R
.
id
.
clean_click_text
)
mCleanBtn
=
findViewById
(
R
.
id
.
clean_click_text
)
mCleanSuccessView
=
findViewById
(
R
.
id
.
clean_success_layout
)
//
mCleanSuccessView = findViewById(R.id.clean_success_layout)
mScaningView
=
findViewById
(
R
.
id
.
battery_animation_btn
)
mScaningView
=
findViewById
(
R
.
id
.
battery_animation_btn
)
mCleanSizeSuccessTv
=
findViewById
(
R
.
id
.
clean_success_size_text
)
//
mCleanSizeSuccessTv = findViewById(R.id.clean_success_size_text)
CleanAdapter
.
isCleanOver
=
false
CleanAdapter
.
isCleanOver
=
false
mCleanBtn
.
text
=
"One-click cleanup of 0 B"
mCleanBtn
.
text
=
"One-click cleanup of 0 B"
mCleanSizeSuccessTv
.
text
=
"Successfully cleaned up 1KB of junk!"
//
mCleanSizeSuccessTv.text = "Successfully cleaned up 1KB of junk!"
setViewOnclickListener
()
setViewOnclickListener
()
...
@@ -112,11 +113,18 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
...
@@ -112,11 +113,18 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
MyApplication
.
mCleanSdk
?.
startScan
(
junkScanCallback
,
true
)
MyApplication
.
mCleanSdk
?.
startScan
(
junkScanCallback
,
true
)
MyApplication
.
mCleanSdk
?.
timeout
(
30000
)
MyApplication
.
mCleanSdk
?.
timeout
(
30000
)
Thread
(
Runnable
{
FileUtil
.
scanEmptyFiles
(
Environment
.
getExternalStorageDirectory
(),
mCleanBeans
[
0
].
fileBeans
,
5
)
runOnUiThread
{
mCleanAdapter2
?.
setData
(
mCleanBeans
)
}
}).
start
()
val
handler
=
Handler
(
Looper
.
getMainLooper
())
val
handler
=
Handler
(
Looper
.
getMainLooper
())
val
runnable
=
object
:
Runnable
{
val
runnable
=
object
:
Runnable
{
override
fun
run
()
{
override
fun
run
()
{
if
(
mCount
<
9
9
)
{
if
(
mCount
<
9
2
)
{
mCount
++
mCount
++
mProgress
?.
setProgress
(
mCount
)
mProgress
?.
setProgress
(
mCount
)
handler
.
postDelayed
(
this
,
300
)
handler
.
postDelayed
(
this
,
300
)
...
@@ -132,18 +140,7 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
...
@@ -132,18 +140,7 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
mQuitBtn
?.
setOnClickListener
{
mQuitBtn
?.
setOnClickListener
{
finish
()
finish
()
}
}
findViewById
<
View
>(
R
.
id
.
go_to_antivirus
).
setOnClickListener
{
startActivity
(
Intent
(
this
,
AntivirusActivity
::
class
.
java
))
}
findViewById
<
View
>(
R
.
id
.
go_to_battery
).
setOnClickListener
{
startActivity
(
Intent
(
this
,
BatteryActivity
::
class
.
java
))
}
findViewById
<
View
>(
R
.
id
.
go_to_scan_large
).
setOnClickListener
{
startActivity
(
Intent
(
this
,
ScanLargeFilesActivity
::
class
.
java
))
}
findViewById
<
View
>(
R
.
id
.
go_to_scan_similar_images
).
setOnClickListener
{
startActivity
(
Intent
(
this
,
SimilarImagesActivity
::
class
.
java
))
}
findViewById
<
View
>(
R
.
id
.
clean_click_text
).
setOnClickListener
{
findViewById
<
View
>(
R
.
id
.
clean_click_text
).
setOnClickListener
{
mAnimation
.
visibility
=
View
.
VISIBLE
mAnimation
.
visibility
=
View
.
VISIBLE
Thread
(
Runnable
{
Thread
(
Runnable
{
...
@@ -152,11 +149,12 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
...
@@ -152,11 +149,12 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
MyApplication
.
mCleanSdk
?.
delete
(
File
(
it
.
filePath
))
MyApplication
.
mCleanSdk
?.
delete
(
File
(
it
.
filePath
))
}
}
runOnUiThread
{
runOnUiThread
{
mListView
.
visibility
=
View
.
GONE
val
intent
=
Intent
(
this
,
ResultPageActivity
::
class
.
java
)
mAnimation
.
visibility
=
View
.
GONE
intent
.
putExtra
(
"pageTitle"
,
"Clean"
)
findViewById
<
View
>(
R
.
id
.
ad_layout
).
visibility
=
View
.
GONE
intent
.
putExtra
(
"pageName"
,
"clean"
)
findViewById
<
View
>(
R
.
id
.
over_layout
).
visibility
=
View
.
VISIBLE
intent
.
putExtra
(
"pageSuccessText"
,
mCleanSizeSuccessTv
)
mCleanSuccessView
.
visibility
=
View
.
VISIBLE
startActivity
(
intent
)
finish
()
}
}
}).
start
()
}).
start
()
}
}
...
@@ -349,7 +347,7 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
...
@@ -349,7 +347,7 @@ class CleanActivity : AppCompatActivity(), CleanAdapter2.IClean {
"${size}B"
"${size}B"
}
}
mCleanBtn
.
text
=
"One-click cleanup of $sizeStr"
mCleanBtn
.
text
=
"One-click cleanup of $sizeStr"
mCleanSizeSuccessTv
.
text
=
"Successfully cleaned up $sizeStr of junk!"
mCleanSizeSuccessTv
=
"Successfully cleaned up $sizeStr of junk!"
}
}
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/MediaActivity.kt
View file @
1597a141
...
@@ -97,7 +97,7 @@ class MediaActivity : AppCompatActivity() {
...
@@ -97,7 +97,7 @@ class MediaActivity : AppCompatActivity() {
// binding.imageItemGrid.adapter = mItemAdapter
// binding.imageItemGrid.adapter = mItemAdapter
Thread
(
Runnable
{
Thread
(
Runnable
{
WaitDialog
.
show
(
"please wait.."
)
WaitDialog
.
show
(
"please wait.."
)
mItemDataList
=
FileUtil
.
getMediaFiles
(
this
,
mFileType
!!
,
5
0
)
mItemDataList
=
FileUtil
.
getMediaFiles
(
this
,
mFileType
!!
,
3
0
)
runOnUiThread
{
runOnUiThread
{
WaitDialog
.
dismiss
()
WaitDialog
.
dismiss
()
for
(
fileBean
in
mItemDataList
)
{
for
(
fileBean
in
mItemDataList
)
{
...
@@ -150,7 +150,7 @@ class MediaActivity : AppCompatActivity() {
...
@@ -150,7 +150,7 @@ class MediaActivity : AppCompatActivity() {
bundle
.
putSerializable
(
"fileBean"
,
mItemDataList
[
position
])
bundle
.
putSerializable
(
"fileBean"
,
mItemDataList
[
position
])
intent
.
putExtras
(
bundle
)
intent
.
putExtras
(
bundle
)
intent
.
putExtra
(
"fileType"
,
mFileType
)
intent
.
putExtra
(
"fileType"
,
mFileType
)
startActivity
(
intent
)
//
startActivity(intent)
}
}
}
}
}
}
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/ResultPageActivity.kt
0 → 100644
View file @
1597a141
package
com.xm.test.myfilemaster.activity
import
android.content.Intent
import
android.os.Bundle
import
android.view.View
import
androidx.activity.ComponentActivity
import
com.xm.test.myfilemaster.R
import
com.xm.test.myfilemaster.antivirus.AntivirusActivity
import
com.xm.test.myfilemaster.databinding.ActivityAntivirusBinding
import
com.xm.test.myfilemaster.databinding.ActivityMainBinding
import
com.xm.test.myfilemaster.databinding.ResultLayoutBinding
class
ResultPageActivity
:
ComponentActivity
()
{
private
lateinit
var
binding
:
ResultLayoutBinding
private
var
mFromWhereType
:
String
=
""
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
// setContentView(R.layout.result_layout)
binding
=
ResultLayoutBinding
.
inflate
(
layoutInflater
)
var
view
=
binding
.
root
setContentView
(
view
)
initView
()
setViewOnClickListener
()
}
private
fun
initView
()
{
binding
.
resultTitle
.
text
=
intent
.
getStringExtra
(
"pageTitle"
)
?:
""
binding
.
cleanSuccessSizeText
.
text
=
intent
.
getStringExtra
(
"pageSuccessText"
)
?:
""
mFromWhereType
=
intent
.
getStringExtra
(
"pageName"
).
toString
()
?:
""
when
(
mFromWhereType
){
"clean"
->{
binding
.
cleanView
.
visibility
=
View
.
GONE
binding
.
AntivirusView
.
visibility
=
View
.
VISIBLE
}
"antivirus"
->{
binding
.
cleanView
.
visibility
=
View
.
VISIBLE
binding
.
AntivirusView
.
visibility
=
View
.
GONE
}
}
}
fun
setViewOnClickListener
(){
binding
.
goToAntivirus
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
AntivirusActivity
::
class
.
java
))
finish
()
}
binding
.
goToBattery
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
BatteryActivity
::
class
.
java
))
finish
()
}
binding
.
goToScanLarge
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
ScanLargeFilesActivity
::
class
.
java
))
finish
()
}
binding
.
goToScanSimilarImages
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
SimilarImagesActivity
::
class
.
java
))
finish
()
}
binding
.
goToClean
.
setOnClickListener
{
startActivity
(
Intent
(
this
,
CleanActivity
::
class
.
java
))
finish
()
}
binding
.
resultQuitBtn
.
setOnClickListener
{
finish
()
}
}
}
\ No newline at end of file
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/activity/ScanResultActivity.kt
View file @
1597a141
...
@@ -107,7 +107,16 @@ class ScanResultActivity : AppCompatActivity() {
...
@@ -107,7 +107,16 @@ class ScanResultActivity : AppCompatActivity() {
mSettleText
.
text
=
mIgnoreCount
.
toString
()
mSettleText
.
text
=
mIgnoreCount
.
toString
()
mAntivirusSuccessView
.
visibility
=
View
.
VISIBLE
mAntivirusSuccessView
.
visibility
=
View
.
VISIBLE
}
}
findViewById
<
View
>(
R
.
id
.
scan_result_quit_btn
).
setOnClickListener
{
finish
()
}
findViewById
<
View
>(
R
.
id
.
scan_result_finish_text
).
setOnClickListener
{
findViewById
<
View
>(
R
.
id
.
scan_result_finish_text
).
setOnClickListener
{
val
intent
=
Intent
(
this
,
ResultPageActivity
::
class
.
java
)
intent
.
putExtra
(
"pageTitle"
,
"Antivirus"
)
intent
.
putExtra
(
"pageName"
,
"antivirus"
)
intent
.
putExtra
(
"pageSuccessText"
,
"No risks were identified"
)
startActivity
(
intent
)
finish
()
finish
()
}
}
}
}
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/antivirus/AntivirusActivity.kt
View file @
1597a141
package
com.xm.test.myfilemaster.antivirus
package
com.xm.test.myfilemaster.antivirus
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.content.SharedPreferences
import
android.os.Bundle
import
android.os.Bundle
import
android.os.Handler
import
android.os.Handler
import
android.os.Looper
import
android.os.Looper
...
@@ -17,7 +19,6 @@ import com.xm.test.myfilemaster.activity.ScanResultActivity
...
@@ -17,7 +19,6 @@ import com.xm.test.myfilemaster.activity.ScanResultActivity
class
AntivirusActivity
:
AppCompatActivity
()
{
class
AntivirusActivity
:
AppCompatActivity
()
{
private
lateinit
var
mPage1
:
View
private
lateinit
var
mPage2
:
View
private
lateinit
var
mPage2
:
View
private
lateinit
var
mPagerCheck
:
View
private
lateinit
var
mPagerCheck
:
View
private
lateinit
var
mProgress
:
ProgressBar
private
lateinit
var
mProgress
:
ProgressBar
...
@@ -27,20 +28,31 @@ class AntivirusActivity : AppCompatActivity() {
...
@@ -27,20 +28,31 @@ class AntivirusActivity : AppCompatActivity() {
private
var
mIntent
:
Intent
?
=
null
private
var
mIntent
:
Intent
?
=
null
private
var
mTotal
=
"22"
private
var
mTotal
=
"22"
private
var
isClickAgree
=
false
private
var
mSp
:
SharedPreferences
?
=
null
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_antivirus
)
setContentView
(
R
.
layout
.
activity_antivirus
)
mIntent
=
Intent
(
this
,
ScanResultActivity
::
class
.
java
)
mIntent
=
Intent
(
this
,
ScanResultActivity
::
class
.
java
)
initView
()
initView
()
setOnclickListener
()
setOnclickListener
()
// SharedPreferences(Context.MODE_PRIVATE, "isClickAgree")
mSp
=
getSharedPreferences
(
"antivirus"
,
MODE_PRIVATE
)
isClickAgree
=
mSp
!!
.
getBoolean
(
"isClickAgree"
,
false
)
if
(
isClickAgree
){
startAntivirus
()
}
}
}
private
fun
setOnclickListener
()
{
private
fun
setOnclickListener
()
{
findViewById
<
View
>(
R
.
id
.
interrupt_cancel_text
).
setOnClickListener
{
//
findViewById<View>(R.id.interrupt_cancel_text).setOnClickListener {
MyApplication
.
mCloudScan
?.
cancelScan
()
//
MyApplication.mCloudScan?.cancelScan()
finish
()
//
finish()
}
//
}
findViewById
<
View
>(
R
.
id
.
antivirus_quit_btn
).
setOnClickListener
{
findViewById
<
View
>(
R
.
id
.
antivirus_quit_btn
).
setOnClickListener
{
MyApplication
.
mCloudScan
?.
cancelScan
()
MyApplication
.
mCloudScan
?.
cancelScan
()
finish
()
finish
()
...
@@ -49,12 +61,12 @@ class AntivirusActivity : AppCompatActivity() {
...
@@ -49,12 +61,12 @@ class AntivirusActivity : AppCompatActivity() {
MyApplication
.
mCloudScan
?.
cancelScan
()
MyApplication
.
mCloudScan
?.
cancelScan
()
finish
()
finish
()
}
}
findViewById
<
View
>(
R
.
id
.
Start_scanning
).
setOnClickListener
{
findViewById
<
View
>(
R
.
id
.
Start_scanning
).
setOnClickListener
{
val
edit
=
mSp
!!
.
edit
()
edit
.
putBoolean
(
"isClickAgree"
,
true
)
edit
.
apply
()
startAntivirus
()
startAntivirus
()
mPage2
.
visibility
=
View
.
GONE
mPagerCheck
.
visibility
=
View
.
VISIBLE
}
}
findViewById
<
View
>(
R
.
id
.
antivirus_stop_text
).
setOnClickListener
{
findViewById
<
View
>(
R
.
id
.
antivirus_stop_text
).
setOnClickListener
{
MyApplication
.
mCloudScan
?.
cancelScan
()
MyApplication
.
mCloudScan
?.
cancelScan
()
...
@@ -63,7 +75,6 @@ class AntivirusActivity : AppCompatActivity() {
...
@@ -63,7 +75,6 @@ class AntivirusActivity : AppCompatActivity() {
}
}
private
fun
initView
()
{
private
fun
initView
()
{
mPage1
=
findViewById
(
R
.
id
.
antivirus_page_1
)
mPage2
=
findViewById
(
R
.
id
.
antivirus_page_2
)
mPage2
=
findViewById
(
R
.
id
.
antivirus_page_2
)
mPagerCheck
=
findViewById
(
R
.
id
.
check_the_source_layout
)
mPagerCheck
=
findViewById
(
R
.
id
.
check_the_source_layout
)
mProgress
=
findViewById
(
R
.
id
.
antivirus_progress
)
mProgress
=
findViewById
(
R
.
id
.
antivirus_progress
)
...
@@ -73,6 +84,8 @@ class AntivirusActivity : AppCompatActivity() {
...
@@ -73,6 +84,8 @@ class AntivirusActivity : AppCompatActivity() {
}
}
private
fun
startAntivirus
(){
private
fun
startAntivirus
(){
mPage2
.
visibility
=
View
.
GONE
mPagerCheck
.
visibility
=
View
.
VISIBLE
MyApplication
.
mCloudScan
?.
startQuickScan
(
object
:
CloudScanListener
(){
MyApplication
.
mCloudScan
?.
startQuickScan
(
object
:
CloudScanListener
(){
override
fun
onScanStarted
()
{
override
fun
onScanStarted
()
{
Log
.
e
(
"yanglin"
,
"onScanStarted: start"
,
)
Log
.
e
(
"yanglin"
,
"onScanStarted: start"
,
)
...
...
MyDemo3/app/src/main/java/com/xm/test/myfilemaster/util/FileUtil.kt
View file @
1597a141
...
@@ -304,6 +304,24 @@ object FileUtil {
...
@@ -304,6 +304,24 @@ object FileUtil {
}
}
}
}
fun
scanEmptyFiles
(
file
:
File
,
fileBeans
:
ArrayList
<
FileBean
>,
number
:
Int
){
if
(
fileBeans
.
size
>=
number
)
return
file
.
listFiles
().
forEach
{
if
(
it
.
isDirectory
&&
it
.
listFiles
()
?.
isEmpty
()
?:
false
){
val
fileBean
=
FileBean
()
fileBean
.
fileName
=
it
.
name
fileBean
.
filePath
=
it
.
path
fileBean
.
fileSize
=
it
.
length
()
fileBean
.
fileType
=
"dir"
fileBean
.
isDir
=
true
fileBeans
.
add
(
fileBean
)
}
else
if
(
it
.
isDirectory
&&
it
.
listFiles
()
?.
isNotEmpty
()
?:
false
){
scanEmptyFiles
(
it
,
fileBeans
,
number
)
}
}
}
fun
dpToPx
(
dp
:
Int
,
context
:
Context
):
Int
{
fun
dpToPx
(
dp
:
Int
,
context
:
Context
):
Int
{
return
TypedValue
.
applyDimension
(
return
TypedValue
.
applyDimension
(
...
...
MyDemo3/app/src/main/res/layout/activity_antivirus.xml
View file @
1597a141
...
@@ -7,61 +7,6 @@
...
@@ -7,61 +7,6 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".antivirus.AntivirusActivity"
>
tools:context=
".antivirus.AntivirusActivity"
>
<FrameLayout
android:id=
"@+id/antivirus_page_1"
android:background=
"@color/black"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"vertical"
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/bg_item_shape"
android:padding=
"16dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Warm reminder"
android:layout_gravity=
"center_horizontal"
android:textSize=
"21dp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"TrustlookSDK provides security services
thatrecord a Some information, including userinstalled
applications and device messagesBecause it will analyze
the applicatiorcollection,
apply static and rows Provideapplication risk report for analysis.
\n\nView infom"
/>
<TextView
android:id=
"@+id/interrupt_scan_text"
android:layout_width=
"245dp"
android:layout_height=
"42dp"
android:layout_marginTop=
"16dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:layout_gravity=
"center_horizontal"
android:text=
"Interrupt scan"
android:gravity=
"center"
android:textColor=
"@color/white"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/interrupt_cancel_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Cancel"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"12dp"
android:textColor=
"#8B8B8B"
/>
</LinearLayout>
</FrameLayout>
<FrameLayout
<FrameLayout
android:id=
"@+id/antivirus_page_2"
android:id=
"@+id/antivirus_page_2"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
MyDemo3/app/src/main/res/layout/activity_clean.xml
View file @
1597a141
...
@@ -55,47 +55,7 @@
...
@@ -55,47 +55,7 @@
app:lottie_autoPlay=
"true"
app:lottie_autoPlay=
"true"
app:lottie_loop=
"true"
app:lottie_loop=
"true"
app:lottie_rawRes=
"@raw/qinglisaomiao"
/>
app:lottie_rawRes=
"@raw/qinglisaomiao"
/>
<!--1111-->
<LinearLayout
android:id=
"@+id/clean_success_layout"
android:orientation=
"vertical"
android:visibility=
"gone"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:layout_centerInParent=
"true"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/clean_success"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"completed !"
android:textSize=
"33dp"
android:textColor=
"@color/white"
android:layout_marginStart=
"22dp"
/>
</LinearLayout>
<TextView
android:id=
"@+id/clean_success_size_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Successfully cleaned up 414KB of junk!"
android:layout_gravity=
"center|bottom"
android:textColor=
"@color/white"
/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
...
...
MyDemo3/app/src/main/res/layout/activity_scan_result.xml
View file @
1597a141
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
android:text=
"22"
android:text=
"22"
android:textColor=
"@color/style_background"
android:textColor=
"@color/style_background"
android:textStyle=
"bold"
android:textStyle=
"bold"
android:textSize=
"4
4d
p"
android:textSize=
"4
1s
p"
android:layout_marginStart=
"16dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"50dp"
/>
android:layout_marginTop=
"50dp"
/>
...
...
MyDemo3/app/src/main/res/layout/ad_layout.xml
View file @
1597a141
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:background=
"@drawable/bg_ad_shape"
android:padding=
"8dp"
android:padding=
"8dp"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:layout_height=
"90dp"
>
android:layout_height=
"90dp"
>
<ImageView
android:id=
"@+id/ad_image"
android:src=
"@mipmap/battery_image"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
<
Text
View
<
Image
View
android:
id=
"@+id/ad_title_text
"
android:
layout_centerInParent=
"true
"
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"15dp"
android:src=
"@mipmap/ad"
/>
android:textStyle=
"bold"
android:textColor=
"@color/black"
<!-- <ImageView-->
android:layout_toRightOf=
"@+id/ad_image"
<!-- android:id="@+id/ad_image"-->
android:text=
"澳门皇冠赌场"
/>
<!-- android:src="@mipmap/battery_image"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"/>-->
<TextView
<!-- <TextView-->
android:layout_width=
"wrap_content"
<!-- android:id="@+id/ad_title_text"-->
android:layout_height=
"wrap_content"
<!-- android:layout_width="wrap_content"-->
android:text=
"性感荷官在线发牌"
<!-- android:layout_height="wrap_content"-->
android:layout_toRightOf=
"@+id/ad_image"
<!-- android:textSize="15dp"-->
android:layout_below=
"@+id/ad_title_text"
<!-- android:textStyle="bold"-->
android:textSize=
"9dp"
/>
<!-- android:textColor="@color/black"-->
<!-- android:layout_toRightOf="@+id/ad_image"-->
<!-- android:text="澳门皇冠赌场"/>-->
<TextView
<!-- <TextView-->
android:layout_width=
"wrap_content"
<!-- android:layout_width="wrap_content"-->
android:layout_height=
"wrap_content"
<!-- android:layout_height="wrap_content"-->
android:text=
"赶快来体验"
<!-- android:text="性感荷官在线发牌"-->
android:textSize=
"9dp"
<!-- android:layout_toRightOf="@+id/ad_image"-->
android:layout_toRightOf=
"@+id/ad_image"
<!-- android:layout_below="@+id/ad_title_text"-->
android:layout_alignParentBottom=
"true"
/>
<!-- android:textSize="9dp"/>-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="赶快来体验"-->
<!-- android:textSize="9dp"-->
<!-- android:layout_toRightOf="@+id/ad_image"-->
<!-- android:layout_alignParentBottom="true"/>-->
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
MyDemo3/app/src/main/res/layout/check_the_source_layout.xml
View file @
1597a141
...
@@ -14,13 +14,13 @@
...
@@ -14,13 +14,13 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/scan_ing_layout"
android:id=
"@+id/scan_ing_layout"
android:layout_below=
"@+id/antivirus_quit_btn"
android:layout_below=
"@+id/antivirus_quit_btn
_2
"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
>
<TextView
<TextView
android:textSize=
"1
9
dp"
android:textSize=
"1
6
dp"
android:textColor=
"@color/black"
android:textColor=
"@color/black"
android:textStyle=
"bold"
android:textStyle=
"bold"
android:layout_marginTop=
"38dp"
android:layout_marginTop=
"38dp"
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_marginBottom=
"30dp"
android:layout_marginBottom=
"30dp"
android:textSize=
"1
9
dp"
android:textSize=
"1
6
dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Applications from unknow soursess: 10"
android:text=
"Applications from unknow soursess: 10"
android:textColor=
"#FF0707"
/>
android:textColor=
"#FF0707"
/>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Tiktok"
android:text=
"Tiktok"
android:textSize=
"1
9d
p"
/>
android:textSize=
"1
6s
p"
/>
</RelativeLayout>
</RelativeLayout>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_marginTop=
"16dp"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:textSize=
"1
9d
p"
android:textSize=
"1
6s
p"
android:text=
"Stop"
android:text=
"Stop"
android:textStyle=
"bold"
android:textStyle=
"bold"
android:textColor=
"#999999"
/>
android:textColor=
"#999999"
/>
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:visibility=
"gone"
android:visibility=
"gone"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@id/antivirus_quit_btn"
>
android:layout_below=
"@id/antivirus_quit_btn
_2
"
>
<ImageView
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
MyDemo3/app/src/main/res/layout/dialog_agreement.xml
0 → 100644
View file @
1597a141
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<FrameLayout
android:id=
"@+id/antivirus_page_1"
android:background=
"@color/black"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginEnd=
"16dp"
android:orientation=
"vertical"
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/bg_item_shape"
android:padding=
"16dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Warm reminder"
android:layout_gravity=
"center_horizontal"
android:textSize=
"21dp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"TrustlookSDK provides security services
thatrecord a Some information, including userinstalled
applications and device messagesBecause it will analyze
the applicatiorcollection,
apply static and rows Provideapplication risk report for analysis.
\n\nView infom"
/>
<TextView
android:id=
"@+id/interrupt_scan_text"
android:layout_width=
"245dp"
android:layout_height=
"42dp"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"16dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"Interrupt scan"
android:textColor=
"@color/white"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/interrupt_cancel_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Cancel"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"12dp"
android:textColor=
"#8B8B8B"
/>
</LinearLayout>
</FrameLayout>
</RelativeLayout>
\ No newline at end of file
MyDemo3/app/src/main/res/layout/dialog_custom_layout.xml
View file @
1597a141
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Create a new folder"
android:text=
"Create a new folder"
android:layout_marginBottom=
"
16
dp"
android:layout_marginBottom=
"
8
dp"
android:textSize=
"17dp"
android:textSize=
"17dp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
android:id=
"@+id/dialog_hint_text"
android:id=
"@+id/dialog_hint_text"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_marginBottom=
"16dp"
android:layout_marginBottom=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Please enter a file name"
android:text=
"Please enter a file name"
android:textSize=
"17dp"
/>
android:textSize=
"17dp"
/>
...
...
MyDemo3/app/src/main/res/layout/fragment_home.xml
View file @
1597a141
...
@@ -234,7 +234,6 @@
...
@@ -234,7 +234,6 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"17dp"
android:text=
"Antivirus"
/>
android:text=
"Antivirus"
/>
</LinearLayout>
</LinearLayout>
...
@@ -254,7 +253,6 @@
...
@@ -254,7 +253,6 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"17dp"
android:text=
"Battery Info"
/>
android:text=
"Battery Info"
/>
</LinearLayout>
</LinearLayout>
...
@@ -281,7 +279,6 @@
...
@@ -281,7 +279,6 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"17dp"
android:text=
"@string/scan_large_files"
/>
android:text=
"@string/scan_large_files"
/>
</LinearLayout>
</LinearLayout>
...
@@ -323,7 +320,6 @@
...
@@ -323,7 +320,6 @@
android:layout_weight=
"0.9"
android:layout_weight=
"0.9"
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:textSize=
"17dp"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Scan\nSimilar Images"
/>
android:text=
"Scan\nSimilar Images"
/>
...
...
MyDemo3/app/src/main/res/layout/result_layout.xml
View file @
1597a141
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<
Linear
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<
Relative
Layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:orientation=
"vertical"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
>
<include
layout=
"@layout/ad_layout"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"200dp"
android:layout_marginStart=
"16dp"
android:background=
"@color/style_background"
>
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/layout_1"
android:id=
"@+id/clean_success_layout"
android:layout_width=
"wrap_content"
android:orientation=
"vertical"
android:layout_height=
"wrap_content"
android:layout_width=
"match_parent"
android:orientation=
"horizontal"
>
android:layout_height=
"wrap_content"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"30dp"
>
<ImageView
<ImageView
android:id=
"@+id/clean_antivirus_image"
android:id=
"@+id/result_quit_btn"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/clean_antivirus"
/>
android:src=
"@mipmap/quit"
android:layout_marginStart=
"16dp"
android:layout_centerVertical=
"true"
/>
<LinearLayout
<TextView
android:layout_width=
"wrap_content"
android:id=
"@+id/result_title"
android:layout_height=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_height=
"wrap_content"
android:layout_toRightOf=
"@id/clean_antivirus_image"
android:textColor=
"@color/white"
android:orientation=
"vertical"
>
android:textSize=
"21dp"
android:text=
"title"
android:layout_centerHorizontal=
"true"
android:textStyle=
"bold"
/>
</RelativeLayout>
<TextView
<LinearLayout
android:id=
"@+id/clean_antivirus_text"
android:layout_centerInParent=
"true"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ANTIVIRUS"
android:src=
"@mipmap/clean_success"
/>
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"No virus scan for a long time"
android:text=
"completed !"
android:textColor=
"@color/style_grey"
android:textSize=
"33dp"
android:textSize=
"14sp"
/>
android:textColor=
"@color/white"
android:layout_marginStart=
"22dp"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/clean_success_size_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:text=
"Successfully cleaned up 414KB of junk!"
android:layout_gravity=
"center|bottom"
android:textColor=
"@color/white"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/go_to_antivirus"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_1"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"View"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
<LinearLayout
android:layout_marginTop=
"75dp"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_alignParentBottom=
"true"
android:layout_marginTop=
"8dp"
android:orientation=
"vertical"
>
android:visibility=
"gone"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<include
layout=
"@layout/ad_layout"
/>
android:id=
"@+id/layout_delete"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<ImageView
<RelativeLayout
android:id=
"@+id/clean_delete_image"
android:id=
"@+id/AntivirusView"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/delete_image"
/>
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/layout_1"
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"
android:orientation=
"horizontal"
>
android:layout_toRightOf=
"@id/clean_delete_image"
android:orientation=
"vertical"
>
<
Text
View
<
Image
View
android:id=
"@+id/clean_
clean_text
"
android:id=
"@+id/clean_
antivirus_image
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"CLEAN"
android:src=
"@mipmap/clean_antivirus"
/>
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<
TextView
<
LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
text=
"Clean up junk files
"
android:
layout_gravity=
"center_vertical
"
android:
textColor=
"@color/style_grey
"
android:
layout_toRightOf=
"@id/clean_antivirus_image
"
android:
textSize=
"14sp"
/
>
android:
orientation=
"vertical"
>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/clean_antivirus_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ANTIVIRUS"
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/go_to_clean"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"36dp"
android:text=
"No virus scan for a long time"
android:layout_below=
"@+id/layout_delete"
android:textColor=
"@color/style_grey"
android:layout_marginStart=
"12dp"
android:textSize=
"14sp"
/>
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"View"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</Relative
Layout>
</Linear
Layout>
<RelativeLayout
</LinearLayout>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<TextView
android:id=
"@+id/layout_2"
android:id=
"@+id/go_to_antivirus"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_1"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"View"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/cleanView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
<ImageView
android:layout_marginEnd=
"16dp"
android:layout_width=
"wrap_content"
android:background=
"@drawable/bg_item_shape"
>
android:layout_height=
"wrap_content"
android:src=
"@mipmap/clean_battery"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/layout_delete"
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"
android:orientation=
"horizontal"
>
android:layout_toRightOf=
"@id/clean_antivirus_image"
android:orientation=
"vertical"
>
<TextView
<ImageView
android:id=
"@+id/clean_delete_image"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"BATTERY INFO"
android:src=
"@mipmap/delete_image"
/>
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<
TextView
<
LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
text=
"The power is lost too quicklycheck the reason
"
android:
layout_gravity=
"center_vertical
"
android:
textColor=
"@color/style_grey
"
android:
layout_toRightOf=
"@id/clean_delete_image
"
android:
textSize=
"14sp"
/
>
android:
orientation=
"vertical"
>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/clean_clean_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"CLEAN"
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/go_to_battery"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"36dp"
android:text=
"Clean up junk files"
android:layout_below=
"@+id/layout_2"
android:textColor=
"@color/style_grey"
android:layout_marginStart=
"12dp"
android:textSize=
"14sp"
/>
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"View"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</Relative
Layout>
</Linear
Layout>
<RelativeLayout
</LinearLayout>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<TextView
android:id=
"@+id/layout_3"
android:id=
"@+id/go_to_clean"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_delete"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"Clean Now"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/batteryView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
<ImageView
android:layout_marginEnd=
"16dp"
android:layout_width=
"wrap_content"
android:background=
"@drawable/bg_item_shape"
>
android:layout_height=
"wrap_content"
android:src=
"@mipmap/clean_empty_files"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/layout_2"
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"
android:orientation=
"horizontal"
>
android:layout_toRightOf=
"@id/clean_antivirus_image"
android:orientation=
"vertical"
>
<
Text
View
<
Image
View
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"SCAN LARGE FILES"
android:src=
"@mipmap/clean_battery"
/>
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<
TextView
<
LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
text=
"Clean up large files
"
android:
layout_gravity=
"center_vertical
"
android:
textColor=
"@color/style_grey
"
android:
layout_toRightOf=
"@id/clean_antivirus_image
"
android:
textSize=
"14sp"
/
>
android:
orientation=
"vertical"
>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"BATTERY INFO"
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<TextView
<TextView
android:id=
"@+id/go_to_scan_large"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"36dp"
android:text=
"The power is lost too quicklycheck the reason"
android:layout_below=
"@+id/layout_3"
android:textColor=
"@color/style_grey"
android:layout_marginStart=
"12dp"
android:textSize=
"14sp"
/>
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"Scan"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</Relative
Layout>
</Linear
Layout>
<RelativeLayout
</LinearLayout>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<TextView
android:id=
"@+id/layout_4"
android:id=
"@+id/go_to_battery"
android:layout_width=
"wrap_content"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_2"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"View"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/scanLargeFilesView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<ImageView
<LinearLayout
android:id=
"@+id/layout_3"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/clean_pictures"
/>
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/clean_empty_files"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_toRightOf=
"@id/clean_antivirus_image"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"SCAN LARGE FILES"
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Clean up large files"
android:textColor=
"@color/style_grey"
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/go_to_scan_large"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_3"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"Scan"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/scanSimilarImgView"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"8dp"
android:layout_marginEnd=
"16dp"
android:background=
"@drawable/bg_item_shape"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/layout_4"
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"
android:orientation=
"horizontal"
>
android:layout_toRightOf=
"@id/clean_antivirus_image"
android:orientation=
"vertical"
>
<
Text
View
<
Image
View
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"SCAN FOR SIMILAR IMAGES"
android:src=
"@mipmap/clean_pictures"
/>
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<
TextView
<
LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Clean up similar images"
android:layout_gravity=
"center_vertical"
android:textColor=
"@color/style_grey"
android:layout_toRightOf=
"@id/clean_antivirus_image"
android:textSize=
"14sp"
/>
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"SCAN FOR SIMILAR IMAGES"
android:textColor=
"@color/black"
android:textSize=
"16dp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Clean up similar images"
android:textColor=
"@color/style_grey"
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/go_to_scan_similar_images"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_4"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"Scan"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
</LinearLayout>
<TextView
android:id=
"@+id/go_to_scan_similar_images"
android:layout_width=
"match_parent"
android:layout_height=
"36dp"
android:layout_below=
"@+id/layout_4"
android:layout_marginStart=
"12dp"
android:layout_marginTop=
"1dp"
android:layout_marginEnd=
"12dp"
android:layout_marginBottom=
"9dp"
android:background=
"@drawable/bg_btn_sure_shape"
android:gravity=
"center"
android:text=
"Scan"
android:textColor=
"@color/white"
android:textSize=
"19dp"
android:textStyle=
"bold"
/>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
\ No newline at end of file
MyDemo3/app/src/main/res/values/dimens.xml
0 → 100644
View file @
1597a141
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen
name=
"home_btn_textsp"
>
15sp
</dimen>
</resources>
\ No newline at end of file
MyDemo3/key.jks
0 → 100644
View file @
1597a141
File added
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