[Galaxy S II Q&A, Help & Troubleshooting] Tired Storeman:
I am using the code below to insert a 1 pixel blue line a above and below the "Ongoing" and "Notification/Clear button" in the dropdown notification screen on Stock JB XWLSD, as in the screenshot 1.

Does anybody know if it is possiable to have the blue lines disapear when i press the clear button.

Currently when i press the clear button, the lines above and below the notification and clear button, merge into a 2 pixel blue line, as in screenshot 2.

And to make the blue lines disappear when i unplug my phone from my computer

When i unplug my phone from my computer, the blue lines above and below the ongoing, merge into a 2 pixel blue line, as in screenshot 3

And when my phone is unpluged and there are no notifications, all of the blue lines merge into a 4 pixel line at the top of the notification section, as in screenshot 4.

Is there a way to remove these blue lines when the are not being used by ongoing and notifications.

Or is there another code i can use to get the blue lines that i want, and to have theme dissapear when they are not needed.

Any help would be greatly appreciated.

[COLOR=Red]<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ff33b5e5" />[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#00000000" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textColor="#ff33b5e5" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
[COLOR=Red]<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ff33b5e5" />[/COLOR]
<com.android.systemui.statusbar.policy.NotificationRowLayout android:background="#00000000" android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
[COLOR=Red]<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ff33b5e5" />[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textColor="#ff33b5e5" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="#ff33b5e5" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
</LinearLayout>
[COLOR=Red]<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#ff33b5e5" />[/COLOR]
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>