StepViewAndroid icon indicating copy to clipboard operation
StepViewAndroid copied to clipboard

Can't set an ID in XML

Open jibbo opened this issue 6 years ago • 0 comments

Hi, I noticed that if I use the StatusView like this (without the Scroller, basically):

<params.com.statusView.StatusViewScroller
            android:id="@+id/myid"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

At runtime that ID doesn't exist because the following line:

https://github.com/params-ing/StepViewAndroid/blob/722ccb391100881ea32e695edc33aa3025176a5e/stepview/src/main/java/params/com/stepview/StatusView.kt#L420

Overwrites it.

I think that line could simply be removed but probably you know best. If you don't have time to fix it, please let me know how you would like it to be fixed and I'll open a PR for you.

Thanks a lot.

jibbo avatar Nov 12 '19 10:11 jibbo