Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy Cleaner Junk
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
Easy Cleaner Junk
Commits
1ad5381d
Commit
1ad5381d
authored
Jun 19, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步代码
parent
46cf468d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
ScreenShotActivity.kt
.../test/easy/easycleanerjunk/activity/ScreenShotActivity.kt
+1
-4
ScreenShotAdapter.kt
...om/test/easy/easycleanerjunk/adapter/ScreenShotAdapter.kt
+0
-3
fragment_layout_home.xml
app/src/main/res/layout/fragment_layout_home.xml
+3
-3
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/activity/ScreenShotActivity.kt
View file @
1ad5381d
...
@@ -36,7 +36,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
...
@@ -36,7 +36,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
}
}
override
fun
initView
()
{
override
fun
initView
()
{
screenShotAdapter
=
ScreenShotAdapter
(
this
)
{
size
->
screenShotAdapter
=
ScreenShotAdapter
{
size
->
setCleanUpUi
(
size
)
setCleanUpUi
(
size
)
}
}
...
@@ -92,9 +92,6 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
...
@@ -92,9 +92,6 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
val
sizeF
=
size
.
toFormatSize
().
split
(
" "
)
val
sizeF
=
size
.
toFormatSize
().
split
(
" "
)
binding
.
tvSize
.
text
=
sizeF
[
0
]
binding
.
tvSize
.
text
=
sizeF
[
0
]
binding
.
tvUnit
.
text
=
sizeF
[
1
]
binding
.
tvUnit
.
text
=
sizeF
[
1
]
binding
.
root
.
postDelayed
({
binding
.
llSelectAll
.
callOnClick
()
},
Random
.
nextLong
(
500
,
1000
))
}
}
override
fun
initListener
()
{
override
fun
initListener
()
{
...
...
app/src/main/java/com/test/easy/easycleanerjunk/adapter/ScreenShotAdapter.kt
View file @
1ad5381d
...
@@ -21,13 +21,10 @@ import com.test.easy.easycleanerjunk.view.XmlEx.inflate
...
@@ -21,13 +21,10 @@ import com.test.easy.easycleanerjunk.view.XmlEx.inflate
class
ScreenShotAdapter
(
class
ScreenShotAdapter
(
val
context
:
Context
,
val
select
:
(
size
:
Int
)
->
Unit
val
select
:
(
size
:
Int
)
->
Unit
)
:
RecyclerView
.
Adapter
<
ScreenShotAdapter
.
SSS
>()
{
)
:
RecyclerView
.
Adapter
<
ScreenShotAdapter
.
SSS
>()
{
private
var
beans
=
arrayListOf
<
ScreenshotBean
>()
private
var
beans
=
arrayListOf
<
ScreenshotBean
>()
private
val
itemViewSize
=
context
.
resources
.
getDimensionPixelOffset
(
R
.
dimen
.
dp_109
)
private
val
margin
=
context
.
resources
.
getDimensionPixelOffset
(
R
.
dimen
.
dp_5
)
inner
class
SSS
(
view
:
View
)
:
ViewHolder
(
view
)
inner
class
SSS
(
view
:
View
)
:
ViewHolder
(
view
)
...
...
app/src/main/res/layout/fragment_layout_home.xml
View file @
1ad5381d
...
@@ -102,8 +102,8 @@
...
@@ -102,8 +102,8 @@
android:layout_height=
"48dp"
android:layout_height=
"48dp"
android:layout_marginHorizontal=
"64dp"
android:layout_marginHorizontal=
"64dp"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:elevation=
"
15
dp"
android:elevation=
"
0
dp"
app:cardBackgroundColor=
"
@color/white
"
app:cardBackgroundColor=
"
#FF6137
"
app:cardCornerRadius=
"22dp"
app:cardCornerRadius=
"22dp"
tools:ignore=
"HardcodedText"
>
tools:ignore=
"HardcodedText"
>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:text=
"Clean Up"
android:text=
"Clean Up"
android:textColor=
"
#CE0306
"
android:textColor=
"
@color/white
"
android:textSize=
"19sp"
android:textSize=
"19sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
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