title: android onclick () not responding
body: <p>I am new to android programming and trying to develop TIC TAC TOE game. I have created gameLogic() method and the problem is this that it is not working as it is expected to do, means on click of ImageView none of the images is getting displayed. Any help will be highly appreciated.</p>
  
  <p>This is my code:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      public void gameLogic(View view) {
          ImageView tappedView = (ImageView)view;
          tappedView.setTranslationY(-3000f);
          tappedView.setImageResource(R.drawable.black);
          tappedView.animate().translationYBy(3000f).setDuration(500);
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
      }
  }
  </code></pre>