[Android Themes] petrukgrinder:
About :

This is for make CM7 ROM like Jellybean ROM layout on statusbar.

Credits :

- To Cool

- GDX Team

- DCSMS

- big thanks goes to AChep

Contents :

Post one:

-> Set up

-> Make Clock, date and day

-> Make Network speed on statusbar

-> Customize clear button

Tool used :

-> Apk Tool / Apk Manager / ToolAlite

-> SystemUI.apk

-> Notepad++

Screenshot :

Guide 1.0 : How To Make Date, Time and Day on Status Bar Expanded

1. you need to decompile your SystemUI.apk (please dont tell me how to do that)

2. extract my jelly.zip.. download on attachment below

3. copy 2 files blablablajellyblablabla.smali to SystemUI.apk/smali/com/android/systemui/statusbar/here

4. now you need to modify status_bar_expanded.xml find on SystemUI.apk/res/layout/here

for first you need to find this line :

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">

paste this code below :

<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />

5. now recompile your file and push to system/app

=======================================================================================================

Screenshot :

Guide 2.0 : How To Create Network Traffic Speed on Status Bar

1. you need to decompile your SystemUI.apk (please dont tell me how to do that)

2. extract my network.zip.. download on attachment below

3. copy folder smali to SystemUI.apk/here

4. now you need to modify status_bar.xml find on SystemUI.apk/res/layout/here

for first you need to find this line :

<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />

paste this code below :

<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<in.jmkl.dcsms.statusbargreper.DataTrafik android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>

5. now recompile your file and push to system/app

=======================================================================================================

Screenshot :

Guide 3.0 : How To Make Customization Your Clear Button

1. you need to decompile your SystemUI.apk (please dont tell me how to do that)

2. extract my clearbutton.zip.. download on attachment below

3. copy 3 files to drawable-xxxx (xxxx is by your phone, mdpi, hdpi, ldpi or xhdpi)

4. now you need to modify xxx.xml (create by your self), styles.xml, status_bar_expanded.xml

for first you need to create clear_button.xml on drawable folder and copy this line to your xml file :

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/btn_clear" />
<item android:state_pressed="true" android:drawable="@drawable/btn_clear_pressed" />
<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_focused="true" android:drawable="@drawable/btn_clear_focus" />
<item android:drawable="@drawable/btn_clear_focus" />
</selector>

now, open the styles.xml on SystemUI.apk/res/values/here and copy this line in the end before </resources> line :

<style name="Awesome.Button" parent="@android:style/Widget.Button">
<item name="android:textAppearance">?android:textAppearanceSmallInverse</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:gravity">center</item>
<item name="android:background">@drawable/clear_button</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
</style>

note : this line on red colors is pointed to your new xml file

<item name="android:background">@drawable/[COLOR="Red"]clear_button[/COLOR]</item>

now, open the status_bar_expanded.xml on SystemUI.apk/res/layout/here and find this line :

<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button"

modify the line styles or paste my line like this :

<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />

5. now recompile your file and push to system/app