Как я могу случайно изменить положение кнопки в Android, нажав на кнопку

Здесь выдает ошибку, что setX (int) не определено, хотя это тип кнопки.

public class TouchMe extends Activity implements View.OnClickListener {

    Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
            setContentView(R.layout.tuchme);

            btn = (Button) findViewById(R.id.btn);

            btn.setOnClickListener(this);

    }

    public void onClick(View v) {
            // TODO Auto-generated method stub
            switch (v.getId()) {
            case (R.id.btn): {
                    Random r = new Random();
                    int x = r.nextInt(480 - buttonWidth);
                    int y = r.nextInt(800 - buttonHeight);

                    btn.setX(x);   // give me error here that setX(int) is not defined      
                    btn.setY(y);   // is button type.

            }

            }

Это дает мне ошибку, что setX (int) не определено, это тип кнопки. Помогите мне, пожалуйста.

Ответы на вопрос(1)

Ваш ответ на вопрос