5
int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
làm cách nào để đặt màu bằng mColor?remoteview màu nền framelayout
int mColor = 0xff00ff00;
remoteView.setInt(R.id.framelayout1, "setBackgroundResource", android.R.color.white);
làm cách nào để đặt màu bằng mColor?remoteview màu nền framelayout
Bạn nên cố gắng
remoteView.setInt(R.id.framelayout1, "setBackgroundColor", mColor);
cảm ơn bạn nó hoạt động :) –