I'm trying to use GridLayout in json like this
{
"type": "GridLayout",
"android": "http://schemas.android.com/apk/res/android",
"orientation": "horizontal",
"layout_width": "match_parent",
"layout_height": "match_parent",
"columnCount": "2",
"rowCount": "2",
"children": [
{
"type": "TextView",
"layout_width": "wrap_content",
"layout_height": "wrap_content",
"layout_columnWeight": "1",
"layout_marginTop": "8dp",
"layout_marginLeft": "16dp",
"textSize": "20dp",
"textColor": "@android:color/background_dark",
"text": "244536"
},
{
"type": "TextView",
"layout_width": "wrap_content",
"layout_height": "wrap_content",
"layout_columnWeight": "1",
"layout_marginTop": "8dp",
"layout_marginLeft": "16dp",
"textSize": "20dp",
"textColor": "@android:color/background_dark",
"text": "244536"
}
]
}
I'm getting null when I am preparing a ProteusView
.
If proteus does not support GridLayout, is there a way to use LinearLayout
or RelativeLayout
to get the same result