0

I am new at android programming. I just want to learn how to drag and drop any component to anywhere. I found some articles and forum QAs but could not find the answer i need.

Iwould like to free alingment which is not relative or linear. just drag n drop anywere and no sibling item will be effected from another. Is it possible?

Murat Calim
  • 580
  • 1
  • 6
  • 11

1 Answers1

0

You could use the AbsoluteLayout, however that class is deprecated due to scaling issues. There also exists the FrameLayout class however generally that is only for a single child.

Please visit this thread, as it asks the same question and you may find the answers suiting.

AbsoluteLayout: http://developer.android.com/reference/android/widget/AbsoluteLayout.html FrameLayout: http://developer.android.com/reference/android/widget/FrameLayout.html

Duplicate Thread: Set the absolute position of a view

Community
  • 1
  • 1
Montycarlo
  • 735
  • 3
  • 16