Forumsee logo
Forumsee » Mobility » Cellphones » Read message
RSS: Subscribe to RSS

Transparent StatusBar, Center Clock, Carrier Logo..

Optimus One, P500, V Themes and Apps - xda-developers - forum.xda-developers.com
Transparent - SemiTransparent Statusbar

1. Get SystemUI.apk, framework-res.apk from your phone

2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]

3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to your decompiled folder and go to

Quote:

/SystemUI/smali/com/android/systemui/statusbar/StatusBar.smali

5. Search this line:

Code:

invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V

6. Above this line, change :

Code:

const/16 v16, 0x4

To:

Code:

const/16 v16, -0x3

7. Save the file

8. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/values/drawables.xml

9. Search this line:

Code:

<item type="drawable" name="status_bar_background">#ff000000</item>

10. Change the value of status_bar_background

Completely transparent:

Code:

<item type="drawable" name="status_bar_background">#00FFFFFF</item>

50% transparent:

Code:

<item type="drawable" name="status_bar_background">#7f000000</item>

11. Save the file

12. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk

13. Sign the new apk and rename back to: SystemUI.apk

14. Push the new SystemUI.apk to your phone

15. Enjoy

Custom carrier logo in status bar

How to add as a feature to CM9/AOKP like MIUI:

1. Get SystemUI.apk, framework-res.apk from your phone

2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]

3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/layouts/status_bar.xml

5. Find the line that starts with this:

Code:

<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">

6. Replace the new line with this line:

Code:

<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">

<com.android.systemui.statusbar.phone.CarrierLabel android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />

Now you can just add any .png's what you want, name it carrier_logo.png and place it in the /res/drawable-mdpi folder. But be carreful about size of image maximum size is around 60x40 pixels)

7. Save the file

8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk

9. Sign the new apk and rename back to: SystemUI.apk

10. Push the new SystemUI.apk to your phone

11. Enjoy

Center Clock:

1. Get SystemUI.apk, framework-res.apk from your phone

2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]

3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/layouts/status_bar.xml

5. Find the line that starts with this:

Code:

<com.android.systemui.statusbar.policy.Clock

5. Delete the whole line but only between brackets

6. Next go to the top of your status_bar.xml and place your cursor at the end of this line:

Code:

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

7. Press Enter to create an empty line

8. Place cursor at the beginning of that empty space and paste this line:

Code:

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">

<com.android.systemui.statusbar.policy.Clock android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />

</LinearLayout>

9. The next thing is to find this line:

Code:

<LinearLayout android:orientation="horizontal" android:id="@id/ticker"

10. After "@id/ticker" yiuo have to add this drawable (is not neccesary to create image is already exist):

Code:

android:background="@drawable/status_bar_bg_tile"

7. Save the file

8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk

9. Sign the new apk and rename back to: SystemUI.apk

10. Push the new SystemUI.apk to your phone

11. Enjoy

Center Date:

1. Get SystemUI.apk, framework-res.apk from your phone

2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]

3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/layouts/status_bar_expanded.xml

5. Find the line that starts with this:

Code:

<com.android.systemui.statusbar.policy.DateView android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />

5. Replace whole line by this one

Code:

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">

<com.android.systemui.statusbar.policy.DateView android:gravity="center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

</LinearLayout>

6. Save the file

7. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk

8. Sign the new apk and rename back to: SystemUI.apk

9. Push the new SystemUI.apk to your phone

10. Enjoy

Fix for small space between WiFI and Signal icon:

1. Get SystemUI.apk, framework-res.apk from your phone

2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]

3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to the

Quote:

SystemUI/res/layout/signal_cluster_view.xml

5. Find the line started

Code:

<FrameLayout android:id="@id/wifi_combo"

6. Replace whole line by this one:

Code:

<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="1.0dip">

7. Save the file

8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk

9. Sign the new apk and rename back to: SystemUI.apk

10. Push the new SystemUI.apk to your phone

11. Enjoy

Whole this MOD's looks like in status_bar.xml:

Code:

<?xml version="1.0" encoding="utf-8"?>

<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">

<com.android.systemui.statusbar.policy.Clock android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />

</LinearLayout>

<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">

<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">

<com.android.systemui.statusbar.phone.CarrierLabel android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />

<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />

<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />

</LinearLayout>

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

<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">

<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />

<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />

<TextView android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />

<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />

</LinearLayout>

</LinearLayout>

<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">

<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">

<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />

<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />

</ImageSwitcher>

<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">

<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />

<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />

</com.android.systemui.statusbar.phone.TickerView>

</LinearLayout>

</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Date: Jul 19, 2012   


Last videos:

How to Put MP3/M4A/FLAC/AIFF Music to Huawei P9 ?
How to Put MP3/M4A/FLAC/AIFF Music to Huawei P9 ?
Samsung j1 mini lcd screen replacement
Samsung j1 mini lcd screen replacement
Sony Xperia Z not Charging 100% tested
Sony Xperia Z not Charging 100% tested
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos
professional smartphone Repair deep Level 4 Full videos

Tags

Cars ·
Travel ·
Pets ·
production-frontend