int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
how do i set the color using mColor ?
int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
how do i set the color using mColor ?
You should try
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
© 2022 - 2024 — McMap. All rights reserved.