次の my_layout.xml レイアウトがあります
<TableLayout android:id="@+id/tlTable" android:layout_width="match_parent" android:layout_height="wrap_content" android:stretchColumns="1,2" android:layout_marginTop="20dp" >
<TableRow android:id="@+id/trRow" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:id="@+id/tv1" style="@style/showtext_style" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Row1" android:layout_marginRight="5dp"/>
<ProgressBar android:id="@+id/p2" style="?android:attr/progressBarStyleHorizontal" android:progressDrawable="@drawable/greenprogress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" />
<TextView android:id="@+id/tv3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" />
</TableRow >
</TableLayout>
行番号を持つように変更される各行の最初のテキストビュー (つまり tv1) のテキストを除いて、すべてが最初の行のクローンである 10 行を動的に作成したいと考えています。したがって、Row1、Row2、Row3.....Row10 になります。
どうすればそれを達成できますか?