Form
Last Updated On 2021-07-16
Version 29MinSDK 7Tutorial Video
Top-level component containing all other components in the program
Properties
You can set the below properties in the UI part of the builder.
- AboutScreen - it's a textArea value which is set to blank by default.
- AccentColor - it's a color value which is set to &hffff4081 by default.
- ActionBar - it's a boolean value which is set to false by default.
- AdmobAppId - it's a string value which is set to blank by default.
- AlignHorizontal - it's a horizontal alignment value which is set to 1 by default.
- AlignVertical - it's a vertical alignment value which is set to 1 by default.
- AppName - it's a string value which is set to blank by default.
- BackgroundColor - it's a color value which is set to &hffffffff by default.
- BackgroundImage - it's a asset value which is set to blank by default.
- BlocksToolkit - it's a subset json value which is set to blank by default.
- CloseScreenAnimation - it's a screen animation value which is set to default by default.
- Icon - it's a asset value which is set to blank by default.
- MinSdkVersion - it's a sdk versions value which is set to 19 by default.
- NavigationBarColor - it's a color value which is set to &hffffffff by default.
- OpenScreenAnimation - it's a screen animation value which is set to default by default.
- PackageName - it's a string value which is set to blank by default.
- PrimaryColor - it's a color value which is set to &hff6200ee by default.
- PrimaryColorDark - it's a color value which is set to &hff3700b3 by default.
- ScreenFontTypeFace - it's a asset value which is set to blank by default.
- ScreenOrientation - it's a screen orientation value which is set to unspecified by default.
- Scrollable - it's a boolean value which is set to false by default.
- ShowAboutInMenu - it's a boolean value which is set to true by default.
- ShowListsAsJson - it's a boolean value which is set to true by default.
- ShowOptionsMenu - it's a boolean value which is set to true by default.
- ShowStatusBar - it's a boolean value which is set to true by default.
- Sizing - it's a sizing value which is set to responsive by default.
- StatusBarColor - it's a color value which is set to &hff3700b3 by default.
- TargetSdkVersion - it's a sdk versions value which is set to 29 by default.
- Theme - it's a theme value which is set to theme.materialcomponents.light.darkactionbar by default.
- Title - it's a string value which is set to blank by default.
- TitleVisible - it's a boolean value which is set to true by default.
- TutorialURL - it's a string value which is set to blank by default.
- VersionCode - it's a non negative integer value which is set to 1 by default.
- VersionName - it's a string value which is set to 1.0 by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
AboutScreen
Information about the screen. It appears when "About this Application" is selected from the system menu. Use it to inform people about your app. In multiple screen apps, each screen has its own AboutScreen info.
AlignHorizontal
A number that encodes how contents of the screen are aligned horizontally. The choices are: 1 = left aligned, 3 = horizontally centered, 2 = right aligned.
AlignVertical
A number that encodes how the contents of the arrangement are aligned vertically. The choices are: 1 = aligned at the top, 2 = vertically centered, 3 = aligned at the bottom. Vertical alignment has no effect if the screen is scrollable.
BackgroundColor
BackgroundColor property getter method.
BackgroundImage
The screen background image.
CloseScreenAnimation
The animation for closing current screen and returning to the previous screen. Valid options are default, fade, zoom, slidehorizontal, slidevertical, and none
Height
Screen height (y-size).
NavigationBarColor
Sets navigation bar color
OpenScreenAnimation
The animation for switching to another screen. Valid options are default, fade, zoom, slidehorizontal, slidevertical, and none
Platform
The platform the app is running on, for example "Android" or "iOS".
PlatformVersion
The dotted version number of the platform, such as 4.2.2 or 10.0. This is platform specific and there is no guarantee that it has a particular format.
ScreenFontTypeFace
Property for ScreenFontTypeFace
ScreenOrientation
The requested screen orientation, specified as a text value. Commonly used values are landscape, portrait, sensor, user and unspecified. See the Android developer documentation for ActivityInfo.Screen_Orientation for the complete list of possible settings.
Scrollable
When checked, there will be a vertical scrollbar on the screen, and the height of the application can exceed the physical height of the device. When unchecked, the application height is constrained to the height of the device.
ShowAboutInMenu
Property for ShowAboutInMenu
ShowOptionsMenu
Property for ShowOptionsMenu
ShowStatusBar
The status bar is the topmost bar on the screen. This property reports whether the status bar is visible.
StatusBarColor
Sets status bar color
StatusBarLightIcons
Property for StatusBarLightIcons
Title
The caption for the form, which apears in the title bar
TitleVisible
The title bar is the top gray bar on the screen. This property reports whether the title bar is visible.
VersionCode
An integer value which must be incremented each time a new Android Application Package File (APK) is created for the Google Play Store.
VersionName
A string which can be changed to allow Google Play Store users to distinguish between different versions of the App.
Width
Screen width (x-size).
Methods
You can set the below method blocks in the blocks section of the builder.
AddActionBarIcon
Call this after MenuInitialize Event
AddMenuItem
Call this after MenuInitialize Event
AddMenuItemWithIcon
Call this after MenuInitialize Event
AreMultiplePermissionGranted
When Verifying that all the permissions mentioned in the list have been allowed, it will return true or false.
AskForPermission
Ask the user to grant access to a dangerous permission.
HideKeyboard
Hide the onscreen soft keyboard.
IsPermissionGranted
Checks whether the mentioned permission has been granted, it will return true or false.
KeepScreeenOn
Method for KeepScreeenOn
MoveTaskToBack
Method for MoveTaskToBack
Events
You can set the below event blocks in the blocks section of the builder.
ActionBarIconClick
Event for ActionBarIconClick
BackPressed
Device back button pressed.
ErrorOccurred
Event raised when an error occurs. Only some errors will raise this condition. For those errors, the system will show a notification by default. You can use this event handler to prescribe an error behavior different than the default.
Initialize
The Initialize event is run when the Screen starts and is only run once per screen.
MenuInitialize
Event for MenuInitialize
MenuItemClick
Event for MenuItemClick
OnCreate
Invokes when the Screen is created
OnDestroy
Invokes when the Screen is destroyed
OnPause
Invoked when the user leaves the Screen
OnResume
Invoked when the Screen comes to the foreground
OnStart
Invokes when the Screen starts to show the UI
OnStop
Invokes when Screen is no longer visible to the user
OtherScreenClosed
Event raised when another screen has closed and control has returned to this screen.
PermissionDenied
Event to handle when the app user has denied a needed permission.
PermissionGranted
Event to handle when the app user has granted a needed permission. This event is only run when permission is granted in response to the AskForPermission method.
ScreenOrientationChanged
Screen orientation changed