activity
私は自分のゲームで高得点を獲得しました。スコアの出力にはテーブル行を使用しました。私の質問は、出力が何であるかがわからないため、テーブル行のフォントの色をどのように変更できるかということです。
これが私のレイアウトコードです:
<TableLayout
android:id="@+id/data_table"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="invisible"
>
<TableRow android:visibility="invisible" >
<TextView
android:layout_marginLeft="65dp"
android:visibility="invisible"
android:text="#"
android:textColor="#000000" />
<TextView
android:visibility="invisible"
android:text="Score"
android:textColor="#000000" />
<TextView
android:visibility="invisible"
android:text="Player"
android:textColor="#000000" />
</TableRow>
</TableLayout>
これが私の出力のハイスコアの色ですactivity
。
灰色のものを黒に変更するにはどうすればよいですか?
これが私がテーブルを追加する方法です:
{
TableRow tableRow= new TableRow(this);
ArrayList<Object> row = data.get(position);
TextView idText = new TextView(this);
idText.setText(row.get(0).toString());
tableRow.addView(idText);
TextView textOne = new TextView(this);
textOne.setText(row.get(1).toString());
tableRow.addView(textOne);
TextView textTwo = new TextView(this);
textTwo.setText(row.get(2).toString());
tableRow.addView(textTwo);
dataTable.addView(tableRow);
}
前もって感謝します