[FREE] Simple Dialog

🧩 SimpleDialog

An extension for MIT App Inventor 2.
Developed by TIMAI2 using Fast. Creates a simple modal dialog for a given width, height, background colour and rounded corners radius. Also a full screen overlay dialog.

:memo: Specifications


:package: Package: uk.co.metricrat.simpledialog
:floppy_disk: Size: 6.48 KB
:gear: Version: 1.1
:mobile_phone: Minimum API Level: 14
:date: Updated On: 2026-08-15T23:00:00Z
:laptop: Built & documented using: FAST v7.0.0-premium

Methods:

SimpleDialog has total 6 methods.

1. SetDialog

sets modal dialog to given width, height, background colour and rounded corners for given radius

Parameter Type
componentHVA component
colour number
radius number
width number
height number
cancelable boolean

2. Show

show the dialog

3. Dismiss

hide the dialog

4. FullScreen Overlay

Parameter Type
componentHVA component

5. ShowFullScreen

show the dialog

6. DismissFullScreen

hide the dialog

BLOCKS


component_method (1)
component_method (2)

image
image

Extension

Simple Dialog

Demo AIA Project (V1.0 - without fs overlay)

simpleDialogTesting.aia (110.6 KB)

3 Likes

The screens from the sample aia.



The blocks from the sample aia.

2 Likes

Thanks, I was about to make a video...:smiley:

1 Like

Blocks for Full Screen Overlay (Status and Nav bars visible, I would need different code in the extension for actual full screen)

You may need a clock timer to get Screen width and height if running this block on Screen.Initialise.

Nice work! I hope in the future we can change the gray background behind the dialog as well.

It would be great to have an option to use HTML, so we can input HTML code directly as a dialog without having to use H or V arrangement

er - Simple Dialog :wink:

The 0.5 dim on black is probably the most expected output for most users...

You could put a webview inside the HVA, and use html/css as required ?

1 Like

UPDATE V1.1

Got obsessed with a full screen overlay, so added one. Works fine with Android 17, but doesn't get past the cutout on my Android 13 phone. Bars are swipeable in order to escape!

Additional blocks

component_method (4)

component_method (5)

Blocks in app

Example, but not very useful screenshot

Updated extension

Simple Dialog

2 Likes