Alpha Dialog Extension
Alpha Dialog is a simple yet powerful and easy to use extension that you can use freely in your projects to create awesome and unique dialogs. The extension allows you create transparent dialogs, full screen dialogs and by using a very simple technique you can use custom color for dim.
Docs
Create Dialog using ant visible component. Set cancel-able to true or false
Show dialog
Dismiss Dialog
This block is called when dialog is shown
This block is called when dialog is dismissed
If Wrap Content is enabled then dialog will force its content to shrink. If false it will cover whole screen. Set this to false to show a full screen dialog.
UPDATES
Show any visible layout or component as a toast. If you are bored using the same text toast again and again and want to make your app look even more better then you can use this block and show custom layouts as toasts. You can find examples below.
In the above screenshots you can see that you can easily create transparent dialogs with ease. Moreover you can show you content as a dialog without shrinking the content. You can change dim color to any color you want. And you can also create full screen dialogs very easily.
Hope that it helps you. Keep oding. Keep reating. Enjoy and please share you thoughts about my extensions as I don’t get any response from you guys. Looking forward for more suggestions for this extensions and for other extensions as well. Thanks.@Peter can I get a extension developer badge
Well Thanks for your response and sorry because i didn’t knew that. I will change it.
BTW is it working in ai2. Cause I only tested in kodular but it should work fine as far as I know.
Everything seems to be working OK. However, if I set cancelable to true and wrapContent to false, cancelable (just clicking on the screen) does not remove the dialog.
set wrap content to false only if you want to show a full screen dialog. Because if it is false the layout you add will stretch to cover whole screen. And cancelable wont work in that case
Thanks I am very happy that it helped you.
One Question : In ai2 you don’t have any builtin component to set padding and margin for visible components. Am I right?
Wow, the latest update using toast looks even better. But why is the extension icon large, you should make the icon 16 x 16 in size to make it look suitable.