[MOD] 4.4.2 TW Hidden power button - Galaxy Note 3 Themes and Apps

Hidden power button under the status bar clock.
No visual changes looks like the stock status bar:
{
"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"
}
Attention!
After this changes an Xposed modul can't move, or hide the clock.
Functions:
- Short press on the clock turns off the screen
- Long press, or swipe from the clock top to the bottom opens the power menu.
Needed tools:
Apktool
Notepad++
1. Decompile SystemUI.apk
2. Navigate to \res\layout folder
3. Open status_bar.xml
Add BLUE lines.
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>
[COLOR="Blue"][B]<FrameLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">[/B]
[/COLOR]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:paddingStart="6.0dip" systemui:ampmSmall="false" />
[COLOR="Blue"][B]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@null" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
</FrameLayout>[/B][/COLOR]
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
4. Save your changes
5. Build SystemUI.apk
6. Push to your Phone, set permissions, reboot
I did it already for the N9005XXUENC2 firmware: Download

tkari4 said:
Hidden power button under the status bar clock.
No visual changes looks like the stock status bar:
Attention!
After this changes an Xposed modul can't move, or hide the clock.
Functions:
- Short press on the clock turns off the screen
- Long press, or swipe from the clock top to the bottom opens the power menu.
Needed tools:
Apktool
Notepad++
1. Decompile SystemUI.apk
2. Navigate to \res\layout folder
3. Open status_bar.xml
Add BLUE lines.
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>
[COLOR="Blue"][B]<FrameLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">[/B]
[/COLOR]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:paddingStart="6.0dip" systemui:ampmSmall="false" />
[COLOR="Blue"][B]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@null" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
</FrameLayout>[/B][/COLOR]
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
4. Save your changes
5. Build SystemUI.apk
6. Push to your Phone, set permissions, reboot
I did it already for the N9005XXUENC2 firmware: Download
Click to expand...
Click to collapse
Do you have flashable zip?

nice

AldrichDSaints said:
Do you have flashable zip?
Click to expand...
Click to collapse
Flashable zip attached here: http://forum.xda-developers.com/showpost.php?p=51305774&postcount=157
Copy SystemUI.apk in system / priv-app folder, than you can flash it.
Don't forget backup your current SystemUI.apk.

@tkari4 Thanks for sharing your guids. I think Note 3 community is missing a development thread like the one in Note (by majdini). so as you have reasonable knowledge about smali things, that would be nice if you could open such thread so that everyone can add his mod/guide/tip to it and all can be found in the same thread.
Sent from my SM-N9005

tkari4 said:
Flashable zip attached here: http://forum.xda-developers.com/showpost.php?p=51305774&postcount=157
Copy SystemUI.apk in system / priv-app folder, than you can flash it.
Don't forget backup your current SystemUI.apk.
Click to expand...
Click to collapse
Thanks. I'm gonna try this one

This mod works great! Thank you!

tkari4 said:
Flashable zip attached here: http://forum.xda-developers.com/showpost.php?p=51305774&postcount=157
Copy SystemUI.apk in system / priv-app folder, than you can flash it.
Don't forget backup your current SystemUI.apk.
Click to expand...
Click to collapse
Could you provide the download link instead of thread link.um just a noob and dont have that much idea about all this stuff. It will be helpful if you just provide the download link of flashable zip.
Take care
Sent from my SM-N900 using XDA Premium 4 mobile app
---------- Post added at 08:15 AM ---------- Previous post was at 07:45 AM ----------
Will this mod work on n900 octa core firmware version DNA6 KITKAT.
THANKS
Sent from my SM-N900 using XDA Premium 4 mobile app
---------- Post added at 08:37 AM ---------- Previous post was at 08:15 AM ----------
Wprking great...it took time me to understand. ...thanks
Sent from my SM-N900 using XDA Premium 4 mobile app

just usable on KK?
noway for using on JB?

MEHRDAD595 said:
just usable on KK?
noway for using on JB?
Click to expand...
Click to collapse
I'm using this code on 4.1.2 too, so should work on JB.

@tkari4
Needs your help, sent you PM

Tried with my rom but dont work.using s5282 tw jb 4.1.2 rom! :/

SystemUI hidden power N9005XXUENC2
tkari4 said:
Hidden power button under the status bar clock.
No visual changes looks like the stock status bar:
Attention!
After this changes an Xposed modul can't move, or hide the clock.
Functions:
- Short press on the clock turns off the screen
- Long press, or swipe from the clock top to the bottom opens the power menu.
Needed tools:
Apktool
Notepad++
1. Decompile SystemUI.apk
2. Navigate to \res\layout folder
3. Open status_bar.xml
Add BLUE lines.
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textSize="@dimen/status_bar_battery_text_size" android:textColor="#ffffffff" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" android:layout_marginStart="@dimen/status_bar_battery_text_marginStart" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="12.0dip" android:layout_height="18.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="5.0dip" />
</LinearLayout>
[COLOR="Blue"][B]<FrameLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true">[/B]
[/COLOR]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:ellipsize="none" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:paddingStart="6.0dip" systemui:ampmSmall="false" />
[COLOR="Blue"][B]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@null" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" />
</FrameLayout>[/B][/COLOR]
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
4. Save your changes
5. Build SystemUI.apk
6. Push to your Phone, set permissions, reboot
I did it already for the N9005XXUENC2 firmware: Download
Click to expand...
Click to collapse
prejudice and can do so with the firmware N9005XXUEND5? tnx

