I have a problem, that i dont know how can i add a textview to a gridlayout. I have an xml:
<TextView
android:id="@+id/textView1"
android:layout_column="2"
android:layout_columnSpan="3"
android:layout_gravity="center_horizontal|top"
android:layout_row="3"
android:layout_rowSpan="2"
android:text="TextView" />
And would like to do this xml code dynamically. How can i do this? I know how to create textview, but i dont know how to add to the gridlayout...