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(); }
private void postIdea() { Callback<Boolean> callback = addIdeaCallback(); Integer sectionId = board.sections().get(customActionBar.selectedIndex()).id(); BoardRepository.getInstance().addIdea(idea, sectionId, callback); }