Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
B
Browser 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
Browser White
Commits
9a56b66c
Commit
9a56b66c
authored
Aug 29, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
495c26d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
6 deletions
+25
-6
Splash2Activity.kt
...m/base/browserwhite/ui/activity/splash/Splash2Activity.kt
+22
-2
activity_news.xml
app/src/main/res/layout/activity_news.xml
+1
-1
activity_web_store.xml
app/src/main/res/layout/activity_web_store.xml
+1
-1
item_tab_news.xml
app/src/main/res/layout/item_tab_news.xml
+1
-2
No files found.
app/src/main/java/com/base/browserwhite/ui/activity/splash/Splash2Activity.kt
View file @
9a56b66c
...
...
@@ -145,19 +145,39 @@ class Splash2Activity : BaseActivity<ActivitySplash2Binding>(),
callback
.
invoke
()
}
}
}
}
}
}
}
else
{
callback
.
invoke
()
if
(
isAgree
)
{
AnimationHelper
.
startAlphaAnimation
(
binding
.
pb
,
800
,
null
)
{
callback
.
invoke
()
}
}
else
{
AnimationHelper
.
startAlphaAnimation
(
binding
.
idTvStart
,
1200
,
{
val
set1
=
AnimatorSet
()
// 创建缩放动画的ObjectAnimator
val
scaleUpAnimator1
=
ObjectAnimator
.
ofFloat
(
binding
.
idTvStart
,
"scaleX"
,
1f
,
0.95f
,
1.05f
)
val
scaleUpAnimator2
=
ObjectAnimator
.
ofFloat
(
binding
.
idTvStart
,
"scaleY"
,
1f
,
0.95f
,
1.05f
)
scaleUpAnimator1
.
duration
=
1200
// 动画持续500毫秒
scaleUpAnimator1
.
repeatCount
=
1
// 重复次数
scaleUpAnimator1
.
repeatMode
=
ValueAnimator
.
REVERSE
// 反向重复,实现缩小效果
scaleUpAnimator2
.
duration
=
1200
// 动画持续500毫秒
scaleUpAnimator2
.
repeatCount
=
1
// 重复次数
set1
.
playTogether
(
scaleUpAnimator1
,
scaleUpAnimator2
)
set1
.
start
()
})
{
callback
.
invoke
()
}
}
}
}.
start
()
}
private
fun
closeNotification
()
{
sendBroadcast
(
Intent
(
this
,
CloseNotificationReceiver
::
class
.
java
).
apply
{
this
.
action
=
CloseNotificationReceiver
.
Action
...
...
app/src/main/res/layout/activity_news.xml
View file @
9a56b66c
...
...
@@ -45,7 +45,7 @@
android:layout_marginVertical=
"5dp"
app:tab_deselect_color=
"@color/black"
app:tab_divider_solid_color=
"@android:color/transparent"
app:tab_divider_width=
"1
6
dp"
app:tab_divider_width=
"1
0
dp"
app:tab_draw_divider=
"true"
app:tab_enable_ico_color=
"false"
app:tab_indicator_style=
"STYLE_NONE"
...
...
app/src/main/res/layout/activity_web_store.xml
View file @
9a56b66c
...
...
@@ -45,7 +45,7 @@
android:layout_marginVertical=
"10dp"
app:tab_deselect_color=
"@color/black"
app:tab_divider_solid_color=
"@android:color/transparent"
app:tab_divider_width=
"1
6
dp"
app:tab_divider_width=
"1
0
dp"
app:tab_draw_divider=
"true"
app:tab_enable_ico_color=
"false"
app:tab_indicator_style=
"STYLE_NONE"
...
...
app/src/main/res/layout/item_tab_news.xml
View file @
9a56b66c
...
...
@@ -7,8 +7,7 @@
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/bg_tab_selector_webstore"
android:gravity=
"center"
android:paddingHorizontal=
"1
8
dp"
android:paddingHorizontal=
"1
0
dp"
android:paddingVertical=
"5dp"
android:textSize=
"17sp"
android:textStyle=
"bold"
tools:text=
"Latest"
/>
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