Hello everyone,
I am here to present my another extension which is Popup Window Extension. By using this extension you can create a popup dialog and also you can show the dialog as a DropDown.
Blocks -
Documentation -
Creates a popup window with the given height and width. (Recommended to use it at screen initialises)
Dismisses the popup window which is being showed.
Returns true if the popup window is showing
Shows popup window as a DropDown on a component
Shows popup window as a DropDown on a component with some more customizations
Shows the popup window with gravity and x, y offsets
Event triggered when the window is dismissed
Demo Video -
Download Extension -
v1.0
com.vedang.PopWindow.aix (7.0 KB)
v1.1
com.vedang.PopWindow.aix (8.7 KB)
Latest Version 1.2 - com.vedang.PopWindow.aix (9.5 KB)
If you have any suggestions/feedback then feel free to post it here
18 Likes
TIMAI2
September 5, 2021, 10:37am
2
Looks good. What are the x,y values, dp or screen pixels ?
1 Like
TIMAI2:
Seems to be dp here, or not working. I set the popup to 400x400 but content barely fills the popup window
Actually according to official android documentation it is pixel.
TIMAI2:
Also suggest change focusable
to cancelable
(which means you can click anywhere to make the popup go away)
Will do in the next update Thank you for the suggestion
TIMAI2:
EDIT - I should have put register in Screen1.initialise doh!]
Yes it is required to call that method at screen initialise otherwise the arrangement will be visible to the screen.
TIMAI2
September 5, 2021, 11:15am
7
OK, but this is not working for me. What settings might be required for the component arrangement in designer/blocks?
1 Like
It seems like the issue is not from my side nor yours. Still I'll recheck it.
Properties like background color and horizontal/vertical alignments should be given from the properties of original arrangement
You need to multiply it with density.
2 Likes
Thank you @vknow360 will update the aix soon
New Version - 1.1
Hello, This is the version 1.1 of the extension with some bug fixes and new features
Bug fixes -
Fixed the bug with the height and width of window
Changed the Focusable to Cancellable in CreatePopupWindow
method
RegisterArrangement
method is now deprecated. you can now register the arrangement in CreatePopupWindow
method.
New features -
Added overlapAnchor parameter to the DropDown methods to overlap the component by popup window while showing dropdown.
Event triggered when the window is dismissed
Download -
com.vedang.PopWindow.aix (8.7 KB)
Started to work on the next update You may suggest some features
2 Likes
Nice extension @Techno_Vedang
2 Likes
I am glad you liked it @Aquib_Khan
2 Likes
Actually, I was working on this extension, but before me, you made it .
2 Likes
Here is the screenshot of next update [1.2]
It will create the Popup Window dynamic
testing is going on
And yes, extension will be open source after the next update
I hope you will like it
4 Likes
Update !
Hello everyone,
Finally I am here comes the update of Popup Window Dynamic Popup Window. Yes! it is now Dynamic Popup Window.
Actually the update should be released yesterday. But I was quite busy. Sorry for the delay
New features -
The extension is now became fully dynamic! You can create multiple popup windows without using the extension multiple times.
Here are the 3 new blocks I have added to work with Id System.
(Will update the blocks is First Post later)
Download -
com.vedang.PopWindow.aix (9.5 KB)
Open Source
As I said earlier extension will be open source. Yes!
Show your by starring the repository and also feel free to contribute!
1 Like
TIMAI2
September 8, 2021, 10:17am
19
You should update all your blocks in your original post to avoid confusion.....this will also show users how the "dynamism" works
1 Like
You're right @TIMAI2 . I'll do.
1 Like