Developer

Custom Formatter

You can register a custom formatter factory to support formatting needs not covered by the currently available formatters.

For example, you can specify a custom formatter called MyFormatter this way:
<UIElement type="label">
  <P pid="width" value="75%" />
  <P pid="margin_bottom" value="5%" />
  <P pid="halign" value="center" />
  <!—Define a Custom Formatter -->
<Format type="MyFormatter" pattern="MyPattern" platform="Android">
  <!—Define a Custom Formatter API -->
    <P pid="InputString" value="custom Formatter" />
  </Format>
</UIElement>
For implementation details, check the MAFExtensibilityFormatterSample sample app (see Sample Applications).