mr bum
mr bum

Reputation: 194

remoteview framelayout background color

int mColor = 0xff00ff00;

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

how do i set the color using mColor ?

Upvotes: 10

Views: 7290

Answers (1)

blessanm86
blessanm86

Reputation: 31779

You should try

remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);

Upvotes: 25

Related Questions