Yes it should work on latest ROM too.
Who are not good with compiling here attached two version of hidden power
1.Who are using stock battery
2.Who are using modified Imaged battery
Download according your SystemUI and flash from recovery.

dr.ketan said:
Yes it should work on latest ROM too.
Who are not good with compiling here attached two version of hidden power
1.Who are using stock battery
2.Who are using modified Imaged battery
Download according your SystemUI and flash from recovery.
Click to expand...
Click to collapse
tnx

MOD] 4.4.2 TW Hidden power button
dr.ketan said:
Yes it should work on latest ROM too.
Who are not good with compiling here attached two version of hidden power
1.Who are using stock battery
2.Who are using modified Imaged battery
Download according your SystemUI and flash from recovery.
Click to expand...
Click to collapse
sorry but to ND5 dont work ..tnx also

MOD] 4.4.2 TW Hidden power button UPDATE for ND5
ANDROIDXFOREVER said:
sorry but to ND5 dont work ..tnx also[/QUOTE
use file manager with root permissions go to sistem private / app / and overwrite with this.
https://drive.google.com/file/d/0B8KAAvt9JyRXeTNHQ0dqTmMzcEk/edit?usp=sharing
tnx for help to Dr.Ketan
Click to expand...
Click to collapse

if i used this on center clock ,, will it work ?

jakTomas said:
if i used this on center clock ,, will it work ?
Click to expand...
Click to collapse
dont work center clock.....but work all function to wanam xposed

ANDROIDXFOREVER said:
dont work center clock.....but work all function to wanam xposed
Click to expand...
Click to collapse
what do you mean " but work all function to wanam xposed " ?

Related

[SOURCE][STATUSBAR]Statusbar Greper 2[UPDATE-13JAN2013]

WHAT IS THIS??
this mod could change your statusbar look with ease...
-enable to change the position of clock-notification icon-battery n data icon-also carrier image
-enable change ur statusbar background (its need a compiled 9.png in other word u have to create 9.png with draw9patch and compile it using apktool or eclipse or u can just find some apk that consist of 9.png and simply extract it pick the 9.png n use it. but this is not a must. use ordinary png file also welcome.. it'll strech in lanscape mode).
-enable to change carrier image
UPDATE 2
rewriting code from scratch and push into github,,,
https://github.com/jmkl/StatusBarGreper2
UPDATE 1.8.1
download here : statusbargreper 1.8.1
ChangeLog :
-fix some feature not show in ICS
UPDATE 1.8
ChangeLog :
-customizable icon data - datainout - battery (without reboot.. easy as fcuk)
- 3 mode of battery (Text mode - Battery Line mode - Icon Mode)
- Adding Traffic State (like miui v4)
-Overlaping signal data & data inout icon (like miui v4 i guess)
-center and right side clock with ability to show and hide days and am/pm (Customizable font and text color)
HOW TO APPLY THIS VERSION
NOTE : Ur ROM must be signed by dsixda or else signer.. because we need to add another permission into SystemUI (i dunno why i do this
because i write this code as 3rd party apps using android SDK)
1. decompile ur SystemUI.apk
2. decompile my dcsmsSystemUI.apk
3. go to dcsmsSystemUI/smali/ copy those in folder into ur SystemUI/smali
4. open ur SystemUI/res/layout/status_bar.xml
modify the code just like the code below
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<in.jmkl.dcsms.statusbargreper.DcsmsLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true">
<in.jmkl.dcsms.statusbargreper.CarrierImage android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" />
</LinearLayout>
<com.android.systemui.statusbar.IconMerger android:gravity="right|center" android:id="@id/notificationIcons" android:layout_width="50.0dip" android:layout_height="fill_parent" />
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<in.jmkl.dcsms.statusbargreper.DataTrafik android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<in.jmkl.dcsms.statusbargreper.Icon android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<in.jmkl.dcsms.statusbargreper.JamSamping android:layout_gravity="center_vertical" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="0.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
</LinearLayout>
</in.jmkl.dcsms.statusbargreper.DcsmsLayout>
<in.jmkl.dcsms.statusbargreper.Jam android:textSize="18.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
</RelativeLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ffdddddd" 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:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#0033b5e5" android:gravity="left|center" android:id="@id/date" android:background="@drawable/dcsms_tits_bg" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
<in.jmkl.dcsms.statusbargreper.BatteryBar android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.StatusBarView>
5. open ur SystemUI/AndroidManifest.xml and add this line below
<uses-permission android:name="android.permission.MANAGE_USB" />
Code:
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6. build ur SystemUI
7. drag n drop the folder assets in dcsmsSystemUI into ur SystemUI
8. sign ur SystemUI
9. install/push statusbargreper 1.8
10. push ur SysteUI n Enjoy
OLD
HOW TO APPLY THIS MOD??
just simply decompile my SystemUI.apk
go to smali folder and copy the "in" folder into ur smali
then go to your /res/layout/ open statusbar.xml.and modify some line. so its look like below
here is the quick explanation about the code :
this mod is bind my customlayout >> in.jmkl.dcsms.statusbargreper.DcsmsLayout
the 1st child of this layout is the linearlayout that contain of carrier image
the 2nd child of this layout is notificationicon
the 3rd child of this layout is contain signal icon n battery icon(since i use USSR that contain EDT tweak...so i put it there)
only 3 child allow on this customlayout...
those layout is the default one.. and here is the magic happen ..install StatusBar Greper.apk press menu or u can press the action button.
and play around with it....once u press it, it will affect the statusbar immediatly..easy as f***
please report bugs or something.
enjoy
Some Screeniez :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
NB... u need quickpic to run this apps
download here
AND THEN...
IF U LIKE MY JOB...U KNOW WHAT TO DO
thanks to :
Code:
ALLAH SWT
all fellow donators
androidminang.com
ilmnss family
and u
Wow!! Nice one sir!!
Unfortunately, I have recompiling problem on my Ubuntu. Sooo saad...
wow. nice share! Reserved for now ..
This is a very good post like usual... thanks for this sir... you're awesome sir...
ALL I GOT IS INSANE ! !
Great job as always sir jmkl
Sent from my GT-I9100 using Tapatalk 2
WOW! you should be RT or something..
can this be used on galaxy fit too??
thanks all.... anybody try this hahahaha??
kill3d said:
thanks all.... anybody try this hahahaha??
Click to expand...
Click to collapse
I will om jmkl
Will implemented it
Sent from my GT-S5360 using xda app-developers app
someone modd this for C.O.D ROM
here is the systemui.apk
om jim , aku coba porting ini ke stockrom ko' malah fc ya systemui nya ??
awhhe said:
om jim , aku coba porting ini ke stockrom ko' malah fc ya systemui nya ??
Click to expand...
Click to collapse
Logcat please
Sent from my GT-S5360 using Tapatalk 2
dmna om smali foldernya?
Awesome mod again, kill3d you rock!
evanlocked said:
I will om jmkl
Will implemented it
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Nice
tio12 said:
dmna om smali foldernya?
Click to expand...
Click to collapse
Decompile systemui.apk d post 1
Go to smali fldr
--/com
--/in <<< copy this foldr into ur systemui smali fldr
Sent from my GT-S5360 using Tapatalk 2
kill3d said:
Logcat please
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
ntar om aku kirim di fb .
Sent from my GT-S5360
should i add these lines below or what line should be change?
<in.jmkl.dcsms.statusbargreper.DcsmsLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true">
<in.jmkl.dcsms.statusbargreper.CarrierImage android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" /></LinearLayout>
<com.android.systemui.statusbar.IconMerger android:gravity="center" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="25dip" android:layout_height="fill_parent" />
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<LinearLayout androidrientation="horizontal" android:id="@id/icons" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<LinearLayout android:gravity="right" androidrientation="horizontal" android:id="@id/statusIcons" androidaddingRight="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.SignalText android:textSize="26.5dip" android:textStyle="bold" android:gravity="center_vertical" androidrientation="horizontal" androidaddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.BatteryText android:textSize="16.5dip" android:textStyle="bold" android:gravity="center_vertical" androidrientation="horizontal" androidaddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>
</in.jmkl.dcsms.statusbargreper.DcsmsLayout>
nice.
great work...
om jmkl , biar icon merger nya gak melipir di stock rom .
ini nya diganti berapa yah ??
<com.android.systemui.statusbar.IconMerger android:gravity="center" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="25dip" android:layout_height="fill_parent" />
android:layout_width="25dip"
devion14 said:
should i add these lines below or what line should be change?
<in.jmkl.dcsms.statusbargreper.DcsmsLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true">
<in.jmkl.dcsms.statusbargreper.CarrierImage android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" /></LinearLayout>
<com.android.systemui.statusbar.IconMerger android:gravity="center" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="25dip" android:layout_height="fill_parent" />
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<LinearLayout androidrientation="horizontal" android:id="@id/icons" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<LinearLayout android:gravity="right" androidrientation="horizontal" android:id="@id/statusIcons" androidaddingRight="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.SignalText android:textSize="26.5dip" android:textStyle="bold" android:gravity="center_vertical" androidrientation="horizontal" androidaddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.BatteryText android:textSize="16.5dip" android:textStyle="bold" android:gravity="center_vertical" androidrientation="horizontal" androidaddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>
</in.jmkl.dcsms.statusbargreper.DcsmsLayout>
Click to expand...
Click to collapse
please see my statusbar.xml for references....
awhhe said:
om jmkl , biar icon merger nya gak melipir di stock rom .
ini nya diganti berapa yah ??
<com.android.systemui.statusbar.IconMerger android:gravity="center" androidrientation="horizontal" android:id="@id/notificationIcons" android:layout_width="25dip" android:layout_height="fill_parent" />
android:layout_width="25dip"
Click to expand...
Click to collapse
Whatever u need
Sent from my GT-S5360 using Tapatalk 2
sir kill3d can you do it for my stock deodexed rom??
im having compile issues on my netbook cause my pc is down due to bad ram card...please
system ui

[GUIDE][JB] Center Clock + Small AM/PM

{
"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 Clock :
1. Decompile SytemUI.apk
2. Go to :
Systemui/res/layout/tw_status_bar.xml
3. Replace all code with 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/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" 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" />
<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:id="@id/left_icons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="15.0dip" android:gravity="center_vertical" android:id="@id/carrierLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<ImageView android:id="@id/doNotDisturbIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<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" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff278ab1" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/right_icons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:textSize="9.0dip" android:textColor="#ff278ab1" android:layout_gravity="center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</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="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</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:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" 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>
4. Save all and recompile SystemUI.apk
5. Done
HOW TO Small AM/PM :
1. Decompail SystemUI.apk
2. Go to :
Systemui/res/layout/tw_status_bar.xml
4. Find this code :
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
5. Add : systemui:ampmSmall="true" to the end just before /> so it looks like :
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" [COLOR=Red]systemui:ampmSmall="true"[/COLOR] />
6. Save all and recompail SystemUI.apk
7. Done
Change Color :
- Green --> ff99FF00
- Blue ----> ff278ab1
- White --> ffa6a6a6
Change color in this line :
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="[B]#[COLOR=Blue]ff278ab1[/COLOR][/B]" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" systemui:ampmSmall="true" />
# IF YOU WANT YOU CAN DOWNLOAD SystemUI.apk IN HERE #
Code:
Credit to :
gharrington [URL="http://forum.xda-developers.com/showthread.php?t=2203166"][Center Clock Guide][/URL]
joehanh88 [URL="http://forum.xda-developers.com/showthread.php?t=2075885"][Small Am/Pm][/URL]
Is this entirely your guide? If not put credits. Also, why don't you just put everything in one place? You create separate threads for each on even if its just the same file modified. That waybits easy to manage the info. Rather than browsing different threads to look for the guide.
Sent from my GT-I8160 using xda app-developers app
Dr01nE said:
Is this entirely your guide? If not put credits. Also, why don't you just put everything in one place? You create separate threads for each on even if its just the same file modified. That waybits easy to manage the info. Rather than browsing different threads to look for the guide.
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
Ok I'll editing with credit :good:
I not put thread one place cz for user don't like small am/pm can use center clock only and in reverse..
I have tested and tried in SGA2 also...
Ok...I decompiled the systemui->edited the xml and now I am left with the systemui folder..but I dun know how to recompile it xD..do I go with smth like.. apktool b SystemUI or smth?
Well I just did that, used apktool b SystemUI, when pressed enter I had this screen, normally the .apk should be somewhere in a dist folder, but yeah..
mojito0 said:
Ok...I decompiled the systemui->edited the xml and now I am left with the systemui folder..but I dun know how to recompile it xD..do I go with smth like.. apktool b SystemUI or smth?
Well I just did that, used apktool b SystemUI, when pressed enter I had this screen, normally the .apk should be somewhere in a dist folder, but yeah..
Click to expand...
Click to collapse
ok...
try this when recompile...
download & extract apktool_build.tar.bz2
so, you must replace apktool.jar in the folder apktool with apktool.jar in apktool_build.tar.bz2 before recompile...
if not work please check again your editing .xml
Artha_CR said:
ok...
try this when recompile...
download & extract apktool_build.tar.bz2
so, you must replace apktool.jar in the folder apktool with apktool.jar in apktool_build.tar.bz2 before recompile...
if not work please check again your editing .xml
Click to expand...
Click to collapse
ok I fixed it, I used an alternative way to edit the status bar clock which edits the res/layout/status_bar.xml file and I have successfully recompiled it, now let's see if it's workin..ookay..bootloop, I needa flash another systemui.
mojito0 said:
ok I fixed it, I used an alternative way to edit the status bar clock which edits the res/layout/status_bar.xml file and I have successfully recompiled it, now let's see if it's workin..ookay..bootloop, I needa flash another systemui.
Click to expand...
Click to collapse
you haven't backup rom before?
try guide step by step decompile & recompile in here
Nice! Thanks
Artha_CR said:
you haven't backup rom before?
try guide step by step decompile & recompile in here
Click to expand...
Click to collapse
Nah I had no problem fixing the bootloop, I just re-flashed the nexus theme which replaces the systemui.apk , my question is why it won't re-compile..I will just try 1 more time.
mojito0 said:
Nah I had no problem fixing the bootloop, I just re-flashed the nexus theme which replaces the systemui.apk , my question is why it won't re-compile..I will just try 1 more time.
Click to expand...
Click to collapse
as described in the guide above that :
Maybe "Because the 'string encoding' is not correct in the 'plurals.xml' with apktool 1.4.3, and if you tried to rebuild, you get some error..."
There is little "bug" in systemui you posted , it is really cool and i use it but sometimes battery icon is cutted for about 1/4, it doesnt matter to me but just to report if you can fix it
Rooobertinhooo said:
There is little "bug" in systemui you posted , it is really cool and i use it but sometimes battery icon is cutted for about 1/4, it doesnt matter to me but just to report if you can fix it
Click to expand...
Click to collapse
ok thanks

REQ lock button on status bar for XXLT4

can anyone make a flashable file for xxlt4 lockbutton on status bar? either on left or right. but more appropriate for right side.
eidecedie03 said:
can anyone make a flashable file for xxlt4 lockbutton on status bar? either on left or right. but more appropriate for right side.
Click to expand...
Click to collapse
Yes plzzzzzzzzzzzzzz
Notification panel lock screen and recent apps
Quote:
Credits to kmokhtar79
1. Decompile SystemUI.apk by APK-Multi tool
2. Navigate to res\drawable-xhdpi folder and put these new resource images there.
3. Navigate to res\layout folder and open tw_status_bar_expanded_header.xml and add the following lines (the blue ones):
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Blue"] <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
First blue line is for recent apps icon and the second one is for lock screen icon
Click to expand...
Click to collapse
4. Save changes, recompile and push to your phone.
Result:
{
"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"
}
If you add the same lines in tw_status_bar.xml then you will get it on the main status bar not in the pull down menu.
If you add the lines to tw_statusbar_expanded.xml you'll get it on the notification pull down : P
apurvapatel said:
If you add the lines to tw_statusbar_expanded.xml you'll get it on the notification pull down : P
View attachment 1942505
Click to expand...
Click to collapse
where to insert the two lines exaclty???
I mean at which point of the tw_statusbar_expanded.xml
Right at the end of the file, look for:
Code:
</RelativeLayout>
Add the following lines right above it:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_weight="1.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="1.0" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
Recompile, push, set the permissions of sysyemui.apk and reboot.
Inspired by kmokhtar's mod via majdinj's tutorials.
Sent from my GT-N7000
thanks m8,
will try
but that's not the same lines as for header
I tried these before and one icon couldn't be seen
sent from my G-Note
hara74 said:
thanks m8,
will try
but that's not the same lines as for header
I tried these before and one icon couldn't be seen
sent from my G-Note
Click to expand...
Click to collapse
My apologies. I had changed a few things in the code to get the two icons at the correct place. Added the codes to the post now.
Try adding the two codes that I have put in the post and see, you should get it then.
thanks again, it's working
sent from my G-Note
Ha ha.. so may options. now is there a way to get the E/G/H+ symbol & arrows & battery icon in the pulldown header?
Theoritically it should work. Try copying the necessary codes from the right xml file to the right xml file. Like I tried the codes from the notification top to the notification pulldown bottom.
Sent from my GT-N7000
Already done that but nothing appear there..
@ apurvapatel
looks better now
sent from my G-Note
Looks really good :good:
hara74 said:
Notification panel lock screen and recent apps
Quote:
Credits to kmokhtar79
1. Decompile SystemUI.apk by APK-Multi tool
2. Navigate to res\drawable-xhdpi folder and put these new resource images there.
3. Navigate to res\layout folder and open tw_status_bar_expanded_header.xml and add the following lines (the blue ones):
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Blue"] <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
4. Save changes, recompile and push to your phone.
Result:
Click to expand...
Click to collapse
Sorry, how do u get the resource image on your screenshot and what filename/filenames should the image be renamed to?
hara74 said:
@ apurvapatel
looks better now
View attachment 1944185
sent from my G-Note
Click to expand...
Click to collapse
Looks very nice, could you please share with XDA community?:good:
Thank's
look at my thread
HATO themes, is in my signature
sent from my G-Note
---------- Post added at 01:49 AM ---------- Previous post was at 01:46 AM ----------
@ devil
look at this thread, there's all explained
http://forum.xda-developers.com/showthread.php?p=35229949
sent from my G-Note
ur package
@ devil
here´s your zip with SystemUI inclusive the recent app and lock buttons in statusbar,
hope it works, haven´t test it myself
View attachment 1948474
hara74 said:
@ devil
here´s your zip with SystemUI inclusive the recent app and lock buttons in statusbar,
hope it works, haven´t test it myself
View attachment 1948474
Click to expand...
Click to collapse
Will test it out soon and let you know if it works! :good: Thanks bro! :laugh::victory:
Edit: The apk doesnt work. Changed permission and pushed to sys/app. Clear cache/dalvik. Restart. Status bar disappear. LOL. Tried searching for SystemUI app in list all apps. SystemUI app is not there. Its like OS cant read/detect SystemUI apk.
Not sure what went wrong with the apk.

[GUIDE][Mods][All Devices]How to add/ Change Clocks to Analog/ Digital with Seconds

Hi devs...
Today i will share to you How to add/ Change All Clocks to Analog nor even with Seconds Digital Clock...
This method only for you who have experiences or familiar with Apktool/ Apk Multy tool/ etc.
So, Let's do this;
Required:
PC
Apktool or similar Tools
NotePad++ for edit xmls files
WinRAR or 7z
A Cup of coffee (Yeaahh...)
1. Change your Clock Lockscreen (From framework or UxpNxtLockscreen)
Only need to change "Textview" to "DigitalClock" for it;
> Decompile your framework-res.apk
> Navigate to /res/layout/
> Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> That's it, now save and Recompile...
Do the same way for UxpNxtLockscreen.apk with open w_clock.xml on /res/layout/
And we got look 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"
}
2. Change your Status bar Clock and Status bar Expanded Clock
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar.xml (for Status bar Clock) and status_bar_expanded_header.xml (for JB status bar expanded clock)
> On status_bar.xml, search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] 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 the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
Yeah, we know what it should be
> Save and Recompile...
Now play with expanded clock;
> Open status_bar_expanded_header.xml
> Search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
> I bet you already knew what you have to do... yep, change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> Save and Recompile...
> And we got look like this:
3. Change your lockscreen Clock to Analog Clock (from framework or UxpNxtLockScreen)
> Decompile framework-res.apk
> Navigate to /res/layout/
> Again, Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
> You need to HIDE these lines first (hide the Digital Clock) by add this code:
Code:
android:visibility="gone"
> Then, copy this line to show Analog Clock upside the above lines:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
> Now code lines should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="top" android:orientation="vertical" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="62.0dip" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
> Save it
> We have new id for now then,
> Navigate to /res/values/
> Open ids.xml and add this line at the end of ids (above </resource> code )
Code:
<item type="id" name="analogClock1">false</item>
> Save and Recompile...
Now play with UxpNxtLockScreen clock;
> After decompiling
> Navigate to /res/layout/
> Open w_clock.xml
> Search for this line:
Code:
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Again, HIDE the Digital Clock before add the Analog Clock by add this line:
Code:
android:visibility="gone"
> Just like the way we made for framework-res.apk, add the Analog Clock lines mentioned above.
> It's should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Wait, it's NOT perfect looks yet :cyclops:
> You need to make some MARGIN to the top of Clock, then:
> On second line, add the RED code and should be look like this:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/clock_and_date" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginTop="36.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true
> Margin should be differ for some Screen Sizes. Then look up for your self...
> Done, Save and Recompile...
> And we got look like this:
4. Add Analog Clock in expanded status bar layout
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar_expanded.xml (for JB devices)
> Search for this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
> Below the code, add this line:
Code:
<AnalogClock android:layout_gravity="bottom" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginBottom="100.0dip"[/COLOR] android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
> See the RED code? That mean depends on your Screen Sizes,.... you know what you have to do...
> And we got look like this:
One more simple guide for change the Analog Clock Style: CLICK ME!
That's it for the Guides, if you have some questions related to this method, just post here...
But, don't ask me for how to use apktool or bla..bla..bla... Try to use your Search Bar Engine or CLICK ME!...
If you had Xperia E Single SIM on your hands, i have those things already for ya... CLICK ME!
CREDITS:
> XDA Developers Staff and Members
> Rizal Lovins for JB Apktool
> Google
> My Coffee...
> If someone forgotten by me, please PM then i will edit the Credits... Thanks
Give me a Motivate by Hit that THANKS button
or Help me for Upgrade my Damn Networking by DONATE to me:fingers-crossed:​
Awesome
Very nice! I haven't done much Android development but I hope to do this for a ROM for my HTC One V.
I've tried out step#1 (seems simple enough) but every time I install the modded framework-res.apk, the ROM just continuously loops at boot animation. I've made sure to set the permissions. I've tried two methods:
Using winRar, I simply add the modded .xml files into the already signed framework-res.apk.
Using apktool, I recompile the framework-res.apk and use this.
I've tried installing while Android is running and through adb while in recovery. No luck. All attempts just boot loop. I should note that I also made the same changes to _landscape.xml instances as well (so that it will also apply when the screen is rotated).
I haven't tried this on any other ROMs and frameworks yet (but I definitely will). The ROM I'm using is CM10.1 (jb 4.2.2) based. Any advice or indication as to what may be going wrong? Thanks!
bro how did u got xperia z blinds view lock screen(i saw in screen shot) on your xperia e??????
filoxo said:
Very nice! I haven't done much Android development but I hope to do this for a ROM for my HTC One V.
I've tried out step#1 (seems simple enough) but every time I install the modded framework-res.apk, the ROM just continuously loops at boot animation. I've made sure to set the permissions. I've tried two methods:
Using winRar, I simply add the modded .xml files into the already signed framework-res.apk.
Using apktool, I recompile the framework-res.apk and use this.
I've tried installing while Android is running and through adb while in recovery. No luck. All attempts just boot loop. I should note that I also made the same changes to _landscape.xml instances as well (so that it will also apply when the screen is rotated).
I haven't tried this on any other ROMs and frameworks yet (but I definitely will). The ROM I'm using is CM10.1 (jb 4.2.2) based. Any advice or indication as to what may be going wrong? Thanks!
Click to expand...
Click to collapse
i think as i know, framework-res.apk should be un-signed apk (coz it's system app)
if this mods (only change clock lockscreen) meet some probs, it should be boot as well but self rebooted when goes to lockscreen...
Droidlover123 said:
bro how did u got xperia z blinds view lock screen(i saw in screen shot) on your xperia e??????
Click to expand...
Click to collapse
blinds? sorry can't get you....
yayakuya said:
i think as i know, framework-res.apk should be un-signed apk (coz it's system app)
if this mods (only change clock lockscreen) meet some probs, it should be boot as well but self rebooted when goes to lockscreen...
blinds? sorry can't get you....
Click to expand...
Click to collapse
Bro effect in xperia z lock screen is called blind view.
See screen shot!!!!!
Please tell me way to port it.I love that effect!!!!!!
Sent from my C1505 using xda app-developers app
Droidlover123 said:
Bro effect in xperia z lock screen is called blind view.
See screen shot!!!!!
Please tell me way to port it.I love that effect!!!!!!
Sent from my C1505 using xda app-developers app
Click to expand...
Click to collapse
He got a stock app which was called: UxpNxtLockScreen.apk
Want it? Google plz
Can you made quide if you know how to center clock in status bar?
Sent from my ST26i using xda premium
maple_mak said:
He got a stock app which was called: UxpNxtLockScreen.apk
Want it? Google plz
Click to expand...
Click to collapse
Bro I already tried many of them but neither of them worked!!!!
Can you post working one????
Sent from my C1505 using xda app-developers app
Droidlover123 said:
Bro I already tried many of them but neither of them worked!!!!
Can you post working one????
Sent from my C1505 using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2192776
But it only works on JellyBean.
maple_mak said:
http://forum.xda-developers.com/showthread.php?t=2192776
But it only works on JellyBean.
Click to expand...
Click to collapse
Thanks bro will try that!!..!..:thumbup::thumbup::thumbup:
Sent from my GT-P3100 using xda app-developers app
maple_mak said:
http://forum.xda-developers.com/showthread.php?t=2192776
But it only works on JellyBean.
Click to expand...
Click to collapse
Bro i tried that but it is not working on xperia e!!!!!!!!!!!
any suggestions????
Droidlover123 said:
Bro i tried that but it is not working on xperia e!!!!!!!!!!!
any suggestions????
Click to expand...
Click to collapse
1) Does your device are Android 4.1?
2) Have you try reboot after put the lockscreen?
3) Or you haven't set permission?
If this 3 question you done already but nothing, I don't have any idea solved...
maple_mak said:
1) Does your device are Android 4.1?
2) Have you try reboot after put the lockscreen?
3) Or you haven't set permission?
If this 3 question you done already but nothing, I don't have any idea solved...
Click to expand...
Click to collapse
Yes xperia e have 4.1 and I rebooted plus gave correct permissions still not working...,
Hope yayakuya bro will help!!!!!
Sent from my GT-P3100 using xda app-developers app
excellent job :thumbup: :thumbup:
Sent from my Xperia Tipo using Tapatalk 4 Beta
Perfect Work om my GO...thanks (pressed)

