Note that there are some explanatory texts on larger screens.

plurals
  1. POchanging table row font color
    primarykey
    data
    text
    <p>I have made a high score <code>activity</code> for my game. i used table row for the output of the scores. My question is that how can i change the color of the fonts in my table row because i cannot see what's the output. </p> <p>Here's my layout code:</p> <pre><code>&lt;TableLayout android:id="@+id/data_table" android:layout_width="fill_parent" android:layout_height="wrap_content" android:visibility="invisible" &gt; &lt;TableRow android:visibility="invisible" &gt; &lt;TextView android:layout_marginLeft="65dp" android:visibility="invisible" android:text="#" android:textColor="#000000" /&gt; &lt;TextView android:visibility="invisible" android:text="Score" android:textColor="#000000" /&gt; &lt;TextView android:visibility="invisible" android:text="Player" android:textColor="#000000" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre> <p>Here's the color of my output in high score <code>activity</code>.</p> <p><img src="https://i.stack.imgur.com/0buLj.jpg" alt="enter image description here"> </p> <p>How will i change the gray one to black?</p> <p>here's how i add the table:</p> <pre><code>{ TableRow tableRow= new TableRow(this); ArrayList&lt;Object&gt; 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); } </code></pre> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload