did u set cachecolorhint to #00000 when u scroll if a black screen will appear, if u don't set as above. My guess is drawn and its masked by the black background of listview when it scrolls.
can u put some logs to see if ur method is actually called . On Fri, Mar 19, 2010 at 4:47 AM, sunabozu <tro...@gmail.com> wrote: > Hi. > > I wrote a custom view for ListView rows. It works fine, but when I > scroll it, all views in the list disappears. > This this how I draw my view: > > @Override > protected void onDraw(Canvas canvas) { > //poster > if(poster != null) > canvas.drawBitmap(poster, padding, padding, paint); > > //title > canvas.drawText(title, 55 + padding, 16 + padding, paint); > } > > Any suggestions, how to fix this? > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe from this group, send email to android-developers+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.