Hi Guys, I saw that evanlocked have not yet updated his guide
FlyMeOS StatusBar Mod as he is busy with his life. So I have made a guide on it.
Preview:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
ApkTool
NotePad++
SystemUI.apk
framework-res.apk
SystemUI.zip
So let's start..
1. Decompile SystemUI.apk using ApkTool
2. Extract SystemUI.zip and copy the smali files in their respective folders
3. Navigate to SystemUI\res\layout and open status_bar.xml
with NotePad++
4. Compare your status_bar.xml with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:orientation="horizontal" android:id="@id/clock_panel" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.b16h22.statusbar.ClockHolo android:textSize="10.0sp" android:layout_gravity="center_vertical" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.b16h22.statusbar.Day android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_toRightOf="@id/clock" />
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
<LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.android.systemui.statusbar.IconMerger android:gravity="right" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="right" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ff000000" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="7.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Animation.LockScreen" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Animation.LockScreen" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
5. Open SystemUI\res\values\ids.xml and add these ids
Code:
<item type="id" name="clock">false</item>
<item type="id" name="dayView">false</item>
<item type="id" name="dateView">false</item>
<item type="id" name="clock_panel">false</item>
6. Recompile SystemUI and again Decompile it.
7. Open SystemUI\res\values\public.xml
8. Note public ids of these
Code:
<public type="id" name="dayView"
<public type="id" name="dateView"
9. Open SystemUI\smali\com\b16h22\statusbar\Day.smali
Find this code
Code:
const v7, [color="red"]0x7f09002b[/color]
Replace the highlighted text with public id of dayView
10. Open SystemUI\smali\com\b16h22\statusbar\Date.smali
Find these codes
Code:
const v4, [color="red"]0x7f09002c[/color]
Code:
const v7, [color="red"]0x7f09002c[/color]
Replace the highlighted text with public id of dateView
11. Recompile SystemUI.apk
12. Decompile framework-res.apk
13. Open framework-res\res\values\dimens.xml
14. Find this code
Code:
<dimen name="status_bar_height">25.0dip</dimen>
Change it to
Code:
<dimen name="status_bar_height">40.0dip</dimen>
15. Now find this code
Code:
<dimen name="status_bar_icon_size">25.0dip</dimen>
Change it to
Code:
<dimen name="status_bar_icon_size">20.0dip</dimen>
16. Recompile framework-res.apk
17. Push SystemUI.apk to system\app and
framework-res.apk to system\framework and
set proper permissions (rw-r--r--)
Change StatusBar Color
To change statusbar color
Decompile SystemUI
open res/layout/statusbar.xml
find this line
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="[COLOR="Red"]#00000000[/COLOR]"
change the highlighted hex code with your color hex code
Recompile SystemUI
push it to system/app
set proper permissions(rw-r--r--)
Add Day over Date
Preview:
To add day over the date
Decompile SystemUI
open res/layout/statusbar.xml
find this line
Code:
<com.b16h22.statusbar.Day android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Day android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_toRightOf="@id/clock" />
then find this line
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_toRightOf="@id/clock" android:layout_alignParentBottom="true" />
Recompile SystemUI
Push it to system\app
set proper permissions(rw-r--r--)
Remove Date
Preview:
To remove date
Decompile SystemUI
open res/layout/statusbar.xml
find this line
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Date android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="0.0dip" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" />
Recompile SystemUI
Push it to system\app
set proper permissions(rw-r--r--)
24-hour format clock(Thanks to Minions_Army)
Preview:
To use 24-hour format clock
Download 24Hours_Smali.zip
MediaFire Link
DevHost Link
Extract it
Decompile SystemUI
Navigate to smali\b16h22\statusbar\
Copy and Paste the Extracted ClockHolo.smali there
if asked to replace, click yes
Recompile SystemUI
Push it to system\app
set proper permissions(rw-r--r--)
Credits:
MatZ69
Minions_Army
evanlocked
b16h22
great,thats what im waiting for,evan and you done a good job!!!!!thanx bro :good:
Was waiting for this.......
nice guide. gonna try it. btw plz disable smileys in the op.
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
Very difficult to implement on lenox statusbar. It`s coding are all different. Can u help me @op to implement it in Lenox statusbar.
KnightlyNinja said:
Very difficult to implement on lenox statusbar. It`s coding are all different. Can u help me @op to implement it in Lenox statusbar.
Click to expand...
Click to collapse
Ya...Sure!
how to implement this systemUI on Hyperion 8 GM Final without Date at center ?
kevin_tn said:
how to implement this systemUI on Hyperion 8 GM Final without Date at center ?
Click to expand...
Click to collapse
Find this line
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Date android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="0.0dip" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" />
MuSaddiq1410 said:
Ya...Sure!
Click to expand...
Click to collapse
Wait i think i got it. Will report after sometime..............
Edit : Finally got it to work on Lenox. haha
KnightlyNinja said:
Wait i think i got it. Will report after sometime..............
Edit : Finally got it to work on Lenox. haha
Click to expand...
Click to collapse
Cool Bro! :good:
Oi op would you created this for hype 8 gm ? I mean flashable or apks one
And another one
Can you share your systemui ? :highfive:
Mranggapo said:
Oi op would you created this for hype 8 gm ? I mean flashable or apks one
Click to expand...
Click to collapse
Sorry Bro, I am busy now. WIll make flashable zips for H8GM, LE v2.1, etc etc later...
MuSaddiq1410 said:
Sorry Bro, I am busy now. WIll make flashable zips for H8GM, LE v2.1, etc etc later...
Click to expand...
Click to collapse
Im waiting bro :good::cyclops:
Mranggapo said:
Im waiting bro :good::cyclops:
Click to expand...
Click to collapse
i tried in H8 GM and it worked.why don't you try it ?
Good!
But i think, @MatZ69 can be in credits too
Sent from my GT-S5830i using xda premium
misha1996 said:
Good!
But i think, @MatZ69 can be in credits too
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Oh Yes, You're right! I totally forgot about him. Will add him in credits asap!
Edit: Done.
kevin_tn said:
i tried in H8 GM and it worked.why don't you try it ?
Click to expand...
Click to collapse
I dont hav apktool beside my brother didnt allow me, would you like to share your systemui ?
@op this mod can be applied on cm7?
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
burak144 said:
@op this mod can be applied on cm7?
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
Click to expand...
Click to collapse
I think this is only for Stock Based Roms...
Sent from my y-Phone
MuSaddiq1410 said:
I think this is only for Stock Based Roms...
Sent from my y-Phone
Click to expand...
Click to collapse
hello sir. how to add the day(ex. Sunday) over the date? thanks for this guide..
Related
this is me first posting in xda...
The first opportunity .. I try to share a little trick to modify SystemUI.apk (ICS)
Requirement:
-understand how to decompile and compile using apktool or something
how to MOD????
read carefully the text below
previously downloaded this as a complement:
https://www.dropbox.com/s/xlv0r4cmg6fe2ko/SmaliTB_2.zip
https://www.dropbox.com/s/s2teuqzpz2qtbrl/carrier_logo.png
I use apktool
pull systemUI.apk in the folder system / app and framework-res.apk and SemcGenericUxpRes.apk in system / framework
to u folder apktool
open apktool..
instal framework-res.apk and SemcGenericUxpRes.apk
Code:
apktool if framework-res.apk (enter) and apktool if SemcGenericUXPRes.apk (enter)
again... decompile SystemUI.apk
Code:
apktool d SystemUI.apk
open folder SystemUI/res/layout/Status_bar.xml
Compare this... code to u xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/statusbar_costum_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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">
<ImageView android:gravity="left|center" android:id="@id/carrier_logo_id" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/carrier_logo" android:scaleType="fitCenter" android:adjustViewBounds="true" />
<LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconPartitioner android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="wrap_content" 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="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.IconPartitioner>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="16.0dip" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="right" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stat_no_sim" android:background="@drawable/stat_sys_no_sim" android:paddingLeft="2.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:singleLine="true" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="0.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="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="left|center" android:id="@id/name_carrier_id" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/carrier_name_abal" android:singleLine="true" style="@style/StatusBarNotificationText" />
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:visibility="gone" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" 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:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" 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>
next..
open folder SystemUI\smali\com\android\systemui\statusbar\policy
copy and paste
Traffic$1.smali
Traffic$2.smali
Traffic$3.smali
Traffic$SettingsObserver.smali
Traffic.smali
next...
open open ids.xml in folder SystemUI/res/value/ids.xml
add this code
Code:
<item type="id" name="traffic">false</item>
<item type="id" name="carrier_logo_id">false</item>
<item type="id" name="name_carrier_id">false</item>
The above </resources>
like this
Code:
<item type="id" name="traffic">false</item>
<item type="id" name="carrier_logo_id">false</item>
<item type="id" name="name_carrier_id">false</item>
</resources>
next...
open strings.xml in folder SystemUI/res/value/strings.xml
add this code
Code:
<string name="carrier_name_abal">Paboya</string>
text Paboya you can replace up to you
The above </resources>
like this
Code:
<string name="carrier_name_abal">Paboya</string>
</resources>
again...
open styles.xml in folder SystemUI/res/value/styles.xml
add this code
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
The above </resources>
like this
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
</resources>
next..
open folder SystemUI\res\drawable-hdpi add carrier_logo.png
finish.......
and recompile...
Code:
apktool b SystemUI
next step...
decompile framework-res.apk and open dimens.xml
find this code:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
change dpi to...:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
next find again this code:
Code:
<dimen name="status_bar_icon_size">25.0dip</dimen>
change dpi to...:
Code:
<dimen name="status_bar_icon_size">30.0dip</dimen>
can you adjust the dip changes
finish.........
recomnpile again...
Code:
apktool b framework-res
done..........
push SystemUI.apk and framework-res.apk
SystemUI.apk to system/app
framework-res.apk to system/framework.
reboot.....
download For ICS:
for who want to try here I am using stock ics 54 if you want to try on the next or previous version ....
I am not responsible if there bootlop
but the possibility systemUI.apk can be used in all the rom.
tested b.10/54/89
https://www.dropbox.com/s/p5ej8hoxz7dw438/flymelikeUI.zip
flash on cwm...
flymelikeUI.zip
wipe cache n dalvic if any problem
download For FXP:
https://www.dropbox.com/s/w8n2lhg51gz76qe/FXPflymelikeUI.zip
flash on cwm...
FXPflymelikeUI.zip
wipe cache n dalvic if any problem
Dowload for JB:
Soon
ss ICS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ss FXP:
may be useful if there is a mistake you can tell me :highfive:
And the result ? Any screenshots ?
dude thats too much....find a way to create a flashable zip...take help from other members..
Sory
sorry was trying to make a thread ... I am a junior member
yes
niku4uster said:
dude thats too much....find a way to create a flashable zip...take help from other members..
Click to expand...
Click to collapse
wait dude
pretty cool thanks
tut can get a little polished though.. no offence
Me said:
pretty cool thanks
tut can get a little polished though.. no offence
Click to expand...
Click to collapse
sorry in advance there is little error
for guidance
More screenshoot
....
Ruliindrapraja said:
More screenshot
♪thx dude
Click to expand...
Click to collapse
:good: AWEWE SOME..LOL
Is there a way to make this work on jb would be amazing if it did
Sent from my LT22i using xda premium
Please port it to cm9 systemui!!
Enviado desde mi Xperia U usando Tapatalk 2
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
aybykut3 said:
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
Click to expand...
Click to collapse
Here you go, made it fast
Edit: Hmm I can't post a link because I don't have 10 posts...
I will send it in PM
Thanks!Very good!5+!!!!!
Android 4.0.4,stok,1.10
Sent from my ST25i using xda premium
Sent from my ST25i using xda premium
CONdemmedNORmal said:
Is there a way to make this work on jb would be amazing if it did
Sent from my LT22i using xda premium
Click to expand...
Click to collapse
Either way ... maybe you can be patient I will make in JB
zie.do2y said:
Either way ... maybe you can be patient I will make in JB
Click to expand...
Click to collapse
Well I was being patient I wasn't exactly going on saying why isn't this for jb or any crap like that I was simply asking if it would be available
Sent from my LT22i using xda premium
aybykut3 said:
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
Click to expand...
Click to collapse
copy thi code:
<ImageView android:gravity="left|center" android:id="@id/carrier_logo_id" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/carrier_logo" android:scaleType="fitCenter" android:adjustViewBounds="true" />
to StatuSbar.xml place it as you wish ...
Enter carrier_logo.png to drawable-hdpi folder
open idS.xml add this code:
<item type="id" name="carrier_logo_id"> false </ item>
recompile ... done
CONdemmedNORmal said:
Well I was being patient I wasn't exactly going on saying why isn't this for jb or any crap like that I was simply asking if it would be available
Sent from my LT22i using xda premium
Click to expand...
Click to collapse
I have not tried to apply it to jb but One friend I have tried and succeeded ... I am still waiting for JB really fix
This guide is for adding Carrier Label in Statusbar, inspired by Motorola Moto X and HTC First
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Don't know how to decompile? You can ask me to build your SystemUI :good:
Things you will need
PC or Laptop
apktool, zipalign and others
WinRAR or WinZip
Notepad++
Patience!
Click to expand...
Click to collapse
So, lets begin..
INSTALLING APKTOOL AND OTHER TOOLS
STEP 1
You must install apktool to your PC from HERE and other tools HERE
Extract it to a same directory same as the screenshot below
Then, copy cmd from Windows/System32 Directory (ex. C:\Windows\System32) and move it your apktool directory
STEP 2
Download zipalign from HERE, move it to Windows Directory (ex. C:\Windows)
GUIDE FOR ADDING CARRIER LABEL TO STATUSBAR
STEP 1
Before continuing, please MAKE SURE your apktool version is v1.5.2 or lower. Newer version of apktool will gives you error! See here
Copy your framework-res.apk from system/framework and SystemUI.apk from /system/app/ (/system/priv-app/ For KK-Based) then place it in your apktool directory
STEP 2
Open cmd in your apktool directory, type
Code:
apktool if framework-res.apk
and
Code:
apktool if SystemUI.apk
then
Code:
apktool d SystemUI.apk
STEP 3
Go to SystemUI\res\layout\
Open status_bar.xml with Notepad++
Go to this
For ICS-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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" />
For JB-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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" />
For JB-4.2/4.3-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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" />
For KK-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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" />
add this between those line
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like this
For ICS-Based
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="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" />
For JB-Based
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="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" />
For JB-4.2/4.3-Based
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="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" />
For KK-Based
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="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" />
and save
STEP 4
For JB-Based, Go to SystemUI\res\layout\
Open status_bar_expanded_header.xml with Notepad++
Go to this
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="red"]android:background="@drawable/notification_header_bg"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
change to
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
and save
STEP 5
Download this, place to the correct location on your compiled SystemUI
STEP 6
Open cmd in your apktool directory, type
Code:
apktool b SystemUI al.apk
then open al.apk and SystemUI.apk with WinRAR, drag META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk same as the screenshot below, when it ask to compress click OK
STEP 7
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk SystemUImod.apk
STEP 8
Move your SystemUImod.apk to your phone, rename to SystemUI.apk, move it to /system/app/ (/system/priv-app/ For KK-Based) and change permission to rw-r--r--
Then reboot
reserved
CARRIER LABEL BEHAVIOR
CarrierLabel (for desired your custom color for Carrier Label, but if you using CM theme that changing your Clock's color to red, then CarrierLabel color will NOT changing (still white/holo_blue_light)
Clock (for following Clock's color, so if you using CM theme that changing your Clock's color to red, then Carrier Label color will turn to red too)
Click to expand...
Click to collapse
COLOR
holo_blue_light (for Holo Blue ex. Motorola Moto X Carrier Label on post #1)
white (for White ex. HTC First Carrier Label on post #1)
Click to expand...
Click to collapse
CREDITS TO
@Adi Aisiteru Reborn for his original guide here[/CENTER]
Hmmm...nice guide my friends....
just one questions, is it possible to make the carrier label temporary disappear then a notification appear???
if you look closely, the status bar will stack up with a lot on icon if the the carrier label doesn't disappear and it will become more worse if they use center clock on their status bar....
@Adi Aisiteru Reborn, there's a question from another member, from my device forum, here's the question
iPusak Gaoq™ said:
Hmmm...nice guide my friends....
just one questions, is it possible to make the carrier label temporary disappear then a notification appear???
if you look closely, the status bar will stack up with a lot on icon if the the carrier label doesn't disappear and it will become more worse if they use center clock on their status bar....
Click to expand...
Click to collapse
Actually he's right. I'm not using Center Clock, but my Status Bar nearly full
(Vodafone in Indonesia lolz )
Are it's possible to make Carrier Label gone if there's a ongoing or unopened notification(s)?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Diaz1999 said:
@Adi Aisiteru Reborn, there's a question from another member, from my device forum, here's the question
Actually he's right. I'm not using Center Clock, but my Status Bar nearly full
(Vodafone in Indonesia lolz )
Are it's possible to make Carrier Label gone if there's a ongoing or unopened notification(s)?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Click to expand...
Click to collapse
good idea, but don't know yet where to start,. it can be improving smali code,.
Few links here worth reading - http://forum.xda-developers.com/showthread.php?t=1566639
Diaz1999 said:
@Adi Aisiteru Reborn, there's a question from another member, from my device forum, here's the question
Actually he's right. I'm not using Center Clock, but my Status Bar nearly full
(Vodafone in Indonesia lolz )
Are it's possible to make Carrier Label gone if there's a ongoing or unopened notification(s)?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Click to expand...
Click to collapse
Hmm.. Yeah, it should be.
In fact, now that I think about it, it should be pretty simple.
I'll do some experimenting and I'll get back to you. It won't be today, sadly, because I'm not near a pc but it'll be the next few days for sure.
Sent from my Xperia Z using XDA Premium
..Have you tried Tickle My Android yet?
So, this is how we can have the carrier label and our notification icons, without it all taking up too much room. We want the carrier label to be on the left side of the statusbar, but to vanish when a notification comes in.
This is the code for the stock ICS statusbar, with the carrier label added:
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"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<ImageView android:id="@id/stat_no_sim" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" android:layout_gravity="center_vertical" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animationCache="false">
<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:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Without going into too much detail the statusbar basically consists of two horizontal LinearLayouts, one on top of the other.
The first LinearLayout, which is the full width of the statusbar, contains all our notification icons, status icons, signal icons, clock and so on. In the above code, it's called the '@id/icons' LinearLayout.
The second LinearLayout, which is also the full width of the statusbar, contains our notification text. This is what we see when a notification arrives. This is called the '@id/ticker' LinearLayout. (In case you were wondering, this is a reference to tickertape.)
Normally the ticker layout is empty because, although you may have uncleared notifications, you're not getting one all the time. When you do get a notification, the layout stops being empty and now contains icons and text for a second or two. During this time, the icons layout is pushed upwards, effectively making it disappear off the top of the screen.
To make our carrier label disappear once there's at least one notification icon to display, all we need to do is basically do the same thing.
So, this bit of code here goes from:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
to:
Code:
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="fill_parent"
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
Now, here's the catch. This is untested. I can't currently test this on my phone as it's too heavily modified and I don't have the stock SystemUI.apk anymore.
So it's up to you to try it out. Give it a whirl, see what happens and let me know...but make sure to always make a backup!
Ticklefish said:
So, this is how we can have the carrier label and our notification icons, without it all taking up too much room. We want the carrier label to be on the left side of the statusbar, but to vanish when a notification comes in.
This is the code for the stock ICS statusbar, with the carrier label added:
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"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<ImageView android:id="@id/stat_no_sim" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" android:layout_gravity="center_vertical" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animationCache="false">
<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:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Without going into too much detail the statusbar basically consists of two horizontal LinearLayouts, one on top of the other.
The first LinearLayout, which is the full width of the statusbar, contains all our notification icons, status icons, signal icons, clock and so on. In the above code, it's called the '@id/icons' LinearLayout.
The second LinearLayout, which is also the full width of the statusbar, contains our notification text. This is what we see when a notification arrives. This is called the '@id/ticker' LinearLayout. (In case you were wondering, this is a reference to tickertape.)
Normally the ticker layout is empty because, although you may have uncleared notifications, you're not getting one all the time. When you do get a notification, the layout stops being empty and now contains icons and text for a second or two. During this time, the icons layout is pushed upwards, effectively making it disappear off the top of the screen.
To make our carrier label disappear once there's at least one notification icon to display, all we need to do is basically do the same thing.
So, this bit of code here goes from:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
to:
Code:
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="fill_parent"
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
Now, here's the catch. This is untested. I can't currently test this on my phone as it's too heavily modified and I don't have the stock SystemUI.apk anymore.
So it's up to you to try it out. Give it a whirl, see what happens and let me know...but make sure to always make a backup!
Click to expand...
Click to collapse
Could you upload pics, carrier label with notifications working?
Enviado desde mi Nexus 7 usando Tapatalk 4 Beta
hi,
@op is it possible for you to add this mod to my system ui? in withe please
i only have pc on work, and i can not use it to personal works...
my phone is a neo v, with darkrom (cm 10.1 legacyxperia based)
i leave a link to my systemui and framework https://app.box.com/s/awblj9kf7kd40dzrdsxm
many thanks
AF_624 said:
hi,
@op is it possible for you to add this mod to my system ui? in withe please
i only have pc on work, and i can not use it to personal works...
my phone is a neo v, with darkrom (cm 10.1 legacyxperia based)
i leave a link to my systemui and framework https://app.box.com/s/awblj9kf7kd40dzrdsxm
many thanks
Click to expand...
Click to collapse
OK, give me some minutes to work
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
AF_624 said:
hi,
@op is it possible for you to add this mod to my system ui? in withe please
i only have pc on work, and i can not use it to personal works...
my phone is a neo v, with darkrom (cm 10.1 legacyxperia based)
i leave a link to my systemui and framework https://app.box.com/s/awblj9kf7kd40dzrdsxm
many thanks
Click to expand...
Click to collapse
Done.
Here your SystemUI, download at the attachment
one is holo_blue_light Carrier Label
and another is white Carrier Label
Hmmm...i got another challenge for you guys :fingers-crossed:
this is for CM base roms that use CM Themes....is it possible to auto change the carrier label color matching the color in CM Themes??? it would be nice if the carrier label color change after we change our phone themes.... lets take an example HueRed Themes in Hue Themes By Kroz....all color in the status bar are red...so if the carrier label color auto change to match the themes color, it be perfect right???
iPusak Gaoq™ said:
Hmmm...i got another challenge for you guys :fingers-crossed:
this is for CM base roms that use CM Themes....is it possible to auto change the carrier label color matching the color in CM Themes??? it would be nice if the carrier label color change after we change our phone themes.... lets take an example HueRed Themes in Hue Themes By Kroz....all color in the status bar are red...so if the carrier label color auto change to match the themes color, it be perfect right???
Click to expand...
Click to collapse
Decompile yours, Go to /res/layout/
Open status_bar.xml
Search this line
Code:
android:textAppearance="@style/TextAppearance.StatusBar.[COLOR="Red"]CarrierLabel[/COLOR]"
change to
Code:
android:textAppearance="@style/TextAppearance.StatusBar.[COLOR="Red"]Clock[/COLOR]"
and erase all this inside /res/values/
styles.xml
Code:
[COLOR="Red"] <style name="TextAppearance.StatusBar.CarrierLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/(for color; look at [URL="http://forum.xda-developers.com/showpost.php?p=43996483&postcount=4"][COLOR="Black"]post #4[/COLOR][/URL])</item>
</style>[/COLOR]
Then Carrier Label will follow your Clock's colour
Diaz1999 said:
Done.
Here your SystemUI, download at the attachment
one is holo_blue_light Carrier Label
and another is white Carrier Label
Click to expand...
Click to collapse
thanks bro, it works really nice
Sent from my Xperia Neo V using Tapatalk 2
Mod Help
Hello @Diaz1999,
Could you make me the status bar mod to my SystemUI.apk? I don't want to do it myself as I know I'm going to mess up something. If you would want to help me, I would like it in blue, just like the Moto X. Anyway, I hope you can help me. My email is https :// www . dropbox . com /s/ k4gpygje0su4mss/ SystemUI.apk (no spaces). Thanks!
williamgravel2000 said:
Hello @Diaz1999,
Could you make me the status bar mod to my SystemUI.apk? I don't want to do it myself as I know I'm going to mess up something. If you would want to help me, I would like it in blue, just like the Moto X. Anyway, I hope you can help me. My email is https :// www . dropbox . com /s/ k4gpygje0su4mss/ SystemUI.apk (no spaces). Thanks!
Click to expand...
Click to collapse
In progress, tomorrow will be uploaded
Will try tonight!!! good post as always
Before modding read Pure Android | Android Developers
Just read this if you want your tab bars to be on the bottom so don't say that
this is iSh%@*#t style
import PureAndroid;
Don't use bottom tab bars
Other platforms use the bottom tab bar to switch between the app's views.
Per platform convention, Android's tabs for view control are shown in action
bars at the top of the screen instead. In addition, Android apps may use a
bottom bar to display actions on a split action bar.
You should follow this guideline to create a consistent experience with
other apps on the Android platform and to avoid confusion between actions
and view switching on Android.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
STEPS
Decompile your
framework-res.apk twframework-res.apk (if you are on TouchWiz Based ROM)contacs.apk
DialerTabActivity.apk
Click to expand...
Click to collapse
Modding framework-res.apk
Go to framework-res.apk\res\layout\tab_content.xml
Code:
[SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE]
You just need to switch tabcontent with tabs
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding twframework-res.apk
Go to twframework-res.apk\res\layout\tw_tab_content.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red] <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/SIZE][/FONT]
You just need to switch tabcontent with tabs
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding contacs.apk
Go to contacs.apk\res\layout-finger\topmenu_activity.xml
Code:
[FONT=Century Gothic]<?xml version="1.0" encoding="utf-8"?>
<com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/FONT]
You just need to switch tabcontent with tabs
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding DialerTabActivity.apk credits to @CarlDeanCatabay
Go to DialerTabActivity.apk\res\layout-ldpi\dialer_activity
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid] <LinearLayout android:orientation="horizontal" android:id="@id/TabLayoutWrapper" android:layout_width="fill_parent" android:layout_height="43.0dip">
<com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<LinearLayout android:orientation="vertical" android:id="@id/LinearLayout01" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="3.0">
<RelativeLayout android:id="@id/button_wrapper" android:background="@touchwiz:drawable/tw_tab_unselected" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="-5.0dip" android:layout_marginTop="-12.0dip" android:layout_marginRight="-7.399994dip" android:layout_marginBottom="-6.0dip">
<RelativeLayout android:gravity="center" android:id="@id/tab_button_contact" android:background="@drawable/dialer_tab_button_bg_selector" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/tab_button_contact_img" android:background="@drawable/dialer_tab_contact_button_selector" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<TextView android:textStyle="bold" android:textColor="@touchwiz:color/tw_color001" android:ellipsize="marquee" android:id="@id/tab_button_contact_text" android:paddingTop="30.0dip" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/tab_contacts" android:textScaleX="0.8" android:singleLine="true" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<ImageView android:id="@id/bottom_image" android:background="@touchwiz:drawable/tw_tab_selected_bar_left" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="-4.0dip" />
</LinearLayout>
</LinearLayout>[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/SIZE][/FONT]
You just need to switch tabcontent with TablayoutWrapper
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
If you want to move the tabs of other Apps
find its tab layout and switch the tabContent to TabBars
don't worry you will notice it easily or just attach the
tabLayout.xml here maybe we can help you.
Ask your questions in this thread not in PM:good:
If you I help you just Press the THANKS BUTTON :laugh:
CREDITS
POTATOINC
CarlDeanCatabay
GOOGLE
Modding Holo Launcher
Go to com.mobint.hololauncher-1.apk\res\layout\apps_customize_pane.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<com.mobint.hololauncher.AppsCustomizeTabHost
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/apps_customize_content" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=DarkOrchid][COLOR=Red] <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.mobint.hololauncher.AppsCustomizePagedView android:id="@id/apps_customize_pane_content" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:layout_gravity="bottom" android:id="@id/paged_view_indicator" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/scroll_indicator" />
</FrameLayout>[/COLOR]
<LinearLayout android:layout_gravity="center_horizontal" android:id="@id/tabs_container" android:background="@drawable/tab_unselected_holo" android:layout_width="fill_parent" android:layout_height="@dimen/apps_customize_tab_bar_height" android:layout_marginTop="@dimen/apps_customize_tab_bar_margin_top">
<HorizontalScrollView android:layout_gravity="left" android:id="@id/tab_scroller" android:scrollbars="none" android:layout_width="0.0dip" android:layout_height="fill_parent" android:fillViewport="true" android:layout_weight="1.0">
<com.mobint.hololauncher.FocusOnlyTabWidget android:id="@android:id/tabs" android:layout_width="wrap_content" android:layout_height="fill_parent" android:divider="@null" android:tabStripEnabled="false" />
</HorizontalScrollView>
<include android:layout_gravity="right" android:id="@id/market_button" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/market_button" />
</LinearLayout>
<ImageButton android:layout_gravity="center_horizontal" android:id="@id/home_button" android:background="#00000000" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/home_button" android:scaleType="fitXY" />[/COLOR]
</LinearLayout>
</com.mobint.hololauncher.AppsCustomizeTabHost>[/SIZE][/FONT]
You just need to switch tabcontent with tabs_container
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding Music.apk
Go to
Music.apk\res\layout-finger
Music.apk\res\layout-land-finger
Music.apk\res\layout-land-finger-320x240
Music.apk\res\layout-port-finger-320x240
then edit the
media_picker_activity_expanding.xml
media_picker_activity.xml
in all layouts folder
make it like this
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<include layout="@layout/sd_error" />
<com.android.music.TouchInterceptor android:textSize="18.0sp" android:id="@android:id/list" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false" android:cacheColorHint="@android:color/transparent" android:layout_weight="1.0" android:fastScrollEnabled="true" style="@style/Widget.ListView.Translucent" />
<include layout="@layout/nowplaying" />
[COLOR=Red]<include layout="@layout/buttonbar" />[/COLOR]
</LinearLayout>[/SIZE][/FONT]
You just need to move <include layout="@layout/buttonbar" /> to the last part of your code
I also attached my frameworks it is for Hyperion so you can use it as your reference :good:
This is incredibly amazing! :cheers: That's my teacher!
Nice TUT Bro.... :thumbup:
Play with Layout
-Credits to the image creator :fingers-crossed:-
Good work sir! You're the best! :highfive:
Potato Kasali po ba ang twframework basta hyperion.GM final build?
where can i find the xml tab of Settings.apk? your GUIDE is so cool..
Can you help me sir? i cant find the tabs xml of settings.apk
bootloop bottomtabs idol
rijrosario17 said:
Can you help me sir? i cant find the tabs xml of settings.apk
Click to expand...
Click to collapse
What ROM you are using?
paul222008 said:
bootloop bottomtabs idol
Click to expand...
Click to collapse
Why?
Post some logcats
Kindly attach your edited xmls of framework and twframework here
<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />
</LinearLayout>
</TabHost>
my framework-res.apk
paul222008 said:
<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />
</LinearLayout>
</TabHost>
my framework-res.apk
Click to expand...
Click to collapse
Try my modified frameworks at post #2
http://forum.xda-developers.com/showpost.php?p=46193438&postcount=2
thanks potato
rijrosario17 said:
Can you help me sir? i cant find the tabs xml of settings.apk
Click to expand...
Click to collapse
What ROM you are using or can you attach tour android manifest here?
HYPERION 8 GM Final rocks.. ;D
mariozawa said:
What ROM you are using?
im using Hyperion8Gmfinal...
Click to expand...
Click to collapse
rijrosario17 said:
mariozawa said:
What ROM you are using?
im using Hyperion8Gmfinal...
Click to expand...
Click to collapse
Its on res/layouts/main.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:layout_weight="1" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" />[/COLOR]
[COLOR=DarkOrchid] <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE][/FONT]
Click to expand...
Click to collapse
mariozawa said:
rijrosario17 said:
Its on res/layouts/main.xml
Code:
[FONT=Century Gothic][SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR=Red]<FrameLayout android:layout_weight="1" android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" />[/COLOR]
[COLOR=DarkOrchid] <TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE][/FONT]
Click to expand...
Click to collapse
sir thanks . btw can i ask why my hyperion is not transparent anymore?
Click to expand...
Click to collapse
paul222008 said:
mariozawa said:
sir thanks . btw can i ask why my hyperion is not transparent anymore?
Click to expand...
Click to collapse
Because it is my framework.
Try to copy only the xml for tabs layout or copy your framework's style.xml to my framework.:good:
Click to expand...
Click to collapse
mariozawa said:
paul222008 said:
Because it is my framework.
Try to copy only the xml for tabs layout or copy your framework's style.xml to my framework.:good:
Click to expand...
Click to collapse
thanks sir
---------- Post added at 09:11 PM ---------- Previous post was at 09:07 PM ----------
paul222008 said:
mariozawa said:
thanks sir
Click to expand...
Click to collapse
sir can i have a potato.png banner/logo of yours? ill make it a banner in my settings/about me as a credits XD thanks sir
Click to expand...
Click to collapse
Click to expand...
Click to collapse
paul222008 said:
mariozawa said:
thanks sir
---------- Post added at 09:11 PM ---------- Previous post was at 09:07 PM ----------
paul222008 said:
sir can i have a potato.png banner/logo of yours? ill make it a banner in my settings/about me as a credits XD thanks sir
Click to expand...
Click to collapse
Yes you can. Anyone can use Potato Logo hehe
Click to expand...
Click to collapse
Click to expand...
Click to collapse
jpdesuasido said:
-Credits to the image creator :fingers-crossed:-
Good work sir! You're the best! :highfive:
Click to expand...
Click to collapse
I think i know who the creator is :laugh: :laugh: :laugh: haha
and this is the style of @mariozawa looking nice bro :good:
We need:
ApkTools200b9m,Download:http://d-h.st/iRt
Notepad++,Download:http://d-h.st/i69
Just Another Tool for APK:http://d-h.st/bqP
Files: "framework-res.apk" and "SystemUl.apk"
Before decompiling status bar need:
Unpack the archive to the root ApkTools.rar C: \ drive and open the folder ApkTools
Copy into this folder the file framework-res.apk of its firmware
Now we need to establish a framework for its firmware to be able to parse all the system apk
(This operation should be done once for each firmware)
Drag the file framework-res.apk file apktool-if.cmd
Get a window:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
GUIDE for ICS/JB
Decompile the status bar
Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++
Remove
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
After rows
Code:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Add
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:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Instead
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
Insert
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ff000000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
Click on apktool.iml ank and file is compiled
GUIDE for CM 11
Decompile the status bar
Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++
Instead
Code:
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
Insert
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
After these lines
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
Insert
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Remove
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
Click on apktool.iml ank and file is compiled
SonyFan23 said:
We need:
ApkTools200b9m,Download:http://d-h.st/iRt
Notepad++,Download:http://d-h.st/i69
Just Another Tool for APK:http://d-h.st/bqP
Files: "framework-res.apk" and "SystemUl.apk"
Before decompiling status bar need:
Unpack the archive to the root ApkTools.rar C: \ drive and open the folder ApkTools
Copy into this folder the file framework-res.apk of its firmware
Now we need to establish a framework for its firmware to be able to parse all the system apk
(This operation should be done once for each firmware)
Drag the file framework-res.apk file apktool-if.cmd
Get a window:
View attachment 2717304GUIDE for ICS/JB
Decompile the status bar
Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++
Remove
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
After rows
Code:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Add
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:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Instead
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
Insert
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ff000000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
Click on apktool.iml ank and file is compiled
GUIDE for CM 11
Decompile the status bar
Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++
Instead
Code:
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
Insert
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
After these lines
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
Insert
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Remove
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
Click on apktool.iml ank and file is compiled
Click to expand...
Click to collapse
bro No disrespect towards our hardwork. ,but gravity box with xposed would also do the trick for JB right, ics i dunno??
Joker. said:
bro No disrespect towards our hardwork. ,but gravity box with xposed would also do the trick for JB right, ics i dunno??
Click to expand...
Click to collapse
For JB yes, for no ICS
SonyFan23 said:
For JB yes, for no ICS
Click to expand...
Click to collapse
very nice keep up the good work :good:
Yyy, not better install Xposed Famework and GravityBox? I think if this is easiest
Sent from my Xperia Sola using XDA Premium 4 mobile app
BR4KUS said:
Yyy, not better install Xposed Famework and GravityBox? I think if this is easiest
Sent from my Xperia Sola using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes, prosche.Ya wrote this manual for users to be able to learn (if desired) to edit the status bar
Sent from my Xperia Go using XDA Premium 4 mobile app
SonyFan23 said:
We need:
ApkTools200b9m,Download:http://d-h.st/iRt
Notepad++,Download:http://d-h.st/i69
Just Another Tool for APK:http://d-h.st/bqP
Files: "framework-res.apk" and "SystemUl.apk"
Before decompiling status bar need:
..................................................................Click on apktool.iml ank and file is compiled
Click to expand...
Click to collapse
Hi
Thnx for the Guide, I have an old Mt6575 S3 clone on ICS
Wanted to mod it, can you share this app - Just Another Tool for APK:http://d-h.st/bqP as the url doesn't have the file anymore.
I have the Apk tolls and Notepad++ already
thnx
Q&A for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones...
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones.... If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
lokeshsaini94 said:
6. Carrier logo in bottom of status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
Save the file and close it. now open status_bar_tracking.xml with notepad++
search for this line
Code:
<ImageView android:layout_gravity="bottom" android:id="@id/close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
replace above line with this line
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
Save the file and close it.
The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/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" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/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 android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/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 android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
and The whole status_bar_tracking.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/tracking_background" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Now compile back apk file and push back to system/app.
7. Add settings shortcut in status bar
GO HERE
8. Jelly bean style Date, Time and Day on Status Bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
Replace above line with this line
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save the file and close it.
Download Jelly.zip from attachments of this post
Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
Now compile back apk file and push back to system/app.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
9. Add Recent App shortcut in status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\values\ and open ids.xml with notepad++
Add this line in end of code but before </resources>
Code:
<item type="id" name="recent_app_button">false</item>
Now go to SystemUI.apk\res\layout\ and open statusbar_expanded.xml with notepad++
Search for 'clear' and whole code will be like this or different
Code:
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:paddingRight="6.0dip" android:layout_width="46.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
Add this line above the code mentioned above
Code:
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toRightOf="@id/settings_button" />
Save the file and close it.
Download sourcei.zip from attachments of this post
Extract sourcei.zip and copy RecentAppButton.smali to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
and copy btn_recent_app.9.png to SystemUI.apk\res\drawable-mdpi\(here)
Now compile back apk file and push back to system/app.
10. Jelly Bean 4.2.2 Status bar on Gingerbread.
Screenshots:
Guide:
Go Here
Click to expand...
Click to collapse
Can I know how to add brightness slider in notification bar please? ??