I am currently making an Android app for a ship of the line ship. I made model classes for my ships as a viewing group with several text fields in this viewing group (4 for a battleship, 2 for a submarine, etc.)
My field consists of a TableLayout with several (10x10) text images with a water background.
Now I am trying to implement a drag and drop when this view group can be deleted in several text views, currently only the text box on which my mouse is located contains the view group (or at least it has the same background as the group viewing that I throw)
Is there a way to drop my view group or something else where I can insert multiple text views or other types of views into multiple views in my field.
update: my fields now refer to relativelayouts, so my ship actually overlaps with them, and not in the background, but if I put my ship, which is 4 times the size of one of the fields on my board, it just puts it in one field and moves the remaining fields 3 places to the right (so let the view of my ship be 40 pixels and my field 10 pixels, the first 10 pixels of my ship are locked on relativelayout (or the field) and the other 30px of my ship move the field apart, so between the column where I put my ship and where the next column is, there is a 30px-black space)
EDIT: I'm currently developing at level 14 of Android if that helps anyway
source
share