title: How to move a image View left and right in android development
body: <p>I am very new to Android Development, and I am trying to develop a game. In this game, I will require a Imageview to move left and right when pressed by a button. My current IDE that I am using is "Android Studio". So I have done research but am not finding any answers. My current code is </p>
  
  <pre><code>package com.example.turtle;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  import android.widget.ImageView;
  
  public class MainActivity extends Activity {
  
  Button left, right ;
  ImageView turtle ;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      left = (Button) findViewById(R.id.bl);
      right = (Button) findViewById(R.id.br);
      turtle = (ImageView) findViewById(R.id.IVT);
      left.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
  
          }
      });
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>So yeah, As you can see I set up an OnClcikListener but I don't know what goes under it. I heard I can lessen a position, but how would I do that ? Like what is the code to lessen a position ? Thanks</p>