[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION]

i was able to change color for notification text , but there is a issue, it work only for ongoing text and not for latest , i have a dubt cause ids are the same in both.

I explain what i did:

for notification text there are 2 ids , one for title and one for text, these 2 ids are stored in framework-res i found they in notification_template_base.xml

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/status_bar_latest_event_content" android:background="@drawable/notification_bg" android:focusable="true" android:layout_width="fill_parent" android:layout_height="@dimen/notification_large_icon_height" internal:layout_maxHeight="@dimen/notification_large_icon_height" internal:layout_minHeight="@dimen/notification_large_icon_height"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:internal="http://schemas.android.com/apk/prv/res/android">
<LinearLayout android:layout_gravity="top|left|center" android:layout_width="@dimen/notification_large_icon_width" android:layout_height="@dimen/notification_large_icon_height" android:layout_marginLeft="@dimen/tw_notification_large_icon_margin_left" android:layout_marginTop="@dimen/tw_notification_large_icon_margin_top" android:layout_marginRight="@dimen/tw_notification_large_icon_margin_right" android:layout_marginBottom="@dimen/tw_notification_large_icon_margin_bottom">
<ImageView android:id="@id/icon" android:layout_width="@dimen/tw_notification_large_icon_size" android:layout_height="@dimen/tw_notification_large_icon_size" android:scaleType="centerInside" />
</LinearLayout>
<LinearLayout android:gravity="top" android:layout_gravity="fill_vertical" android:orientation="vertical" android:paddingTop="2.0dip" android:paddingRight="8.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_large_icon_width" android:minHeight="@dimen/notification_large_icon_height">
<LinearLayout android:orientation="horizontal" android:id="@id/line1" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" android:ellipsize="marquee" [COLOR="Red"]android:id="@id/title" [/COLOR]android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
<ViewStub android:layout_gravity="center" android:id="@id/time" android:visibility="gone" android:layout="@layout/notification_template_part_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.0" />
<ViewStub android:layout_gravity="center" android:id="@id/chronometer" android:visibility="gone" android:layout="@layout/notification_template_part_chronometer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.0" />
</LinearLayout>
<TextView android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Line2" android:ellipsize="marquee" android:id="@id/text2" android:visibility="gone" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_marginTop="-2.0dip" android:layout_marginBottom="-2.0dip" android:singleLine="true" />
<ProgressBar android:id="@id/progress" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="12.0dip" android:layout_marginLeft="0.0dip" style="?android:attr/progressBarStyleHorizontal" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/line3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.EventContent" android:ellipsize="marquee" android:layout_gravity="center" [COLOR="Red"]android:id="@id/text" [/COLOR]android:fadingEdge="horizontal" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info" android:gravity="center" android:layout_gravity="center" android:id="@id/info" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="0.0" />
<ImageView android:layout_gravity="center" android:id="@id/right_icon" android:visibility="gone" android:layout_width="16.0dip" android:layout_height="16.0dip" android:layout_marginLeft="8.0dip" android:scaleType="centerInside" android:layout_weight="0.0" android:drawableAlpha="153" />
</LinearLayout>
</LinearLayout>
</FrameLayout>

and processed by framework.jar in framework\android\app Notification.smali, i added these red codes in the file

.line 928
:cond_35
if-eqz p2, :cond_3d

.line 929
const v2, 0x1020016 [COLOR="Red"]<--this is title id[/COLOR]

invoke-virtual {v0, v2, p2}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

[COLOR="Red"]invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v7

const-string v8, "noti_title_text_color"

const v9, -0x1

invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v7

invoke-virtual {v0, v2, v7}, Landroid/widget/RemoteViews;->setTextColor(II)V[/COLOR]

.line 931
:cond_3d
if-eqz p3, :cond_45

.line 932
const v2, 0x1020046 [COLOR="Red"]<--this is text id[/COLOR]

invoke-virtual {v0, v2, p3}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V

[COLOR="Red"] invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v7

const-string v8, "noti_summary_text_color"

const v9, -0x1

invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v7

invoke-virtual {v0, v2, v7}, Landroid/widget/RemoteViews;->setTextColor(II)V[/COLOR]

.line 934
:cond_45
iget-wide v2, p0, Landroid/app/Notification;->when:J

const-wide/16 v4, 0x0

have you any suggestion?

thanks in advance