Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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

```