code: public void setContentView(View contentView, FrameLayout.LayoutParams params) {
          if(params == null) {
              params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, Gravity.CENTER);
              final int margin = getResources().getDimensionPixelSize(R.dimen.sub_action_button_content_margin);
              params.setMargins(margin, margin, margin, margin);
          }
  
          contentView.setClickable(false);
          this.addView(contentView, params);
      }
docs: Sets a content view with custom LayoutParams that will be displayed inside this SubActionButton.
  @param contentView
  @param params