[android-developers] Re: invalidate() -> repaint?

2013-01-09 Thread Nobu Games
You should do it the official Android way and define a so-called state list drawable resource. No need for playing around with touch listeners and invalidate. On Wednesday, January 9, 2013 10:40:52 AM UTC-6,

[android-developers] Re: Invalidate and a card flip

2010-01-15 Thread Gregg Reno
Thanks for the reply Beth. I'll take a look at the ImageSwitcher. Since posting this, I found a workaround that seems to work. Basically I do the face up flip, and then send a message to the activity. The message handler does the face down flip like this. Here is some of the code: private O

[android-developers] Re: Invalidate and a card flip

2010-01-13 Thread Beth
Since you have exactly two images, face down and face up, you might try out an ImageSwitcher object. Toggle the image with show next and skip the validation business. On Jan 13, 7:00 am, Gregg Reno wrote: > I am working on a card game, and using a custom ImageView for the > cards.  I have an OnC

[android-developers] Re: Invalidate()?...

2009-12-04 Thread UD
Yes.. invalidate() will call onDraw() internally. -- Regards, Udayan Warnekar Android Application Developer On Dec 3, 4:12 pm, "Sasikumar.S" wrote: > Hi, > > Thanks for reply... > > It will refresh onDraw()? > > On Thu, Dec 3, 2009 at 4:28 PM, sathya subbiah > wrote: > > > > > > > Invalidat

[android-developers] Re: invalidate thumbnails in a GridView

2009-10-02 Thread RobGThai
Could you please tell me how to get it to work? I'm hitting the same problem here. Tried everything you posted as well. The difference would be that I do not use thread. I have an private String[] inside the Activity class and pass it into my custom adapter. The value inside the String[] will be

[android-developers] Re: invalidate thumbnails in a GridView

2009-09-01 Thread sdphil
nevermind, i'm a tard - works exactly as expected. On Sep 1, 4:24 pm, sdphil wrote: > hm...  even tried adapter.notifyDataSetChanged() as well - same > result! > > On Sep 1, 4:09 pm, sdphil wrote: > > > i have a gridview with a bunch of thumbnails in it.  when it first > > gets draw, I put in a

[android-developers] Re: invalidate thumbnails in a GridView

2009-09-01 Thread sdphil
hm... even tried adapter.notifyDataSetChanged() as well - same result! On Sep 1, 4:09 pm, sdphil wrote: > i have a gridview with a bunch of thumbnails in it.  when it first > gets draw, I put in a default icon. > > in a separate thread, i retrieve a bunch of images. > > when all those images ar