One option is to override/implement the onTouchEvent() of your SpeechView class and handle the swipe within the SpeechView instance itself. You can then examine the properties of the SpeechView instance to know which row was swiped public class SpeechView extends LinearLayout { @Override public boolean onTouchEvent(MotionEvent ev) { // 1) process any specific SpeecView instance variables. // 2) pass event to a gestureDetector.
Return true; } } Additionally, you can pass a GestureDetector into your SpeechListAdapter and feed the to the SpeechView class when it is originally created. Then you can pass the MotionEvents into it In either case, be sure to intercept the touch event by returning true public boolean onTouchEvent(MotionEvent me) { m_gestureDetector. OnTouchEvent(me); return true; }.
One option is to override/implement the onTouchEvent() of your SpeechView class and handle the swipe within the SpeechView instance itself. You can then examine the properties of the SpeechView instance to know which row was swiped. Public class SpeechView extends LinearLayout { @Override public boolean onTouchEvent(MotionEvent ev) { // 1) process any specific SpeecView instance variables.
// 2) pass event to a gestureDetector. Return true; } } Additionally, you can pass a GestureDetector into your SpeechListAdapter and feed the to the SpeechView class when it is originally created. Then you can pass the MotionEvents into it.In either case, be sure to intercept the touch event by returning true.
Public boolean onTouchEvent(MotionEvent me) { m_gestureDetector. OnTouchEvent(me); return true; }.
You just happen to be lucky that findViewById(1)) is actually defined. You shouldn't call findViweById in your gesture detector. I'm surprised that doesn't crash.
Instead, you get the view back in your onGestureListener. Use it there.
You just happen to be lucky that findViewById(1)) is actually defined. You shouldn't call findViweById in your gesture detector. I'm surprised that doesn't crash.
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.