UI.Dialog.Android.Style

Android

Since

3.0.2

According to your requirements, you should choose of the theme enums.

Example

import Dialog from "@smartface/native/ui/dialog";
import { DialogStyle } from "@smartface/native/ui/dialog/dialog";
import Button from "@smartface/native/ui/button";
import Color from "@smartface/native/ui/color";

const myDialog = new Dialog({
android: {
themeStyle: DialogStyle.ThemeNoHeaderBar.
} cancelable: true,
isTransparent: false
}
});

const myButton = new Button({
width: 100,
height: 80,
backgroundColor: Color.BLUE,
text: "Hide Dialog",
onPress: () => {
myDialog.hide();
}
});

myDialog.layout.addChild(myButton);
myDialog.show();

Enumeration Members

ThemeDefault: 16974402

This is default enum which will act as default when no themeStyle given.Default theme has no title bar and fills the entire screen.

Android

Since

3.0.2

ThemeNoHeaderBar: 16974401

This theme with no header bar.

Android

Since

3.0.2

ThemeNoHeaderBarWithOverscan: 16974403

This theme has no title bar and fills the entire screen and extends into the display overscan region.

Android

Since

3.0.2

Deprecated

ThemeNoHeaderBarWithTranslucentDecor: 16974404

This theme has no title bar and translucent system decor.

Android

Since

3.0.2

Generated using TypeDoc