Add a button to your screen in the designer view and if you dont require it then hide it and then check the â+ Any Componentâ for âAny Buttonâ
Component name = dynamic component get id???
what do you wanna check? or do?
I take three different dynamic component in screen1 to create a 1.card view(create with dynamic component 1) 2. Background image(dynamic component 2) 3. Play button(dynamic component 3).
Now
When user click on the play button video will be play
So there must be a relation in IDâs for each bundle right?
Yes. The all are linked with each other.
But problem is that I canât find âwhen play button clickedâ.
By Any Component how I get component name?
Thank you very much friend thankâ you loveâ you friend
Hello everybody,
I use DynamicComponents as follows:
1.) Why do I have to use a CardView1 object name for Create?
What is the difference to DynamicComponents and Dynamic_Card_view?
- For the Cardview I have 3 dynamic Horizonat, 2 dynamic Imaged and 3 dynamic labels.
It takes a long time to create. Can I optimize the creation so that it is easier and therefore faster?
I already tested v2.1.0 and v2.0, but both are pointing out the same error, even though only the cardview in the schema
Schema:
{
ânameâ: âEcommerce ListViewâ,
âmetadata-versionâ: 1,
âauthorâ: âThiago Cavalcantiâ,
âplatformsâ:
[
âKodularâ
],
âkeysâ:
[
âcountâ,
âimageâ,
âtitleâ,
âsubâ
],
âcomponentsâ:[
{
âidâ: âcard_{count}â,
âtypeâ: âMakeroidCardViewâ,
âpropertiesâ:
{
âWidthâ:228,
âHeightâ:300,
âElevationâ:2,
âCornerRadiusâ:4,
âContentPaddingBottomâ:4,
âContentPaddingLeftâ:0,
âContentPaddingRightâ:0,
âContentPaddingTopâ:0,
âFullClickableâ:true
},
âcomponentsâ:[
{
âidâ: âimg_{count}â,
âtypeâ: âImageâ,
âpropertiesâ:
{
âWidthâ:-2,
âHeightâ:-2,
âPictureâ:"{image}"
}
}
]
}
]
}
Can you show the block which is behind the error message?
Itâs
global_id = global_id + 1
You said 2.0.0 also had this issue?
I too using v2.0 but i havenât got any error.
Some tip to fix error
- Close companion
- Delete and Re-import extension v2.0
yes, for this reason Iâm using old version.
thanks, now it works
I checked and did some tests, the errors only appear in version v2.1.0 when Async is as true and when I use Schema
Hello @Thiago,
I thank you for checking when the errors appear! That helps me a little, only because the Schema block is nearly identical to the Create block internally and I made changes to both those blocks at the same time. Itâs taking me some time to get a status update because I am trying to redo everything thatâs been done so that I can find the exact area since I did end up making about 30 changes within just a few days, and never tested with the Schema block.
Currently, the method I used for Async, I believe isnât even considered a real way of doing things on the UI thread, Iâd have to do some more searching and see what the alternatives are to the extent of App Inventors capabilities. For the meanwhile, as said before, everyone stay on 2.0.0. Thank you!
I did some tests and that was it.
In order not to take up too much space in my blocks I use the schema, but with the schema, without Async, it takes a long time to load 5 cardviews with images hosted on a server.
I will be waiting for a new version for this fix, for me Async would help a lot with the UI / UX of my apps
In the meantime, I will be using v2.0.0 Thanks!