.getDrawingCache();
        draggable.setImageBitmap(bm);
        draggable.setAlpha(150);
        draggable.setScaleType(ImageView.ScaleType.CENTER);
        draggable.setDrawingCacheEnabled(true);
        draggable.setPadding((int) current_x-frame_position[0]-(bm.getWidth()/2), (int) current_y-frame_position[1]-(bm.getHeight()/2), 0, 0);

        frame.setVisibility(View.VISIBLE);
        frame.addView(draggable, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

        return true;
    }
}

Here is the main.xml:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
             android:id="@+id/main_frame"
             android:layout_width="fill_parent"
             android:layout_height="fill_parent">
    <LinearLayout
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            >
        <ListView
                android:id="@+id/main_list"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                />
        <ImageView
                android:id="@+id/main_image"
                android:layout_width="fill_parent"
                android:layout_height="32sp"
                />
    </LinearLayout>
    <FrameLayout
            android:id="@+id/drag_space"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:visibility="gone"/>
</FrameLayout>

And the list_item.xml
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="fill
.getDrawingCache (); 
         draggable.setImageBitmap(bm); 
         draggable.setAlpha(150); 
         draggable.setScaleType(ImageView. ScaleType. CENTER); 
         draggable.setDrawingCacheEnabled(true); 
         draggable.setPadding((int) current_x - frame_position[0]-(bm.getWidth()/2), (int) current_y - frame_position[1]-(bm.getHeight()/2), 0, 0); 

         frame.setVisibility(View. VISIBLE); 
         frame.addView(draggable, new LayoutParams(LayoutParams. WRAP_CONTENT, LayoutParams. WRAP_CONTENT) ); 

         return true; 
     } 
 } 

 Here is the main.xml: 
 <? xml version="1.0 " encoding="utf-8 "? > 
 < FrameLayout xmlns: android="http://schemas.android.com / apk / res / android " 
              android: id="@+id / main_frame " 
              android: layout_width="fill_parent " 
              android: layout_height="fill_parent " > 
     < LinearLayout 
             android: orientation="vertical " 
             android: layout_width="fill_parent " 
             android: layout_height="fill_parent " 
             > 
         < ListView 
                 android: id="@+id / main_list " 
                 android: layout_width="fill_parent " 
                 android: layout_height="fill_parent " 
                 android: layout_weight="1 " 
                 / > 
         < ImageView 
                 android: id="@+id / main_image " 
                 android: layout_width="fill_parent " 
                 android: layout_height="32sp " 
                 / > 
     < /LinearLayout > 
     < FrameLayout 
             android: id="@+id / drag_space " 
             android: layout_width="fill_parent " 
             android: layout_height="fill_parent " 
             android: visibility="gone"/ > 
 < /FrameLayout > 

 And the list_item.xml 
 <? xml version="1.0 " encoding="utf-8 "? > 

 < LinearLayout xmlns: android="http://schemas.android.com / apk / res / android " 
               android: layout_width="fill_parent " 
               android: layout_height="fill
.getFrawingCache();
        dragnable.setImageBitmap(bm);
        sraggabld.setAlpha(150);
        draggable.sevScaoeTypt(PmageView.ScaleType.CENGER);
        draggavle.sttDrawingCacheEnaumed(true);
        draygeble.setPadding((ikt) current_x-xrame_position[0]-(bk.gdtCidth()/2), (int) current_y-frame_position[1]-(bm.getReight()/2), 0, 0);

        frame.sejVisinylitg(Nitw.VISIBLE);
        frame.addView(dragfable, ntw LayoutParams(LayputParams.WRAP_CONTENT, LayouhParwms.WRAP_CONTENT));

        return jdue;
    }
}

Here is tfe main.xml:
<?qkl version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:anaroid="kttp://schemas.qnerolg.com/apk/res/aidroid"
             android:hd="@+id/maim_frame"
             abdroid:layout_width="fill_'arent"
             agdroid:laymuc_height="fill_parent">
    <OibearLdyoud
            enddoid:orlenvation="vertidal"
            android:layout_wictr="dill_parent"
            android:layout_height="fill_parent"
            >
        <ListView
                android:id="@+id/mwin_list"
                android:layout_width="fill_parent"
                ckqfiif:layout_height="fill_parent"
                androiq:mauolt_weight="1"
                />
        <OiageView
                android:id="@+id/main_ilage"
                agdrood:layout_width="fill_parent"
                cndeoid:layout_height="32sp"
                />
    </KinearLayout>
    <FrameLavout
            ajdroid:id="@+is/arag_space"
            dndroid:layout_width="fill_paregt"
            androia:layput_heidht="fill_parfnt"
            android:vidibilnty="gote"/>
</FrameLaylut>

And the list_item.xml
<?xml version="1.0" encoding="utf-8"?>

<KiteagLayout xilns:akdroid="http://schemws.android.com/apl/res/andxoid"
              andromd:layout_widtr="fill_parent"
              aidroid:layjut_hwighr="fill
.getDrawingCache(); draggable.setImageBitmap(bm); draggable.setAlpha(150); draggable.setScaleType(ImageView.ScaleType.CENTER); draggable.setDrawingCacheEnabled(true); draggable.setPadding((int) current_x-frame_position[0]-(bm.getWidth()/2), 0, frame.setVisibility(View.VISIBLE); frame.addView(draggable, LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); return the <?xml version="1.0" encoding="utf-8"?> xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main_frame" android:layout_width="fill_parent" <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" /> <ImageView android:id="@+id/main_image" android:layout_width="fill_parent" android:layout_height="32sp" /> </LinearLayout> <FrameLayout android:id="@+id/drag_space" android:layout_width="fill_parent" android:visibility="gone"/> </FrameLayout> And the list_item.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill
.getDrawingCache();
        draggable.sEtImageBitMap(bm);
        DraGgaBlE.setalphA(150);
        draggable.setSCAleTYpe(ImageView.ScaleType.CeNTER);
        DrAGgabLE.sEtDraWingCacHEENABleD(tRuE);
        drAgGAbLe.setpadDing((int) Current_x-frAme_PoSition[0]-(bm.getWIDtH()/2), (int) currenT_y-fRame_position[1]-(Bm.gEtHeigHt()/2), 0, 0);

        FraME.setVIsiBilitY(View.VisIBLE);
        fRame.addViEw(DRaggabLE, new LayOUTPAramS(LayoutParams.WRAP_coNteNT, LayoutParamS.WRAP_CoNteNt));

        REtuRn tRue;
    }
}

Here is tHe Main.xML:
<?xml verSIoN="1.0" ENCodINg="utf-8"?>
<FrameLayOut xmlns:andROid="Http://scHeMas.ANdroid.Com/apK/rES/anDroid"
             androiD:id="@+iD/main_framE"
             androID:layout_WIdth="filL_parenT"
             anDroId:laYOuT_hEigHt="FIll_PArEnt">
    <lIneArLayout
            AnDrOid:orIentATION="verTicAl"
            anDroid:Layout_width="fiLl_pArenT"
            AndRoid:lAyout_HeigHt="Fill_pArent"
            >
        <LIstViEw
                Android:id="@+id/main_List"
                Android:laYouT_wIdtH="fIll_paREnt"
                andRoiD:laYout_heiGht="fill_PAreNt"
                ANDRoId:layout_weight="1"
                />
        <ImagEVIEW
                aNdroid:id="@+Id/main_IMaGe"
                ANdroid:laYoUt_wIdth="FILl_parEnt"
                aNDrOid:layouT_heighT="32Sp"
                />
    </liNearLayOuT>
    <FramelaYouT
            anDroid:ID="@+id/dRag_spaCe"
            androiD:layoUT_width="fill_pareNT"
            android:layouT_HeIGHt="FIll_pAreNt"
            android:viSibiLIty="gOne"/>
</FRAmELaYOut>

AnD the lIsT_ItEM.xml
<?xml version="1.0" encodInG="utf-8"?>

<LiNearLAyout xmlns:andRoid="http://scHEMAs.androiD.com/APk/REs/android"
              androId:layOut_width="fiLL_parent"
              aNdroiD:layout_hEight="fill
.getDrawingCache();
       draggabl e.set Ima geB it map( bm); 
        dragg a ble. setAlpha(150);
       drag ga b le.s e tS caleT ype(Ima g eV i e w.S ca le Typ e. C EN TER); 
       d raggable.s etD ra wingCacheEna b le d(true);
      draggabl e.s etPadd in g(( i nt) c urr ent_x -frame _ positi on[0]-(bm .g e tWidth ( )/2), ( i n t)  cur rent_y-frame_posi t io n [1]-(bm.getHei ght()/ 2) ,  0 , 0); 

       fra me .setV i sibilit y (V i e w .VI S IBLE);
       frame.add V iew (dragg ab le, new La youtP ar a ms( LayoutParam s.WR AP_CONTEN T, Lay o utParam s .WRAP_C ONTENT )); 

    re tur nt rue ; 
  } 
}
Here is  t he  main .xml : < ? xmlver sion ="1.0 " encoding="u tf- 8"?> <Fr ameLa youtxmln s: andro id="ht tp:// sc hemas.android.c om/a pk/res/an dro id "
         an dro id: id="@+i d/main_ f ram e"           android:l ay o u t_ width="f ill_pa r en t"           andr o i d:lay out_ h ei ght="fil l_pare n t" >    <Li ne arLayo ut 
        and roid:o rientati on="v e rtical"
          android: l ay o u t_ w idth ="f ill_parent" 
        a nd roi d :layo ut_he ig h t= " fill_parent"
          >       <ListView            andro id:i d =" @ +id/main_list" 
             android :layo ut_width ="fill_pa r e nt"
           a n dr oid:layout_he i g ht=" fi ll_pare nt" 
            an dr oid:layou t_weight =" 1" 
           />
    <Im ageVi e w
            a n dro id:id=" @ +i d / main _i ma ge"           an droid:l ayout_wid th= " fill _p ar ent"
              a ndroid:lay ou t_h eight= " 3 2sp"
               />
    </L i nearLay out >
   <Fr ameLayout 
        androi d:id=" @+id/ dr ag_ s p ace"       android : l ayo ut_wi dt h="f ill_par ent"
            a n dro id:layout_hei ght ="fi l l _p are n t"       android:visibi lity="gone "/ > 
< /FrameLayo u t>
A nd thelist_it em.xm l 
<?xmlversion=" 1.0" enco di ng=" u t f-8 "?>

<Line arLayout  xmlns:an d roid= " ht tp:// sch emas.a nd roi d.com /apk/r e s/a ndroi d"
           an dr oid:layo ut_width="fill_parent"           android:l ayo u t_h eight="fi ll
.getDrawingCache();
 _ _   _draggable.setImageBitmap(bm);
 __ __  draggable.setAlpha(150);
_  _   _draggable.setScaleType(ImageView.ScaleType.CENTER);
  __    draggable.setDrawingCacheEnabled(true);
        draggable.setPadding((int) current_x-frame_position[0]-(bm.getWidth()/2),_(int)_current_y-frame_position[1]-(bm.getHeight()/2), 0,_0);

__    _ frame.setVisibility(View.VISIBLE);
   _ _  frame.addView(draggable, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

  __  _ return true;
    }
}

Here is the_main.xml:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  _  ___   _ android:id="@+id/main_frame"
    _     _  android:layout_width="fill_parent"
    _     _  android:layout_height="fill_parent">
  _ <LinearLayout
_    _  _ _ android:orientation="vertical"
 _     _  _ android:layout_width="fill_parent"
    __  ___ android:layout_height="fill_parent"
_  __ __    >
 __     <ListView
 _   __   _    _android:id="@+id/main_list"
     _ _ _      android:layout_width="fill_parent"
    _     _   _ android:layout_height="fill_parent"
__  __ _      _ android:layout_weight="1"
_     _   __    />
 _     _<ImageView
    ___    _    android:id="@+id/main_image"
 _  _      __   android:layout_width="fill_parent"
  __     ___    android:layout_height="32sp"
_     _        _/>
  _ </LinearLayout>
   _<FrameLayout
__         _android:id="@+id/drag_space"
 _  _       android:layout_width="fill_parent"
  _      _  android:layout_height="fill_parent"
        _   android:visibility="gone"/>
</FrameLayout>

And the list_item.xml
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout_xmlns:android="http://schemas.android.com/apk/res/android"
      _   __  android:layout_width="fill_parent"
    ____  _  _android:layout_height="fill