hi..
i read this and i have a doubt is i am enabling
public ImageButton.OnClickListener clistener =
new ImageButton.OnClickListener()
{
public void onClick(View aView)
{
switch( mCustomID )
{
case 1:
CloseWindow();
break;
}
}
};
like this then will it work for both click and touch???i mean this
code will work for touch screen and joystic in real device??
if i enabling
ontouch then also will it work???
thanks in advance
by bins..
On Oct 29, 8:27 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> A click is a pair of down/up events performed either with the keyboard
> (dpad center key or enter) or with the touch screen. A touch event is
> simply anything that happens when the user touches the screen: touch
> up/down, move, etc.
>
> So a click can == touch down + touch up.
>
> On Wed, Oct 29, 2008 at 1:53 AM, GadIs <[EMAIL PROTECTED]> wrote:
>
> > What is the difference between OnClickListener and OnTouchListener?
> > Aren't Click and Touch the same?
>
> > From Andromeda
>
> --
> Romain Guywww.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---