[GUIDE] [MOD] Status Bar look like Flyme OS (updated)

Hi for all, some people liked the status bar of my Custom ROM, and i resolved make this guide. This guide is based on Stock Android 4.4.2 for Moto X. Ok, let's go!!!
This mod will add:
- Clock positioned left.
- Traffic meter.
- Battery meter.
- Battery icon small.
- Carrier name.
- A touch on the right side to turn off the screen and to open the Power Menu, press.
- Two lines of notifications.
Screenshot:
{
"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"
}
Requires:
- framework-res.apk deodexed
- SystemUI.apk deodexed
- apktool v2.0.0b9
Click to expand...
Click to collapse
Let's start:
Part 1: framework-res.apk
1º - Decompile framework-res.apk
2º - Go to "framework-res > res > values" and open "dimens.xml"
3º - Search for this two lines:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="status_bar_icon_size">24.0dip</dimen>
and change the values for:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
<dimen name="status_bar_icon_size">29.0dip</dimen>
4º - Save and compile the framework-res.apk.
Part 2: SystemUI.apk
1º - Decompile SystemUI.apk
2º - Go to "SystemUI > res > layout" and open "status_bar.xml"
3º - Now, copy all this code and replace by their:
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:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="left" android:id="@id/clock" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="vertical" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="left" android:id="@id/carrier_label" android:paddingTop="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:maxLength="9" android:layout_weight="1.0" />
<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:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<com.android.systemui.projectx.BatteryText android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="6.0dip" android:layout_height="15.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" 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_alignParentStart="true" />
</LinearLayout>
<com.android.systemui.projectx.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/traffic" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/onsText" android:paddingLeft="6.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="18" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<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.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" androidrientation="vertical" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
4º - Save and close.
5º - Go to "SystemUI > res > layout" and open "status_bar_expanded.xml"
6º - Search for this line:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
change for this:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
7º - Save and close.
8º - Go to "SystemUI > res > values" and open "ids.xml"
in the end add this line:
Code:
<item type="id" name="traffic">false</item>
9º - Save and close.
10º - Download this resources > here
11º - Extract the file and put each file in its place.
12º - Compile the SystemUI.apk
Done! Enjoy!!!
I'll give thanks but. I'm not gonna use it.
Sent from Moto X
Man, is root necessary?
Mont said:
I'll give thanks but. I'm not gonna use it.
Sent from Moto X
Click to expand...
Click to collapse
Thanks
rafamoraes2 said:
Man, is root necessary?
Click to expand...
Click to collapse
I didn't understand. This is a guide, and not a app! For have this you should modify your SystemUI.apk (status bar)
Nice looking status bar, to much work yeah I'm lazy like that.
bigv5150 said:
Nice looking status bar, to much work yeah I'm lazy like that.
Click to expand...
Click to collapse
Thanks kkkkkkk
ramon20 said:
Hi for all, some people liked the status bar of my Custom ROM, and i resolved make this guide. This guide is based on Stock Android 4.4.2 for Moto X. Ok, let's go!!!
Screenshot:
Requires:
Let's start:
Part 1: framework-res.apk
1º - Decompile framework-res.apk
2º - Go to "framework-res > res > values" and open "dimens.xml"
3º - Search for this two lines:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="status_bar_icon_size">24.0dip</dimen>
and change the values for:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
<dimen name="status_bar_icon_size">29.0dip</dimen>
4º - Save and compile the framework-res.apk.
Part 2: SystemUI.apk
1º - Decompile SystemUI.apk
2º - Go to "SystemUI > res > layout" and open "status_bar.xml"
3º - Now, copy all this code and replace by their:
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:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="left" android:id="@id/clock" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="vertical" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="left" android:id="@id/carrier_label" android:paddingTop="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:maxLength="9" android:layout_weight="1.0" />
<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:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<com.android.systemui.projectx.BatteryText android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="6.0dip" android:layout_height="15.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" 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_alignParentStart="true" />
</LinearLayout>
<com.android.systemui.projectx.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/traffic" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/onsText" android:paddingLeft="6.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="18" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<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.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" androidrientation="vertical" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
4º - Save and close.
5º - Go to "SystemUI > res > layout" and open "status_bar_expanded.xml"
6º - Search for this line:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
change for this:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
7º - Save and close.
8º - Go to "SystemUI > res > values" and open "ids.xml"
in the end add this line:
Code:
<item type="id" name="traffic">false</item>
9º - Save and close.
10º - Download this smalis > here
11º - Extract the file and put the folder "projectx" in "SystemUI > smali > com > android > systemui"
12º - Compile the SystemUI.apk
Done! Enjoy!!!
Click to expand...
Click to collapse
Boy that's a lot of work for a very minimal change. Doesn't this take up more screen?
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
Boy that's a lot of work for a very minimal change. Doesn't this take up more screen?
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is not a minimal change, this is big! And yes, this take up more screen, but if you decrease the height of navigation bar of the virtual buttons, everything will be ok!!
ramon20 said:
This is not a minimal change, this is big! And yes, this take up more screen, but if you decrease the height of navigation bar of the virtual buttons, everything will be ok!!
Click to expand...
Click to collapse
I'll give it a try see if I like it if not I'll be able to revert using my stock files. But about the code to copy and paste... I see emoji everywhere and I'm pretty sure my phone don't take those and understand them.
Edit:: never mind I just realized you decompiled apks I've never done that. Can you make a flashable?
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
I'll give it a try see if I like it if not I'll be able to revert using my stock files. But about the code to copy and paste... I see emoji everywhere and I'm pretty sure my phone don't take those and understand them.
Edit:: never mind I just realized you decompiled apks I've never done that. Can you make a flashable?
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
give me your SystemUI.apk
https://docs.google.com/file/d/0B8P0UMBi48WreGtVTTd4M2pfLXc/edit?usp=docslist_api
Do you need my framework res?
Sent from my XT1053 using XDA Premium 4 mobile app
---------- Post added at 07:54 PM ---------- Previous post was at 07:50 PM ----------
I'm on 4.4.3 if that makes a difference. I don't believe it should though. Really appreciate your help I rarely see developers that aren't complete jerks. You good sir are a blessing in our community!
Sent from my XT1053 using XDA Premium 4 mobile app
Is there anyway someone can attach these apps already changed so we can just install them?
Because it sure looks like a messy change
Someone just requested access to that file to edit I approved. Looks like it was edited two minutes ago. Was that you Ramon?
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
https://docs.google.com/file/d/0B8P0UMBi48WreGtVTTd4M2pfLXc/edit?usp=docslist_api
Do you need my framework res?
Sent from my XT1053 using XDA Premium 4 mobile app
---------- Post added at 07:54 PM ---------- Previous post was at 07:50 PM ----------
I'm on 4.4.3 if that makes a difference. I don't believe it should though. Really appreciate your help I rarely see developers that aren't complete jerks. You good sir are a blessing in our community!
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
yes, give your framework-res.apk too
pintasmapila said:
Is there anyway someone can attach these apps already changed so we can just install them?
Because it sure looks like a messy change
Click to expand...
Click to collapse
is not good because can cause some error, and if i put the guide, anyone can port for any rom
marnold425 said:
Someone just requested access to that file to edit I approved. Looks like it was edited two minutes ago. Was that you Ramon?
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i have edit the theard, was missing some things. hey, the link are request permission! what is this???
ramon20 said:
yes, give your framework-res.apk too
is not good because can cause some error, and if i put the guide, anyone can port for any rom
i have edit the theard, was missing some things. hey, the link are request permission! what is this???
Click to expand...
Click to collapse
Google drive. I can't post files with XDA app so I linked you to my Google drive Moto X development folder you have access to modify and make comments I'll leave them both up and if anyone has a stock moto x they can use these files.
https://drive.google.com/folder/d/0B8P0UMBi48WrX3k2ZE5jdUxxblE/edit
Request access there and you can find systemui.apk and I'll upload my framework there as well when you edit them put a comment on the folder so we know you edited it.
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
Google drive. I can't post files with XDA app so I linked you to my Google drive Moto X development folder you have access to modify and make comments I'll leave them both up and if anyone has a stock moto x they can use these files.
https://drive.google.com/folder/d/0B8P0UMBi48WrX3k2ZE5jdUxxblE/edit
Request access there and you can find systemui.apk and I'll upload my framework there as well when you edit them put a comment on the folder so we know you edited it.
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i really don't know user the drive, i prefer that you make a upload in the mediafire or other
ramon20 said:
i really don't know user the drive, i prefer that you make a upload in the mediafire or other
Click to expand...
Click to collapse
Ah okay sorry, I just use Google Drive because it's integrated into our phones and works well with other Google products. I don't have any other hosting accounts. But thanks for trying!!
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
Ah okay sorry, I just use Google Drive because it's integrated into our phones and works well with other Google products. I don't have any other hosting accounts. But thanks for trying!!
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i right have make the download, and i'm editing
marnold425 said:
Ah okay sorry, I just use Google Drive because it's integrated into our phones and works well with other Google products. I don't have any other hosting accounts. But thanks for trying!!
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
well, i have got a error when compiling the framework-res :/ i don't know why, i will study this, and after i will tell to you. sorry
ramon20 said:
well, i have got a error when compiling the framework-res :/ i don't know why, i will study this, and after i will tell to you. sorry
Click to expand...
Click to collapse
Alright thanks for your effort and time much appreciated.
Sent from my XT1053 using XDA Premium 4 mobile app

Categories

Resources