Skip to content

Commit 223dad4

Browse files
committed
feat: add stroke_alpha attribute
1 parent 6d41cca commit 223dad4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/src/main/java/com/sonsation/library/ShadowLayout.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ class ShadowLayout : FrameLayout {
113113
R.styleable.ShadowLayout_stroke_type,
114114
StrokeType.INSIDE.type
115115
)
116-
} ?: StrokeType.INSIDE
116+
} ?: StrokeType.INSIDE,
117+
strokeAlpha = a.getInteger(R.styleable.ShadowLayout_stroke_alpha, 100)
117118
).apply {
118119
this.blurType = BlurMaskFilter.Blur.entries.find {
119120
it.ordinal == a.getInteger(

library/src/main/res/values/attrs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<enum name="INNER" value="3"/>
2323
</attr>
2424

25+
<attr name="stroke_alpha" format="integer" />
2526
<attr name="stroke_width" format="dimension" />
2627
<attr name="stroke_color" format="color" />
2728
<attr name="stroke_gradient_start_color" format="color"/>

0 commit comments

Comments
 (0)