title: Change imageView position in runtime
body: <p>I try to change position of imageView in runtime. ImageView is in the framelayout and my main layout is relative layout. </p>
  
  <pre><code>image = (ImageView) findViewById(R.id.im1); 
  image.setY(100); 
  image.setX(100);
  </code></pre>
  
  <p>This code works only onCreate method. I want to send image object to another class and use in some functions. When i try to do this, nothing happens. It gives no error and doesn't change position of the image</p>
  
  <p>Xml for frame layout:</p>
  
  <p>
  
  <pre><code>    android:layout_toStartOf="@+id/button4"
      android:layout_alignParentTop="true"
      android:layout_alignParentEnd="true"
      android:id="@+id/frameLayout"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"&gt;
  
      &lt;ImageView
          android:layout_width="42dp"
          android:layout_height="40dp"
          android:id="@+id/im1"
          android:contentDescription=""
          android:background="@drawable/image"/&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>