"YOU AND THE ART OF ONLINE DATING" is the only product on the market that will take you step-by-step through the process of online dating, provide you with the resources to help ensure success. Get it now!
Here you are: TextView tv = (TextView) getActivity(). FindViewById(R.id. Textview_example); tv.
SetOnClickListener( new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub //YOUR CODE HERE } }); tv. SetOnTouchListener( new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub //YOUR CODE HERE return false; } } ); 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.
Kudos on advising him about touches also firing clicks! I'd vote up twice if I could. :) – Fuzzical Logic Jan 9 at 10:44 I've not tested but I'm saying this using the login and reading the description of that listener.
Updating the answer with more datail – StErMi Jan 9 at 10:54 Your answer was perfectly fine. I was simply saying congratulations and was glad to see it. :) – Fuzzical Logic Jan 9 at 10:56 Remember to accept correct answers :) – StErMi Jan 9 at 11:05 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 don't know....I need your suggestion ..thank you – user774041 yesterday.
In addition to the above answer, I would like to add that onTouchlistener will be activated onKeyDown() initially and will keep on firing whenever view is touched and onClickListener will be fired onKeyUp().
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 don't know....I need your suggestion ..thank you – – user774041 yesterday.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.