Skip to content

Commit d2f20a3

Browse files
committed
dev: child view id fix
1 parent 22c7d09 commit d2f20a3

File tree

4 files changed

+76
-3
lines changed

4 files changed

+76
-3
lines changed

.idea/assetWizardSettings.xml

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An android library written in kotlin to display steps (without any max-min limit
44
## Usage
55
Here is a basic example of a StepView
66

7-
![alt oops](https://github.com/params-ing/StepViewAndroid/blob/dev/screenshots/basic_stepview.png)
7+
![alt Downloading..](https://github.com/params-ing/StepViewAndroid/blob/dev/screenshots/basic_stepview.png)
88

99
```
1010
<params.com.statusView.StatusViewScroller
@@ -19,5 +19,31 @@ Here is a basic example of a StepView
1919
app:drawCount="true"
2020
android:entries="@array/statuses" />
2121
```
22-
23-
22+
![alt Downloading..](https://github.com/params-ing/StepViewAndroid/blob/dev/screenshots/colors_stepview.png)
23+
24+
```
25+
<params.com.statusView.StatusViewScroller
26+
android:id="@+id/statusView"
27+
android:layout_width="wrap_content"
28+
android:layout_height="wrap_content"
29+
app:circleColorType="fillStroke"
30+
app:lineGap="5dp"
31+
app:statusCount="5"
32+
app:currentCount="4"
33+
app:drawCount="true"
34+
android:entries="@array/statuses"
35+
app:lineWidth="3dp"
36+
app:lineColorIncomplete="#B4B7BA"
37+
app:lineColor="@android:color/black"
38+
app:lineColorCurrent="#91A8D0"
39+
app:circleColor="#CC004B8D"
40+
app:circleColorIncomplete="#BCBCBE"
41+
app:circleColorCurrent="#004B8D"
42+
app:textColorLabels="@android:color/white"
43+
app:textColorLabelsCurrent="@android:color/white"
44+
app:textColorLabelsIncomplete="@android:color/black"
45+
app:circleStrokeWidth="4dp"
46+
app:circleStrokeColorCurrent="#91A8D0"
47+
app:complete_drawable="@drawable/ic_done_black_24dp" />
48+
```
49+
You can set colors

app/src/main/java/params/com/statusView/StatusView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ class StatusView @JvmOverloads constructor(
413413

414414
init {
415415

416+
id = ViewCompat.generateViewId()//as the same attrs are being passed this view would have the same id as scroller.
416417

417418
val a = context.theme.obtainStyledAttributes(attrs, R.styleable.StatusViewScroller, 0, 0)
418419

screenshots/colors_stepview.png

31.8 KB
Loading

0 commit comments

Comments
 (0)