Skip to content

Commit d8af84a

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 2ff6cf0 + 757864e commit d8af84a

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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)
22
# Circular Menu
33

44
## Prerequisites
@@ -22,12 +22,13 @@ Add this to your module's `build.gradle` file (make sure the version matches the
2222
```gradle
2323
dependencies {
2424
...
25-
implementation 'com.calmperson.lib.circularmenu:CircularMenu:0.0.9'
25+
implementation 'com.calmperson.lib.circularmenu:CircularMenu:0.1.9'
2626
}
2727
```
2828

2929
## 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+
3132

3233
## Quick Start
3334

@@ -52,18 +53,13 @@ Include the following in your layout xml-file:
5253
android:id="@+id/circle_menu"
5354
android:layout_width="wrap_content"
5455
android:layout_height="wrap_content"
55-
android:clickable="true"
56-
android:focusable="true"
5756
app:circleMenu_colors="@array/colors"
5857
app:circleMenu_icons="@array/icons"/>
5958
```
6059

6160
Alternatively, use one of the two constructors in Kotlin:
6261
```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)
6763
```
6864

6965
Or programmatically set icons and colors using::
@@ -72,10 +68,7 @@ CircularMenu(
7268
context = this,
7369
icons = intArrayOf(R.drawable.circle_heat, R.drawable.cloud_bolt, R.drawable.cloud_up_arrow),
7470
colors = intArrayOf(R.color.teal_200, R.color.teal_700, R.color.purple_500),
75-
).apply {
76-
isClickable = true
77-
isFocusable = true
78-
}
71+
)
7972
```
8073

8174
You can specify any number of colors or none at all, but there are nuances:

0 commit comments

Comments
 (0)