code: public AppMsg setLayoutGravity(int gravity) {
          mLayoutParams = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, gravity);
          return this;
      }
docs: Constructs and sets the layout parameters to have some gravity.
  
  @param gravity the gravity of the Crouton
  @return <code>this</code>, for chaining.
  @see android.view.Gravity