Skip to content

Getting Started

Håvard Moås edited this page Jan 23, 2023 · 14 revisions

Android project

Style

To get the default app style, make sure to use the DIPS.Mobile.UI.Style as your Activity style:

[Activity(Label = "...", Icon = "...", Theme = "@style/DIPS.Mobile.UI.Style", ...)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
...

Init

Initialise the DUI library to make sure custom renderes/effects/behviors is not removed by the linker:

protected override void OnCreate(Bundle savedInstanceState)
{
    ...
    DIPS.Mobile.UI.Droid.DUI.Init(); //Initialize DIPS.Mobile.UI
}

iOS project

Init

Initialise the DUI library to make sure custom renderes/effects/behviors is not removed by the linker:

public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
    ...
    DIPS.Mobile.UI.iOS.DUI.Init(); //Initialize DIPS.Mobile.UI
    ...
    return base.FinishedLaunching(app, options);
}
Clone this wiki locally