[F/OS] - Dynamic Components Extension (for every component) 2.3.0

Just out of curiosity, is version 1.3 = version number 4?

Yep, it is.

1 Like

Thx‎‎‎‎‎‎‎.

1 Like

Thanks you boban mayur and of course yusichan for his extension
I did some trial and fixed

3 Likes

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}"
            }
        }
    ]
}

1 Like

Properties must be defined as properties key instead of property.

1 Like

Thank you very much!

1 Like

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

1 Like

Redownload the extension

Thanks again Boban I do that !!

Hmmm… I tried that, but it seems it is a bug from Kodular itself?


image

1 Like

This is the same in App Inventor and probably every builder. I will make an issue for the App Inventor developers.

Good catch.

7 Likes

It should not happen when set from designer.

3 Likes

/**

  • 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

4 Likes

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?

1 Like

Are you also using Kodular’s dynamic component’s ?