hey guys I have problem dragging textView. see the codes.
the code is not working, is there any way I that I can make it work?
Code:
ball = (TextView) findViewById(R.id.textView1);
OnTouchListener onThumbTouch = new OnTouchListener()
{
@Override
public boolean onTouch(View v, MotionEvent event) {
switch(event.getAction())
{
case MotionEvent.ACTION_DOWN:
{
touchOffsetX = event.getX();
touchOffsetY = event.getY();
}
case MotionEvent.ACTION_UP:
{
}
break;
}
return true;
}
};
ball.setOnTouchListener(onThumbTouch);
the code is not working, is there any way I that I can make it work?