1

Wrong background color ListView row in adapter

view story
linux-howto

http://stackoverflow.com – I'm trying to get a different color for every other row If I scroll too fast then I might get 3 white rows in a row (no pun intended lol) public class TestAdapter extends ArrayAdapter<Enlevement> { private final Activity context; private boolean shouldCreateGreyBackground = false; static class ViewHolder { public TextView text; public LinearLayout layout; } public TestAdapter(Activity context ) { super(context, 0); this.context = context; } @Override public View getView(int position, View convertView, Vi (HowTos)