MCPcopy Index your code
hub / github.com/ZihYangLin/YPWaveView

github.com/ZihYangLin/YPWaveView @1.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.4 ↗ · + Follow
61 symbols 114 edges 5 files 19 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

YPWaveViewGet it on Google Play

A wave-like progressbar on Android which has four shapes, circle, square, heart and star.

Sample

Attributes

Name Format Value
max Integer Defines the maximum value.
progress Integer Defines the default progress value, between 0 and max.
frontColor color Defines the color of the front wave.
behideColor color Defines the color of the behide wave.
borderColor color Defines the color of the border.
textColor color Defines the color of the percent text.
borderWidthSize Dimension Defines the width of the border.
strong Integer Defines the strong of the wave crest, between 0 and 100.
animatorEnable boolean Control the start of the animation.
shapeType enum Set the shape of the YPWaveView. (circle, square and heart)
textHidden boolean Set whether the percent text is hidden
shapePadding Dimension Defines the value of the shape padding.

Methods

Name Return Definition
startAnimation() void Start the animation.
stopAnimation() void Stop the animation.
setWaveVector(float offset) void Set the vector of the wave, between 0 and 100.
setWaveOffset(int offset) void Set the offset of the front and behide waves, between 0 and 100.
setShape(Shape shape) void Set the shape of the YPWaveView.(YPWaveView.Shape)
setHideText(boolean hidden) void Set whether the percent text is hidden
setStarSpikes(int count) void Set the count of spikes.
setBorderWidth(float width) void Set the width of the border.
setShapePadding(float padding) void Set the value of the shape padding.
setWaveStrong(int strong) void Set the strong of the wave crest, between 0 and 100.

XML

 <com.yangp.ypwaveview.YPWaveView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:animatorEnable="false"
        app:textHidden="false"
        app:shapeType="heart"
        app:frontColor="#1f3bed"
        app:behideColor="#4e99e6"
        app:borderColor="#ff0000"
        app:borderWidthSize="4dp"
        app:textColor="#15DF89"
        app:max="1000"
        app:progress="765"
        app:strong="100"
        app:shapePadding="30dp"/>

Download

<dependency>
  <groupId>com.yangpingapps</groupId>
  <artifactId>ypwaveview</artifactId>
  <version>1.0.4</version>
  <type>aar</type>
</dependency>

or Gradle ( mavenCentral ):

implementation 'com.yangpingapps:ypwaveview:1.0.4'

License

Copyright 2018 zih-yang lin

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Extension points exported contracts — how you extend this code

OnColorClickedListener (Interface)
(no doc)
app/src/main/java/com/yangp/sample/MainActivity.kt
OnWaveStuffListener (Interface)
(no doc)
ypwaveview/src/main/java/com/yangp/ypwaveview/OnWaveStuffListener.java

Core symbols most depended-on inside this repo

createShader
called by 11
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
resetShapes
called by 5
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
setShape
called by 4
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
startAnimation
called by 2
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
setBorderWidth
called by 2
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
setAnimationSpeed
called by 2
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
setWaveVector
called by 2
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java
setWaveOffset
called by 2
ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java

Shape

Method 51
Class 7
Interface 2
Enum 1

Languages

Java67%
Kotlin33%

Modules by API surface

ypwaveview/src/main/java/com/yangp/ypwaveview/YPWaveView.java39 symbols
app/src/main/java/com/yangp/sample/MainActivity.kt16 symbols
ypwaveview/src/main/java/com/yangp/ypwaveview/OnWaveStuffListener.java2 symbols
app/src/test/java/com/yangp/sample/ExampleUnitTest.kt2 symbols
app/src/androidTest/java/com/yangp/sample/ExampleInstrumentedTest.kt2 symbols

For agents

$ claude mcp add YPWaveView \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact