I'm using Fredrik Bornander's SandBoxView from this tutorial
http://www.codeproject.com/Articles/319401/Simple-Gestures-on-Android
It works efficiently for an imageview but I want to use multiple imageviews.
Here is my code under GestureActivity but It still works for only one imageview.
Can anyone help me about this?
public class GesturesActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.d);
SandboxView s = new SandboxView(this, bitmap);
Bitmap bitmap2 = BitmapFactory.decodeResource(getResources(), R.drawable.a);
SandboxView s2 = new SandboxView(this, bitmap2);
RelativeLayout ly=new RelativeLayout(this);
ly.addView(s);
ly.addView(s2);
setContentView(ly);
}