Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stewForAni/CircleProgressMenu
A simple circle menu with progress effect.
https://github.com/stewForAni/CircleProgressMenu
circle-menu
Last synced: about 1 month ago
JSON representation
A simple circle menu with progress effect.
- Host: GitHub
- URL: https://github.com/stewForAni/CircleProgressMenu
- Owner: stewForAni
- Created: 2017-01-17T01:26:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-19T14:20:32.000Z (almost 8 years ago)
- Last Synced: 2024-08-03T01:25:29.662Z (4 months ago)
- Topics: circle-menu
- Language: Java
- Homepage:
- Size: 5.93 MB
- Stars: 151
- Watchers: 5
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - CircleProgressMenu - 带有进度效果的简单环形菜单 (菜单(Menu))
README
### CircleProgressMenu
##### Intro:
It's a simple circle menu with **progress** effect. It's used for some projects that need to be done step by step.The default color of the circles around is dark grey, The color of a certain circle will turn green when you are doing tasks involved in it and then blue when you complete them.Of course ,you can change these three status colors as you like at xml.Just copy my code if you need such a menu, which is quite easy to understand. Any suggestion, please send to:[email protected]. Thank you! (welcome star and fork :) )
##### show:
You can see it live downloading [**this apk**](https://github.com/stewForAni/CircleProgressMenu/raw/master/app-debug.apk)
##### how to use:
```java
//amount of the circles around
private int aroundCircleCount = 7;//the currrent progress num(=grey,doing->green,complete->blue
//three status and color set by yourself
private int[] circleCompleteStatusList = {"","","","","","",""};
``````java
final CircleLayout circleLayout = (CircleLayout) findViewById(R.id.circle_layout);circleLayout.setView(aroundCircleTitleEn,
aroundCircleTitleCn,
circleIcon,
aroundCircleCount,
circleCompleteStatusList);circleLayout.setProgressNum(currentProgressNum);
circleLayout.initView();
circleLayout.startAnim(360f * currentProgressNum / 7);
circleLayout.setOnClickListener(new CircleLayout.circleClickListener() {
@Override
public void click(int tag) {
//the tag of circle which you click
}
});
``````xml
```