Advertisement
Guest User

Untitled

a guest
May 24th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.  
  2. int colorPos;
  3. if (modelNote2.getBackgroundColor() > Var.COLOR_BACKGROUND_VIEW.length - 1) {
  4.     colorPos = 0;
  5. } else {
  6.     colorPos = modelNote2.getBackgroundColor();
  7. }
  8.  
  9. views.setInt(R.id.viewTop, "setBackgroundColor", Color.parseColor(Var.COLOR_BACKGROUND_VIEW[colorPos]));
  10. views.setInt(R.id.appwidget_textContent, "setBackgroundColor", Color.parseColor(Var.COLOR_BACKGROUND_EDIT_TEXT[colorPos]));
  11. views.setInt(R.id.appwidget_textContent, "setTextColor", Color.BLACK);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement