Skip to content

Can't set an ID in XML #9

Description

@jibbo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions