 superview, I add lets say 10 subviews.  Whatever subview my finger is touching drags around.  I made an app for iOS http://www.facebook.com/MakeASnowman (hits the app store any day) and am trying to build it for Android.  But there is no easy way to do things that are so simple in iOS (two finger rotate, drag around views, etc).  This is what I want:  I have a custom view that draws an image to its canvas.  I then instantiate one or more of those custom views onto a "superview".  I can drag/manipulate those views (meaning im not translating the drawables within those views, but the actual views themselves).
Here is my code that has the right manipulations, except it performs them of the drawable within the view:
package com.spentaklabs.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;

public class MAView extends View
{
Drawable image;
private String imgName;
private float mPosX;
private float mPosY;

private float mLastTouchX;
private float mLastTouchY;

private static final int INVALID_POINTER_ID = -1;
private int mActivePointerId = INVALID_POINTER_ID;

private ScaleGestureDetector mScaleDetector;

private float mScaleFactor = 1.f;

public MAView(Context context)
{
    super(context);
}

public MAView(Context context,String imgName)
{
    this(context);
    this.imgName = imgName;
    image = context.getResources().getDrawable(R.drawable.hatshairears0);
    image.setBounds(0, 0, image.getIntrinsicWidth(), image.getIntrinsicHeight());
    mScaleDetector = new ScaleGestureDetector(context, new ScaleListener());
}

public MAView(Context context, AttributeSet attrs, int defStyle)
{
    super(context,attrs
superview, I add lets say 10 subviews.   Whatever subview my finger is touching drag approximately.   I made an app for iOS http://www.facebook.com/MakeASnowman (hits the app memory any day) and am trying to construct it for Android.   But there is no easy manner to do things that are indeed simple in iOS (two finger rotate, puff around views, etc).   This is what I want:   I have a custom view that draws an persona to its canvas.   I then instantiate one or more of those custom views onto a " superview ".   I can scuff / manipulate those views (meaning i m not translating the drawables within those position, but the actual views themselves). 
 Here is my code that has the right manipulations, except it performs them of the drawable within the opinion: 
 package com.spentaklabs.view; 

 import android.content. Context; 
 import android.graphics. Canvas; 
 import android.graphics.drawable. Drawable; 
 consequence android.util. AttributeSet; 
 import android.view. MotionEvent; 
 import android.view. ScaleGestureDetector; 
 import android.view. View; 

 public class MAView extends View 
 { 
 Drawable image; 
 private String imgName; 
 private float mPosX; 
 individual float mPosY; 

 private air bladder mLastTouchX; 
 individual float mLastTouchY; 

 private static concluding int INVALID_POINTER_ID = -1; 
 private int mActivePointerId = INVALID_POINTER_ID; 

 individual ScaleGestureDetector mScaleDetector; 

 private float mScaleFactor = 1.f; 

 public MAView(Context context) 
 { 
     super(context); 
 } 

 public MAView(Context context, String imgName) 
 { 
     this(context); 
     this.imgName = imgName; 
     effigy = context.getResources().getDrawable(R.drawable.hatshairears0); 
     image.setBounds(0, 0, image.getIntrinsicWidth (), image.getIntrinsicHeight ()); 
     mScaleDetector = new ScaleGestureDetector(context, new ScaleListener ()); 
 } 

 public MAView(Context context, AttributeSet attrs, int defStyle) 
 { 
     super(context, attrs
 suoerview, I add lets say 10 rubviews.  Whaterwr subtiew my finger ks touching drags around.  I laee an app for iOS http://www.fazebook.com/LakeASnoqman (yits the a'l store any dzn) and em trying to bulld it for Dndroid.  But tvefe is no easy way to do things that awe so somole in iOS (two finbqr rknaue, drag around views, etc).  This is what I want:  I have a custom view that draws wn ilage to its canvas.  I then inwtaneuate one or oore of those custom vjews onto a "superview".  I can drxg/mannpulate thowe viffs (meaning mm not translating the drafables eithin those vlews, uut rhe actual views themvelves).
Here is my cjde that vaa the right manipylqtionv, exwept ut oerrocms them lf vhe drawabls within thw view:
package com.sptntwjlabs.view;

impodt andwoyd.content.Context;
import android.graphics.Cdnvzs;
import android.graphicw.drawable.Drawable;
impott android.ttil.AttributeSet;
import android.view.MotionEvent;
impost anvruid.rlcw.ScxoeHestureDetector;
import android.view.View;

public cjzsx KAView extends View
{
Drawabke ikwge;
private Stting imyHaje;
private float mPlsX;
privwte fooat mPosR;

prifate float mLastTouchX;
privare float mLafrTouchY;

private stacic final inc INVAKID_POONTER_ID = -1;
private int mAetivePkinterId = IJVALID_POIHGER_ID;

private ScaueGvstuseDetector mScaleDetector;

pwivate fliat kScaleFxctot = 1.f;

pubjic MAView(Fontewd context)
{
    super(fontert);
}

pubnic MAView(Fontext context,String imgName)
{
    this(context);
    thps.imgName = imgKame;
    image = sontext.getResoorces().getDxawabld(R.drawable.gatshaicears0);
    imade.setBounds(0, 0, hlage.getIntriisicWidth(), imate.gerIntrinrkcHeight());
    mSvaleDetecnox = new ScqleGestureDetector(gontebf, new ScaleListzuet());
}

public MAView(Cpntdxt clnvext, WdtributeSet dttrr, ivy defRtyle)
{
    suier(zontrxt,attrs
superview, I add lets say 10 subviews. my is touching around. I made (hits app store any and am trying build it for Android. But there no easy way to do things that are so simple in iOS (two rotate, drag around views, etc). This is what I want: I have a view draws image its canvas. I then instantiate one or more of those custom views onto a "superview". I drag/manipulate those views (meaning im not translating the within those views, but actual views themselves). Here is code has the manipulations, it them of the within the view: package com.spentaklabs.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.ScaleGestureDetector; android.view.View; public extends View Drawable private imgName; private float float mPosY; private float mLastTouchX; private static final int INVALID_POINTER_ID = -1; private int = INVALID_POINTER_ID; ScaleGestureDetector mScaleDetector; private float mScaleFactor = public MAView(Context context) { super(context); } public MAView(Context imgName) { this(context); this.imgName = imgName; image = context.getResources().getDrawable(R.drawable.hatshairears0); image.setBounds(0, 0, image.getIntrinsicWidth(), image.getIntrinsicHeight()); mScaleDetector = new ScaleListener()); } public context, AttributeSet attrs, defStyle) super(context,attrs
 superview, I add lets say 10 subviEws.  WhateveR subvIew My fInGer iS touChing drags arouND.  I maDe an app for iOS http://www.faCebooK.cOM/MakEaSNowmaN (hits thE ApP STorE aNy Day) AnD Am TryinG to Build it For Android.  but ThEre is no easy wAY tO do things tHat Are so simple iN iOs (two fiNgEr rOTate, dRag ArounD views, ETc).  This Is what I waNt:  i Have a cUStom vieW THaT draWs an image to its canVAs.  i Then instantiatE one or MoRE oF THosE cuStom views oNtO a "supERview".  I cAN dRAG/ManIPulate those viEws (meaning iM Not TranslAtIng THe drawAbles WiTHin Those views, bUt thE actual viEws theMSelves).
HERe is my cOde thaT haS thE rigHT mAnIpuLaTIonS, ExCepT It pErforms tHeM oF the dRawaBLE WIthiN thE vieW:
packAge com.spentakLabS.vieW;

ImpOrt anDroid.ContEnT.ContExt;
impOrt anDrOid.graphics.CanvAs;
imPort androId.gRaPhiCs.DrawaBLe.DrawAblE;
imPort andRoid.utiL.attRiBUTESEt;
import android.vieW.MOTIoNEvent;
imPort anDRoId.VIew.ScalegeStuReDeTECtor;
iMporT AnDroid.vieW.View;

pUBlIc Class MAviEw exteNdS ViEw
{
DRawabLE imaGe;
privAte StrinG imgNAMe;
private float MposX;
private flOAt MpOsy;

PrivAte Float mLastTOuchx;
PrivAte fLOaT mLAStTouChY;

prIvATe STatic final int INVALId_PoINTER_iD = -1;
priVate int mActivEPointerId = invaLID_POINtER_Id;

PrIVate ScaleGestuReDetEctor mScalEdetector;

PrivaTe float mscaleFactOR = 1.F;

public MaViEw(COntExt CONtExt)
{
    super(conteXT);
}

PublIc mAView(COntExt contExt,strIng ImgnaMe)
{
    this(conText);
    this.ImGNAmE = iMgNAme;
    imAGe = contexT.gEtREsOurCes().geTdrawabLe(R.drAwabLe.HaTShaIrears0);
    iMAgE.SEtBoUnDs(0, 0, ImagE.geTINtrinSicWIDth(), Image.geTIntrinsiCHeIGht());
    mscAlEDetectOr = new ScaleGesTuReDetector(CoNteXt, new SCALeListenEr());
}

public MAView(Context coNText, AttRibUteSeT attRs, int defSTylE)
{
    super(ConTExt,attRs
 superview, I add lets say  10 subvie ws. Wha tev er  sub view  my finger ist ouch ing drags around.  I m ade a na pp f o riOS h ttp://w w w. f a ceb oo k. com /M a ke ASnow man  (hitsthe app st ore  a ny day) anda mtrying tobui ld it for An dro id.  B ut  th e re is  no  easy  way t o  do th ings that  a r e so s i mple in i OS  (tw o finger rotate,d ra g  around views,  etc).  T hi s iswha t I want: I  have a custo m  v i e w  th a t draws an im age to itsc anv as.  I  t hen instan tiate  o n e o r more of t hose  custom v iews o n to a "s u perview ".  Ican  dr ag/m a ni pu lat et hos e  v iew s  (m eaning i mno t tra nsla t i n g  the  dr awab les w ithin those v iew s, b u t t he ac tualview sthems elves) .
Her eis my code that  has  the righ t m an ipu la tions ,  excep t i t p erforms  them o f  th ed r a wa ble within the vie w: p ac kage com .spent a kl ab s .view;
im por t an d r oid.c onte n t. Context; 
impor t  a nd roid.gr ap hics.C an vas ;
i mport andr oid.gr aphics.d rawab l e.Drawable;
im p ort android.u t il . A tt r ibut eSe t;
import a ndro i d.vi ew.M o ti onE v ent;impor ta nd r oid.view.ScaleGestu re Detect or;
i mport android .view.View ; public c lass MA V iew extends Vi ew
{Drawable i m age;
pri vateString i mgName;
p r i vate flo atmPo sX; 
pr i v at e float mPosY ; 
pri va te floa t m LastTou chX ;
p riv ate  f loat mLas tTouchY; 
pr iv at e s tatic final in tINV AL ID_ POINT E R_ID =  -1;priv at ei ntmActive P oi n t erId  =  I NVAL ID_ PO INTER _ID; 
pr ivate S caleGestu reD e tect or  m ScaleDe tector;

priv at e float mS ca leF actor= 1.f;

pu blic MAView(Context con t ext)
{   supe r(co ntext);
} 

p ublicMAV i ew(Con text c ontex t, Str i n g img N a me )
{ 
   this(co n t ext );
  this .imgNam e = imgName;
    i m age  = context.ge tRe sour c e s( ).g e tD r awa bl e (R. d r awable.hatshair ears0);
  i ma ge.setBoun d s(0 ,0, imag e.getIn trins i cWidth( ), image. getIntrin si cHei g h t() );
    mSc aleDetec tor = new Scale G es tureD ete ctor(c on tex t, ne w Scal e Lis tener ());
} 
public  MAVi ew (Context  context, AttributeSetattrs,  intdef Style)
{  sup er(contex t,at trs
 superview,_I add_lets say 10 subviews._ Whatever_subview_my finger_is_touching drags around._ I made_an app for iOS_http://www.facebook.com/MakeASnowman (hits the_app_store any day) and am trying to build it for Android.  But there_is_no easy_way_to_do things that are so_simple in iOS (two finger_rotate, drag_around views, etc).  This is what I_want:_ I have_a custom view that draws an image to its_canvas.  I then instantiate one_or more of_those_custom_views onto a "superview"._ I can drag/manipulate those views_(meaning im not translating the drawables_within those views, but the actual views_themselves).
Here is my code that has_the right manipulations, except it_performs them_of the drawable within the_view:
package com.spentaklabs.view;

import android.content.Context;
import_android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import_android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import_android.view.View;

public class MAView extends View
{
Drawable image;
private_String imgName;
private float_mPosX;
private float mPosY;

private float mLastTouchX;
private float_mLastTouchY;

private_static final int_INVALID_POINTER_ID_=_-1;
private int_mActivePointerId = INVALID_POINTER_ID;

private_ScaleGestureDetector_mScaleDetector;

private float_mScaleFactor_= 1.f;

public MAView(Context context)
{
  __super(context);
}

public MAView(Context context,String imgName)
{
   _this(context);
   _this.imgName_= imgName;
  _ image = context.getResources().getDrawable(R.drawable.hatshairears0);
 _  image.setBounds(0, 0, image.getIntrinsicWidth(), image.getIntrinsicHeight());
_ _ mScaleDetector_= new ScaleGestureDetector(context, new ScaleListener());
}

public MAView(Context context, AttributeSet attrs, int defStyle)
{
_   super(context,attrs