title: running a method in a loop
body: <p>I'm writing my first app in Android Studio. I have a method which is moving a picture in one of the activities and I just want it to work constantly. The only thing I know how to do is to run it by creating a button and clicking it but I can't find any solution that would work for running it without a button </p>
  
  <p>That's the method I wanna run:</p>
  
  <pre><code>    public void ruchIceberg(){
      iceberg = (ImageView)findViewById(R.id.imageView);
  
      if(iceberg.getX()&lt;=-iceberg.getWidth()/2){
          setIceberg(iceberg);
      }
      setIceberg(iceberg,60);
  }
  </code></pre>