If I declared a class static and it's content static would this mean that the contents of the class are no longer static?
Here's what happened, I used a ViewHolder in a Custom Adapter in Android.
When my code was like this:
static class ViewHolder {
static TextView blah;
//more widgets
}
The ListView had repetitive data and the rows were shuffled on scroll.
However, when I did this, no duplicates were created. Basically there was just ONE instance of each list item created and the items didn't shuffle on scroll.
static class ViewHolder {
public TextView blah;
//more widgets
}
Now, I know that public
is the default access specifer and did not have to do anything with the change. Does a double static cancel each other out? Is it like a double negative is a positive?