[android-developers] Listview of programmatically created Drawables
I have a pretty intricate custom Drawable for military map symbols.
These are stroked and labeled programmatically. The Symbol class
provides a few enums that control appearance. So the API looks
something like:
// Symbol inherits class Drawable
Symbol.Affiliation a = ...;
Symbol.Size s = ... ;
Symbol.Type = t = ...
Symbol.Modifier [] m = new Symbol.Modifier[] { ... };
Symbol s = new Symbol(a, s, t, m);
s.draw(canvas);
I need to create a set of menus that allow a user to build up a symbol
by selecting symbol components from a menu. ListView seems to be the
way to go, but I can't grok how to make other-than-bitmaps appear in
ListView items. No Canvas is in sight.
Any help appreciated.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home