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

微信图片
Unable to create CardView. what is the reason? Other components can be created. For example: label, button…

try MakeroidCardView

1 Like

I don’t quite understand what you mean, can you be more specific?

Instead of CardView, MakeroidCardView

1 Like

i mean as you wrote there CardView instead write MakeroidCardView

1 Like

thank you very much!! :ok_hand:

1 Like

your welcome!

微信图片22

Can the completed layout be copied dynamically?

i dont think

I don’t want to create them one by one dynamically. :grinning:

Please write a schema for it

how to write? Are there any examples or tutorials in this regard? Thank you! !

It is always good to search the community.

2 Likes

you can try it

Template

{
    "name": "chatbox",
    "metadata-version": 1,
    "extension_version": 5,
    "author": "Developer DXH",
    "platforms": [
        "Kodular"
    ],
    "keys": [
	"id",
	"avatar",
	"user",
	"comment"
	],
    "components": [
        {
		"id": "layout1{id}",
            "type": "HorizontalArrangement",
            "properties": {
                "AlignVertical": 2,
                "BackgroundColor": 16777215,
                "Width": -2
            },
            "components": [
                {
                    "id": "Card_View1{id}",
                    "type": "MakeroidCardView",
                    "properties": {
                        "AlignHorizontal": 3,
                        "AlignVertical": 2,
                        "ContentPaddingBottom": 0,
                        "ContentPaddingLeft": 0,
                        "ContentPaddingRight": 0,
                        "ContentPaddingTop": 0,
                        "CornerRadius": 50,
                        "Elevation": 0
                    },
                    "components": [
                        {
                            "id": "Avatar{id}",
                            "type": "Image",
                            "properties": {
                                "Height": 60,
                                "Width": 60,
                                "Picture": "{avatar}",
                                "ScalePictureToFit": true
                            }
                        }
                    ]
                },
                {
                    "id": "layout4{id}",
                    "type": "VerticalArrangement",
                    "properties": {
                        "Width": -2
                    },
                    "components": [
                        {
                            "id": "Username{id}",
                            "type": "Label",
                            "properties": {
                                "FontSize": 18.0,
                                "Text": "{user}"
                            }
                        },
                        {
                            "id": "Horizontal_Arrangement1{id}",
                            "type": "HorizontalArrangement",
                            "properties": {
                                "AlignVertical": 2,
                                "BackgroundColor": 16777215
                            },
                            "components": [
                                {
                                    "id": "layout3{id}",
                                    "type": "HorizontalArrangement",
                                    "properties": {
                                        "AlignHorizontal": 2,
                                        "AlignVertical": 2,
                                        "Height": -1005,
                                        "Width": -1004
                                    },
                                    "components": [
                                        {
                                            "id": "muiten1{id}",
                                            "type": "Image",
                                            "properties": {
                                                "Height": -1004,
                                                "Width": -1002,
                                                "Picture": "JT.png",
                                                "ScalePictureToFit": true
                                            }
                                        }
                                    ]
                                },
                                {
                                    "id": "Card_View1_copy{id}",
                                    "type": "MakeroidCardView",
                                    "properties": {
                                        "AlignVertical": 2,
                                        "CornerRadius": 6,
                                        "Elevation": 0
                                    },
                                    "components": [
                                        {
                                            "id": "Comment{id}",
                                            "type": "Label",
                                            "properties": {
                                                "FontSize": 17,
                                                "Text": "{comment}",
                                                "TextColor": -6381922
                                            }
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "id": "Decoration1{id}",
            "type": "Decoration"
        }
    ]
}

All block

3 Likes

Thank you!

This function is powerful, can you tell me what code the template is? I am a beginner.

I would like to ask which language these codes belong to? Thank you!

Language Json

Hi, I created a GUI for Template Creator.Captura de Pantalla 2021-03-24 a la(s) 19.58.11

3 Likes

Any One Solve My Problem One Screen Create 3 List View ListView On Tab Swipe to fast time work properly but second time to not work error same id Problem

Any One Solve My Problem

Aia Link

TEST.aia (42.0 KB)