Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set an ID in XML #9

Open
jibbo opened this issue Nov 12, 2019 · 0 comments
Open

Can't set an ID in XML #9

jibbo opened this issue Nov 12, 2019 · 0 comments

Comments

@jibbo
Copy link

jibbo commented Nov 12, 2019

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:

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant