# Native UI

The SDK UI is embedded as a Fragment within any part of an Activity in the merchant's application.

**Example:**

<figure><img src="https://2847651520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiUKrMb9zLt5ZzGPUYDsK%2Fuploads%2FCXaRGGycOZONbCZrH9CR%2Fimage.png?alt=media&#x26;token=d50a0aa7-5717-45e2-a403-c8c5150f5755" alt=""><figcaption></figcaption></figure>

If a wallet is the only available payment option, the UI is minimized automatically.

<figure><img src="https://2847651520-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiUKrMb9zLt5ZzGPUYDsK%2Fuploads%2F3tpXKx25VtSQHcFQuogE%2Fimage.png?alt=media&#x26;token=aeaf29ff-8b4a-4710-be08-6c19470f41a5" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To avoid style issues and potential crashes, the parent application's theme must be `Theme.AppCompat` or one of its descendant classes. This theme is specified in the `themes.xml` file located in the `values` directory of the project.
{% endhint %}
