GUIDE HOW TO Bottom Toggle & Semi Transparent Notification drawer for CM10
Here is the beginning :
[Mod/Theme--CM10] for CM10 alpha3.kernel.2.6 *** RELOADED***
-------------------------------------------------------------------------------------------------------------------<<<<<<<<<<<<<<<<<<<<<<<<
GUIDE HOW TO - BOTTOM TOGGLE & SEMI TRANSPARENT NOTIFICATION DRAWER FOR CM10
SystemUI/res/layout/status_bar_expanded.xml
Code :
( - ) = Delete
( + ) = Add
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
- <com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="always">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
+ <com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
SystemUI/res/value/dimens.xml
code :
Code:
<dimen name="close_handle_height">100.0dip</dimen>
for Semi Transparent Notification Drawer
SystemUI/smali/com/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable.smali
code :
find this line
Code:
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable;->mColor:I
Delete and replace with this line
Code:
const v0, 0xd8000000
for toggle background color
SystemUI/res/drawable/stat_power_background.xml
( - ) = Delete
( + ) = Add
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
+ <item android:state_pressed="false" android:drawable="@android:color/black" />
</selector>
done
And all edited are going to be like this
if you can see there is white highlight behind Notification Expanded header (Clock/Date/Setting Button),
and big Drag handle at the bottom of toggle.
Here is I made some fix.
How to do that ?
you must do all the editted of xml and smali file first, recompile and then flash the Modded systemUI.apk to your CM10 Rom.
Done that, Exstract your modded apk and push new resources to res/drawable-hdpi, Re-pact it and flash it
rename the resources to :
notification_header_bg.9.png
status_bar_close_off.9.png
status_bar_close_on.9.png
resources to : systemUIres/drawable-hdpi :
http://www.mediafire.com/?sey6ohpzd97b8w8
Credit & Thanks to :
Arco for CM10
reaper61616 for source Transparent notification drawer CM10