remoteview framelayout background color
Asked Answered
E

1

10
int mColor = 0xff00ff00;

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

how do i set the color using mColor ?

Endo answered 21/9, 2011 at 8:45 Comment(0)
R
25

You should try

remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
Riband answered 21/9, 2011 at 9:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.