title: Why I can't see the image? (ImageView)
body: <p>I want to create dynamic ImageView, but it does not appear, any help?</p>
  
  <pre><code>@Override public boolean onTouchEvent(MotionEvent event) {
      RelativeLayout myLayout = new RelativeLayout(this);
  
      ImageView stone = new ImageView(this);
      stone.setImageResource(R.drawable.pedra);
      stone.setVisibility(View.VISIBLE);
  
      RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
              RelativeLayout.LayoutParams.WRAP_CONTENT,
              RelativeLayout.LayoutParams.WRAP_CONTENT);
  
      myLayout.addView(stone, lp);
  
      return true;
  }
  </code></pre>