On Mon, Aug 23, 2010 at 13:56, Abhi <[email protected]> wrote:

> Hi Kostya
>
> Ok. Let me explain further. I am changing button state by doing
> button.setEnabled(true or false) but, the state that the button is
> currently in, won't show up on the screen unless I touch the screen.
> That is where I mentioned about button's focus.
>
> So, even though the button is getting disabled through my program by
> calling button.setEnabled(false), on the screen, I still see the
> button as active and only when I touch the screen, the button is seen
> to be in the inactive state (disabled state with grey color).
>
> I hope that solves your confusion?
>

Try to invalidate the button: button.invalidate();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to