FORUMS
Remove All Ads from XDA

[Q] Transparent Notification Drawer for ICS

991 posts
Thanks Meter: 2,715
 
By gmillz, Senior Member on 11th July 2012, 09:39 PM
Post Reply Email Thread
How do I get transparent notification drawer on Touchwiz ICS Roms? I can't seem to figure it out. If you could link me a guide that that would be great..

Any help would be appreciated.

Sent from my ASUS Transformer Pad TF300T using xda premium
 
 
15th July 2012, 03:53 PM |#2  
lichti1901's Avatar
Senior Member
Flag Riding my Bike
Thanks Meter: 9,418
 
Donate to Me
More
Quote:
Originally Posted by gmillz

How do I get transparent notification drawer on Touchwiz ICS Roms? I can't seem to figure it out. If you could link me a guide that that would be great..

Any help would be appreciated.

Sent from my ASUS Transformer Pad TF300T using xda premium

SystemUI.apk/res/layout/tw_status_bar_expand.xml

change it to android:background="#00000000"

That should do the trick
The Following 2 Users Say Thank You to lichti1901 For This Useful Post: [ View ] Gift lichti1901 Ad-Free
17th July 2012, 09:41 AM |#3  
starbucks2010's Avatar
Senior Member
Thanks Meter: 1,133
 
Donate to Me
More
What application do you use to edit the .xml file?

Thank you.
The Following User Says Thank You to starbucks2010 For This Useful Post: [ View ] Gift starbucks2010 Ad-Free
17th July 2012, 05:07 PM |#4  
io_gh0st's Avatar
Senior Member
Flag Colombo
Thanks Meter: 289
 
More
Any text editor can edit XML, even Notepad. But I would recommend Notepad++ on Windows or gedit on Linux.
18th July 2012, 08:44 AM |#5  
starbucks2010's Avatar
Senior Member
Thanks Meter: 1,133
 
Donate to Me
More
Thank you for recomandation but with any xml editor I tried I cannot find in the tw_status_bar_expand.xml file "android:background". I would like to modify the file to have 50% transparence.

Thank you.
18th July 2012, 12:42 PM |#6  
Retired Recognized Developer
Flag chennai
Thanks Meter: 485
 
Donate to Me
More
Quote:
Originally Posted by starbucks2010

Thank you for recomandation but with any xml editor I tried I cannot find in the tw_status_bar_expand.xml file "android:background". I would like to modify the file to have 50% transparence.

Thank you.

Here is my tw_status_bar_expand.xml.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <com.wanam.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
    <HorizontalScrollView android:id="@id/quicksetting_scroller" android:visibility="gone" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="wrap_content"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
        <com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
    </HorizontalScrollView>
    <RelativeLayout android:orientation="horizontal" android:background="@drawable/tw_plmn_bg" android:layout_width="fill_parent" android:layout_height="45.0dip" android:baselineAligned="false">
        <com.android.systemui.statusbar.phone.CarrierLabel android:textSize="17.329987dip" android:textColor="#ffb6ff00" android:ellipsize="marquee" android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="13.329987dip" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" />
        <com.android.systemui.statusbar.policy.DateView android:textSize="16.0dip" android:textColor="#ffb6ff00" android:gravity="center_vertical" android:id="@id/date" android:paddingLeft="6.669983dip" android:paddingRight="6.669983dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clear_all_button" />
        <TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="fill_parent" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
    </RelativeLayout>
    <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
        <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
            <LinearLayout android:orientation="vertical" android:id="@id/scroll_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/settings_button" android:background="@drawable/tw_notification_row_bg" android:paddingTop="5.0dip" android:paddingBottom="5.0dip" android:focusable="true" android:visibility="gone" android:clickable="true" android:layout_width="fill_parent" android:layout_height="@dimen/notification_height">
                    <ImageView android:layout_width="@dimen/notification_icon_width" android:layout_height="@dimen/notification_icon_height" android:layout_marginLeft="@dimen/notification_icon_marginleft" android:src="@drawable/tw_quickpanel_icon_settings" android:layout_weight="0.0" android:contentDescription="@string/accessibility_settings_button" />
                    <TextView android:textSize="16.0dip" android:textStyle="bold" android:textColor="#ffb6ff00" android:id="@id/settings_button_text" android:paddingLeft="9.339996dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:layout_weight="100.0" android:alpha="0.7" />
                </LinearLayout>
                <LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:layout_width="fill_parent" android:layout_height="26.669983dip">
                    <TextView android:textSize="14.669983dip" android:textStyle="bold" android:textColor="#ffb6ff00" android:gravity="left|center" android:id="@id/noNotificationsText" android:background="@drawable/tw_quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
                </LinearLayout>
                <LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <TextView android:textSize="14.669983dip" android:typeface="sans" android:textColor="#ffb6ff00" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:background="@drawable/tw_quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
                </LinearLayout>
                <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
                <LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <TextView android:textSize="14.669983dip" android:typeface="sans" android:textColor="#ffb6ff00" android:gravity="left|center" android:id="@id/latestNotificationText" android:background="@drawable/tw_quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
                </LinearLayout>
                <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
                <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
            </LinearLayout>
        </FrameLayout>
    </ScrollView>
</com.android.systemui.statusbar.phone.ExpandedView>
The red color shows where is it.Just edit it to what ever color you want.for example android:background="#00000000" to make it pure white.

The color code is made like this:
ggRRGGBB
where,
gg-Gamma (responsible for the transparency)
RR-contribution of red
GG-contribution of green
BB-contribution of blue.

