drawableで指定したレイアウト(shapeタグなど)の背景などの動的設定について
ボタンなどの背景色を変えるには
button.setBackgroundColor(Color.RED);
などで出来ますが、buttonのレイアウトをdrawableで指定している場合、上の記述だと
drawable指定が無効になります(Radiusなど無視され、ただの赤ボタンになる)
なのでGradientDrawableで背景情報を得て、変更しようとしましたが上手くいきません
public class MainActivity extends Activity implements OnClickListener {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.button).setOnClickListener(this);
    }
    public void onClick(View view) {
        // これだとxmlファイルのdrawable指定が無効になる
        // view.setBackgroundColor(Color.RED);
        GradientDrawable background = (GradientDrawable)view.getBackground();
        background.setColor(Color.RED);
    }
}
activity_main.xmlに記述したボタンレイアウトはこんな感じです
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/button"
    android:background="@drawable/button_background" />
drawableのbutton_background.xml(角は丸く、灰色に設定してある。このカラーの部分を変えたい)
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="rectangle">
            <corners android:radius="5dp" />
            <solid android:color="#555555" />
        </shape>
    </item>
</selector>
エミュは立ち上がり、ボタンを押すとエラーが出ます
どの部分が間違っているでしょうか?
出来ればコード修正してもらうとありがたいです
また回答してくださいましたsetBackgroundResource(リソース)でもいいのですが
drawableファイルの solid android:color="@color/COLORNAME" だけの動的変更はできるのでしょうか?