public void setHardwareCompositionButtonImage(CompositionMode compositionMode) {
   switch (compositionMode) {
     case HIRAGANA:
       getHardwareCompositionButton()
           .setImageDrawable(mozcDrawableFactory.getDrawable(R.raw.qwerty__function__kana__icon));
       break;
     default:
       getHardwareCompositionButton()
           .setImageDrawable(
               mozcDrawableFactory.getDrawable(R.raw.qwerty__function__alphabet__icon));
       break;
   }
 }
 private void setupImageButton(ImageView view, int resourceID) {
   float density = getResources().getDisplayMetrics().density;
   view.setImageDrawable(mozcDrawableFactory.getDrawable(resourceID));
   view.setBackgroundDrawable(createButtonBackgroundDrawable(density));
   view.setPadding(0, 0, 0, 0);
 }