Exemplo n.º 1
0
 private void setBackgroundLayout() {
   EditText editText = (EditText) findViewById(R.id.ideaMessage);
   editText.setBackgroundResource(R.drawable.sticky);
   GradientDrawable drawable = (GradientDrawable) editText.getBackground();
   drawable.setColor(
       Color.parseColor(
           ColorSticky.getColorCode(board.sections().get(customActionBar.selectedIndex()).id())));
   editText.invalidate();
 }
Exemplo n.º 2
0
 private void postIdea() {
   Callback<Boolean> callback = addIdeaCallback();
   Integer sectionId = board.sections().get(customActionBar.selectedIndex()).id();
   BoardRepository.getInstance().addIdea(idea, sectionId, callback);
 }