Skip to content

Getting Started

Håvard Moås edited this page Mar 14, 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
{
...

This style will apply splash screen, colors of the application and styling of the components of the library used in the application.

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(this); //Initialize DIPS.Mobile.UI, has to be called before OnCreate
    base.OnCreate(savedInstanceState);
}

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