Skip to content

Quickstart

James Goodwin edited this page Oct 28, 2016 · 38 revisions

The Judopay Xamarin SDK supports a range of UI customization options to allow you to match payment screen appearance to your app's branding.

Configuring the theme (Android)

  1. In your Android project, create a style in Resources/values/styles.xml. In this example we'll customize the button color:

Note: You must have the Xamarin.Android.Support.v7.AppCompat library added to your Android project

```xml
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="colorButtonNormal">#F0C559</item>
    <item name="colorAccent">@android:color/white</item>
</style>
```
  1. In the Activity of your app, specify the theme:
    [Activity(Label = "My app", Icon = "@drawable/ic_launcher", Theme = "@style/AppTheme")]
    public class MainActivity : FormsAppCompatActivity
    {
         protected override void OnCreate(Bundle bundle)
         {
         // ...

Configuring the theme (iOS)

  1. Create a Theme object