mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
add comment about failed attempt to deliniate list items by having
their backgrounds alternate slightly.
This commit is contained in:
parent
0184369e5d
commit
0f764664d4
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue