hi there
i want to show a view in a position that user click
how to do it?
here is my code:
thanks a lot
i want to show a view in a position that user click
how to do it?
here is my code:
Code:
public boolean onTouchEvent(MotionEvent event) {
// TODO Auto-generated method stub
super.onTouchEvent(event);
ImageView iv = new ImageView(this);
iv.setVisibility(View.VISIBLE);
iv.setImageResource(R.drawable.glass);
((RelativeLayout) findViewById(R.id.container)).addView(iv);
return true;
}
thanks a lot
Last edited: