Skip to content

Commit c34be4c

Browse files
committed
add README
1 parent 9304365 commit c34be4c

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# AndroidArcMenu
2+
3+
An easy-to-use arc Menu library for Android.
4+
5+
![Demo][demo_gif]
6+
7+
# Sample
8+
9+
[![Get it on Google Play][googleplay_store_badge]][demo_app]
10+
11+
or
12+
13+
[demo.apk](demo_apk)
14+
15+
#Including in Your Project
16+
17+
```groovy
18+
repositories {
19+
jcenter()
20+
}
21+
```
22+
23+
```groovy
24+
compile 'com.hackplan:AndroidArcMenu:1.0.0'
25+
```
26+
27+
# Usage
28+
## Basic
29+
```java
30+
arcMenu = new ArcMenu.Builder(activity)
31+
.setId(ARC_MENU_ID_1)
32+
.addBtn(R.drawable.a, id1)
33+
.addBtn(R.drawable.b, id2)
34+
.setListener(listener)
35+
.showOnTouch(btn2)
36+
.hideOnTouchUp(false)
37+
.build();
38+
```
39+
40+
## More things
41+
42+
![Desc][png_1]
43+
44+
```java
45+
arcMenu = new ArcMenu.Builder(activity)
46+
.addBtns(new ArcButton.Builder(menuBtn, 2),
47+
new ArcButton.Builder(new SimpleCirView(this)
48+
.setText("2")
49+
.setCirColor(Color.parseColor("#03A9F4"))
50+
.setTextColor(Color.WHITE)
51+
.setTextSizeInSp(22)
52+
.setBackgroundRadiusInPx(22),
53+
3))
54+
.setListener(MainActivity.this)
55+
.showOnLongClick(btn1)
56+
.setDegree(160)
57+
.setRadius(222)
58+
.build();
59+
60+
arcMenu.showOn(view); //Show Manually
61+
```
62+
63+
# LICENSE
64+
65+
```
66+
Copyright (C) 2016 Ding Wenhao
67+
68+
Licensed under the Apache License, Version 2.0 (the "License");
69+
you may not use this file except in compliance with the License.
70+
You may obtain a copy of the License at
71+
72+
http://www.apache.org/licenses/LICENSE-2.0
73+
74+
Unless required by applicable law or agreed to in writing, software
75+
distributed under the License is distributed on an "AS IS" BASIS,
76+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77+
See the License for the specific language governing permissions and
78+
limitations under the License.
79+
```
80+
81+
[demo_gif]: https://github.com/HackPlan/AndroidArcMenu/raw/master/art/demo.gif
82+
[png_1]: https://github.com/HackPlan/AndroidArcMenu/raw/master/art/1.png
83+
[demo_app]: https://play.google.com/store/apps/details?id=com.hackplan.androidarcmenu.demo
84+
[googleplay_store_badge]: http://www.android.com/images/brand/get_it_on_play_logo_large.png
85+
[demo_apk]:https://github.com/HackPlan/AndroidArcMenu/raw/master/library/demo.apk

0 commit comments

Comments
 (0)