10
int mColor = 0xff00ff00;

remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);

mColor を使用して色を設定するにはどうすればよいですか?

4

1 に答える 1

25

試してみてください

remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
于 2011-09-21T09:25:40.990 に答える