add comment about failed attempt to deliniate list items by having

their backgrounds alternate slightly.
This commit is contained in:
Andy2 2011-02-10 06:11:54 -08:00
parent 0184369e5d
commit 0f764664d4

View file

@ -104,6 +104,18 @@ public class GameListAdapter extends XWListAdapter {
View.VISIBLE : View.GONE ); View.VISIBLE : View.GONE );
m_viewsCache.put( path, layout ); m_viewsCache.put( path, layout );
} }
// this doesn't work. Rather, it breaks highlighting because
// the background, if we don't set it, is a more complicated
// object like @android:drawable/list_selector_background. I
// tried calling getBackground(), expecting to get a Drawable
// I could then clone and modify, but null comes back. So
// layout must be inheriting its background from elsewhere or
// it gets set later, during layout.
// if ( (position%2) == 0 ) {
// layout.setBackgroundColor( 0xFF3F3F3F );
// }
return layout; return layout;
} // getItem } // getItem