Skip to content

Commit a5d3394

Browse files
committed
Update README for adding a custom stroke
1 parent 12e32f4 commit a5d3394

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
## Who's using Balloon?
2727
**👉 [Check out who's using Balloon](/usecases.md)**
2828

29-
Balloon hits **+500,000 downloads every month** around the globe! :balloon:
29+
Balloon hits **+800,000 downloads every month** around the globe! :balloon:
3030

3131
![globe](https://user-images.githubusercontent.com/24237865/196018576-a9c87534-81a2-4618-8519-0024b67964bf.png)
3232

@@ -539,6 +539,22 @@ button.setOnClickListener {
539539
}
540540
```
541541

542+
<img alt="Image" src="https://github.com/user-attachments/assets/c188b987-7fb1-4877-ae8e-2ba486e9cea1" align="right" width="310px" />
543+
544+
### Stroke
545+
546+
You can apply a custom stroke to the balloon container and its arrow using the code below:
547+
548+
```kotlin
549+
val balloon = Balloon.Builder(context)
550+
..
551+
.setBalloonStroke(
552+
color = Color.White.toArgb(),
553+
thickness = 4f,
554+
)
555+
.build()
556+
```
557+
542558
### Persistence
543559
If you want to show up the Balloon only once or a specific number of times, you can implement it as the following example:<br>
544560

0 commit comments

Comments
 (0)