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
5c3305f7
Commit
5c3305f7
authored
Jun 24, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[拆包]...
parent
82ba4c2f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
2 deletions
+72
-2
HomeFragment.kt
app/src/main/java/com/base/appzxhy/ui/main/HomeFragment.kt
+37
-1
fragment_home1.xml
app/src/main/res/layout/fragment_home1.xml
+32
-1
colors.xml
app/src/main/res/values/colors.xml
+1
-0
dimens.xml
app/src/main/res/values/dimens.xml
+2
-0
No files found.
app/src/main/java/com/base/appzxhy/ui/main/HomeFragment.kt
View file @
5c3305f7
...
...
@@ -3,13 +3,17 @@ package com.base.appzxhy.ui.main
import
android.annotation.SuppressLint
import
android.app.ActivityManager
import
android.view.View
import
androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior.setTag
import
androidx.core.content.ContextCompat
import
androidx.core.content.ContextCompat.getSystemService
import
androidx.core.graphics.Insets
import
androidx.core.graphics.toColorInt
import
androidx.core.view.ViewCompat
import
androidx.core.view.WindowInsetsCompat
import
androidx.lifecycle.lifecycleScope
import
androidx.recyclerview.widget.GridLayoutManager
import
com.airbnb.lottie.LottieDrawable
import
com.applovin.impl.sb
import
com.base.appzxhy.R
import
com.base.appzxhy.base.BaseFragment
import
com.base.appzxhy.base.jumpAction
...
...
@@ -120,6 +124,7 @@ class HomeFragment : BaseFragment<FragmentHome1Binding>(FragmentHome1Binding::in
binding
.
rv
.
adapter
=
adapter
adapter
.
submitList
(
featureList
)
}
override
fun
initListener
()
{
...
...
@@ -155,7 +160,38 @@ class HomeFragment : BaseFragment<FragmentHome1Binding>(FragmentHome1Binding::in
}
}
// Wave(/*Context context, */int offsetX, int offsetY, int velocity, float scaleX, float scaleY, int wave) {
// super(context);
// this.wave = wave; //波幅(波宽)
// this.scaleX = scaleX; //水平拉伸量
// this.scaleY = scaleY; //竖直拉伸量
// this.offsetX = offsetX; //水平偏移量
// this.offsetY = offsetY; //竖直偏移量
// this.velocity = velocity; //移动速度(像素/秒)
// this.path = new Path();
// }
// "70,25,1.4,1.4,-26\n" +
// "100,5,1.4,1.2,15\n" +
// "420,0,1.15,1,-10\n" +
// "520,10,1.7,1.5,20\n" +
// "220,0,1,1,-15"
binding
.
WaveHeader1
.
setStartColor
(
R
.
color
.
colorPrimary
)
binding
.
WaveHeader1
.
setCloseColorId
(
R
.
color
.
colorPrimary
)
binding
.
WaveHeader1
.
setWaves
(
"70,25,1.4,1.4,-26"
)
binding
.
WaveHeader1
.
colorAlpha
=
0.5f
binding
.
WaveHeader1
.
visibility
=
View
.
GONE
binding
.
WaveHeader2
.
setStartColor
(
R
.
color
.
color_aacbec
)
binding
.
WaveHeader2
.
setCloseColorId
(
R
.
color
.
color_aacbec
)
binding
.
WaveHeader2
.
setWaves
(
"220,0,1,1,-15"
)
binding
.
WaveHeader2
.
colorAlpha
=
0.8f
binding
.
WaveHeader2
.
visibility
=
View
.
GONE
binding
.
WaveHeader3
.
colorAlpha
=
1f
binding
.
WaveHeader3
.
setWaves
(
"25,5,1.15,1.2,25"
)
binding
.
WaveHeader3
.
velocity
=
2f
binding
.
WaveHeader3
.
visibility
=
View
.
VISIBLE
}
...
...
app/src/main/res/layout/fragment_home1.xml
View file @
5c3305f7
...
...
@@ -10,7 +10,7 @@
android:id=
"@+id/iv"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_450"
android:background=
"#
46B7D6
"
android:background=
"#
82FF60
"
app:layout_constraintTop_toTopOf=
"parent"
/>
...
...
@@ -132,6 +132,7 @@
android:id=
"@+id/tvSize"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp__25"
android:text=
"@string/scanning"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_16"
...
...
@@ -164,8 +165,38 @@
android:background=
"@color/white"
android:overScrollMode=
"never"
android:paddingHorizontal=
"@dimen/dp_8"
android:paddingTop=
"@dimen/dp_20"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/tvClean"
/>
<FrameLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintTop_toTopOf=
"@id/rv"
>
<com.scwang.wave.MultiWaveHeader
android:id=
"@+id/WaveHeader1"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_60"
android:visibility=
"gone"
/>
<com.scwang.wave.MultiWaveHeader
android:id=
"@+id/WaveHeader2"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_60"
android:visibility=
"gone"
/>
<com.scwang.wave.MultiWaveHeader
android:id=
"@+id/WaveHeader3"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_60"
android:visibility=
"visible"
app:mwhCloseColor=
"@color/colorPrimary"
app:mwhColorAlpha=
"1"
app:mwhStartColor=
"@color/colorPrimary"
/>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
5c3305f7
...
...
@@ -25,5 +25,6 @@
<color
name=
"color_f5fff9"
>
#F5FFF9
</color>
<color
name=
"color_f7feff"
>
#F7FEFF
</color>
<color
name=
"color_fff7fe"
>
#FFF7FE
</color>
<color
name=
"color_aacbec"
>
#AACBEC
</color>
</resources>
\ No newline at end of file
app/src/main/res/values/dimens.xml
View file @
5c3305f7
...
...
@@ -67,4 +67,6 @@
<dimen
name=
"dp_72"
>
72dp
</dimen>
<dimen
name=
"sp_45"
>
45sp
</dimen>
<dimen
name=
"dp_3"
>
3dp
</dimen>
<dimen
name=
"dp__50"
>
-50dp
</dimen>
<dimen
name=
"dp__25"
>
-25dp
</dimen>
</resources>
\ No newline at end of file
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