Doesn't the API have a method something like "getDrawable( int
state )"

You could return a custom subclass of Drawable or Bitmap

On Sep 5, 8:17 am, markh23 <mr.markhop...@gmail.com> wrote:
> Hey Necholas,
>
> How would I be able to use the super-imposed transparent images in
> code?  I've thought about that, but I wasn't able to figure it out.
>
> Thanks.
>
> On Sep 2, 10:08 pm, Nicholas Albion <nalb...@gmail.com> wrote:
>
> > Can you use transparent images, super-imposed to refactor your 5000
> > images to (for example) 5 + 10 + 10 + 10 = 35 rather than 5 * 10 * 10
> > * 10 = 5000?
>
> > On Sep 3, 11:48 am, markh23 <mr.markhop...@gmail.com> wrote:
>
> > > Thanks for the help guys.  I appreciate the time you took, Dianne, to
> > > write out that response.
>
> > > And Zod, I just wanted to make a (large) counter for the status bar.
> > > Nothing fancy.
>
> > > Sorry about the delay.
>
> > > On Aug 27, 3:58 pm, Zod <zsolt.ba...@gmail.com> wrote:
>
> > > > Hi mark23,
>
> > > > I'm just curious. What do you want to do which requires sooo
> > > > incredible amount of icon states ?
>
> > > > I completely aggree with Dianne about the "totally unreasonable thing
> > > > to do" part.
> > > > Wasting memory in a desktop application is a bad thing, however nobody
> > > > may notice a leak of a few tens of megabytes ram. However ram is a
> > > > pretty precious resource in an embedded environment like a mobile
> > > > phone, and it should not be wasted carelessly.
>
> > > > Bye,
> > > >    Zsolt
>
> > > > On Aug 27, 6:15 am, markh23 <mr.markhop...@gmail.com> wrote:
>
> > > > > Hello,
>
> > > > > I have a notification icon in the status bar with thousands (5000+) of
> > > > > states, and each state has a different corresponding icon.  Right now
> > > > > I'm using a <level-list> xml file to switch between all these
> > > > > different images.
>
> > > > > It seems to be working right now (it takes a little longer to install/
> > > > > uninstall from the emulator however), but does someone see any
> > > > > problems with this that I'm not catching?  Is it possible to havetoo
> > > > >manyitems in the res/drawable folder?  Will there be a huge
> > > > > performance hit by having an icon with somanystates?
>
> > > > > Thanks.
>
> > > > > --Mark
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to