Hi
I have some problem in Touch Event
In my screen I am using one Scrollview. Inside this ScrollView i have
taken one Absoulte Layout and in this Layout i am dragging the
component. the Problem is i am not able to drag component below the
Physical screen. component is not moving below the physical screen. i
dont understand wt is the problem.
My code is for Touch Event
row.setOnTouchListener(new OnTouchListener(){
@Override
public boolean onTouch(View view, MotionEvent
event) {
int eventaction = event.getAction();
int y = (int) event.getRawY();
int rowNo =
Integer.parseInt(indexid1.getText().toString());
int catId =
Integer.parseInt(RowID.getText().toString());
switch (eventaction) {
case
MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_MOVE:
// Moving the Item
view.bringToFront();
AbsoluteLayout.LayoutParams R =
new
AbsoluteLayout.LayoutParams
(
AbsoluteLayout.LayoutParams.FILL_PARENT,
AbsoluteLayout.LayoutParams.WRAP_CONTENT,0,y-110);
view.setLayoutParams(R);
break;
case MotionEvent.ACTION_UP:
// Setting the Changed
row position
break;
default :
break;
so plz someone try to help me.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---