Skip to content

Commit 6c49e82

Browse files
authored
Update README.md
1 parent 223dad4 commit 6c49e82

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ app:shadow_array="{10,0,4,10,#c8c8c8}, {10,0,4,10,#000000}"
178178
app:stroke_width="4dp"
179179
app:stroke_type="INSIDE"
180180
app:stroke_blur="10dp"
181-
app:stroke_blur_type="INNER">
181+
app:stroke_blur_type="INNER"
182+
app:stroke_alpha="100">
182183

183184
<androidx.appcompat.widget.AppCompatTextView
184185
android:layout_width="wrap_content"
@@ -192,13 +193,14 @@ app:shadow_array="{10,0,4,10,#c8c8c8}, {10,0,4,10,#000000}"
192193

193194
## Attributes
194195

195-
| Attribute | Description |
196-
|----------------------|--------------------------------------------------------------------------------------------------|
197-
| `app:stroke_color` | The color of the stroke. Supports any valid color value, such as HEX codes. Example: `#c8c8c8`. |
198-
| `app:stroke_width` | The width of the stroke in density-independent pixels (dp). Example: `4dp`. |
199-
| `app:stroke_type` | Defines where the stroke is drawn relative to the view boundary. Options: `INSIDE`, `CENTER`, `OUTSIDE`. Default: `CENTER`. |
200-
| `app:stroke_blur` | The blur radius applied to the stroke. Example: `10dp`. |
201-
| `app:stroke_blur_type` | Type of blur applied to the stroke. Options: `INNER`, `OUTER`, `SOLID`. Default: `INNER`. |
196+
| Attribute | Description |
197+
|------------------------|--------------------------------------------------------------------------------------------------------------|
198+
| `app:stroke_color` | The color of the stroke. Supports any valid color value, such as HEX codes. Example: `#c8c8c8`. |
199+
| `app:stroke_width` | The width of the stroke in density-independent pixels (dp). Example: `4dp`. |
200+
| `app:stroke_type` | Defines where the stroke is drawn relative to the view boundary. Options: `INSIDE`, `CENTER`, `OUTSIDE`. Default: `CENTER`. |
201+
| `app:stroke_blur` | The blur radius applied to the stroke. Example: `10dp`. |
202+
| `app:stroke_blur_type` | Type of blur applied to the stroke. Options: `INNER`, `OUTER`, `SOLID`. Default: `INNER`. |
203+
| `app:stroke_alpha` | The transparency level of the stroke, ranging from `0` (completely transparent) to `100` (fully opaque). Default: `100`. |
202204

203205
### Stroke Type
204206
- **INSIDE**: The stroke is drawn inside the view boundary, reducing the available space for the content.
@@ -227,6 +229,9 @@ app:shadow_array="{10,0,4,10,#c8c8c8}, {10,0,4,10,#000000}"
227229
- **`updateStrokeBlurType(blurType: BlurMaskFilter.Blur)`**
228230
Defines the type of blur effect for the stroke.
229231

232+
- **`updateStrokeAlpha(alpha: Int)`**
233+
Sets the transparency level of the stroke. Accepts a value between `0` (fully transparent) and `100` (fully opaque).
234+
230235
---
231236

232237
## 4. Gradient Customization

0 commit comments

Comments
 (0)