[Android Themes] Ticklefish:
There was a screenshot on the previous post, yes. But I wanted to see a screenshot with a notification you can clear...like an incoming SMS.

I think the problem is connected to this code:

<LinearLayout android:orientation="horizontal" android:background="#ff333333" android:layout_width="fill_parent" android:layout_height="32.0dip">
<TextView android:textSize="20.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/notification_title" android:paddingLeft="16.0dip" android:paddingRight="16.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_weight="1.0" />
<LinearLayout android:id="@id/clear_all_button" android:layout_width="60.0dip" android:layout_height="fill_parent">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/btn_parting_line" />
<ImageView android:id="@id/clearButtonImg" android:paddingLeft="29.0dip" android:paddingRight="29.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
</LinearLayout>

This is the code that's supposed to show your clear button and the "Notifications" text. For some reason, it's not showing. But I think Android is still allocating the appropriate space for it.

Try hiding this code as you did before..

<LinearLayout [color="red"]android:visibility="gone" [/color]android:orientation="horizontal" android:background="#ff333333" android:layout_width="[color="red"]0.0dip[/color]" android:layout_height="[color="red]0.0dip[/color]">
<TextView android:textSize="20.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/notification_title" android:paddingLeft="16.0dip" android:paddingRight="16.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_weight="1.0" />
<LinearLayout android:id="@id/clear_all_button" android:layout_width="60.0dip" android:layout_height="fill_parent">
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/btn_parting_line" />
<ImageView android:id="@id/clearButtonImg" android:paddingLeft="29.0dip" android:paddingRight="29.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
</LinearLayout>

I've changed the visibility and changed the height and width of this Layout to 0.0dip. Changing the height and width to 0.0dip may not be needed. It just means that, if Android forces the visibility back to visible, the Layout still doesn't show.

Sometimes you can find lines in xml which already have a visibility of 'gone'. These are often things that can made visible or invisible while the OS is running. On my stock Xperia rom, I can hide most of the individual parts of my statusbar from my settings app. And those have a 'gone' visibility in the status_bar.xml.

So setting the height and width to 0.0dip just makes sure they don't show.

Oh, but if you're setting the height and width to 0.0dip to hide something, you need to be sure you don't have "android:layout_weight" in the line as well.

I can explain why, but this post is long enough already! ;)