Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
gmillz
Old
#1  
gmillz's Avatar
Senior Member - OP
Thanks Meter 993
Posts: 618
Join Date: Mar 2012
Location: Shreveport

 
DONATE TO ME
Default [Q] Transparent Notification Drawer for ICS

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
AT&T Samsung Galaxy S III = Slim Bean 4.2.1

Asus Transformer Pad TF300T = Slim Bean 4.2.1
 
lichti1901
Old
#2  
lichti1901's Avatar
Senior Member
Thanks Meter 2071
Posts: 2,355
Join Date: Sep 2010
Location: Austrian Android City

 
DONATE TO ME
Quote:
Originally Posted by gmillz View Post
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
My github
///Sent from my Trinity powered RasBeanJelly Nexus 4///
///RasBeanJelly -May the force be with you///
The Following 2 Users Say Thank You to lichti1901 For This Useful Post: [ Click to Expand ]
 
starbucks2010
Old
#3  
Senior Member
Thanks Meter 141
Posts: 945
Join Date: Jun 2010
What application do you use to edit the .xml file?

Thank you.
The Following User Says Thank You to starbucks2010 For This Useful Post: [ Click to Expand ]
 
Renan Lazarotto
Old
#4  
Renan Lazarotto's Avatar
Senior Member
Thanks Meter 168
Posts: 586
Join Date: Sep 2011
Location: Curitiba
Any text editor can edit XML, even Notepad. But I would recommend Notepad++ on Windows or gedit on Linux.
 
starbucks2010
Old
#5  
Senior Member
Thanks Meter 141
Posts: 945
Join Date: Jun 2010
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.
 
vijai2011
Old
(Last edited by vijai2011; 18th July 2012 at 12:49 PM.)
#6  
Senior Member
Thanks Meter 400
Posts: 806
Join Date: Oct 2011
Location: chennai

 
DONATE TO ME
Quote:
Originally Posted by starbucks2010 View Post
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: [ Click to Expand ]
 
starbucks2010
Old
#7  
Senior Member
Thanks Meter 141
Posts: 945
Join Date: Jun 2010
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:	192
Size:	195.1 KB
ID:	1206454  
 
racinwarrior
Old
#8  
racinwarrior's Avatar
Senior Member
Thanks Meter 417
Posts: 1,081
Join Date: Aug 2010

 
DONATE TO ME
Quote:
Originally Posted by starbucks2010 View Post
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
 
vijai2011
Old
#9  
Senior Member
Thanks Meter 400
Posts: 806
Join Date: Oct 2011
Location: chennai

 
DONATE TO ME
Quote:
Originally Posted by starbucks2010 View Post
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
 
alvin551
Old
#10  
alvin551's Avatar
Senior Member
Thanks Meter 402
Posts: 679
Join Date: Mar 2012
Location: Swansea

 
DONATE TO ME
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
If i helped you in anyway please click the THANKS button or consider a donation Thanks

paypal: alvin_jps@hotmail.com

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...