I'm programmatically populating a tablelayout in a scrollview with tablerow-s. In the tablerows I am putting the data in textviews.
Now my questyon is how to programmatically(in java) set textviews like this:
<TextView
android:layout_width="20dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/tab"
android:layout_weight="0.4"
android:minWidth="80dp"
/>
<TextView
android:layout_width="81dp"
android:layout_height="wrap_content"
style="@style/tab"
/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
style="@style/tab"
/>
<TextView
android:layout_width="50dp"
android:layout_height="wrap_content"
android:background="@color/white"
android:gravity="center"
style="@style/tab"
android:textStyle="bold"
android:textColor="@color/black"
android:layout_marginRight="5dp"
/>