Skip to content

Commit 082eee2

Browse files
committed
Add a stroke on the demo project
1 parent bf03a50 commit 082eee2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/kotlin/com/skydoves/balloondemo/factory/ProfileBalloonFactory.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
package com.skydoves.balloondemo.factory
1818

1919
import android.content.Context
20+
import androidx.compose.ui.graphics.Color
21+
import androidx.compose.ui.graphics.toArgb
2022
import androidx.lifecycle.LifecycleOwner
2123
import com.skydoves.balloon.ArrowOrientation
2224
import com.skydoves.balloon.ArrowPositionRules
@@ -40,6 +42,7 @@ class ProfileBalloonFactory : Balloon.Factory() {
4042
setArrowPosition(0.5f)
4143
setCornerRadius(6f)
4244
setElevation(6)
45+
setBalloonStroke(color = Color.White.toArgb(), thickness = 6f)
4346
setBackgroundDrawableResource(R.drawable.background_gradient)
4447
setArrowColorMatchBalloon(true)
4548
setBalloonAnimation(BalloonAnimation.CIRCULAR)

0 commit comments

Comments
 (0)