I have layout
<android.support.v7.widget.GridLayout
android:id="@+id/grid_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/default_grid_height"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!--I need add to this child attribute "app:layout_*"-->
<Button
android:text="1"
app:layout_columnSpan="2"
app:layout_columnWeight="2"
app:layout_rowWeight="3"/>
</android.support.v7.widget.GridLayout>
I need to programmatically add child to this layout container (support.v7.widget.GridLayout)
with custom attributes supported by this layout. How i can do this?
Assume I can do something like that, but not found something method like tihs.
widget = CustomWidget(context)
widget.addParam("app:layout_rowWeight", 3) // how??