Note that there are some explanatory texts on larger screens.

plurals
  1. PONotification text color in Galaxy S 2.3.3
    text
    copied!<p>I'm building a music app, which has an ongoing notification. I meet the text color problem of notifications on Galaxy S with 2.3.3. My code is:</p> <p>in layout/notification.xml</p> <pre><code>&lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"&gt; &lt;TextView android:id="@+id/notifbar_trackname" style="@style/NotificationTitle" android:focusable="true" android:singleLine="true" android:layout_gravity="left" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;TextView android:id="@+id/notifbar_artist" style="@style/NotificationText" android:layout_gravity="left" android:scrollHorizontally="true" android:ellipsize="end" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;TextView android:id="@+id/notifbar_queue" style="@style/NotificationText" android:layout_gravity="left" android:scrollHorizontally="true" android:ellipsize="end" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>in values-v9/styles.xml</p> <pre><code>&lt;style name="NotificationText" parent="android:TextAppearance.StatusBar.EventContent" /&gt; &lt;style name="NotificationTitle" parent="android:TextAppearance.StatusBar.EventContent.Title" /&gt; </code></pre> <p>I thought the text will be switched to white-based since Galaxy S has a dark grey background, but it keeps showing black texts. But other apps handle it fine, so there should be a way to do.</p> <p>Does anyone know how to get the "default status bar text color" on Galaxy S? Thank you!</p>
 

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