Hi folks,
I know a lot of you want to edit the carrier name in the statusbar, lockscreen, etc.
I got it working, but only on streakdtroid 1.8/1.8.1... Since streakdroid 1.9 is released apktool have problems (just look into this thread)
But, though it doesn't work on 1.9, i will post a tutorial, how i done it on 1.8. I don't know if it also works on the offical rom.
You do this tutorial on your own risk. Be sure you have a backup.
1. Make a backup and be sure you know how to rescue your system
2. Be sure you know what to do and read all instructions carefully
3. download apktool and the android-sdk
4. link your dell streak with your computer and pull the framewokr-res.apk in your /system/framework folder with the android-sdk adb
command: ~ adb pull /system/framework/framewokr-res.apk /Dir
The "/Dir" is the directory where you want to have the framework
5. decompile the framework-res.apk with apktool
command: ~ apktool d "/Dir"/framework-res.apk "/Dir2"
6. Go into the folder "Dir2", which apktool made. Now move to /Dir2/res/layout
7. open status_bar.xml, status_bar_expanded.xml and keyguard_screen_tab_unlock_land.xml
8. edit those xml files:
status_bar.xml:
You have to edit this
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="12.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/screenName" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.server.status.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
section into:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize=[COLOR="Red"]"0.0sp" [/COLOR]android:textStyle="bold" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/screenName" android:paddingLeft="4.0dip" android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.server.status.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="4.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
status_bar_expanded.xml:
You have to edit this
Code:
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" 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">
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
section into:
Code:
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" 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">
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:textSize=[COLOR="Red"]"0.0sp"[/COLOR] android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] />
[COLOR="Red"]<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:text="Your Text Here" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
keyguard_screen_tab_unlock_land.xml:
You have to edit this
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20.0dip" android:singleLine="true" android:layout_alignParentTop="true" />
section into:
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize=[COLOR="Red"]"0.0sp"[/COLOR] android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height=[COLOR="Red"]"0.0dip" [/COLOR]android:layout_marginTop="20.0dip" android:singleLine="true" android:layout_alignParentTop="true" />
It is possible that the xml-files differ, depends on your used rom.
9. After editing the xml-files recompile the folder with apktool
command: ~ apktool b /Dir2
The new apk should be in /Dir2/dist/
If the apktool have errors, during the compiling with thoose 9.png ,but it is compiling sucessfully, than open the compiled apk and copy the compiled xml files (status_bar.xml, status_bar_expanded.xml and keyguard_screen_tab_unlock_land.xml) into the original framework in "/Dir". Do this with your favourite zip-programm (recommented 7-Zip)
10. After compiling you can push your framework back to your phone. There are a lot of ways you can do that. Only pushing the framework back with android adb command push makes my phone stuck on boot. The best way is to download this file and open it with your zip-programm and replace the framework-res.apk with your framework. Now you can load the file with clockwork-recovery mod.
11. reboot your phone and be happy if it works
This is really a complicated tutorial so when you have questions, ask them.
Mainly this tutorial is only made to improve people, who are searching for a long time.... and for people, who know how to use apktool and adb.
On strekdroid 1.9 apktool has problems (look at the top of the thread).
Information: The carrier text will not change, when you are in airplane mode, etc.
If you want to look, how the streak looks afterwards go to this thread
In this thread I made a clock into the xpanded statusbar.. it is only for streakdroid 1.8, but if you want to have it easy you can follow this thread.
By the way srry for my bad english, but i hope you can understand it.
Greetings
MadBlaster
Great. That was fast.
Sent from my Dell Streak using XDA Premium App
MadBlaster said:
Hi folks,
I know a lot of you want to edit the carrier name in the statusbar, lockscreen, etc.
I got it working, but only on streakdtroid 1.8/1.8.1... Since streakdroid 1.9 is released apktool have problems (just look into this thread)
But, though it doesn't work on 1.9, i will post a tutorial, how i done it on 1.8. I don't know if it also works on the offical rom.
You do this tutorial on your own risk. Be sure you have a backup.
1. Make a backup and be sure you know how to rescue your system
2. Be sure you know what to do and read all instructions carefully
3. download apktool and the android-sdk
4. link your dell streak with your computer and pull the framewokr-res.apk in your /system/framework folder with the android-sdk adb
command: ~ adb pull /system/framework/framewokr-res.apk /Dir
The "/Dir" is the directory where you want to have the framework
5. decompile the framework-res.apk with apktool
command: ~ apktool d "/Dir"/framework-res.apk "/Dir2"
6. Go into the folder "Dir2", which apktool made. Now move to /Dir2/res/layout
7. open status_bar.xml, status_bar_expanded.xml and keyguard_screen_tab_unlock_land.xml
8. edit those xml files:
status_bar.xml:
You have to edit this
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="12.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/screenName" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.server.status.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
section into:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize=[COLOR="Red"]"0.0sp" [/COLOR]android:textStyle="bold" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/screenName" android:paddingLeft="4.0dip" android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.server.status.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="4.0dip" android:layout_width=[COLOR="Red"]"0.0dip" [/COLOR]android:layout_height="fill_parent" android:layout_weight="1.0" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
status_bar_expanded.xml:
You have to edit this
Code:
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" 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">
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
section into:
Code:
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width=[COLOR="Red"]"0.0dip" [/COLOR]android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0">
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:textSize=[COLOR="Red"]"0.0sp"[/COLOR] android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] />
[COLOR="Red"]<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:text="Your Text Here" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
<TextView android:textAppearance="?textAppearanceLarge" android:textColor="?textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
keyguard_screen_tab_unlock_land.xml:
You have to edit this
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="20.0dip" android:singleLine="true" android:layout_alignParentTop="true" />
section into:
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize=[COLOR="Red"]"0.0sp"[/COLOR] android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height=[COLOR="Red"]"0.0dip" [/COLOR]android:layout_marginTop="20.0dip" android:singleLine="true" android:layout_alignParentTop="true" />
It is possible that the xml-files differ, depends on your used rom.
9. After editing the xml-files recompile the folder with apktool
command: ~ apktool b /Dir2
The new apk should be in /Dir2/dist/
If the apktool have errors, during the compiling with thoose 9.png ,but it is compiling sucessfully, than open the compiled apk and copy the compiled xml files (status_bar.xml, status_bar_expanded.xml and keyguard_screen_tab_unlock_land.xml) into the original framework in "/Dir". Do this with your favourite zip-programm (recommented 7-Zip)
10. After compiling you can push your framework back to your phone. There are a lot of ways you can do that. Only pushing the framework back with android adb command push makes my phone stuck on boot. The best way is to download this file and open it with your zip-programm and replace the framework-res.apk with your framework. Now you can load the file with clockwork-recovery mod.
11. reboot your phone and be happy if it works
This is really a complicated tutorial so when you have questions, ask them.
Mainly this tutorial is only made to improve people, who are searching for a long time.... and for people, who know how to use apktool and adb.
On strekdroid 1.9 apktool has problems (look at the top of the thread).
Information: The carrier text will not change, when you are in airplane mode, etc.
If you want to look, how the streak looks afterwards go to this thread
In this thread I made a clock into the xpanded statusbar.. it is only for streakdroid 1.8, but if you want to have it easy you can follow this thread.
By the way srry for my bad english, but i hope you can understand it.
Greetings
MadBlaster
Click to expand...
Click to collapse
you pull this off yourself or take a look at a few of my threads?
I done this by myself ....
Not out of your topics
Sent from my Dell Streak using XDA App
There's an app somewhere here, called Carrier Name. It works great :3
Sent from my Dell Streak using XDA App
Dizwix said:
There's an app somewhere here, called Carrier Name. It works great :3
Click to expand...
Click to collapse
just going to say that
Dizwix said:
There's an app somewhere here, called Carrier Name. It works great :3
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
Not free
Dizwix said:
There's an app somewhere here, called Carrier Name. It works great :3
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
I know.... and it is free, just look into this thread ... would be great if it works, maybe it does now.. a few month ago it didnt work for me
MadBlaster said:
I know.... and it is free, just look into the thread ... would be great if it works, maybe it does know.. a few month ago it didnt work for me
Click to expand...
Click to collapse
still this app doesnt work for me ......
Related
I am making a theme for a rom and wanted to add date just below the quick panel settings.
I edited the status_bar_expanded.xml with the below code.
----------------------------------------------------------------------------
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:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0sp">
[B][COLOR="Red"]<com.android.systemui.statusbar.DateView android:textStyle="bold" android:textSize="9.0sp" android:id="@id/date" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:paddingLeft="1.0dip" android:paddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />[/COLOR][/B]
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear_default_small_normal" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="" style="\?android:attr/buttonStyle" />
</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:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/ongoingTitle" android:background="#d7000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/latestTitle" android:background="#d7000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
---------------------------------------------------------------------------
but still date is not displayed. Screenshot attached
can anyone help me out.?
also the colour of date doesnt change.
any ideas???
thanx
mirajp1 said:
I am making a theme for a rom and wanted to add date just below the quick panel settings.
I edited the status_bar_expanded.xml with the below code.
----------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView androidrientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="horizontal" android:background="@drawable/title_bar_portrait" androidaddingTop="3.0dip" androidaddingRight="3.0dip" androidaddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0sp">
<com.android.systemui.statusbar.DateView android:textStyle="bold" android:textSize="9.0sp" android:id="@id/date" android:textColor="#ffffffff" android:layout_gravity="center_vertical" androidaddingLeft="1.0dip" androidaddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear_default_small_normal" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="" style="\?android:attr/buttonStyle" />
</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" androidverScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout androidrientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/ongoingTitle" android:background="#d7000000" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff47DDFE" android:id="@id/latestTitle" android:background="#d7000000" androidaddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout androidrientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView 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>
---------------------------------------------------------------------------
but still date is not displayed. Screenshot attached
can anyone help me out.?
also the colour of date doesnt change.
any ideas???
thanx
Click to expand...
Click to collapse
are you trying to use the stock dateview and just move it, if so it will not work. because it has to be told to show lookup the sources for the systemui.apk (github aosp framework_base/packages/systemui/) in aosp there is not much differnece between it and the sony one. and you will see that the date view is told when to show and hide.
so you either have to modify the smali to tell it to show your new view (that is in a dfferent parent) OR you create a new dateview class and call that (thats what i did lol)
hope thats not too vauge for you. also use code tags around your code and stuff in future it is easyer to read that way.
Pvy.
thats what i did
thanx pvyparts for reply.
now i got a start so i guess I will find out a way.
I dont know how to edit smali files so i guess will try adding a new class.
can you tell me how to add a class?
EDIT:
also i dont want to show date at specific date and time.I want it permanently there.
there's a thread here from which i tried to port the dateview smali: http://forum.xda-developers.com/showthread.php?t=1316574
but it didn't work, so i'm wondering how i can add it to the systemUI.apk. also, i'm wondering how can we put the settings button there - i can place the button beside the dateview (or in my case the placeholder text) but i can't make it initiate any action and to launch settings.apk.
do you have any clue maybe, pvyParts?
thanks!
mirajp1 said:
thats what i did
thanx pvyparts for reply.
now i got a start so i guess I will find out a way.
I dont know how to edit smali files so i guess will try adding a new class.
can you tell me how to add a class?
EDIT:
also i dont want to show date at specific date and time.I want it permanently there.
Click to expand...
Click to collapse
I know that's what you did cause that's what I did first too LOL!!
See my reply below
donjamal said:
there's a thread here from which i tried to port the dateview smali: http://forum.xda-developers.com/showthread.php?t=1316574
but it didn't work, so i'm wondering how i can add it to the systemUI.apk. also, i'm wondering how can we put the settings button there - i can place the button beside the dateview (or in my case the placeholder text) but i can't make it initiate any action and to launch settings.apk.
do you have any clue maybe, pvyParts?
thanks!
Click to expand...
Click to collapse
Yes and yes and yes.
that dateview is still the android one and needs to be configured/called to work.
Grab my system ui from the team Rom and have a look at how did it. that class may not work with it some other stuff tho but your free to try it.
I will removed the team stuff from my dateview and post the smali here for you and you are welcome to use it. just gimme a day or so.
Creating a class is not add easy as it sounds you need a way to compile it ect ect. I use eclipse and dummy apps * many programming skillz required*
As for settings button that would require either smali mods or a custom button again. Not small task in smali.... Easy from sources. I might make one aswell. Depends if get time or not. :-B
Pvy.
Sent from my TEAM Powered Arc S
pvyParts said:
I know that's what you did cause that's what I did first too LOL!!
See my reply below
Yes and yes and yes.
that dateview is still the android one and needs to be configured/called to work.
Grab my system ui from the team Rom and have a look at how did it. that class may not work with it some other stuff tho but your free to try it.
I will removed the team stuff from my dateview and post the smali here for you and you are welcome to use it. just gimme a day or so.
Creating a class is not add easy as it sounds you need a way to compile it ect ect. I use eclipse and dummy apps * many programming skillz required*
As for settings button that would require either smali mods or a custom button again. Not small task in smali.... Easy from sources. I might make one aswell. Depends if get time or not. :-B
Pvy.
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
thanx pvy
waiting for that.
till then i will try it out from your rom(downloading takes time for me..slow connection lol )
thnx pvyParts! i wonder if you could share the "how-to" not just the results i wanna learn as much as i can... thnx again!
donjamal said:
thnx pvyParts! i wonder if you could share the "how-to" not just the results i wanna learn as much as i can... thnx again!
Click to expand...
Click to collapse
Of course mate
Sent from my TEAM Powered Arc S
pvyParts said:
Of course mate
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
hey pvyparts any updates?
btw do you know which programming language is used in smali files.
google didnt give any satisfactory answer...
mirajp1 said:
hey pvyparts any updates?
btw do you know which programming language is used in smali files.
google didnt give any satisfactory answer...
Click to expand...
Click to collapse
Sorry guys got sent away with work and totally forgot. Lol. be back soon
Smali is smali lol.... google davlic opcode will get you some more info on it
Sent from my Transformer TF101 using XDA Premium HD app
Thanx for the reply...
And yes waiting for answer
Sent from my X10
*** THIS THREAD IS CLOSING!! ***
*** CLICK HERE: http://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816 FOR THE NEW ONE! ***
This is a TICKLEFISH TUTORIAL!
{
"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"
}
How To Center The Clock On The Statusbar
(***BEFORE YOU DO ANY MODDING, MAKE SURE YOU MAKE A NANDROID BACKUP!!***)
Centering the clock on the statusbar is easy. Stopping it from clashing with other things is a little bit harder.
I originally posted here with a long method of fixing this. The problem was, although it worked, it worked for my particular requirements and my particular resolution. Since then I've found a few different ways of doing it and doing it better.
Previously I posted here with four Methods to center the clock. Each one was slightly harder to do than the previous one but was slightly better. After working out the fourth Method, I realised that two of the others were a little redundant and were just causing confusion.
So I've rewritten this post again. Again. This is now the perfect way to center the clock in the statusbar and anybody can do it if they know how. So read on to find out how!
To begin, we need to decompile SystemUI.apk. I would suggest using Tickle My Android, a decompiling tool which has won international acclaim and which can be found at tinyurl.com/ticklemyandroid.
Once you've decompiled the apk, edit res\layout\status_bar.xml
I suggest using Notepad++ for this but you can even use just ordinary Notepad if you're feeling brave.
I'm going to show you to properly center the clock using the xml found in stock Sony Timescape ICS but the principles can be applied to pretty much any rom on any device.
This is the stock code:
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">
<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>
Busy, isn't it? It gets worse..the code for KitKat is even busier!
But don't worry. Most of the code we can leave untouched. All we care about is this bit:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android: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">
This is the "@id/icons" LinearLayout, which contains all the icons we normally see on the statusbar, and the first line of the "@id/ticker" LinearLayout, which displays the notification texts.
This sort of setup will be on most, if not all roms. The id might be different, you might have "@id/status_bar_contents" or something similar instead, but it'll still be the same idea.
Found out where those bits are? Well, let's do this thing!
The Simple Method
This was first pointed out to me by @serajr, so big thanks to him.
The Simple Method is very simple, very quick and is very easy to do if you've never edited Android xml before.
First, we take the clock and put it in the first line before the "@id/icons" LinearLayout. We need to do this because centering anything in a LinearLayout is possible, but a little complicated..as you'll see in the next method!
We'll need to change the width of the space the clock goes into and the positioning within it. Or, in other words, we need to do this:
Code:
[COLOR=red]<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />[/COLOR]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android: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>
</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">
So far so good, but there is a problem.
All the contents of the "@id/icons" LinearLayout are pushed out of the top of the screen when a notification comes in..but the clock now isn't part of that, so it won't and we get overlapping.
To fix this, we need to add a background to the "@id/ticker" LinearLayout. This will cover up the clock when there's a new notification and we get no overlapping. We'll use the same background as the normal statusbar, defined at the top of the xml, but you could make it anything if you want to be artistic.
So the new code looks like this:
Code:
[COLOR=red]<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />[/COLOR]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android: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>
</LinearLayout>
<LinearLayout [COLOR=red]android:background="@drawable/status_bar_background"[/COLOR] android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animationCache="false">
This is very quick to do but it doesn't work with a transparent statusbar, since the background would be then transparent and won't blank out the clock.
So it won't work for KitKat either...
Plus, if you want to be fussy, it's not quite a perfect fix as the clock doesn't actually move and the other icons do which can look a little strange.
So that's why there's a second Method we could use instead..
The Best Method
This is a bit more involved but is the very best way to center the clock. Or anything else. In fact, it's a brilliant way to arrange your statusbar so you can move anything anywhere.
The Best Method splits the icons LinearLayout into three unique areas, making it very easy to decide what you want where.
What we do is we use this basic layout:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/Status_Bar_Left_Side" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"]<!-- HERE ARE ALL THE CODES FOR THE ITEMS ON THE LEFT SIDE OF THE STATUSBAR -->[/COLOR]
</LinearLayout>
[COLOR="Red"]<!-- HERE ARE ALL THE CODES FOR THE ITEMS IN THE CENTER OF THE STATUSBAR -->[/COLOR]
<RelativeLayout android:id="@+id/Status_Bar_Right_Side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:id="@+id/Inside_Status_Bar_Right_Side" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
[COLOR="red"]<!-- HERE ARE ALL THE CODES FOR THE ITEMS ON THE RIGHT SIDE OF THE STATUSBAR -->[/COLOR]
</LinearLayout>
</RelativeLayout>
</LinearLayout>
Make sense? No? Well, don't worry. There is a logic behind all this. Even if it's not obvious.
This Method basically divides the statusbar into just two individual areas. Because those areas have the same 'weight' as each other, they take up exactly the same amount of space as each other. Meaning that whatever goes between those two areas, as long as it doesn't have a weight of 1 or more, will be essentially pushed into the exact center of the statusbar.
So, what we do next is apply this Method to our code from above to create:
Code:
<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">
[COLOR="Red"]<LinearLayout android:id="@+id/Status_Bar_Left_Side" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0"> [/COLOR]
<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>
[COLOR="red"]</LinearLayout>[/COLOR]
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true"/>
[COLOR="red"]<RelativeLayout android:id="@+id/Status_Bar_Right_Side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:id="@+id/Inside_Status_Bar_Right_Side" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">[/COLOR]
<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>
[COLOR="red"]</LinearLayout>
</RelativeLayout>[/COLOR]
</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">
You might need to adjust some of the attributes on some of the lines to get it all to work but otherwise it's actually all pretty simple.
And that's it. Those are the two methods. Hopefully this will give you a better understanding of what all this code actually means and put you on the road to creating your own mods.
Now you need to save the file and recompile the app. Depending on which tool you're using to recompile, you may need to do something else to let the app work on your phone (this is the "Recompile With Original Signature" option in Tickle My Android, by the way).
Push it or flash it back to your phone...and enjoy!
Too many smilies
Sent from my Walkie-talkie
Great, keep modding !
Try this way:
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">
[B][COLOR="Red"]<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />[/COLOR][/B]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android: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>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [B][COLOR="Red"]android:background="@drawable/status_bar_background"[/COLOR][/B] 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>
See red changes from original, try it!
Love them, thanks for the Brilliant App .
How to edit xml files?
Please help me. This is how status_bar.xml looks like when I open it in Notepad++. I'm on Windows 7. Why is it so? Should I install some other software?
I couldn't even copy paste the contents here as code
Sudanminipro said:
Please help me. This is how status_bar.xml looks like when I open it in Notepad++. I'm on Windows 7. Why is it so? Should I install some other software?
View attachment 1193378
I couldn't even copy paste the contents here as code
Click to expand...
Click to collapse
This is compiled xml file, you need to decompile systemui.apk with apktool to get human readable xml.
serajr said:
This is compiled xml file, you need to decompile systemui.apk with apktool to get human readable xml.
Click to expand...
Click to collapse
I'm not able to decompile SystemUI.apk. ApkManager gives me the following error
Code:
--------------------------------------------------------------------------
|12-Jul-12 -- 19:56:23.48|
--------------------------------------------------------------------------
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
Could Not Find E:\mini pro\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find E:\mini pro\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Where am I going wrong?
Sudanminipro said:
I'm not able to decompile SystemUI.apk. ApkManager gives me the following error
Code:
--------------------------------------------------------------------------
|12-Jul-12 -- 19:56:23.48|
--------------------------------------------------------------------------
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
Could Not Find E:\mini pro\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find E:\mini pro\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Where am I going wrong?
Click to expand...
Click to collapse
Try this:
http://forum.xda-developers.com/showpost.php?p=28619804&postcount=21
serajr said:
Try this:
http://forum.xda-developers.com/showpost.php?p=28619804&postcount=21
Click to expand...
Click to collapse
Got a different error log this time
Code:
--------------------------------------------------------------------------
|12-Jul-12 -- 20:55:33.19|
--------------------------------------------------------------------------
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Sudan\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108073f
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:54)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
I have replaced 1.apk in apktool directory with my current framework.
serajr said:
Great, keep modding !
Try this way:
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">
[B][COLOR=red]<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />[/COLOR][/B]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android: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>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [B][COLOR=red]android:background="@drawable/status_bar_background"[/COLOR][/B] 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>
See red changes from original, try it!
Click to expand...
Click to collapse
Ah, very clever! I was obsessed with keeping the clock in the LinearLayout and didn't even consider this.
Sudanminipro said:
Got a different error log this time
Code:
--------------------------------------------------------------------------
|12-Jul-12 -- 20:55:33.19|
--------------------------------------------------------------------------
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find E:\mini pro\Apk_Manager_5.0.2_ICS_APKTool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Sudan\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108073f
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:54)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
I have replaced 1.apk in apktool directory with my current framework.
Click to expand...
Click to collapse
Can you share your framework-res.apk and SystemUI.apk? I'll try them on my setup and see if I can find out what's going wrong.
Ticklefish said:
Ah, very clever! I was obsessed with keeping the clock in the LinearLayout and didn't even consider this.
Click to expand...
Click to collapse
Could you help me with decompiling systemui,apk.. I've posted the error log that I'm getting in the previous post
EDIT: Was finally able to decompile systemui.apk using the method posted HERE . will edit status_bar.xml now. Thanks for the mod. Hope I don't get any errors while compiling:fingers-crossed:
Dear bro Ticklefish or Serajr
can you upload mod of SystemUI.apk for us??
sorry if I request it, coz my laptop had broken so i can't mod apk files for now :crying:
thanks :fingers-crossed:
knightazura said:
Dear bro Ticklefish or Serajr
can you upload mod of SystemUI.apk for us??
sorry if I request it, coz my laptop had broken so i can't mod apk files for now :crying:
thanks :fingers-crossed:
Click to expand...
Click to collapse
Ok... get it!
http://forum.xda-developers.com/showpost.php?p=28519713&postcount=1
knightazura said:
Dear bro Ticklefish or Serajr
can you upload mod of SystemUI.apk for us??
sorry if I request it, coz my laptop had broken so i can't mod apk files for now :crying:
thanks :fingers-crossed:
Click to expand...
Click to collapse
I would, but my SystemUI.apk is heavily modded. The centered clock isn't the only thing that's different to stock. I'm happy to do this to your SystemUI.apk if you feel like sharing..
serajr said:
Great, keep modding !
Try this way:
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">
[B][COLOR="Red"]<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_horizontal|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />[/COLOR][/B]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android: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>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [B][COLOR="Red"]android:background="@drawable/status_bar_background"[/COLOR][/B] 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>
See red changes from original, try it!
Click to expand...
Click to collapse
Ticklefish said:
Ah, very clever! I was obsessed with keeping the clock in the LinearLayout and didn't even consider this.
Click to expand...
Click to collapse
@both of you: which one I should follow?? :crying:
or I could combine both of your tuts on single xml??
serajr said:
Ok... get it!
http://forum.xda-developers.com/showpost.php?p=28519713&postcount=1
Click to expand...
Click to collapse
yea!! thank you very much
Ticklefish said:
I would, but my SystemUI.apk is heavily modded. The centered clock isn't the only thing that's different to stock. I'm happy to do this to your SystemUI.apk if you feel like sharing..
Click to expand...
Click to collapse
oh, so~
just the clock
thanks for your attention n want help me :fingers-crossed:
this https://www.box.com/s/ce71c4897adc84d9ed56
@Ticklefish
Can you move the signal bar to the left side of statusbar?
I tried this http://forum.xda-developers.com/showthread.php?t=1361715 but when I open the arrays.xml , in the item, I didn't see like the tutorial shown, just found some number in the <item></item>
*Sorry for my bad english
physcodelic said:
@both of you: which one I should follow??
or I could combine both of your tuts on single xml??
Click to expand...
Click to collapse
you can copy the entire code posted by seraj and replace it with its
Please do not quote the whole page please. It make the webpage hard to read especially in xda app
Sent from my ST25i using xda premium
{
"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"
}
UPDATE NEW SMALI FILES AND LINES ON 2ND POST *TEST AND WORK ON FROYO ROM, GB ROM & MTK DEVICE
I just wanna share how to add speed meter (0.00k/s) data on statusbar simple and fastway
1.Basic knowledge how to compile/decompile using Apktool/Apkmanager/
Tickle My Android(I try it and so easy) Credits to Ticklefish
2.Brain and brave :laugh:
MOD LIST
@[STRIKE]Dzol Cp[/STRIKE] @Ticklefish *IF HE'S NOT BUSY
- *please pm/ed your name to me if you interested being an X-Mod in this thread.
Method :
-Download smali.zip attachment and extract it
-Decompile your SystemUI.apk
-In your smali,,copy/paste extract file
systemUi/smali/here = smali/fx/heriawan
-Then go to res/layout/status_bar.xml and add this line (copy from here)
Code:
<fx.heriawan.Kecepatan android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
-Example
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<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:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
[COLOR="Red"]<fx.heriawan.Kecepatan android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="1.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" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
-Save and close file.
-Then open res/values/styles.xml
edit this at the end of line or you can copy/paste from here
Code:
<style name="TextAppearance.StatusBar.Kecil" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">#ffffffff</item>
</style>
</resources>
-Save and close file.
-Recompile back your SystemUi.apk..
-And let me know the result :good:
Status_bar.xml for SCREENSHOT
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="3.0dip" android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="3.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:layout_gravity="center_vertical" android:id="@id/battery" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<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:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
[COLOR="Red"]<fx.heriawan.Kecepatan android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="1.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" />
</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>
CREDITS TO : REPENCIS For his 0.00k/s smali files
CREDITS TO : ROMWIZ For his nice video tutorial
CREDITS TO : TICKLEFISH For his AWESOME Tools
CREDITS TO : SANJAY KUMAR For his FROYO tutorial
CREDITS TO : BLUE SHARKY For his fix SystemUI FC's tutorial
CREDITS TO : SIEUAN For MTK Devices mod
CREDITS TO : TABOO5200 For latest version - Modified smali's
Not modded for any user anymore *Can check with @Ticklefish Please include your device name and android version if you want Me to Re-Mod your SystemUI
*Try to upload here via XDA attachment uploader and not to link to any download server out of XDA unless there is no more option
New Smali files/lines
NEW SMALI FILES AND LINES
This new smali will show the KB/s meter only appear when you have data or wifi connection
NEW VERSION *MODIFIED SMALI'S - TEST ONLY ON GB
http://forum.xda-developers.com/showpost.php?p=48333101&postcount=793
FOR FROYO ROM
http://forum.xda-developers.com/showthread.php?t=2400335
FOR GB ROM
http://forum.xda-developers.com/showpost.php?p=44893138&postcount=191
FOR MTK DEVICE
http://forum.xda-developers.com/showpost.php?p=45963193&postcount=682
FIX FC FOR JB
http://forum.xda-developers.com/showpost.php?p=45710770&postcount=636
Copy this line to res/layout/status_bar.xml
Code:
<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:singleLine="true" />
this line to add in res/values/ids.xml
Code:
<item type="id" name="traffic">false</item>
and this one as usual res/values/styles.xml
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style>
Status_bar.xml for SCREENSHOT
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_custom_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">
<ViewFlipper android:id="@id/status_bar_flipper" 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">
<RelativeLayout android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true">
<ImageView android:gravity="right|center" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.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" />
<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" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/center_clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
<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:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
[COLOR="Blue"] <com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="right|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" /> [/COLOR]
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
</LinearLayout>
<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" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<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>
</LinearLayout>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="@*android:dimen/status_bar_height" android:layout_alignParentLeft="true">
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">
<com.serajr.dataspeedmeter.DataSpeedMeter android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="center" android:id="@id/data_speed_meter" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<View android:layout_width="8.0dip" android:layout_height="fill_parent" />
<include android:id="@id/signal_cluster_2" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<View android:layout_width="4.0dip" android:layout_height="fill_parent" />
</LinearLayout>
</RelativeLayout>
</ViewFlipper>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
biopsin said:
New smali : Works even better, no more traffic spam in catlog..excellent work!
Click to expand...
Click to collapse
copy the smali files to this
smali/com/android/systemui/statusbar/policy/here[/SIZE]
*Please include your device name and android version if you want Me to Re-Mod your SystemUI
*Try to upload here via XDA attachment uploader and not to link to any download server out of XDA unless there is no more option
Ticklefish said:
Yup, that's pretty much it.
framework-res.apk is what I call a "resource apk". It contains information that is needed to be able to decompile certain system apk's.
To make matters more confusing, the creator of apktool (the tool used by most people to decompile apk files) calls these sort of files "framework apk's".
Hopefully you'll start experimenting with decompiling apk's yourself before too long and you'll understand what this is all about. I was a newbie when I registered here and none of this made any sense to me at all! But keep with it, and it will all become second nature to you.
Click to expand...
Click to collapse
Re: [MOD][TUT] How to add 0.00k/s meter on statusbar ICS/JB
Lol funny i was just going to start à thread asking how todo that thanks alot will try it soon!
Btw do you know how to add cpu usage on statusbar?
Envoyé depuis mon SK17i
better tutorial please not everyone is developer or programer :/
thank you
Thanks. That works.
View attachment 1837281
Anyone can add cwm zip add 0.00k/s meter on statusbar
Upload your SystemUI.apk here,,maybe i can help
dhana999 said:
Anyone can add cwm zip add 0.00k/s meter on statusbar
Click to expand...
Click to collapse
dzolcp said:
Upload your SystemUI.apk here,,maybe i can help
Click to expand...
Click to collapse
Here please..
dzolcp said:
Upload your SystemUI.apk here,,maybe i can help
Click to expand...
Click to collapse
This is my SystemUI plz help me bro
I only have status_bar.xml into layout folder and there is no such line as
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<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:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="1.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" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Diaz1999 said:
Here please..
Click to expand...
Click to collapse
Im so sorry Master 3 types apktool and all k/s mod i try and all give me an error :blur:
my suggest to try from here :
http://forum.xda-developers.com/showthread.php?t=2129247
dhana999 said:
This is my SystemUI plz help me bro
Click to expand...
Click to collapse
Here you go Master
http://www.mediafire.com/?4p6rstamyk3pfns
jokamaciek said:
I only have status_bar.xml into layout folder and there is no such line as
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Kecil" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<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:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="1.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" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
Upload your SystemUI.apk here and i'l give a try
Here you go Master
http://www.mediafire.com/?4p6rstamyk3pfns
Thanks :good:
Would be better if would only appear when data/wifi is turned ON..
Thanks anyways..
Re: [MOD][TUT] How to add 0.00k/s meter on statusbar ICS/JB
Hello
Run on Xperia z
Tks
Xperia Tapatalked
Re: [MOD][TUT] How to add 0.00k/s meter on statusbar ICS/JB
You can share your systemui.apk? The one in the picture? This very good! Please
Google translator xD
Enviado Desde Mi Live with Walkman
Here you go Brov!! :good:
http://www.mediafire.com/?9678v0t28d8ec2s
Some more Mod by me
http://forum.xda-developers.com/showthread.php?t=2129247
joznathan said:
You can share your systemui.apk? The one in the picture? This very good! Please
Google translator xD
Enviado Desde Mi Live with Walkman
Click to expand...
Click to collapse
Sorry little bit out of topic..how to port from mdpi to hdpi ???
Re: [MOD][TUT] How to add 0.00k/s meter on statusbar ICS/JB
b1716tl said:
Sorry little bit out of topic..how to port from mdpi to hdpi ???
Click to expand...
Click to collapse
If you using mdpi app to hdpi phones, that's OK
And if you using hdpi app to mdpi phones, that might buggy like my Timescape
via XDA for Timescape™
Tried, failed
Compiles the application very well, but doesnot start the SystemUI after reboot..
Uploading my systemUI, please do the need full, or tell me where I am wrong...
Please..please....create a tutorial how to make 5 osb icon like this :fingers-crossed:
I've a lovely ZTE Z998, and I enjoy it very much. I've been modding it slowly, and I've come to a liking with its look and feel. I've installed the Xposed Modules, Gravitybox and Tinted Status Bar, and I enjoy the flush design. There is just one flaw in it. I can not seem to remove the statusbar estate stealing 'AT&T' insignia on the left side. I wish to remove this completely, or maybe even a change to white would be okay. I will attach a screenshot of the bar, as well as my systemui.apk.
Phone: ZTE Z998 Mustang.
Version: 4.1.2
Carrier: AT&T.
Root: Yes.
status_bar.xml -
<?xml version='1.0' encoding='utf-8' ?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" androidrientation="vertical" android:id="@com.android.systemui:id/status_bar" android:background="@com.android.systemui:drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants">
<ImageView android:id="@com.android.systemui:id/notification_lights_out" androidaddingLeft="6.0dip" androidaddingBottom="2.0dip" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.BarLabel android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Sim" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@com.android.systemui:id/barlabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone" android:addStatesFromChildren="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:marqueeRepeatLimit="1" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui: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="@com.android.systemui:id/moreIcon" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@com.android.systemui:id/signal_battery_cluster" androidaddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@com.android.systemui:id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@com.android.systemui:id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@com.android.systemui:id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/ticker" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@com.android.systemui:id/tickerIcon" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@com.android.systemui:id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@com.android.systemui: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>
Thanks for any help!
BrendonButton said:
I've a lovely ZTE Z998, and I enjoy it very much. I've been modding it slowly, and I've come to a liking with its look and feel. I've installed the Xposed Modules, Gravitybox and Tinted Status Bar, and I enjoy the flush design. There is just one flaw in it. I can not seem to remove the statusbar estate stealing 'AT&T' insignia on the left side. I wish to remove this completely, or maybe even a change to white would be okay. I will attach a screenshot of the bar, as well as my systemui.apk.
Phone: ZTE Z998 Mustang.
Version: 4.1.2
Carrier: AT&T.
Root: Yes.
status_bar.xml -
<?xml version='1.0' encoding='utf-8' ?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" androidrientation="vertical" android:id="@com.android.systemui:id/status_bar" android:background="@com.android.systemui:drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants">
<ImageView android:id="@com.android.systemui:id/notification_lights_out" androidaddingLeft="6.0dip" androidaddingBottom="2.0dip" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.BarLabel android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Sim" android:ellipsize="marquee" android:layout_gravity="center_vertical" android:id="@com.android.systemui:id/barlabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone" android:addStatesFromChildren="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:marqueeRepeatLimit="1" />
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui: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="@com.android.systemui:id/moreIcon" android:visibility="gone" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@com.android.systemui:drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@com.android.systemui:id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@com.android.systemui:id/signal_battery_cluster" androidaddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@com.android.systemui:id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@com.android.systemui:id/battery" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@com.android.systemui:id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@com.android.systemui:id/ticker" androidaddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@com.android.systemui:id/tickerIcon" android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@com.android.systemui:dimen/status_bar_icon_size" android:layout_height="@com.android.systemui:dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@com.android.systemui:id/tickerText" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@com.android.systemui:style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@com.android.systemui: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>
Thanks for any help!
Click to expand...
Click to collapse
open root explorer on your phone
go to
/system/customize/ACC and open default.xml in text editor scroll almost to the bottom
there you will find a line with sku_id. change this to 42 (international) the att in the status bar will be gone after you save the file and reboot (att stock is 7)
toolhas4degrees said:
open root explorer on your phone
go to
/system/customize/ACC and open default.xml in text editor scroll almost to the bottom
there you will find a line with sku_id. change this to 42 (international) the att in the status bar will be gone after you save the file and reboot (att stock is 7)
Click to expand...
Click to collapse
It seems I do not have that folder, unless I am doing something incorreftly. I will attach some screenshots.
For referenxe, I entered the system folder on my root browser, and it was not there.
Bumping because I don't want to go further without your help.
BrendonButton said:
Bumping because I don't want to go further without your help.
Click to expand...
Click to collapse
I am on a htc 0ne m8, but if you dig around you will find a default.xml file some where with sku_id.
Hmm, I will search for it. Thank you for the help so far. c:
toolhas4degrees said:
I am on a htc 0ne m8, but if you dig around you will find a default.xml file some where with sku_id.
Click to expand...
Click to collapse
I searched my phone inside and outside of system, and found no such file. /:
BrendonButton said:
I searched my phone inside and outside of system, and found no such file. /:
Click to expand...
Click to collapse
Idk maybe it is a different xml file on your phone then..?
toolhas4degrees said:
Idk maybe it is a different xml file on your phone then..?
Click to expand...
Click to collapse
Would you possibly know any other files like this? I had assumed we could change the status_bar.xml inside of my systemUI.apk to do this.
BrendonButton said:
Would you possibly know any other files like this? I had assumed we could change the status_bar.xml inside of my systemUI.apk to do this.
Click to expand...
Click to collapse
all i know is that the att is set by the sku id. (aka carrier id) and to get rid of this you will most likely need to find the xml file that contains an sku id line and change it.
if you have a link to your rom, I will dig around and try to find it. but it might take me a while as I work 12 hrs a day.
toolhas4degrees said:
all i know is that the att is set by the sku id. (aka carrier id) and to get rid of this you will most likely need to find the xml file that contains an sku id line and change it.
if you have a link to your rom, I will dig around and try to find it. but it might take me a while as I work 12 hrs a day.
Click to expand...
Click to collapse
How should I go about linking you my ROM?
Bumping in hopes of an answer.
Battery percentage text with color changer controller .
What you will need
==> A lollipop rom (May work in other android versions too. I'm not sure.)
==> Apktool and a bit knowledge about it.
==> files.zip and controller.apk(optional) from below.
1) Decompile your SystemUI.apk
2) Copy the arefin folder from files.zip to decompiled systemui/smali/com/
3) Go to res/layout/status_bar.xml
4) Open that with notepad++ or any text editor
5) Now add this line
Code:
<com.arefin.batterytext.ArefinBatteryTextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" android:paddingStart="7.0dip" android:layout_centerVertical="true" android:paddingTop="2dp" android:layout_centerHorizontal="true" />
Like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_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">
<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" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout 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.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<com.arefin.batterytext.ArefinBatteryTextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" android:paddingStart="7.0dip" android:layout_centerVertical="true" android:paddingTop="2dp" android:layout_centerHorizontal="true" />
<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="7.0dip" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
<ViewStub android:id="@id/ticker_stub" android:layout="@layout/status_bar_ticker" android:inflatedId="@id/ticker" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Ok all done. Recompile your SystemUI.apk then push it in system/priv-app/SystemUI/
if you want to change color then you can use the controller apk .
Screenshots below ..
Works perfect, but cause a problem in my phone.
I set an alarm and turn off my phone, then when the phone turns on for the alarm, sistemui force close and i have to force reboot my phone by hold power button.
This not happen with unmoddified sistemui.apk.
Any help? Thanks for share your knoweledge with us.
oberworld said:
Works perfect, but cause a problem in my phone.
I set an alarm and turn off my phone, then when the phone turns on for the alarm, sistemui force close and i have to force reboot my phone by hold power button.
This not happen with unmoddified sistemui.apk.
Any help? Thanks for share your knoweledge with us.
Click to expand...
Click to collapse
Thanks for submitting bug report. I will look forward to find a solution for that problem.