Can we give both onTouchListener event and onClickListener on a single text view...if yes can I have sample code for it.. Thanks Ali
Yes thank you friends..it works!!! But there is a small issue I am using OnClick for for moving text up and dowm and OnCreateContextMenuListener for showing menu list...Problem here is if I am using OnCreateContextMenuListener for textview1 then onclick is not performing on the Textview1...Why I dont know....I need your suggestion ..thank you –
In addition to the above answer, i would like to add that
onTouchlistener
will be activatedonKeyDown()
initially and will keep on firing whenever view is touchedand
onClickListener
will be firedonKeyUp()
Here you are:
You have to remember that maybe a TouchEvent will be also fired when you receive a ClickEvent.
UPDATE:
I think that everything will be much more clear if you take a look at the Input Events documentation.