Dynamic Components Color Problem

I’ve created a scheme to create Dynamic Composite, but it changes dark colors to white and whites to black.

Here is a sample image I created using this schematic. ( Heart in Line 1 is normally white. I took a screenshot without paying attention. )

Özet
 "components": [
        {
            "id": "MusicBox_{count}",
            "type": "MakeroidCardView",
            "properties": {
                "AlignVertical": 2,
                "BackgroundColor": 4280098077,
                "ContentPaddingBottom": 0,
                "ContentPaddingLeft": 0,
                "ContentPaddingRight": 0,
                "ContentPaddingTop": 0,
                "CornerRadius": 8,
                "Elevation": 0,
                "Width": -2
            },
            "components": [
                {
                    "id": "Yatay_{count}",
                    "type": "HorizontalArrangement",
                    "properties": {
                        "AlignVertical": 2,
                        "BackgroundColor": 4280098077,
                        "Height": -1006,
                        "Width": -2
                    },
                    "components": [
                        {
                            "id": "SpaceL_{count}",
                            "type": "SpaceView",
                            "properties": {
                                "Width": -1002
                            }
                        },
                        {
                            "id": "ListNO_{count}",
                            "type": "Label",
                            "properties": {
                                "FontSize": 18,
                                "FontTypefaceImport": "Helvetica-Bold.ttf",
                                "Text": "{count}",
                                "TextColor": 4284835173
                            }
                        },
                        {
                            "id": "SpaceLC_{count}",
                            "type": "SpaceView",
                            "properties": {
                                "Width": -1005
                            }
                        },
                        {
                            "id": "MName_{count}",
                            "type": "Label",
                            "properties": {
                                "FontSize": 18,
                                "FontTypefaceImport": "Helvetica-Bold.ttf",
                                "Text": "Vittorio Monti - Csardas",
                                "TextColor": 4292532954
                            }
                        },
                        {
                            "id": "SpaceRC_{count}",
                            "type": "SpaceView",
                            "properties": {
                                "Width": -2
                            }
                        },
                        {
                            "id": "MTime_{count}",
                            "type": "Label",
                            "properties": {
                                "FontSize": 18,
                                "FontTypefaceImport": "Helvetica-Bold.ttf",
                                "Text": "03:57",
                                "TextColor": 4284835173
                            }
                        },
                        {
                            "id": "SpaceRC2_{count}",
                            "type": "SpaceView",
                            "properties": {
                                "Width": -1005
                            }
                        },
                        {
                            "id": "Like_{count}",
                            "type": "Label",
                            "properties": {
                                "Clickable": true,
                                "FontSize": 32,
                                "FontTypeface": 7,
                                "Text": "favorite",
                                "TextColor": 4294967295
                            }
                        },
                        {
                            "id": "SpaceR_{count}",
                            "type": "SpaceView",
                            "properties": {
                                "Width": -1002
                            }
                        }
                    ]
                }
            ]
        },

Black
“TextColor”: -16777216

White
“TextColor”: -1

"BackgroundColor": 4280098077,

Why does it show white when it’s not -1?

By default the cardView is white, if you want to change it it has to be in negative decimal.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.