Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White
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
PDF Viewer Scanner White
Commits
65266812
Commit
65266812
authored
Oct 21, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
8fce73df
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
141 additions
and
1 deletion
+141
-1
CleaningActivity.kt
...se/pdfviewerscannerwhite/ui/cleanjunk/CleaningActivity.kt
+61
-1
activity_layout_cleanuping.xml
app/src/main/res/layout/activity_layout_cleanuping.xml
+80
-0
cjxuanzhuan.png
app/src/main/res/mipmap-xxhdpi/cjxuanzhuan.png
+0
-0
cleantu1.png
app/src/main/res/mipmap-xxhdpi/cleantu1.png
+0
-0
cleantu2.png
app/src/main/res/mipmap-xxhdpi/cleantu2.png
+0
-0
cleantu3.png
app/src/main/res/mipmap-xxhdpi/cleantu3.png
+0
-0
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/cleanjunk/CleaningActivity.kt
View file @
65266812
package
com.base.pdfviewerscannerwhite.ui.cleanjunk
import
android.animation.ValueAnimator
import
android.annotation.SuppressLint
import
android.content.Intent
import
android.graphics.Color
import
android.view.animation.LinearInterpolator
...
...
@@ -9,7 +10,6 @@ import androidx.activity.addCallback
import
androidx.core.animation.doOnEnd
import
androidx.core.view.updatePadding
import
com.base.pdfviewerscannerwhite.ads.admob.AdmobInterstitialUtils
import
com.base.pdfviewerscannerwhite.bean.ConstObject.FUNCTION_APP_PROCESS
import
com.base.pdfviewerscannerwhite.bean.ConstObject.FUNCTION_SCAM_JUNK
import
com.base.pdfviewerscannerwhite.databinding.ActivityLayoutCleanupingBinding
import
com.base.pdfviewerscannerwhite.helper.BaseActivity
...
...
@@ -107,4 +107,64 @@ class CleaningActivity : BaseActivity<ActivityLayoutCleanupingBinding>() {
start
()
}
}
private
var
animator1
:
ValueAnimator
?
=
null
private
var
animator2
:
ValueAnimator
?
=
null
private
var
animator3
:
ValueAnimator
?
=
null
override
fun
onResume
()
{
super
.
onResume
()
resumeLottie
()
}
@SuppressLint
(
"SetTextI18n"
)
private
fun
resumeLottie
()
{
if
(
animator1
==
null
)
{
animator1
=
ValueAnimator
.
ofFloat
(
0f
,
360f
)
animator1
?.
run
{
duration
=
1000
repeatMode
=
ValueAnimator
.
RESTART
repeatCount
=
ValueAnimator
.
INFINITE
interpolator
=
LinearInterpolator
()
addUpdateListener
{
binding
.
idView1
.
rotation
=
it
.
animatedValue
as
Float
}
}
}
animator1
?.
start
()
if
(
animator2
==
null
)
{
animator2
=
ValueAnimator
.
ofFloat
(
0f
,
360f
)
animator2
?.
run
{
duration
=
1000
repeatMode
=
ValueAnimator
.
RESTART
repeatCount
=
ValueAnimator
.
INFINITE
interpolator
=
LinearInterpolator
()
addUpdateListener
{
binding
.
idView2
.
rotation
=
it
.
animatedValue
as
Float
}
}
}
animator2
?.
start
()
if
(
animator3
==
null
)
{
animator3
=
ValueAnimator
.
ofFloat
(
0f
,
360f
)
animator3
?.
run
{
duration
=
1000
repeatMode
=
ValueAnimator
.
RESTART
repeatCount
=
ValueAnimator
.
INFINITE
interpolator
=
LinearInterpolator
()
addUpdateListener
{
binding
.
idView3
.
rotation
=
it
.
animatedValue
as
Float
}
}
}
animator3
?.
start
()
}
override
fun
onPause
()
{
super
.
onPause
()
animator1
?.
pause
()
animator2
?.
pause
()
animator3
?.
pause
()
}
}
\ No newline at end of file
app/src/main/res/layout/activity_layout_cleanuping.xml
View file @
65266812
...
...
@@ -78,6 +78,86 @@
tools:ignore=
"HardcodedText"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"30dp"
android:layout_marginBottom=
"75dp"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
app:layout_constraintBottom_toBottomOf=
"parent"
>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/id_view1"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/cjxuanzhuan"
/>
<androidx.appcompat.widget.AppCompatImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:src=
"@mipmap/cleantu1"
/>
</FrameLayout>
<View
android:layout_width=
"39dp"
android:layout_height=
"1dp"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"20dp"
android:background=
"#DCDCDC"
/>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/id_view2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/cjxuanzhuan"
/>
<androidx.appcompat.widget.AppCompatImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:src=
"@mipmap/cleantu2"
/>
</FrameLayout>
<View
android:layout_width=
"39dp"
android:layout_height=
"1dp"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"20dp"
android:background=
"#DCDCDC"
/>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<androidx.appcompat.widget.AppCompatImageView
android:id=
"@+id/id_view3"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/cjxuanzhuan"
/>
<androidx.appcompat.widget.AppCompatImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:src=
"@mipmap/cleantu2"
/>
</FrameLayout>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
...
...
app/src/main/res/mipmap-xxhdpi/cjxuanzhuan.png
0 → 100644
View file @
65266812
5.62 KB
app/src/main/res/mipmap-xxhdpi/cleantu1.png
0 → 100644
View file @
65266812
1.85 KB
app/src/main/res/mipmap-xxhdpi/cleantu2.png
0 → 100644
View file @
65266812
1.79 KB
app/src/main/res/mipmap-xxhdpi/cleantu3.png
0 → 100644
View file @
65266812
1.95 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment