1
- [ ![ ] ( https://jitpack.io/v/ICalmPersonI/AndroidCircularMenu .svg )] ( https://jitpack.io/#ICalmPersonI/AndroidCircularMenu )
1
+ [ ![ ] ( https://jitpack.io/v/ICalmPersonI/Android-CircularMenu .svg )] ( https://jitpack.io/#ICalmPersonI/Android-CircularMenu )
2
2
# Circular Menu
3
3
4
4
## Prerequisites
@@ -22,12 +22,13 @@ Add this to your module's `build.gradle` file (make sure the version matches the
22
22
``` gradle
23
23
dependencies {
24
24
...
25
- implementation 'com.calmperson.lib.circularmenu:CircularMenu:0.0 .9'
25
+ implementation 'com.calmperson.lib.circularmenu:CircularMenu:0.1 .9'
26
26
}
27
27
```
28
28
29
29
## Demo
30
- <img src =" https://github-production-user-asset-6210df.s3.amazonaws.com/87424785/293511227-2e29c1cd-4baa-4e6d-a979-5b88c21addc7.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231231%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231231T144804Z&X-Amz-Expires=300&X-Amz-Signature=a017db590991e1cf6215a6a9fd86296172f6d64fc7fdc2f0d696e6aad5f16c14&X-Amz-SignedHeaders=host&actor_id=87424785&key_id=0&repo_id=732457308 " alt =" 1 " width =" 280 " height =" 420 " >
30
+ <img src =" https://github-production-user-asset-6210df.s3.amazonaws.com/87424785/293511227-2e29c1cd-4baa-4e6d-a979-5b88c21addc7.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231231%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231231T144804Z&X-Amz-Expires=300&X-Amz-Signature=a017db590991e1cf6215a6a9fd86296172f6d64fc7fdc2f0d696e6aad5f16c14&X-Amz-SignedHeaders=host&actor_id=87424785&key_id=0&repo_id=732457308 " alt =" 1 " width =" 280 " height =" 450 " ><img src =" https://github.com/ICalmPersonI/Android-CircularMenu/assets/87424785/47f87efa-1f00-4c9a-9b95-4921d05fc00f " alt =" 1 " width =" 280 " height =" 450 " >
31
+
31
32
32
33
## Quick Start
33
34
@@ -52,18 +53,13 @@ Include the following in your layout xml-file:
52
53
android : id =" @+id/circle_menu"
53
54
android : layout_width =" wrap_content"
54
55
android : layout_height =" wrap_content"
55
- android : clickable =" true"
56
- android : focusable =" true"
57
56
app : circleMenu_colors =" @array/colors"
58
57
app : circleMenu_icons =" @array/icons" />
59
58
```
60
59
61
60
Alternatively, use one of the two constructors in Kotlin:
62
61
``` kotlin
63
- CircularMenu (context = this , icons = R .array.icons, colors = R .array.colors).apply {
64
- isClickable = true
65
- isFocusable = true
66
- }
62
+ CircularMenu (context = this , icons = R .array.icons, colors = R .array.colors)
67
63
```
68
64
69
65
Or programmatically set icons and colors using::
@@ -72,10 +68,7 @@ CircularMenu(
72
68
context = this ,
73
69
icons = intArrayOf(R .drawable.circle_heat, R .drawable.cloud_bolt, R .drawable.cloud_up_arrow),
74
70
colors = intArrayOf(R .color.teal_200, R .color.teal_700, R .color.purple_500),
75
- ).apply {
76
- isClickable = true
77
- isFocusable = true
78
- }
71
+ )
79
72
```
80
73
81
74
You can specify any number of colors or none at all, but there are nuances:
0 commit comments