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

Sample project get list item repeated when change list data #18

Open
trungdq88 opened this issue Oct 8, 2014 · 0 comments
Open

Sample project get list item repeated when change list data #18

trungdq88 opened this issue Oct 8, 2014 · 0 comments

Comments

@trungdq88
Copy link

I just downloaded and run the sample project AndroidHorizontalListViewSample, then I think I found a bug:

Here is the original code for data of the list view:

private CustomData[] mCustomData = new CustomData[] {
        new CustomData(Color.RED, "Red"),
        new CustomData(Color.DKGRAY, "Dark Gray"),
        new CustomData(Color.GREEN, "Green"),
        new CustomData(Color.LTGRAY, "Light Gray")
        ...
};

Then if I change the background color to all the same like this:

private CustomData[] mCustomData = new CustomData[] {
        new CustomData(Color.RED, "1Red"),
        new CustomData(Color.RED, "2Dark Gray"),
        new CustomData(Color.RED, "3Green"),
        new CustomData(Color.RED, "4Light Gray")
        ... (same for the rest)
};

(I added numbers in the color name to easily identify the repeat)

Run the project again and you will see all the item will be messed up.

Could you guy please check?
Thanks

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