title: Trying to make a button move in a circle android studio
body: <p>I am trying to make a button move in a circle in portrait mode and in landscape i am trying to hide the button. i used this in main activity. In landscape mode i used the the command android: visibility = &quot;gone&quot; but didnt really work the outline of button can be seen moving.
  How do i solve this issue</p>
  <p>Main activity</p>
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      final Button but1 = (Button)findViewById(R.id.but1);
      RotateAnimation rC = new RotateAnimation(360,0,Animation.RELATIVE_TO_PARENT,0.2f,Animation.RELATIVE_TO_PARENT, 0.2f);
      rC.setDuration(1000);
      rC.setInterpolator(new LinearInterpolator());
      rC.setRepeatMode(Animation.RESTART);
      rC.setRepeatCount(Animation.INFINITE);
      but1.startAnimation(rC);
  }
  </code></pre>