Android Question Dragging views

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All

In reference to the examples in this thread. [PTD3.zip]

I have an App that has 4 panels each with multiple views. It also has views not on panels. I need to drag each panel by 1 of the views on that panel.
Originally I thought I needed to write a sub for each of the views that dragged the corresponding panel but the view_touch sub in the example [PTD3.zip] shows otherwise.

My question is how to best identify which view is touched and action appropriately?

Thanks in advance.
Regards Roger
 

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All,

I am still trying to drag panels without success. I have attached a simplified example of the App. The example has two panels with respective daughter views, the views cover the panels therefore dragging the panels is by touching/dragging on a daughter view.

So far the App/Example recognises the "Down" action but not the "Move" or "UP" actions.

Any help would be most welcome.

Regards Roger
 

Attachments

  • DemoDrag.zip
    6.8 KB · Views: 158
Upvote 0

Roger Daley

Well-Known Member
Licensed User
Longtime User
Looked at the DraggableView example. Trying to understand it I loaded it, zip attached.
Obviously I am missing a library or libraries but could not find them.
I think I am missing more than libraries.

Regards Roger
 

Attachments

  • DraggableView.zip
    6.3 KB · Views: 158
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
you need reflection lib. AND the class-module!!!
Looks like you added the class-code to an activity!?
 
Upvote 0
Top