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:

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="colorButtonNormal">#F0C559</item>
        <item name="colorAccent">@android:color/white</item>
    </style>
  2. In the Activity of your app, specify the theme:

    [Activity(Label = "Judopay", Icon = "@drawable/ic_launcher", Theme = "@style/JudoTheme")]
    public class MainActivity : FormsAppCompatActivity
    {
     protected override void OnCreate(Bundle bundle)
         {
         ...