title: OnTouchListener on invisible view
body: <p>so all I want to do is to touch on a certain part of the screen where an invisible view is hidden.</p>
  
  <p>After that touch the view should fade In.
  The Problem: The Listener isn't triggered whe I touch the view.</p>
  
  <p>Things I've tried: view.setImageAlpha(0), view.setAlpha(0), view.setVisibility(View.INVISIBLE)
  When I set alpha=1 the listener works fine.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Edit:</strong>
  Thanks to @Viswanath L for the great solution which he mentioned in his post as second workaround.</p>
  
  <p>I just wanted to give a little code example for that in case someone doesn't know how this works:</p>
  
  <p>What I want: I want to touch the right corner of the screen and at this spot, a view(myView) should fade in.</p>
  
  <pre><code>   fadeInListener = new OnTouchListener() {
  
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              if (event.getAction() == MotionEvent.ACTION_DOWN) {
                  System.out.println("TRIGGERED");
  //The screen size here is 1080x1920(vertical)
                  if (event.getRawX() &gt; 800 &amp;&amp; event.getRawY() &gt; 1640) {
                       final AlphaAnimation fadeIn = new AlphaAnimation(0, 1);
                       fadeIn.setDuration(500);
                       fadeIn.setFillAfter(true);
                       myView.startAnimation(fadeIn);
                  }
              }
              return false;
          }
      };
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      layout.setOnTouchListener(fadeInListener);
  }
  </code></pre>
  
  <p>The layout is:     </p>
  
  <pre><code>this.layout = (RelativeLayout) findViewById(R.id.layout);
  </code></pre>
  
  <p>And myView should be placed in the right corner and what's very important: </p>
  
  <pre><code>myView.setVisibility(View.Gone);
  </code></pre>
  
  <p>Hope this helps.</p>