Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_flowbox
Commits
ec3c08dd
Commit
ec3c08dd
authored
Jul 23, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI 样式优化
parent
74dc5d6e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
48 deletions
+47
-48
BoostFastActivity.kt
...mints/flowbox/ui/activitys/keepalive/BoostFastActivity.kt
+21
-22
activity_apk.xml
app/src/main/res/layout/activity_apk.xml
+1
-1
activity_boost_fast.xml
app/src/main/res/layout/activity_boost_fast.xml
+24
-24
activity_timing.xml
app/src/main/res/layout/activity_timing.xml
+1
-1
ic_close_app_out.png
app/src/main/res/mipmap-xhdpi/ic_close_app_out.png
+0
-0
No files found.
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/BoostFastActivity.kt
View file @
ec3c08dd
...
...
@@ -14,7 +14,6 @@ import com.mints.flowbox.ad.express.ExpressManager
import
com.mints.flowbox.ad.wifi.AppOutWifiAdManager
import
com.mints.flowbox.ui.activitys.base.BaseActivity
import
kotlinx.android.synthetic.main.activity_boost_fast.*
import
kotlinx.android.synthetic.main.activity_boost_fast.container
import
kotlinx.android.synthetic.main.activity_boost_fast.fl_ad
import
kotlinx.android.synthetic.main.activity_boost_fast.iv_close
import
kotlinx.android.synthetic.main.activity_screen.*
...
...
@@ -56,17 +55,17 @@ class BoostFastActivity : BaseActivity() {
}
private
fun
startAnim
()
{
val
colorAnim
=
ObjectAnimator
.
ofInt
(
container
,
"backgroundColor"
,
RED
.
toInt
(),
BLUE
.
toInt
(),
CYAN
.
toInt
(),
GREEN
.
toInt
()
)
colorAnim
.
duration
=
3000
colorAnim
.
setEvaluator
(
ArgbEvaluator
())
colorAnim
.
repeatMode
=
ValueAnimator
.
REVERSE
//
val colorAnim = ObjectAnimator.ofInt(
//
container,
//
"backgroundColor",
//
RED.toInt(),
//
BLUE.toInt(),
//
CYAN.toInt(),
//
GREEN.toInt()
//
)
//
colorAnim.duration = 3000
//
colorAnim.setEvaluator(ArgbEvaluator())
//
colorAnim.repeatMode = ValueAnimator.REVERSE
when
(
mType
)
{
TransparentActivity
.
TIMING_TYPE_BOOST
->
ccav_speed
.
setCenterImageView
(
R
.
mipmap
.
ic_app_out_timing_boost
)
...
...
@@ -78,7 +77,7 @@ class BoostFastActivity : BaseActivity() {
}
ccav_speed
.
startAnimation
()
colorAnim
.
start
()
//
colorAnim.start()
Handler
(
Looper
.
getMainLooper
()).
postDelayed
(
{
...
...
@@ -89,15 +88,15 @@ class BoostFastActivity : BaseActivity() {
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
updateUi
()
},
3000
)
colorAnim
.
addListener
(
object
:
Animator
.
AnimatorListener
{
override
fun
onAnimationStart
(
animation
:
Animator
?)
{}
override
fun
onAnimationEnd
(
animation
:
Animator
?)
{
}
override
fun
onAnimationCancel
(
animation
:
Animator
?)
{}
override
fun
onAnimationRepeat
(
animation
:
Animator
?)
{}
})
//
colorAnim.addListener(object : Animator.AnimatorListener {
//
override fun onAnimationStart(animation: Animator?) {}
//
//
override fun onAnimationEnd(animation: Animator?) {
//
}
//
//
override fun onAnimationCancel(animation: Animator?) {}
//
override fun onAnimationRepeat(animation: Animator?) {}
//
})
}
private
fun
updateUi
()
{
...
...
app/src/main/res/layout/activity_apk.xml
View file @
ec3c08dd
...
...
@@ -43,7 +43,7 @@
android:layout_alignParentEnd=
"true"
android:layout_gravity=
"end|center_vertical"
android:layout_marginEnd=
"10dp"
android:src=
"@mipmap/ic_close"
android:src=
"@mipmap/ic_close
_app_out
"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
app/src/main/res/layout/activity_boost_fast.xml
View file @
ec3c08dd
...
...
@@ -12,19 +12,6 @@
android:orientation=
"vertical"
android:visibility=
"gone"
>
<TextView
android:layout_width=
"78dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"top"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"30dp"
android:drawablePadding=
"4dp"
android:gravity=
"center_vertical"
android:text=
"@string/appName"
android:textColor=
"@color/color_40000000"
android:textSize=
"12sp"
app:drawableStartCompat=
"@drawable/ic_launcher_app_out"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"100dp"
...
...
@@ -35,12 +22,12 @@
<ImageView
android:id=
"@+id/iv_close"
android:layout_width=
"2
0
dp"
android:layout_height=
"2
0
dp"
android:layout_width=
"2
2
dp"
android:layout_height=
"2
2
dp"
android:layout_alignParentEnd=
"true"
android:layout_marginTop=
"10dp"
android:layout_marginEnd=
"10dp"
android:src=
"@mipmap/ic_close"
/>
android:src=
"@mipmap/ic_close
_app_out
"
/>
<TextView
android:id=
"@+id/tvContent"
...
...
@@ -63,6 +50,19 @@
</RelativeLayout>
<TextView
android:layout_width=
"78dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"top"
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"10dp"
android:drawablePadding=
"4dp"
android:gravity=
"center_vertical"
android:text=
"@string/appName"
android:textColor=
"@color/color_40000000"
android:textSize=
"12sp"
app:drawableStartCompat=
"@drawable/ic_launcher_app_out"
/>
<com.mints.flowbox.ui.widgets.RoundRectLayout
android:id=
"@+id/fl_ad"
android:layout_width=
"wrap_content"
...
...
@@ -74,14 +74,14 @@
</androidx.appcompat.widget.LinearLayoutCompat>
<View
android:id=
"@+id/container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginStart=
"50dp"
android:layout_marginTop=
"150dp"
android:layout_marginEnd=
"50dp"
android:layout_marginBottom=
"150dp"
/
>
<!-- <View-->
<!-- android:id="@+id/container"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_marginStart="50dp"-->
<!-- android:layout_marginTop="200dp"-->
<!-- android:layout_marginEnd="50dp"-->
<!-- android:layout_marginBottom="200dp" />--
>
<com.mints.flowbox.ui.widgets.CircleCleanAnimationView
android:id=
"@+id/ccav_speed"
...
...
app/src/main/res/layout/activity_timing.xml
View file @
ec3c08dd
...
...
@@ -42,7 +42,7 @@
android:layout_alignParentEnd=
"true"
android:layout_gravity=
"end|center_vertical"
android:layout_marginEnd=
"10dp"
android:src=
"@mipmap/ic_
activity_qui
t"
android:src=
"@mipmap/ic_
close_app_ou
t"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
app/src/main/res/mipmap-xhdpi/ic_close_app_out.png
0 → 100644
View file @
ec3c08dd
527 Bytes
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