Drag and Drop Layout in android 2.2

Is it possible to add a layout in a gestureOverlay view and Drag Drop it in a desired position in android. I am able to add a layout but not able to drag and drop it..I want to know is it possible to do this in version 2.2?

  • Generate barcode image in Android application
  • Android SQLite and huge data sets
  • How to verify purchase for android app in server side (google play in app billing v3)
  • Android canvas draw line - make the line thicker
  • Android - Best way to implement LocationListener across multiple activities
  • Accessing attrs in AttributeSet for custom components
  • Related posts:

    Android Service needs to run always (Never pause or stop)
    How to make an FM Radio Application in Android
    What's the reason of “FimgApiStretch:stretch failed” in Android
    How can I add an image on EditText
    how to change focus color of EditText in Android
    Android Store a Parcelable Object in SQLite
  • Android YouTubePlayer with unauthorized overlay on top of player
  • ObjectAnimator onAnimationEnd listener is called before the animation finishes
  • Query to get records based on Radius in SQLite?
  • How do I know if a MotionEvent is relative or absolute?
  • Samsung Galaxy S6 Emulator in Android studio
  • Setting ID for Spinner items
  • 3 Solutions collect form web for “Drag and Drop Layout in android 2.2”

    thanks for the help… myself found a solution for this problem… i couldn’t implement a drag on this layout, But i adjust in such a way that the layout will come into the position where i touch on the screen… thanks….

    private void RunAnimations(MotionEvent event) {
            lastX = event.getX();
            lastY = event.getY();
            Animation b = new TranslateAnimation(Animation.ABSOLUTE,lastX,Animation.ABSOLUTE,event.getX(),Animation.ABSOLUTE,lastY-57,Animation.ABSOLUTE,event.getY()-57);             

    Check out this library: android-dragarea

    We implemented a simulare behavior but we derived from ViewGroup and made most of the code by ourself. We also had to use android.support.v4.view to make it work for 2.2

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.