Related
I was wondering if it would be possible to hide the clock on the status bar but keep it in extended view?
Or a step further remove the icons when the status bar is extended?
Like This:
{
"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"
}
that would be quite cool imho
I had the same thought the other day. Someone brave could go mention in in the cyanogenmod forum.
I finally submitted this to CM issue tracker http://code.google.com/p/cyanogenmod/issues/detail?id=3643. Could you guys please star this so that it would get more exposure?
Starred this @ Google Code.
This lack of functionality is one of the few things left that irks me about my home and lock screens.
It is possible, ill look into it.
IF you know how to decompile your systemui.apk Replace this in your status_bar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.CmStatusBarView android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.CmBatteryText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryMiniIcon android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/CmBatteryMiniIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:id="@id/buttons" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageButton android:id="@id/status_edge_left" android:background="@drawable/ic_statusbar_edge_right_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_home" android:background="@drawable/ic_statusbar_home_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep1" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_menu" android:background="@drawable/ic_statusbar_menu_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep2" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_back" android:background="@drawable/ic_statusbar_back_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep3" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_search" android:background="@drawable/ic_statusbar_search_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep4" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_quick_na" android:background="@drawable/ic_statusbar_na_up_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep5" android:background="@drawable/ic_statusbar_sep_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_hide" android:background="@drawable/ic_statusbar_hide_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_edge_right" android:background="@drawable/ic_statusbar_edge_left_bottom" android:visibility="gone" 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:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:id="@id/date" android:background="@drawable/statusbar_background2" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.CmStatusBarView>
What did you exactly change
Using miui and a date changing mod I have been able to accomplish just this feature.
As standard on miui it shows the date in the status bar but using an extended settings mod from the miuiandroid forums I changed the to display the time in the format h:mm, it's even centred on the statusbar.
Sent from my DHD
I have made the changes in my SystemUI.apk, but I am stuck at the resigning process.
If I push the APK without resigning, it refuses to run because of the invalid signature.
If I resign with the platform keys, I get certificate errors complaining about the manifest.
To modify the package, I used the latest APKTool from Google Code to decode and build the APK, and made my changes with a text editor.
To resign the package, I downloaded the platform keys from the Git repo, and used keytool-importkeypair.sh (Google) to create a keystore. I signed the APK with jarsigner, and pushed it to my phone.
Can someone help me figure out why the unsigned package won't execute, or how to properly resign the package instead?
bezeek said:
I have made the changes in my SystemUI.apk, but I am stuck at the resigning process.
If I push the APK without resigning, it refuses to run because of the invalid signature.
If I resign with the platform keys, I get certificate errors complaining about the manifest.
To modify the package, I used the latest APKTool from Google Code to decode and build the APK, and made my changes with a text editor.
To resign the package, I downloaded the platform keys from the Git repo, and used keytool-importkeypair.sh (Google) to create a keystore. I signed the APK with jarsigner, and pushed it to my phone.
Can someone help me figure out why the unsigned package won't execute, or how to properly resign the package instead?
Click to expand...
Click to collapse
Use APKManager to resign it, you can zip as a system apk or as a regular apk. System apk's do not need signing afaik. If the phone is connected and detectable using adb, it'll also install it for you
Another method is to use Root Explorer
I tried some more with apktool, tried APKManager, (which is packaged with a horribly outdated version of apktool at this point,) and even tried MetaMorph. All of them had the same result. As a side-note, you're absolutely correct in saying that system APKs should not be signed, and thanks for the reminder.
A post at the CM forums suggests this might be a problem for others on CM7 as well, but I can't find anything that explains or supports this.
I also tried applying the Statusbar Pulldown Mod for MM, but it yields the same problems.
I'm going to give up on this one, but I'm pretty curious to see if anyone else gets this to work, (especially on gingerbread-evo-deck1.3b.)
As soon as the Sensation gets CM7, I'm trying this mod. So I'll report back on my findings
@redbullcat - If you're comfortable with a little potential failure, you can give it a shot on any ROM that displays a status bar with a clock. Basically, within the status_bar.xml file, there will be an element that declares the clock, by some name. If you move this element to the bottom, so that it directly neighbors the date element, you should be all good. Just be careful where you make your incision, and as with any mod, don't even try if you won't be able to 'adb push' a backup of the APK in the event that something goes wrong.
Sent from gingerbread-evo-deck
bezeek said:
@redbullcat - If you're comfortable with a little potential failure, you can give it a shot on any ROM that displays a status bar with a clock. Basically, within the status_bar.xml file, there will be an element that declares the clock, by some name. If you move this element to the bottom, so that it directly neighbors the date element, you should be all good. Just be careful where you make your incision, and as with any mod, don't even try if you won't be able to 'adb push' a backup of the APK in the event that something goes wrong.
Sent from gingerbread-evo-deck
Click to expand...
Click to collapse
Fair enough. I'll do this over the next few days and see what happens.
Thanks
bezeek said:
@redbullcat - If you're comfortable with a little potential failure, you can give it a shot on any ROM that displays a status bar with a clock. Basically, within the status_bar.xml file, there will be an element that declares the clock, by some name. If you move this element to the bottom, so that it directly neighbors the date element, you should be all good. Just be careful where you make your incision, and as with any mod, don't even try if you won't be able to 'adb push' a backup of the APK in the event that something goes wrong.
Sent from gingerbread-evo-deck
Click to expand...
Click to collapse
Hey, so I can't figure out where I'm going wrong. I'm attempting this mod on my Captivate, not running CM7.
I decompile the APK, edit the .xml file, compile the .apk, and then flash back to my phone.
I lose the status bar after flashing the zip file. Am I failing to compile the .apk correctly, or failing at editing the .xml correctly?
Here is my attempted .xml edit.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<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>
<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="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Widget.RatingBar.Small" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Widget.RatingBar.Small" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/WindowTitle" android:textColor="#ffffffff" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/WindowTitle" android:textColor="#ffffffff" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
{
"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"
}
Usual disclaimer: i'm not responsible, you assume all risks blah blah etc etc...
Don't forget to backup first
In order to accomplish this you have to decompile system/framework/lge-res.apk. I used ahmadfarisfs gingerbread themed res as a base, due credit to him.
Note if you're already using a themed res different to the above flashing the version provided will overwrite it - obviously, unless you manually edit your version of lge-res.apk.
No Carrier + ahmadfarisfs Ginger Themed flashable zip
Manually editing
1: Download AutoTool cmd version and set it up in a folder.
2: Copy /system/framework/framework-res.apk & lge-res.apk from your phone to the input_apk folder of autotool.
3: Launch autotool and perform opt 1 & 2 - ignore errors.
4: Open lge_status_bar_expanded.xml in notepad from within the _INPUT_APK\lge-res\res\layout\ autotool directory.
5: XML Edits
Completed xml for comparison
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.server.status.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/quick_setting" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="48.0dip">
<ImageView android:id="@id/wifi_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/bt_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/gps_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/network_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/sound_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" />
</LinearLayout>
[COLOR="RoyalBlue"]<LinearLayout android:visibility="gone" 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="?android:textAppearanceLarge" android:textColor="?android: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="?android:textAppearanceLarge" android:textColor="?android: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>[/COLOR]
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.server.status.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBarTitle" android:id="@id/noNotificationsTitle" android:background="@android:drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@android:string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBarTitle" android:id="@id/ongoingTitle" android:background="@android:drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@android:string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
[COLOR="SeaGreen"]<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:layout_gravity="center_vertical" android:layout_weight="1" android:textAppearance="@android:style/TextAppearance.StatusBarTitle" android:id="@id/latestTitle" android:paddingLeft="5.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@android:string/status_bar_latest_events_title" />
<TextView android:layout_gravity="center_vertical" android:textSize="14.0sp" android:textColor="#ff000000" android:id="@id/clear_all_button" android:background="@android:drawable/btn_default_small" 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="@android:string/status_bar_clear_all_button" style="\?android:attr/buttonStyle" />
</LinearLayout>[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.server.status.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@android:drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.server.status.ExpandedView>
To hide the carrier bar, add the android:visibility="gone" attribute to the <LinearLayout> that encaspsulates plmnLabel & spnLabel.
Create a new <LinearLayout> exactly as in the comparison that encapsulates latestTitle. Cut & Paste the clear_all_button code from below the plmnLabel & spnLabel nesting it within this new block. Ensure the attributes of latestTitle & clear_all_button match the comparison - without layout_width="0.0dip" and layout_weight="1" on latestTitle it won't align well.
6: As per the autotool instructions but substituting the example path with the path of our xml file.
xavierjohn22 said:
......
EXAMPLE 2: XML BINARY WHEN YOU DO DIRECT EDITS
Say you are editing a file straight from framework-res\res\drawable\progress_horizontal.xml
FOR NOW YOU HAVE TO DO THIS:
1) After doing [3], recompiling the apk
2) Copy the file _INPUT_APK\framework-res\build\apk\res\drawable\progress_horizontal.xml
to
_CUSTOM_RES\framework-res\res\drawable\progress_horizontal.xml
(this is the binary of your edited file, by doing this, you are telling the tool to overwrite it when building the apk)
3) Once this is done, make sure that "Overwrite res using _CUSTOM_RES" is ON, it is ON by default
4) then do build usable, It should overwrite those binaries in the APK
......
Click to expand...
Click to collapse
7: The completed lge-res.apk resides in autotool's out_apk folder, make this into a flashable zip, flash and pray everything went well - you don't need to flash framework-res.apk as well.
Troubleshooting: If autotool complains it can't find *.bat files try moving it to a folder that doesn't require permissions, ie: your user folder, I also had difficulty with long path names, so don't bury it too deep.
I'm an android noob so if my instructions are too vague in some areas i'll try to assist the best i can.
i found a guide in the Nexus S forums to Add date to the top bar. (and removed from dropdown)
ported to ICS SGS project (AOSP ICS) for captivate by ME!!!
DOWNLOADS AT BOTTOM OF 1st POST
built on RC3.1 but will work on all versions. no ICSSGS release is perfect, so not going to worry about multiple versions unless I feel there is a real reason to.
made the zip to delete .odex file as this apk is de-odexed. so IT WORKS ON BOTH!!!
Battery mod included.
Right Hand Date ( Giggidy.. I had a right hand date last night..)
{
"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"
}
Centered Date/Time - smaller font
Made to work with trial and error combining two mod guides... and changing font size to 12. that was all me!
http://forum.xda-developers.com/showthread.php?t=1491887
http://forum.xda-developers.com/showthread.php?p=19760562#post19760562
Note: if you enable every statusbar icon(bt, vibrate,alarm,wifi etc) it will look messy cause the clock overlapse the icons...
Enjoy the Effin Mods!!
edits posted below.. the centre mod took a bit of playing around, original date centering guide was for AOKP (kang project) not AOSP (had centred time to begin with)
1. TO ADD DATE:
You have to decompile SystemUI.apk
Go to file: SystemUI.apk\res\layout\status_bar.xml
find the line looks like this... (line 15 ish..)
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
change androidaddingLeft= to "4.0dip"go to the beginning of the clock code and insert a line above it, paste this line above clock code
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
so it will look like this.... (keeping spacing in-line)
Code:
</LinearLayout>
[COLOR=Red]<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</LinearLayout>
above in the original clock line, I set the
Code:
android:paddingLeft="4.0dip"
(was 6.0dip) to the same value as date, so they have the same space at the left.
With this setup, you will always see date and then clock at the right of the statusbar(I haven't test something else yet).
if you want to delete the date from the notification header, do the following:
in the file: SystemUI.apk\res\layout\status_bar_expanded.xml delete the following line
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
and in the line
Code:
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
replace the
Code:
android:layout_toRightOf="@id/date"
with the following(it maybe not crucial, but I did it)
Code:
android:layout_alignParentLeft="true"
it should look something like that
the text size is probably looking different between date and clock, so in the file SystemUI.apk\res\values\styles.xml is the text size of both.
clock
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
and date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
I changed both with
Code:
<item name="android:textSize">12.0sp</item>
HOW TO CENTER CLOCK/DATE AFTER FIRST MOD
2. CLOCK FIRST...
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the entire original clock line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
3. NOW DATE....
now find, copy & delete (or cut) the line we modded in 1st part (adding date):
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
and place it in the part pasted at the top, above the line...
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like..... full xml - changes in RED..
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"
[COLOR=#ff0000] xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">[/COLOR]
[COLOR=#ff0000] <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity "center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
[COLOR=#ff0000] </LinearLayout>[/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:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [COLOR=#ff0000]android:background="@drawable/status_bar_bg_tile"[/COLOR]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>
reserved....
just in case have more mods...
Will this work on fuzion ics
Sent from my SGH-I897 using XDA App
I think fusion is built off of CM9. So it won't work. If it is built off ICS SGS then it will
Thanks a million TR...worked perfect on first try of both mods...nice work and I'll hit thanks when I get off work.
Sent from my SGH-I897 using XDA App
I'm not sure about the xda app but with tapatalk you are able to give thanks through the app, Same way you reply, click a post then click thanks
Its all good ....just got thanks taken care of.....ill keep an eye out for more updates from you.....later
REALLY SURPRISED this isn't more popular. I LOVE this mod
3 downloads?
Ima give this a try when i get home....
Awesome wallpaper mind sharing?
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
This is great thanks!
Sent from my SGH-I897 using XDA App
Love the way it looks. I am on the Kang CM9 RC0 right now and wish it worked on that. I assume if I flash it my stuff will be broken. So, I will wait for another version to magically appear somewhere maybe.
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
TRusselo said:
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
Click to expand...
Click to collapse
May I also get that "the.zip" file please?
TRusselo said:
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
Click to expand...
Click to collapse
I may mess around with and see what I can do. I love the way it looks. As a matter of fact if I could get this working I wouldn't need a huge widget on my main screen to display this info anymore. I have gone as far as extracting the xml files, but I am on a windows box and it doesn't like the XML format. Says it is corrupt, illegal characters etc. I will look around at some more of the modding guides and see if I can find a XML editor that will work. It seems most are still geared toward 2.2-2.2 versions of the OS. My knowledge is limited, as I am not a developer anyway.
Maybe I won't brick it.
I use windows only... Use notepad++ to edit... Anything...
And don't worry there is absolutely no risk of bricking your phone. At Worst, a bunch of force closes until you restore the original APK
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
TRusselo said:
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
Click to expand...
Click to collapse
Yeah, I seem to have taken a wrong turn with the winrar way. I saw information about apktool a few minutes ago and I just got it installed. So I will see if I can get to work this time through. Thanks for the info.
to de-compile ICS apks without error you will have to find the new updated AAPT.exe files and add them to the apktools ... ? bin folder??? er... sorry not at home. look through its folders and find the old one, and replace with new. ALSO add the updated AAPT files to " C:/Windows/ " as some times it will look for it there and other tools may install it there as well. I was unable to de-compile until i added it there.
APK_Manager ... er updated name...?? APK toolbox??
apktools...
xda auto-tools...
all does the same things and all need the aapt update to decompile ICS as they all use the same base tools through a different GUI...
caution : do not expect exactly same thing please...
Preview :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this mod is originally posted in Nexus S theme forum.
[MOD] Change ICS Lockscreen to Galaxy Note style
and this is guide for above mod..
-----------------------------------------------------------------------------
1) frameworks_base/core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java
- line 444
from :
Code:
mOuterRing.setAlpha(0.0f);
to :
Code:
mOuterRing.setAlpha([COLOR="Blue"]1.0f[/COLOR]);
- line 728~
from :
Code:
if (activeTarget != -1) {
switchToState(STATE_SNAP, x,y);
float newX = singleTarget ? limitX : mTargetDrawables.get(activeTarget).getX();
float newY = singleTarget ? limitY : mTargetDrawables.get(activeTarget).getY();
moveHandleTo(newX, newY, false);
TargetDrawable currentTarget = mTargetDrawables.get(activeTarget);
if (currentTarget.hasState(TargetDrawable.STATE_FOCUSED)) {
currentTarget.setState(TargetDrawable.STATE_FOCUSED);
mHandleDrawable.setAlpha(0.0f);
}
} else {
switchToState(STATE_TRACKING, x, y);
moveHandleTo(x, y, false);
mHandleDrawable.setAlpha(1.0f);
}
}
to :
Code:
if (activeTarget != -1) {
switchToState(STATE_SNAP, x,y);
float newX = singleTarget ? limitX : mTargetDrawables.get(activeTarget).getX();
float newY = singleTarget ? limitY : mTargetDrawables.get(activeTarget).getY();
moveHandleTo(newX, newY, false);
TargetDrawable currentTarget = mTargetDrawables.get(activeTarget);
[COLOR="blue"]mOuterRing.setState(TargetDrawable.STATE_ACTIVE);[/COLOR]
if (currentTarget.hasState(TargetDrawable.STATE_FOCUSED)) {
currentTarget.setState(TargetDrawable.STATE_FOCUSED);
mHandleDrawable.setAlpha(0.0f);
}
} else {
switchToState(STATE_TRACKING, x, y);
[COLOR="blue"]mOuterRing.setState(TargetDrawable.STATE_INACTIVE);[/COLOR]
moveHandleTo(x, y, false);
mHandleDrawable.setAlpha(1.0f);
}
}
2) in framework-res.apk
- /res/drawable/ic_lockscreen_outerring.xml
to :
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="false" android:state_enabled="true" android:state_active="false" android:drawable="@drawable/jog_tab_left_normal" />
<item android:state_focused="false" android:state_enabled="true" android:state_active="true" android:drawable="@drawable/jog_tab_left_pressed" />
</selector>
(i replaced other unused resources instead of adding new files.)
- /res/layout/keyguard_screen_tab_unlock.xml
to :
Code:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="332.0dip">
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip" />
<TextView android:visibility="gone" android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
</RelativeLayout>
<com.android.internal.widget.DigitalClock android:layout_gravity="left" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginLeft="30.0dip" android:layout_marginBottom="12.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="left" android:orientation="horizontal" android:layout_marginLeft="@dimen/keyguard_lockscreen_status_line_font_right_margin">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/status1" android:layout_marginLeft="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" android:drawablePadding="4.0dip" />
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="left" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginLeft="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
- /res/values/arrays.xml
from :
Code:
<array name="lockscreen_targets_with_camera">
<item>@drawable/ic_lockscreen_unlock</item>
<item>@null</item>
<item>@drawable/ic_lockscreen_camera</item>
<item>@null</item>
</array>
<array name="lockscreen_target_descriptions_with_camera">
<item>@string/description_target_unlock</item>
<item>@null</item>
<item>@string/description_target_camera</item>
<item>@null</item>
</array>
to :
Code:
<array name="lockscreen_targets_with_camera">
<item>@drawable/ic_lockscreen_unlock</item>
</array>
<array name="lockscreen_target_descriptions_with_camera">
<item>@string/description_target_unlock</item>
</array>
- and resources (for wvga=hdpi device) : http://www.mediafire.com/?fio9rmc8reic4o9
: extract this zip to /res/drawable-hdpi/ (replace original files)
-----------------------------------------------------------------------------
10 char
1) frameworks_base/core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java
Click to expand...
Click to collapse
where to find this file?
WildeRNS said:
where to find this file?
Click to expand...
Click to collapse
Compile from source
LKNim said:
Compile from source
Click to expand...
Click to collapse
oooo.... maybe someone already done this mod for cm9?
Awesome gonna give it a try on mdpi
herpderp © aint got money to pay to my fish
can u help me ?
i cant find frameworks_base/core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java
even on the source of it galaxyics.com '
i couldnt find
i really want too apply this
could i request u to make it for this
dl link of framework http://www.mediafire.com/download.php?x812a9j12fxo8cg
(CM9)
i hope u can help
just 1 little request
try and report back,also mention the device and os
spacecaker said:
Awesome gonna give it a try on mdpi
herpderp © aint got money to pay to my fish
Click to expand...
Click to collapse
figured out that my pc is damm bad at compiling from source -_-
160 GB 1 gb ram
Ooo, going to try this, hope I don't screw something up
Just flashed, it's awesome. but... to Unlock, Only one point is able to touch:-(
Sent from my Nexus S using XDA
thanks for sharing
Can i use this mod to my CUSTOM ROM?
jun980219 said:
thanks for sharing
Can i use this mod to my CUSTOM ROM?
Click to expand...
Click to collapse
sure.. no problem if you use my work with proper credit given..
Ok, I handled to edit all the files, by the first one: that .java thing; i just copied everything in a notepad++ screen and saved it as .java, but I don't know where I have to put that file.
So question 1: Where do i have to put the MultiWaveView.java file?
And I hahve opened the framework-res.apk with apktool, but apktool gives an error when I type: apktool b out
(out=direction where I have the unpacked framework-res.apk)
So question 2: how to put the arrays.xml, ic_lockscreen_outerring.xml and keyguard_screen_tab_unlock.xml in the framework-res.apk?
Thanks in advanced
Wow, too complicated for me
sidewalk_ said:
Wow, too complicated for me
Click to expand...
Click to collapse
i know, i had Same thing when I saw it for the first tome
Sent from my GT-S5660 using xda premium
plzz post guide edit framework.jar
i dont know use source
thanks
Hello, this is my first topic on this section..
28.9.14 Created on 2.3 but it also works on 4.0, 4.1, 4.2, 4.3 and 4.4 too!
Thanx to @Ticklefish for testing ..
[14.7.13]Update for CyanogenMod 9/10/10.1 by @Adi Aisiteru Reborn . Credits & Thanks to him..
CHECK HERE FOR GUIDE
{
"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 (GB tut)
- Download BatteryPercentage from attachment and unrar it.
- Decompile SystemUI.apk and copy smali files into smali/com/erryy folder. ( so the long path is com/erryy/BatteryText$1.smali and BatteryText.smali)
- Go to SystemUI/res/layout/status_bar.xml and open it;
add the code before <com.android.systemui.statusbar.Clock ...
Code:
<com.erryy.BatteryText android:textSize="14.0dip" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" />
- Save and compile apk and push .
Done.
--Answers to some questions--
- 2.3+
- GINGERBREAD FW QUESTION!
Layout is placed right of the battery not on the left. Why?
On ICS+ fw signal, battery etc they have their android:id's but on GB all status icons are just in one id ( android:id="@id/statusIcons) so Its so easy to put it to left of battery on ICS.
Check my signature
GB SPECIAL! BatteryText% with JB Battery!! signal-%-battery! for putting it to left on GB!
- You dont have to use it same place on guide. You can put the code whereever you want and use it.
happy mods.
excellent mod
very useful :good:
I'd put the 0.0KB / s as you have :fingers-crossed:
todoslosdias24 said:
excellent mod
very useful :good:
I'd put the 0.0KB / s as you have :fingers-crossed:
Click to expand...
Click to collapse
You can find data traffic guide on my signature. Remod GB system apps. Check first topic. Thanks
Sent from my LT15i using xda app-developers app
Would this work on the cdma version from Verizon?
Sent from my R800x using xda premium
@Erhany
CM7 has battery number without "%"
What should I do to have yours?
darkharbinger81 said:
Would this work on the cdma version from Verizon?
Sent from my R800x using xda premium
Click to expand...
Click to collapse
Im sorry I have no idea about CDMA Version from Verizon. You can try it if your phone is rooted and deodexed.
androidphone2012 said:
@Erhany
CM7 has battery number without "%"
What should I do to have yours?
Click to expand...
Click to collapse
Just follow the guide. If you dont want to use my smali files , then you have to add a textview for '' % '' before or after your smali code to show % .
Erhany said:
You can find data traffic guide on my signature. Remod GB system apps. Check first topic. Thanks
Sent from my LT15i using xda app-developers app
Click to expand...
Click to collapse
already did :good:
Now I have a question
It can make a settings to enable and disable it from settings?
Awesome guide bro .!!
I've been locking for this ever since I got my phone
sent from my super advanced mini fridge
How about the position, it's can moved beside the signal bar? Soo its look like xperia z status bar
Sent from my Andromax U (Xperia Style) using xda premium
Erhany said:
... you have to add a textview for '' % '' before or after your smali code to show % .
Click to expand...
Click to collapse
Please edit my smali for "add a textview for '' % '' before or after your smali code to show %" whenever you're free. Thanks in advance
Can u tell how to change battery icon... i want sony stock battery icon in statusbar, actually now i have percentage in battery icon.
XML code for CyanogenMod 9, CyanogenMod 10, CyanogenMod 10.1
Thanks Bro @Erhany for the code and guide
and thanks to Recognized Themer @rodman01 for information about this guide
the smali & guide work great on CM9 / CM10 / CM10.1
but I've made some change to the xml, below is the xml code :
CyanogenMod 9
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
CyanogenMod 10
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:gravity="bottom" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
CyanogenMod 10.1
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
and merge the smali from first post, Thanks @Erhany, Done & Compile
my XML code will put the 00% text on the left of main battery image, and the text color will be change according to theme chooser applied
below attched is screenshot, from stok theme and three different theme chooser
Adi Aisiteru Reborn said:
Thanks Bro @Erhany for the code and guide
and thanks to Recognized Themer @rodman01 for information about this guide
the smali & guide work great on CM9 / CM10 / CM10.1
but I've made some change to the xml, below is the xml code :
CyanogenMod 9
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
CyanogenMod 10
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:gravity="bottom" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
CyanogenMod 10.1
Code:
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
and merge the smali from first post, Thanks @Erhany, Done & Compile
my XML code will put the 00% text on the left of main battery image, and the text color will be change according to theme chooser applied
below attched is screenshot, from stok theme and three different theme chooser
Click to expand...
Click to collapse
Hello dev, thank you for your interest and support and also for your work.
Topic updated.
i copy BatteryText$1.smali and BatteryText.smali file into path smali/com but statusbar no change
lovevip1102 said:
i copy BatteryText$1.smali and BatteryText.smali file into path smali/com but statusbar no change
Click to expand...
Click to collapse
How about the status_bar.xml ?
Have you add the line responsible for those smalis
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
How about the status_bar.xml ?
Have you add the line responsible for those smalis
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes i edit status_bar.xml, i used cm 10.1, i should copy folder com into smali or copy file BatteryText$1.smali and BatteryText.smali file into path smali/com
lovevip1102 said:
Yes i edit status_bar.xml, i used cm 10.1, i should copy folder com into smali or copy file BatteryText$1.smali and BatteryText.smali file into path smali/com
Click to expand...
Click to collapse
you must copy 2 smali files into smali/com/erryy folder and edit status_bar.xml file. Then compile.
I have only tested the smali to CM9/CM10/CM10.1 , haven't test it on other AOSP base rom , such as , AOSP stok, PA, PAC, Slimbean or etc,. so if anybody have test it on other AOSP base rom , please tell us . share you experience OK !!
Thnks
I have try this mod for AOSP and nothing happen,
using xda premium
vanitea said:
I have try this mod for AOSP and nothing happen,
using xda premium
Click to expand...
Click to collapse
thanx for feedback.