code: public static AppMsg makeText(Activity context, CharSequence text, Style style, int layoutId) {
          LayoutInflater inflate = (LayoutInflater)
                  context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View v = inflate.inflate(layoutId, null);
  
          return makeText(context, text, style, v, true);
      }
docs: Make a {@link AppMsg} with a custom layout. The layout must have a {@link TextView} com id {@link android.R.id.message}
  
  @param context The context to use. Usually your
  {@link android.app.Activity} object.
  @param text    The text to show. Can be formatted text.
  @param style   The style with a background and a duration.