Home » Android » android – remoteview framelayout background color

android – remoteview framelayout background color

Posted by: admin June 15, 2020 Leave a comment

Questions:
int mColor = 0xff00ff00;

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

how do i set the color using mColor ?

How to&Answers:

You should try

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