I am creating a music application that has a constant notification. I encounter a color text notification problem on the Galaxy S with 2.3.3. My code is:
in layout / notification.xml
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <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" /> <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" /> <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" /> </LinearLayout>
in values-v9 / styles.xml
<style name="NotificationText" parent="android:TextAppearance.StatusBar.EventContent" /> <style name="NotificationTitle" parent="android:TextAppearance.StatusBar.EventContent.Title" />
I thought the text would switch to white, as the Galaxy S has a dark gray background, but it continues to show black texts. But other applications do a great job of this, so there must be a way to do it.
Does anyone know how to get the “default status bar text color” on Galaxy S? Thanks!
source share