Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
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
appzxhy
Commits
736e1abe
Commit
736e1abe
authored
Jun 16, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[拆包]修复清理设置页
parent
38fdab88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
21 deletions
+29
-21
CleanResultActivity.kt
...va/com/base/appzxhy/ui/cleanresult/CleanResultActivity.kt
+10
-11
bg_74daff_0051ff_4.xml
app/src/main/res/drawable/bg_74daff_0051ff_4.xml
+7
-0
item_clean_result.xml
app/src/main/res/layout/item_clean_result.xml
+12
-10
No files found.
app/src/main/java/com/base/appzxhy/ui/cleanresult/CleanResultActivity.kt
View file @
736e1abe
...
...
@@ -5,6 +5,7 @@ import android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
androidx.activity.addCallback
import
androidx.core.content.ContextCompat
import
androidx.core.view.ViewCompat
import
androidx.core.view.WindowInsetsCompat
import
androidx.core.view.updatePadding
...
...
@@ -25,7 +26,6 @@ import com.base.appzxhy.business.ads.AdsMgr
import
com.base.appzxhy.business.ads.AdsShowCallBack
import
com.base.appzxhy.databinding.ActivityCleanResultBinding
import
com.base.appzxhy.databinding.ItemCleanResultBinding
import
com.base.appzxhy.ui.malware.MalwareDialog
import
com.base.appzxhy.utils.MyAnimationUtils
import
com.base.appzxhy.utils.Utils
...
...
@@ -54,16 +54,15 @@ class CleanResultActivity : BaseActivity<ActivityCleanResultBinding>(ActivityCle
holder
.
binding
.
ivImage
.
setImageResource
(
item
.
icon
)
holder
.
binding
.
tvName
.
text
=
getString
(
item
.
titleRes
)
holder
.
binding
.
tvContent
.
setText
(
item
.
content
)
holder
.
binding
.
tvTry
.
setOnClickListener
{
if
(
item
.
key
==
ANTIVIRUS
)
{
val
dialog
=
MalwareDialog
(
this
@CleanResultActivity
)
dialog
.
action
={
jumpAction
(
item
.
key
)
}
dialog
.
showDialog
()
}
else
{
jumpAction
(
item
.
key
)
}
if
(
position
==
0
)
{
holder
.
binding
.
tvBtn
.
background
=
ContextCompat
.
getDrawable
(
this
@CleanResultActivity
,
R
.
drawable
.
bg_btn_4
)
}
else
{
holder
.
binding
.
tvBtn
.
background
=
ContextCompat
.
getDrawable
(
this
@CleanResultActivity
,
R
.
drawable
.
bg_74daff_0051ff_4
)
}
holder
.
binding
.
tvBtn
.
setText
(
item
.
content
)
holder
.
binding
.
tvBtn
.
setOnClickListener
{
jumpAction
(
item
.
key
)
}
val
translationX
=
resources
.
displayMetrics
.
widthPixels
.
toFloat
()
...
...
app/src/main/res/drawable/bg_74daff_0051ff_4.xml
0 → 100644
View file @
736e1abe
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
android:startColor=
"#74DAFF"
android:endColor=
"#0051FF"
/>
<corners
android:radius=
"@dimen/dp_4"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/item_clean_result.xml
View file @
736e1abe
...
...
@@ -26,7 +26,7 @@
android:layout_width=
"@dimen/dp_50"
android:layout_height=
"@dimen/dp_50"
android:layout_marginStart=
"@dimen/dp_14"
android:layout_marginTop=
"@dimen/dp_
20
"
android:layout_marginTop=
"@dimen/dp_
16
"
android:src=
"@drawable/h_junkclean"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
@@ -64,19 +64,21 @@
<TextView
android:id=
"@+id/tvTry"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:id=
"@+id/tvBtn"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_40"
android:layout_marginHorizontal=
"@dimen/dp_14"
android:layout_marginTop=
"@dimen/dp_8"
android:layout_marginEnd=
"@dimen/dp_15"
android:layout_marginBottom=
"@dimen/dp_
20
"
android:
gravity=
"center_vertical
"
android:
text=
"@string/try_it_new
"
android:
textColor=
"#2DD29E
"
a
pp:drawableEndCompat=
"@drawable/jiangtou_3
"
android:layout_marginBottom=
"@dimen/dp_
16
"
android:
background=
"@drawable/bg_btn_4
"
android:
foreground=
"?attr/selectableItemBackground
"
android:
gravity=
"center
"
a
ndroid:textColor=
"@color/white
"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/ll_content"
/>
app:layout_constraintTop_toBottomOf=
"@id/ll_content"
tools:text=
"@string/clean_now"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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