Always the colors are given as hex.Whenever you give the color make sure you prefix the color with #.
To calculate the hex value for a given percent,Use this formula: (255/100)*x.Where x is the percentage of transparency you want.
You can do this in windows calculator by these steps:
1.Open win calc and press alt+3
2.make sure decimal radio button is clicked centre left of win calc
3.apply the formula I gave you above
4.after you get your value click on hex radio button on the centre left box of win calc and you will have the hex value.

To get the value of RRGGBB in hex this will be useful

Tip:00 means no contribution of that color.ff means full contribution of that color.
Hence for 000000 there is no contribution of Red,Green and Blue.So the color is white.For ffffff Red,Green and Blue gives full contribution so black .Note:The above example is without gamma.That is,it is jut RRGGBB with missing gg
The Following 2 Users Say Thank You to vijai2011 For This Useful Post: [ View ] Gift vijai2011 Ad-Free
18th July 2012, 03:23 PM |#7  
starbucks2010's Avatar
Senior Member
Thanks Meter: 1,133
 
Donate to Me
More
thank you for your detailed answer but how can I modify the file when all I can see is this?



Best regards.
Attached Thumbnails
Click image for larger version

Name:	tw_status_bar.jpg
Views:	244
Size:	195.1 KB
ID:	1206454  
18th July 2012, 03:27 PM |#8  
racinwarrior's Avatar
Senior Member
Thanks Meter: 540
 
Donate to Me
More
Quote:
Originally Posted by starbucks2010

thank you for your detailed answer but how can I modify the file when all I can see is this?



Best regards.

you need to decompile systemUI
18th July 2012, 03:42 PM |#9  
Retired Recognized Developer
Flag chennai
Thanks Meter: 485
 
Donate to Me
More
Quote:
Originally Posted by starbucks2010

thank you for your detailed answer but how can I modify the file when all I can see is this?



Best regards.

Lol...man first you need to decompile systemUI.apk with dependencies of framework-res.apk.
To decompile apk's:
1.Install java SDK-simple google search would bring it up.
2.Use wannam apk tool from here and follow the guide to decompile SystemUI.apk and then open the file with notepad++(you can even use notepad but notepad++ is easier) and start editing
18th July 2012, 03:46 PM |#10  
alvin551's Avatar
Senior Member
Flag Swansea
Thanks Meter: 660
 
Donate to Me
More
I have decompiled systemui.apk properly but when i go to tw_status_bar_expanded i cant find this line: android:background="@drawable/tw_quickpanel_title_background"

here is mine
Code:
      <LinearLayout android:orientation="vertical" android:id="@id/scroll_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <LinearLayout android:orientation="horizontal" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">
                <ImageView android:id="@id/brightness_icon" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/tw_quickpanel_icon_brightness" />
                <com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
            </LinearLayout>
            <View android:background="#ff091a24" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="1.0dip" />
            <RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_notification_row_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_setting_button_height">
                <ImageView android:id="@id/settings_button_icon" android:layout_width="@android:dimen/notification_large_icon_width" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
                <TextView android:textSize="@dimen/status_bar_expanded_setting_button_text_size" android:textColor="#ffd7d7d7" android:id="@id/settings_button_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:layout_toRightOf="@id/settings_button_icon" android:layout_centerVertical="true" />
                <View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_alignParentBottom="true" />
            </RelativeLayout>
            <LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
            </LinearLayout>
            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff293945" 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:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
                    </LinearLayout>
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/status_bar_expanded_notification_height" />
                    <LinearLayout android:orientation="horizontal" android:id="@id/notificationCart" android:background="#ff293945" 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:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="wrap_content" 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="@color/tw_status_bar_clear_btn_text" 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>
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/status_bar_expanded_notification_height" />
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
                </LinearLayout>
            </FrameLayout>
        </LinearLayout>
    </ScrollView>
</com.android.systemui.statusbar.phone.ExpandedView>
Can anyone help me? thanks
18th July 2012, 04:00 PM |#11  
Retired Recognized Developer
Flag chennai
Thanks Meter: 485
 
Donate to Me
More
Quote:
Originally Posted by alvin551

I have decompiled systemui.apk properly but when i go to tw_status_bar_expanded i cant find this line: android:background="@drawable/tw_quickpanel_title_background"

here is mine

Code:
      <LinearLayout android:orientation="vertical" android:id="@id/scroll_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <LinearLayout android:orientation="horizontal" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">
                <ImageView android:id="@id/brightness_icon" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/tw_quickpanel_icon_brightness" />
                <com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
            </LinearLayout>
            <View android:background="#ff091a24" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="1.0dip" />
            <RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_notification_row_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_setting_button_height">
                <ImageView android:id="@id/settings_button_icon" android:layout_width="@android:dimen/notification_large_icon_width" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
                <TextView android:textSize="@dimen/status_bar_expanded_setting_button_text_size" android:textColor="#ffd7d7d7" android:id="@id/settings_button_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:layout_toRightOf="@id/settings_button_icon" android:layout_centerVertical="true" />
                <View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_alignParentBottom="true" />
            </RelativeLayout>
            <LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
            </LinearLayout>
            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff293945" 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:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
                    </LinearLayout>
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/status_bar_expanded_notification_height" />
                    <LinearLayout android:orientation="horizontal" android:id="@id/notificationCart" android:background="#ff293945" 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:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="wrap_content" 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="@color/tw_status_bar_clear_btn_text" 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>
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/status_bar_expanded_notification_height" />
                    <com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
                </LinearLayout>
            </FrameLayout>
        </LinearLayout>
    </ScrollView>
</com.android.systemui.statusbar.phone.ExpandedView>
Can anyone help me? thanks

your is this:
Code:
android:background="#ff293945"
So edit that to your liking
The Following User Says Thank You to vijai2011 For This Useful Post: [ View ] Gift vijai2011 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes