Just out of curiosity, is version 1.3 = version number 4?
Yep, it is.
Thx.
Thanks you boban mayur and of course yusichan for his extension
I did some trial and fixed
Hi, sorry for disturbing you guys, I am new to JSON, just wondering if I did anything wrong here? There’s no error but nothing have shown, and the ID is exist.
"name": "My Template",
"metadata-version": 1,
"author": "(your name)",
"platforms": [
"Kodular"
],
"keys": [
"count",
"text",
"picture"
],
"components": [
{
"id":"label_{count}",
"type":"Label",
"property":{
"Text":"{text}"
}
},
{
"id":"image_{count}",
"type":"Image",
"property":{
"Picture":"{picture}"
}
}
]
}
Properties must be defined as properties
key instead of property
.
Thank you very much!
It’s me again, I might found an error (I don’t have an account on github so sorry)
I set a spaceview to 38 but when I get property it is 37?
I do with 35 again, and it return 34.
Can you try with Any Component blocks too?
Thanks Boban for you help, i don’t see the update. I’m use Version: 3 Date Built: 2020-03-10
Redownload the extension
Thanks again Boban I do that !!
This is the same in App Inventor and probably every builder. I will make an issue for the App Inventor developers.
Good catch.
It should not happen when set from designer.
/**
- Returns the component’s horizontal width, measured in pixels.
- @return width in pixels
*/
@Override
@SimpleProperty
public int Width() {
int zWidth = (int)(getView().getWidth() / container.$form().deviceDensity());
// System.err.println("AndroidViewComponent: Width() Called, returning " + zWidth);
return zWidth;
}
Not sure why the value get’s divided by the deviceDensity().
Can be found at “AndroidViewComponent.java” source code
Please how can I make material icon of button to be centered
I don’t think there is an option for centre: Button - Kodular Docs
But you can set the button typeface to material icon, set text to your icon, and set text alignment to Center
sorry, this maybe a silly question. how can i know the component when button clicked is created with extension?
Are you also using Kodular’s dynamic component’s ?