Fabulous extension, Yusuf!
Congrats
That was admob banner ad.how can I use that with webview.by the way can we can create dynamically webview with this extention
I have been waiting for something like this. My app as forms of checkboxes the user needs to fill out and adding them was always a pain. Now I should be able to dynamically generate my forms just based on the list of questions and make everything so much easier. Thanks a bunch!
@yusufcihan Hey, just a stupid question⊠How can I create two or more same components in a âforâ? Because give me an âerrorâ âsame idâ.
Sorry for my english⊠and thanks again!
what about using a new id for each new component?
Taifun
Use a different variable. Like cardviewID and gridviewID, increment in 1 each in every pass. Use those instead of the local variable number.
Make cardviewID to start at 100 and gridview to start at 200 so both will be different.
Or use your current blocks but join âcardviewâ+number for cardview and âgridviewâ+number for gridview.
Is it possible to send an AIA with these blocks to me privately? If there is an error in extension I want to fix it as soon as possible.
Itâs not an error I think. I call error because I thought I can create multiple same component in one âforâ. Anyway Iâll send you the AIA. Thanks!
I will try, thanks.
I checked the AIA and found two things,
-
In the AIA you sent me (which blocks was different) you are creating 2 dynamic components with same ID.
-
You are loading an URL for Image property. This causes the app to hang for a while. (And may cause to components not work properly during this time.) Use Async Image Utils component to load online images.
- Yes, I fixed using @Italo idea (thanks!).
- OMG. I didnât know that exist. Load faster now, thanks for the feedback!
Beautiful >.<
Looks like Kodular added their components in the same package name as in App Inventor. (Kodular staff might need to confirm it) So I donât need to update the extension for supporting Kodular specific components!
I donât have a full available component names for Kodular components (because I donât know their internal names), so looks like you will need to find out which will work.
For example to create a CardView dynamically with this extension, use MakeroidCardView
name in the componentName parameter.
I guess you can find the name by dragging the component block for instance
List_View1 and do a do it on it.
It is always the latest block in the menu.
You get a text like
Do It Result: com.google.appinventor.components.runtime.ListView@c1e81ee
You can see that you will need to use the part that contains ListView when using this extension.
or
Do It Result: com.google.appinventor.components.runtime.WebViewer@5d27bdd
you need to use WebViewer with this extension.
Oh I never thought about learning internal names like this. Thanks
How about you add the text blocks already populated with the components names? Is that possible?
Thatâs a good idea. I think itâs possible
It should be possible but there are a lot of components which I canât count. Because it also allows to create hidden components of App Inventor. Like, a Form (Screen), and a Sprite (which is base class of ImageSprite).
But I think I can add a block called AvailableComponentNames. And it can return a list.
As a workaround, you can see a list of components / classes of App Inventor here:
Just one question, how do we check for the correct component name?