Skip to content

Commit 91a0878

Browse files
committed
Update README
1 parent c172783 commit 91a0878

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://www.linkedin.com/feed/update/urn:li:activity:6881990083344519168/"><img alt="LinkedIn" src="https://skydoves.github.io/badges/linkedin-developers.svg"/></a><br>
1111
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"/></a>
1212
<a href="https://android-arsenal.com/api?level=21"><img alt="API" src="https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat"/></a>
13-
<a href="https://github.com/skydoves/Balloon/actions"><img alt="Build Status" src="https://github.com/skydoves/Balloon/workflows/Android%20CI/badge.svg"/></a>
13+
<a href="https://github.com/skydoves/Balloon/actions"><img alt="Build Status" src="https://github.com/skydoves/Balloon/workflows/Android%20CI/badge.svg"/></a>
1414
<a href="https://medium.com/swlh/a-lightweight-tooltip-popup-for-android-ef9484a992d7"><img alt="Medium" src="https://skydoves.github.io/badges/Story-Medium.svg"/></a>
1515
<a href="https://github.com/skydoves"><img alt="Profile" src="https://skydoves.github.io/badges/skydoves.svg"/></a>
1616
<a href="https://skydoves.github.io/libraries/balloon/html/balloon/com.skydoves.balloon/index.html"><img alt="Dokka" src="https://skydoves.github.io/badges/dokka-balloon.svg"/></a>
@@ -43,11 +43,11 @@ Add the dependency below to your **module**'s `build.gradle` file:
4343

4444
```kotlin
4545
dependencies {
46-
implementation("com.github.skydoves:balloon:1.6.4")
46+
implementation("com.github.skydoves:balloon:1.6.5")
4747
}
4848
```
4949

50-
## SNAPSHOT
50+
## SNAPSHOT
5151
[![Balloon](https://img.shields.io/static/v1?label=snapshot&message=balloon&logo=apache%20maven&color=C71A36)](https://oss.sonatype.org/content/repositories/snapshots/com/github/skydoves/balloon/) <br>
5252

5353
<details>
@@ -131,7 +131,7 @@ You can create an instance of the Balloon with Java by using the `Balloon.Builde
131131
<details>
132132
<summary>Keep reading for more details</summary>
133133

134-
You can create an instance of the Balloon as the following example below:
134+
You can create an instance of the Balloon as the following example below:
135135
```java
136136
Balloon balloon = new Balloon.Builder(context)
137137
.setArrowSize(10)
@@ -225,7 +225,7 @@ lifecycleScope.launch {
225225
awaitBalloons {
226226
// dismissing of any balloon dismisses all of them. Default behaviour
227227
dismissSequentially = false
228-
228+
229229
textView.alignTop(balloonAlignTop)
230230
textView.alignStart(balloonAlignStart)
231231
textView.alignEnd(balloonAlignEnd)
@@ -317,7 +317,7 @@ We can decide the position of the arrow depending on the aligning rules with the
317317
We can decide the orientation of the arrow depending on the aligning rules with the `ArrowOrientationRules`.<br>
318318
```kotlin
319319
// Align depending on the position of an anchor.
320-
// For example, `arrowOrientation` is ArrowOrientation.TOP and
320+
// For example, `arrowOrientation` is ArrowOrientation.TOP and
321321
// we want to show up the balloon under an anchor using the `Balloon.showAlignBottom`.
322322
// However, if there is not enough free space to place the tooltip at the bottom of the anchor,
323323
// tooltips will be placed top of the anchor and the orientation of the arrow will be `ArrowOrientation.BOTTOM`.
@@ -416,7 +416,7 @@ We can customize the icon on the balloon.
416416

417417
### IconForm
418418
`IconForm` has some attributes for `ImageView` to customize the icon of the Balloon. You can create the `IconForm` instance and reuse it on multiple Balloons.
419-
419+
420420
```kotlin
421421
val iconForm = IconForm.Builder(context)
422422
.setDrawable(ContextCompat.getDrawable(context, R.drawable.arrow))
@@ -427,8 +427,8 @@ val iconForm = IconForm.Builder(context)
427427

428428
val balloon = Balloon.Builder(context)
429429
.setIconForm(iconForm)
430-
...
431-
```
430+
...
431+
```
432432

433433
<details>
434434
<summary>Create IconForm with Kotlin DSL</summary>
@@ -490,7 +490,7 @@ balloon.setOnBalloonClickListener(new OnBalloonClickListener() {
490490
// doSomething;
491491
}
492492
});
493-
493+
494494
balloon.setOnBalloonDismissListener(new OnBalloonDismissListener() {
495495
@Override
496496
public void onBalloonDismiss() {
@@ -539,7 +539,7 @@ val balloon = Balloon.Builder(context)
539539
That's all. If you need to get Views or need some interactions, you can get your custom layout with the `getContentView()` method from your instance of the Balloon.
540540

541541
```kotlin
542-
val button: Button =
542+
val button: Button =
543543
balloon.getContentView().findViewById(R.id.button_edit)
544544
button.setOnClickListener {
545545
Toast.makeText(context, "Edit", Toast.LENGTH_SHORT).show()
@@ -626,7 +626,7 @@ We can show up an overlay over the whole screen except an anchor view.
626626
```kotlin
627627
balloon.setIsVisibleOverlay(true) // sets the visibility of the overlay for highlighting an anchor.
628628
balloon.setOverlayColorResource(R.color.overlay) // background color of the overlay using a color resource.
629-
balloon.setOverlayPadding(6f) // sets a padding value of the overlay shape internally.
629+
balloon.setOverlayPadding(6f) // sets a padding value of the overlay shape internally.
630630
balloon.setOverlayPaddingColorResource(R.color.colorPrimary) // sets color of the overlay padding using a color resource.
631631
balloon.setBalloonOverlayAnimation(BalloonOverlayAnimation.FADE) // default is fade.
632632
balloon.setDismissWhenOverlayClicked(false) // disable dismissing the balloon when the overlay is clicked.

0 commit comments

Comments
 (0)