Hi, i'm gonna tell u how to get Sony lollipop digital clock on CM12 lockscreen
Requirements:
- Knowledge how to decompile recompile
- Advanced ApkTool v4.1.0 By BDFreak (use latest apktool)
- Java installed
- Notepad++
- SystemUI.apk
Steps:
VERTICAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:format12Hour="hh" android:format24Hour="HH" />
</LinearLayout>
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.5dip" android:layout_marginBottom="-11.5dip" android:singleLine="true" android:layout_below="@id/clock" android:format12Hour="mm" android:format24Hour="mm" />
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">108.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
vertical clock has layout issue in landscape mode
HORIZONTAL CLOCK
1. decompile SystemUI.apk
2. open keyguard_status_area.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="a - EEE, LLL d" android:format24Hour="EEE, LLL d" style="@style/new_style" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:gravity="center" android:id="@id/date_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_below="@id/clock" style="@style/widget_label" />
<TextView android:textColor="@color/clock_gray" android:gravity="center" android:id="@id/alarm_status" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="6.0dip" android:layout_below="@id/clock" android:drawableStart="@drawable/ic_access_alarms_big" style="@style/new_style" />
</LinearLayout>
3. open keyguard_status_view.xml in res/layout folder, replace the whole lines with these
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.KeyguardStatusView android:gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_status_view" android:layout_width="fill_parent" android:layout_height="wrap_content" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res-auto">
<LinearLayout android:layout_gravity="center|top" android:orientation="vertical" android:id="@id/keyguard_clock_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true">
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextClock android:textAppearance="@style/BoldTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-3.0dip" android:singleLine="true" android:format12Hour="h" android:format24Hour="HH" />
<TextClock android:textAppearance="@style/LightTimeTextStyle" android:textColor="@color/clock_white" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="-10.0dip" android:singleLine="true" android:format12Hour="mm" android:format24Hour="mm" />
</LinearLayout>
<TextClock android:textColor="@color/clock_white" android:layout_gravity="center_horizontal" android:id="@id/clock_view" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:textAllCaps="true" android:format12Hour="@string/keyguard_widget_12_hours_format" android:format24Hour="@string/keyguard_widget_24_hours_format" style="@style/widget_big_thin" />
<include layout="@layout/keyguard_status_area" />
<TextView android:textSize="@dimen/widget_label_font_size" android:textColor="#ccffffff" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/owner_info" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:layout_marginTop="@dimen/date_owner_info_margin" android:layout_marginRight="16.0dip" android:singleLine="true" />
</LinearLayout>
</com.android.keyguard.KeyguardStatusView>
4. open colors.xml in res/values folder, add this line
Code:
<color name="time_shadow_color">#71000000</color>
5. open dimens.xml in res/values folder, add these line
Code:
<item type="dimen" name="time_shadow_dy">1.0</item>
<item type="dimen" name="time_shadow_radius">3.0</item>
6. open styles.xml in res/values folder, add these line
Code:
<style name="BoldTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-medium</item>
</style>
<style name="TimeShadow" parent="@style/WrapContent">
<item name="android:shadowColor">@color/time_shadow_color</item>
<item name="android:shadowDy">@dimen/time_shadow_dy</item>
<item name="android:shadowRadius">@dimen/time_shadow_radius</item>
</style>
<style name="WrapContent">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="LightTimeTextStyle" parent="@style/TimeShadow">
<item name="android:textSize">98.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:focusable">true</item>
<item name="android:fontFamily">x-sst-ultralight</item>
</style>
<style name="new_style">
<item name="android:textSize">@dimen/widget_label_font_size</item>
<item name="android:textStyle">normal</item>
<item name="android:maxLines">1</item>
<item name="android:textAllCaps">true</item>
<item name="android:fontFamily">sst</item>
</style>
7. save all changes, recompile, sign, push SystemUI.apk to system
will be better if u use this lollipop clockwidget by @vandroid7 http://forum.xda-developers.com/cro...s/original-z3-5-0-clock-widgets-cm12-t3066866
thanks
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
xkeita said:
Just tried this on CM12.1 Nightly on ZL and works like a charm! One thing, be sure to get the latest apktool (2.0.0, not 2.0.0-RC4) from their page cause that one adds support for 5.1 Lollipop
@idid idamrep may I ask what theme are you using on your rom? I like that battery icon!
Click to expand...
Click to collapse
Nice ?
To change battery icon, i follow @Erhany & @Ticklefish 's guide here http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361 ?
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
STRYDER~007 said:
Nice tutorial friend! But let me save all this trouble.. I've ported Official Xperia Z3 Lollipop SystemUI to CM12.. Which includes this Sony Clock.. I'll soon share! By the way I've also ported Xperia Z3 Particle effect lockscreen..Stay tuned in Cross device thread!
Click to expand...
Click to collapse
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
idid idamrep said:
I already saw ur screenshots on XL fb group. U'r awesome, man :good::laugh:
I'm waiting for that
I wrote this guide for those who can't wait for ur work
Click to expand...
Click to collapse
Tutorials and guides are always welcome friend!Keep up the good work.. :highfive::good:
Nice guide bro :good: very helpful post. Thanks for sharing
Hey can you plz help me to port this clock widget on lockscreen vertical one into my xperia s cm12.......i dont know how to recompile or decompile any apks.....can you do it for me mate? ??
Nice Bro thanks
Can you make for me with my system UI? I don't have knowledge to do it
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Black_Eyes said:
@idid idamrep Can you share the battery pngs? i have modified my SystemUI with Erhany's Guide
Will be grateful
Click to expand...
Click to collapse
Here's my systemui, just extract it ?
https://www.dropbox.com/s/ub5menuj8hew72o/SystemUICM12(7.5).zip?dl=0
Just passing by to confirm that it works too under PA 5.1 (Lollipop 5.1.1) but I'm too lazy to edit the battery icon u.u
yes, it's work with PA 5.1.1 System UI.
anyway how i can change the battery icon ?
can someone guide me thanks
error in recompiling using advanced apktool 4.1 (apktool 2.0.0)
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Sun 17-05-2015 0:26:13.34
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:35: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:36: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:41: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res\values\styles.xml:146: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.RatingBar.Indicator'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\KIEL&J~1\AppData\Local\Temp\brut_util_Jar_3072331022154573574.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-eng.pranav.20150503.071102, -F, C:\Users\KIEL&J~1\AppData\Local\Temp\APKTOOL154893395922584544.tmp, -0, arsc, -I, C:\Users\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
------------------------------------------------------
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
ohmygel said:
the systemUI is from the AICP 9.0 Rom xperia sp cm12.1 based. help me guys
Click to expand...
Click to collapse
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
JaviMotta98 said:
Have you installed the framework-res.apk from your ROM before decompiling (the first option)?
Click to expand...
Click to collapse
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
not working on blisspop 3.4 with caf and my lg g2. I tried with signing the systemui, without, with putting in the manifest and meta-inf but nothing works
Work perfect on my Droid razr HD with CM12.1 rom. Many Thanks.
ohmygel said:
Where can i find framework-res.apk sir? Shall i install it to my phone or to the computer? Actually, i got no error decompiling system ui and home. But when i recompile it, i got error on system ui.
Sent from my Xperia SP using XDA Free mobile app
Click to expand...
Click to collapse
The framework-res.apk is already installed in your phone, as it's a system app. You have to install it in Advanced APKTool. The app is located in /system/framework/framework-res.apk. Copy it to the folder "2-In", open Advanced APKTool, select the first option and install the framework-res.apk.
Related
-decompile your sysui.apk
-open status_bar_tracking.xml in res/layout
-find:
<com.android.systemui.statusbar.CloseDragHandle androidrientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" /> </com.android.systemui.statusbar.CloseDragHandle>
and change to
<com.android.systemui.statusbar.CloseDragHandle android:layout_gravity="bottom" androidrientation="vertical" android:id="@id/close" android:background="#ee000000" android:layout_width="fill_parent" android:layout_height="32.0dip"> <ImageView android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip" android:src="@drawable/status_bar_close" android:scaleType="fitXY" /> </com.android.systemui.statusbar.CloseDragHandle>
-open notepad and paste
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/status_bar_close_on" /> <item android:drawable="@drawable/status_bar_close_off" /></selector>
in it and save as an xml file with name status_bar_close in res/drawable
-open drawable-ldpi and paste
the pngs in this zip
https://www.dropbox.com/s/1c1fdhrvcsjivdx/mvss.rar?m
in res/drawable-hdpi (make a folder named so if absent) (u can also paste in drawable-ldpi but it would look far far better in drawable-hdpi)
-recompile apk
-have fun
__-----____-also know,, by using common sense and what you did in this,, you can replicate this to create any image you touch as a dynamic toggle one-----____---
(as in this case, the status bar handle turns blue when pressed)
[If you paste the status_bar_close_on.png in drawable/mdpi (created) ,, then don’t forget to delete the existing status_bar_close_on.png from drawable-ldpi]
(((((((if any one doesnt yet understand what it does,, just know that it means the status bar pull handle will turn blue when you touch it)))))))
:laugh:
some image?
desde Córdoba, Argentina mil saludos
can you provide some image please ....
This guide will allow you to move the clear notifications button in a TW ROM to the position common in AOSP ROMS.
This mod also removes the notification text, allowing a little more room for notifications.
Decompile SystemUI.apk and navigate to res/layout/tw_status_bar_expanded.xml then delete the line in red.
Code:
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff293945" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff293945" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
[COLOR="Red"]<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="@color/tw_status_bar_clear_btn_text" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />[/COLOR]
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
Navigate to res/layout/tw_status_bar_expanded_header.xml and add the lines in blue.
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.ClockStock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff808080" android:id="@id/clock" [COLOR="Blue"]android:visibility="gone"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ff808080" 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"]<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff000000" android:visibility="gone" android:layout_width="72.0dip" android:layout_height="39.0dip">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="#ff808080" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="96.0dip" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
</LinearLayout>[/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="72.0dip" 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>
Options:
Change the button text color (android:textColor="#ff808080") to whatever you want.
Add the line "android:visibility="gone"" to the clock line to remove the clock.
Recompile and push to your device.
First
and woohoo...going to try this out tomorrow !
That clear button from TW is my most hated feature.
Thanks again for this
Sent from my SAMSUNG-SGH-I747 using xda premium
Things are only getting better for TW ROM's. Thanks dev for this shre
Awesome work! Can't wait for this mod to eventually make its way to your S3R ROM.
Now if we could only get the smooth scrolling in notification window like in AOSP ROMs.
Sent from my SAMSUNG-SGH-I747
The LPT said:
Awesome work! Can't wait for this mod to eventually make its way to your S3R ROM.
Now if we could only get the smooth scrolling in notification window like in AOSP ROMs.
Sent from my SAMSUNG-SGH-I747
Click to expand...
Click to collapse
I'm not loserskater.
upndwn4par said:
I'm not loserskater.
Click to expand...
Click to collapse
Wow I feel like a tool
Assumption, small fonts, and hidden avatars in the XDA app are a bad mix when you're half asleep.
My apologies. Looks like I'll be trying out CSROM again very soon. Im assuming(there's that word again!) it will make its way there. Or has it already?
Sent from my SAMSUNG-SGH-I747
Success. You made my day !
Now how would I go about changing the button icon ? When looking at the code see its listed at tw_button_small or something like that yet I don't see that PNG. With the CM status bar you change the PNG but TW clear button seems different
When I tried to change the color I kept getting compiling errors so maybe in wasn't doing it correctly but I'll keep at troubleshooting that one.
Sent from my SAMSUNG-SGH-I747 using xda premium
hednik said:
Success. You made my day !
Now how would I go about changing the button icon ? When looking at the code see its listed at tw_button_small or something like that yet I don't see that PNG. With the CM status bar you change the PNG but TW clear button seems different
When I tried to change the color I kept getting compiling errors so maybe in wasn't doing it correctly but I'll keep at troubleshooting that one.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
The drawable/tw_btn_default_small" is actually an xml file in the res/drawable then it points to these.
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:[email protected]/tw_quick_panel_clearbtn_press" />
<item android:state_focused="true" android:[email protected]/tw_quick_panel_clearbtn_focus" />
<item android:state_selected="true" android:[email protected]/tw_quick_panel_clearbtn_select" />
<item android:state_enabled="true" android:[email protected]/tw_quick_panel_clearbtn_normal" />
<item android:[email protected]/tw_quick_panel_clearbtn_normal" />
</selector>
And there in the res/drawable-xhdpi forlder. Those are the images that would need edited.
hednik said:
Success. You made my day !
Now how would I go about changing the button icon ? When looking at the code see its listed at tw_button_small or something like that yet I don't see that PNG. With the CM status bar you change the PNG but TW clear button seems different
When I tried to change the color I kept getting compiling errors so maybe in wasn't doing it correctly but I'll keep at troubleshooting that one.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
enewman17 said:
The drawable/tw_btn_default_small" is actually an xml file in the res/drawable then it points to these.
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:[email protected]/tw_quick_panel_clearbtn_press" />
<item android:state_focused="true" android:[email protected]/tw_quick_panel_clearbtn_focus" />
<item android:state_selected="true" android:[email protected]/tw_quick_panel_clearbtn_select" />
<item android:state_enabled="true" android:[email protected]/tw_quick_panel_clearbtn_normal" />
<item android:[email protected]/tw_quick_panel_clearbtn_normal" />
</selector>
And there in the res/drawable-xhdpi forlder. Those are the images that would need edited.
Click to expand...
Click to collapse
Correct. And if you want to use an AOSP style clear button (offset horizontal slashes), be sure to set your clear button text to 0dp.
enewman17 said:
The drawable/tw_btn_default_small" is actually an xml file in the res/drawable then it points to these.
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:[email protected]/tw_quick_panel_clearbtn_press" />
<item android:state_focused="true" android:[email protected]/tw_quick_panel_clearbtn_focus" />
<item android:state_selected="true" android:[email protected]/tw_quick_panel_clearbtn_select" />
<item android:state_enabled="true" android:[email protected]/tw_quick_panel_clearbtn_normal" />
<item android:[email protected]/tw_quick_panel_clearbtn_normal" />
</selector>
And there in the res/drawable-xhdpi forlder. Those are the images that would need edited.
Click to expand...
Click to collapse
You are the man Enewman17. Thanks !
Sent from my SAMSUNG-SGH-I747 using xda premium
hednik said:
You are the man Enewman17. Thanks !
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
See the post just above your last one (we posted at the same time).
upndwn4par said:
See the post just above your last one (we posted at the same time).
Click to expand...
Click to collapse
Thanks Up. Going to play with this a see if I can make something "semi-unique"
Sent from my SAMSUNG-SGH-I747 using xda premium
use existing stock AOSP icons
If you want to use the existing stock AOSP icons this is how. Follow upndwn4par's op on removing the line in the tw_status_bar_expanded then...
res/layout/tw_status_bar_expanded_header.xml
Add / change whats in blue so it looks similar to this
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.ClockStock 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:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" 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" />
[COLOR="Blue"] <Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<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" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />[/COLOR]
</LinearLayout>
Good morning,
I have searched a long time for a tutorial modification date of the status bar style ICS. All I can find are for the JB style.
Could anyone help me?
I've tried to decompile and check the command line, inserting them in status_bar_expanded but it only offers no modification.
Is there anything more to be done?
My idea is that it looks like this (only SystemUI): http://forum.xda-developers.com/showthread.php?t=2287815
Thank you!
Maybe this can help?
http://forum.xda-developers.com/showthread.php?t=2203166
Nightglade said:
Maybe this can help?
http://forum.xda-developers.com/showthread.php?t=2203166
Click to expand...
Click to collapse
Thanks, but this post is about estijo JB and I look for is ICS style.
JSS³ said:
Thanks, but this post is about estijo JB and I look for is ICS style.
Click to expand...
Click to collapse
Sorry I'm not quite sure what you mean? Are you running JB or ICS? The tutorial should help you to understand how to modify the status bar towards the style that you like and it should work for both ICS and JB. I'm using ICS
Nightglade said:
Sorry I'm not quite sure what you mean? Are you running JB or ICS? The tutorial should help you to understand how to modify the status bar towards the style that you like and it should work for both ICS and JB. I'm using ICS
Click to expand...
Click to collapse
I'm using GB, and I intend to leave the date ICS style.
The tutorial is great, but does not apply to the case.
JSS³ said:
I'm using GB, and I intend to leave the date ICS style.
The tutorial is great, but does not apply to the case.
Click to expand...
Click to collapse
Ah sorry, I didn't read the title properly How about this?
http://forum.xda-developers.com/showthread.php?t=1678470
Nightglade said:
Ah sorry, I didn't read the title properly How about this?
http://forum.xda-developers.com/showthread.php?t=1678470
Click to expand...
Click to collapse
This is my post!
I improved a lot today, but I would add the date. Would be much better!
I appreciate the effort!
JSS³ said:
This is my post!
I improved a lot today, but I would add the date. Would be much better!
I appreciate the effort!
Click to expand...
Click to collapse
Oh my, you're right. I'm so inattentive today, I should stop before I hurt myself Sorry. I hope you find what you're looking for
Nightglade said:
Oh my, you're right. I'm so inattentive today, I should stop before I hurt myself Sorry. I hope you find what you're looking for
Click to expand...
Click to collapse
No problem friend. And thank you!
Did you meen that mod http://forum.xda-developers.com/showthread.php?t=2235087
elshur said:
Did you meen that mod http://forum.xda-developers.com/showthread.php?t=2235087
Click to expand...
Click to collapse
No friend. These tutorials are great but they treat about JB style.
What I try seems to be simpler, but I can not do it.
Thanks for the help!
The idea is that it looks like:
JSS³ said:
The idea is that it looks like:
Click to expand...
Click to collapse
I am slightly more coherent now. I'm not sure if this can help you, but this is the content of my:
status_bar_expanded_header.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" android:maxLines="2" android:singleLine="false" />
<ImageView android:id="@id/settings_button" android:visibility="gone" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<Button android:textAppearance="@style/TextAppearance.StatusBar.ClearButton" android:id="@id/clear_all_button" android:background="@drawable/btn_clear" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="100.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
</LinearLayout>
status_bar_expanded.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/quickpanel" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>
and styles (/res/values/style.xml) relating to the expanded clock
Code:
<style name="TextAppearance.StatusBar.Expanded" parent="@*android:style/TextAppearance.Small.CalendarViewWeekDayView" />
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">28.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">11.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
</style>
You said that you only edited status_bar_expanded. Did you try the status_bar_expanded_header? I've not personally played around with it, but the date is mentioned in that and not on status_bar_expanded.xml
You're also very likely to be missing the style associated with any attempt to add a date in the expanded header in a GB rom. I've not played around with GB nor do I have a phone with a GB rom on it, so I can't personally test this out. You can take a look at the code above me and see if that can help you figure anything out. If not, you're welcome to send me your SystemUI.apk and I'll take a look.
This might also be helpful for you
http://forum.xda-developers.com/showthread.php?t=2384531
JSS³ said:
The idea is that it looks like:
Click to expand...
Click to collapse
Ok i understanhd; in fact its come from DateView.smali manipulation or modification ? Try to found from another SystemUI, then paste and recompil it
otherwise, you can modify the style of the Date from SystemUI.apk /res /values /styles.xml
elshur said:
Ok i understanhd; in fact its come from DateView.smali manipulation or modification ? Try to found from another SystemUI, then paste and recompil it
otherwise, you can modify the style of the Date from SystemUI.apk /res /values /styles.xml
Click to expand...
Click to collapse
Yes! That was it!!
I compared one by one until you find the required files, and realized that DateView.smali DateView.smali§1 and were not in my SystemUI.
After the addition was perfect!
Thank you all for your help!!
Hello there
Here is a simple guide to add a Custom name to top-left status bar.
All You need is:
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools ...
1. Decompile SystemUI.apk
2. navigate to res/layout/status_bar.xml
3.Open Status_bar.xml with notepad++
4.Copy this line like the following example:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
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:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"][B] <TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />[/B][/COLOR]
<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>
<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:textAppearance="@style/TextAppearance.StatusBar.Clock" 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/system_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="12.0dip" android:gravity="center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
</LinearLayout>
</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">
<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.phone.PhoneStatusBarView>
"android:textAppearance="@style/TextAppearance.StatusBar.Clock" means that your custom text will have same colors and dimensions defined for clock (these are defined in /values/styles: 16dip and Holo Blue Light ).
If You want to add Your dip and your preferred color, just replaces above line with this:
android:textSize="15.0dip" android:textColor="#ffa6a6a6"
Code:
<TextView [COLOR="Red"]android:textSize="15.0dip" android:textColor="#ffa6a6a6"[/COLOR] android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
You can change text color and size to fit your needs.
android:textSize="x.0dip"
and android:textColor="#hex code of Your preferred color"
for example #ffdd4814 is Ubuntu Orange
5) Now, the last step:
Navigate to res/values/string
and add this at the end of the file:
Code:
<string name="hello">Your text here</string>
Like this example:
Code:
... <string name="quick_settings_rssi_label">RSSI</string>
<string name="quick_settings_rssi_emergency_only">Emergency Calls Only</string>
<string name="quick_settings_settings_label">Settings</string>
<string name="quick_settings_time_label">Time</string>
<string name="quick_settings_user_label">Me</string>
<string name="quick_settings_wifi_label">Wi-Fi</string>
<string name="quick_settings_wifi_not_connected">Not Connected</string>
<string name="quick_settings_wifi_no_network">No Network</string>
<string name="quick_settings_wifi_off_label">Wi-Fi Off</string>
<string name="quick_settings_wifi_display_label">Wi-Fi Display</string>
<string name="quick_settings_wifi_display_no_connection_label">Wireless Display</string>
<string name="quick_settings_brightness_dialog_title">Brightness</string>
<string name="quick_settings_brightness_dialog_auto_brightness_label">AUTO</string>
<string name="status_bar_help_title">Notifications appear here</string>
<string name="status_bar_help_text">"Access them anytime by swiping down.
Swipe down again for system controls."</string>
<string name="accessibility_sleep_button">Sleep button.</string>
[COLOR="Red"]<string name="hello">Your text here</string>[/COLOR]
</resources>
6) Recompile back ... enjoy!!
{
"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"
}
Service Provider
White clock & wifi/battery/signal white resources [how to]
Center Clock, left signals and how to replace battery/signal/wifi icons with custom
Add a text between signal icons!
Guidelines to correctly set jdk in Windows and Linux
To Flash Your Mods use a flashable template (Use a zip manager to add SystemUI inside)!
KitKat (put SystemUI inside priv-app folder)
View attachment flashable_template_KK.zip
Jellybean (put SystemUI inside app folder)
View attachment flashable_template_JB.zip
Simple Guide to use Apktool
LOWERCASE TXT????
ADD THIS TO YOUR TEXTVIEW
Code:
android:textAllCaps="false"
do you do this custom?
Zpik said:
do you do this custom?
Click to expand...
Click to collapse
what you mean???
Better idea:
make an app
Sent from my Nexus 4 using Tapatalk 4
enricocid said:
Hello there
Here is a simple guide to add a Custom name to top-left status bar./QUOTE]
How can i put current gsm provider name as a parameter like in miui theme ?
Click to expand...
Click to collapse
adamslast said:
enricocid said:
Hello there
Here is a simple guide to add a Custom name to top-left status bar./QUOTE]
How can i put current gsm provider name as a parameter like in miui theme ?
Click to expand...
Click to collapse
decompile systemUI and navigate to /res/layout
and open
status_bar.xml
add the red line like in example:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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/status_bar_contents" 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/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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: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:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" ... etc etc ...
etc ... etc ... etc ... etc ... ... ... ... ... ... ... ...
if You want to get other colors instead of Holo
simply delete android:textAppearance="@style/TextAppearance.StatusBar.Clock"
Code:
<com.android.systemui.statusbar.phone.CarrierLabel [U][B]android:textAppearance="@style/TextAppearance.StatusBar.Clock" [/B][/U]android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and add this:
Code:
<TextView android:textSize="15.0dip" android:textColor="#ffa6a6a6"
Code:
<com.android.systemui.statusbar.phone.CarrierLabel [B][COLOR="Lime"]<TextView android:textSize="[COLOR="Blue"]16.0dip[/COLOR]" android:textColor="#[COLOR="Blue"]ffa6a6a6[/COLOR]"[/COLOR] [/B]android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and choose your preferred dimension and your preferred color (the hex code)
then extract the attached smalis
View attachment CarrierLabel_source.zip
and put inside
smali/com/android/systemui/statusbar/phone/
recompile back and you're done!
Click to expand...
Click to collapse
Thanks. I will try it right away. But a last question: Which decompile and compile application do you recommend? I tried APK multitool but I can not compile and i allways have an error 21 message.
Edit: in Androidmultitools, when i try to compile after changes you mentioned i got this error message:
"I: Checking whether sources has changed...
I: Smaling...
[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTİME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\AndroidMultitool_2.1_Win7\AndroidMultitool\Decompiled_apk\SystemUI\smali\com\android\systemui\statusbar\AnimatedImageView.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Sistem belirtilen dosyay bulamyor.
Sistem belirtilen dosyay bulamyor."
(Sistem belirtilen dosyay bulamyor.) means (system could not find defined file.)
What is wrong do you have an idea?
adamslast said:
Thanks. I will try it right away. But a last question: Which decompile and compile application do you recommend? I tried APK multitool but I can not compile and i allways have an error 21 message.
Edit: in Androidmultitools, when i try to compile after changes you mentioned i got this error message:
"I: Checking whether sources has changed...
I: Smaling...
[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTİME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\AndroidMultitool_2.1_Win7\AndroidMultitool\Decompiled_apk\SystemUI\smali\com\android\systemui\statusbar\AnimatedImageView.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Sistem belirtilen dosyay bulamyor.
Sistem belirtilen dosyay bulamyor."
(Sistem belirtilen dosyay bulamyor.) means (system could not find defined file.)
What is wrong do you have an idea?
Click to expand...
Click to collapse
I'm using apktool ... I've never user this..
http://forum.xda-developers.com/showthread.php?p=28366939
Are you using linux (32 or 64 bit ?) or windows?
You coukd try to delete all installed frameworks and install it again
http://code.google.com/p/android-apktool/issues/detail?id=505
d\systemui\sta tusbar\AnimatedImageView.smali
is this renamed badly or is it only bad copy&paste here?
enricocid said:
I'm using apktool ... I've never user this..
http://forum.xda-developers.com/showthread.php?p=28366939
Are you using linux (32 or 64 bit ?) or windows?
You coukd try to delete all installed frameworks and install it again
http://code.google.com/p/android-apktool/issues/detail?id=505
d\systemui\sta tusbar\AnimatedImageView.smali
is this renamed badly or is it only bad copy&paste here?
Click to expand...
Click to collapse
I am using win7 64 bit in Turkish. I think this happens because of language and turkish characters. Especially in Turkish majuscule (i) is (İ) instead of (I) as it is in mainly western languages. I think that makes a unharmoniesness in application. I changed clavier in english, but does not work still because language is Turkish. Unfortunately changing language is no t possible once you install it in certain langue. Now i will try it to do in linux. Many thanks for your help.
btw the way, i could not find d\systemui\sta tusbar\AnimatedImageView.smali. is there a typing error or is my bad?
adamslast said:
I am using win7 64 bit in Turkish. I think this happens because of language and turkish characters. Especially in Turkish majuscule (i) is (İ) instead of (I) as it is in mainly western languages. I think that makes a unharmoniesness in application. I changed clavier in english, but does not work still because language is Turkish. Unfortunately changing language is no t possible once you install it in certain langue. Now i will try it to do in linux. Many thanks for your help.
btw the way, i could not find d\systemui\sta tusbar\AnimatedImageView.smali. is there a typing error or is my bad?
Click to expand...
Click to collapse
yes.. i think this is the problem. If you will use apktool in a 64bit linux distro, be sure to install necessary dependencies to avoid error 2 during compilation, because aapt & others are 32bit commands and need ia32-libs package to work correctly ...
so, apt-get install ia32-libs
enricocid said:
yes.. i think this is the problem. If you will use apktool in a 64bit linux distro, be sure to install necessary dependencies to avoid error 2 during compilation, because aapt & others are 32bit commands and need ia32-libs package to work correctly ...
so, apt-get install ia32-libs
Click to expand...
Click to collapse
I tried during tha last 4 days to compile systemui.apk file using almost every application, but no succes. I tried it on my win8 tablet in english language. İt decompile and compile the file unchanged, but not changed one. I have not installed linux unfortunately. I would be very grateful if you try compiling in linux maguro_JRW66Y stock and changed systemui files added below.
adamslast said:
I tried during tha last 4 days to compile systemui.apk file using almost every application, but no succes. I tried it on my win8 tablet in english language. İt decompile and compile the file unchanged, but not changed one. I have not installed linux unfortunately. I would be very grateful if you try compiling in linux maguro_JRW66Y stock and changed systemui files added below.
Click to expand...
Click to collapse
so i have to modify systemUI contained in stockfiles like the 2nd one? ok. tomorrow I will make it :good:
enricocid said:
so i have to modify systemUI contained in stockfiles like the 2nd one? ok. tomorrow I will make it :good:
Click to expand...
Click to collapse
Great! Thanks. :victory:
Edit: btw there are three changes.
1.Service Provider Name 2. Wireless speed 3.Invisible Power Menu.
But I was unsuccesful even with one change.
@enricocid
Very sorry. Could you take into consideration I newly added "SystemUI_SPN_WS_IPMI.zip" file please. Thanks.
adamslast said:
@enricocid
Very sorry. Could you take into consideration I newly added "SystemUI_SPN_WS_IPMI.zip" file please. Thanks.
Click to expand...
Click to collapse
OK k
adamslast said:
@enricocid
Very sorry. Could you take into consideration I newly added "SystemUI_SPN_WS_IPMI.zip" file please. Thanks.
Click to expand...
Click to collapse
@adamslast what are the changes You did?
I see no changes in res folder
Have You changed only the smali folder? Will I have to replace smali folder and recompile back?
here is recompiled systemUI without errors:
View attachment SystemUI.apk
enricocid said:
@adamslast what are the changes You did?
I see no changes in res folder
Have You changed only the smali folder? Will I have to replace smali folder and recompile back?
here is recompiled systemUI without errors:
View attachment 2313552
Click to expand...
Click to collapse
So many thanks! :good:
The changes are in status_bar.xml, ids.xml and styles.xml. I also add some java files in smali folder, two as you mentioned in your post. Mainly changes other than yours are:
1. http://forum.xda-developers.com/showthread.php?t=2241739
2. http://forum.xda-developers.com/showpost.php?p=35864541&postcount=785.
I will try it right now. Your help very appreciated.
adamslast said:
So many thanks! :good:
The changes are in status_bar.xml, ids.xml and styles.xml. I also add some java files in smali folder, two as you mentioned in your post. Mainly changes other than yours are:
1. http://forum.xda-developers.com/showthread.php?t=2241739
2. http://forum.xda-developers.com/showpost.php?p=35864541&postcount=785.
I will try right now and i hope to give a good feedback. Your help very appreciated.
Click to expand...
Click to collapse
ok.. I found the error
Code:
<com.android.systemui.statusbar.phone.CarrierLabel [COLOR="Red"]<TextView[/COLOR] android:textSize="15.0dip" android:textColor="#ffffff" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<TextView is a Class that displays text to the user and optionally allows them to edit it. A TextView is a fixed text...
Here You are using <com.android.systemui.statusbar.phone.CarrierLabel that let You to display the Carrier Label using smali to display a dinamic text
so You can't use two classes in one line
When You want to modify color and dip of <com.android. etc ... ... ... > You should add
Code:
android:textSize="15.0dip" android:textColor="#ffffff"
The correct one is this:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel [COLOR="Red"]android:textSize="15.0dip" android:textColor="#ffffff"[/COLOR] android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
For example, in KBmeter guide, if You wanna change the color and dip of the kbmeter
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="right|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Then delete android:textAppearance="@style/TextAppearance.StatusBar.Traffic"
Code:
<com.android.systemui.statusbar.policy.Traffic [COLOR="Red"]android:textAppearance="@style/TextAppearance.StatusBar.Traffic"[/COLOR] android:gravity="right|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and add android:textSize="15.0dip" android:textColor="#ffffff" ... like this:
Code:
<com.android.systemui.statusbar.policy.Traffic [COLOR="Red"]android:textSize="15.0dip" android:textColor="#ffffff"[/COLOR] android:gravity="right|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Once done, You can delete also the style You created in /values/styles.xml
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">false</item>
</style>
and recompile back
Here is the files corrected
View attachment SystemUI.apk
View attachment status_bar.zip
enricocid said:
ok.. I found the error
Here is the files corrected
View attachment 2313666
View attachment 2313668
Click to expand...
Click to collapse
All changes properties work great. The only thing left to do is changing the color of the signals and the clock from blue to white like others. Could you give me some ideas about how to do it please, if you dont mind. Many thanks.
adamslast said:
All changes properties work great. The only thing left to do is changing the color of the signals and the clock from blue to white like others. Could you give me some ideas about how to do it please, if you dont mind. Many thanks.
Click to expand...
Click to collapse
For clock:
decompile systemUI I give to You yesterday
Navigate in /res/values/styles.xml
and open it
search for
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
[COLOR="Red"]<item name="android:textColor">@*android:color/holo_blue_light</item>[/COLOR]
</style>
Change it like this:
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
[COLOR="Red"]<item name="android:textColor">#ffffffff</item>[/COLOR]
</style>
@adamslast
To change icons to white simply copy and paste this resources in drawable-xhdpi (in decompiled SystemUI) folder overwriting the originals ones
View attachment RESOURCES.zip
Hi Sony Users,
Almost a year waiting for Sony Improves errors in Theme Engine, which have still not been corrected.
I decided to show how remove some bugs in SystemUI
Requirements:
- BRAIN (Moust important )
- ApkTool any
- Notepad++
- framework-res.apk
- SemcGenericUxpRes.apk
- SystemUI.apk
Navigation Button Bug:
1. Decompile SystemUI.apk
2. Copy my files to right folder
3. Open SystemUI.apk\res\values\drawables.xml
4. Replice all this lines:
Code:
<item type="drawable" name="somc_navbar_back_btn">@drawable/ic_sysbar_back</item>
<item type="drawable" name="somc_navbar_back_ime_btn">@drawable/ic_sysbar_back_ime</item>
<item type="drawable" name="somc_navbar_home_btn">@drawable/ic_sysbar_home</item>
<item type="drawable" name="somc_navbar_menu_btn">@drawable/ic_sysbar_menu</item>
<item type="drawable" name="somc_navbar_recent_btn">@drawable/ic_sysbar_recent</item>
<item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>
<item type="drawable" name="somc_navbar_back_btn_land">@drawable/ic_sysbar_back_land</item>
<item type="drawable" name="somc_navbar_back_ime_btn_land">@drawable/ic_sysbar_back_ime_land</item>
<item type="drawable" name="somc_navbar_home_btn_land">@drawable/ic_sysbar_home_land</item>
<item type="drawable" name="somc_navbar_menu_btn_land">@drawable/ic_sysbar_menu_land</item>
<item type="drawable" name="somc_navbar_recent_btn_land">@drawable/ic_sysbar_recent_land</item>
This:
Code:
<item type="drawable" name="ic_sysbar_home">@drawable/somc_navbar_home_btn</item>
<item type="drawable" name="ic_sysbar_recent">@drawable/somc_navbar_recent_btn</item>
<item type="drawable" name="ic_sysbar_back">@drawable/somc_navbar_back_btn</item>
<item type="drawable" name="ic_sysbar_menu">@drawable/somc_navbar_menu_btn</item>
<item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>
5. Save File
6. SystemUI.apk\res\layout\
In this files:
navigation_bar.xml
screen_pinning_request_buttons_land.xml
screen_pinning_request_buttons.xml
Change names ( If this names are on other xml files , also need to change it )
Code:
this: to this:
ic_sysbar_back - somc_navbar_back_btn
ic_sysbar_home - somc_navbar_home_btn
ic_sysbar_recent - somc_navbar_recent_btn
ic_sysbar_recent_land - somc_navbar_recent_btn_land
ic_sysbar_home_land - somc_navbar_home_btn_land
ic_sysbar_back_land - somc_navbar_back_btn_land
Exapmple navigation_bar.xml
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="Red"]ic_sysbar_back[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_home[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_recent[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_back_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_home_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_recent_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
7. Save File
8. From SystemUI.apk\res\
Remowe all PNG Files
ic_sysbar_home.png
ic_sysbar_recent.png
ic_sysbar_back.png
ic_sysbar_menu.png
FROM ALL FOLDERS
/drawable-hdpi
/drawable-xhdpi
/drawable-xxhdpi
etc.
9. Done
Volume control Bug:
1. Open SystemUI.apk\res\layout\ status_bar_toggle_slider.xml
Change this
Code:
<com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="red"]@drawable/ic_brightness_thumb[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />
To this:
Code:
<com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="RoyalBlue"]@android:drawable/somc_seekbar_thumb_selector_dark[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />
2. Save and done
3. Compile and sign app
Creadits:
RXS MoonBreakers Team
My Ready Mod:
[Mod][5.1.1]Theme Accent SystemUI
Screens:
{
"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"
}
Great tut for fixing this bug
Awesome guide bro so easy.. I wonder why Sony dev doesn't fix it till now
Sent from my C6603 using Tapatalk
shehabskull said:
Awesome guide bro so easy.. I am wonder why Sony dev doesn't fix it till now
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Sony: Simplely, this is not bugs.
shehabskull said:
Awesome guide bro so easy.. I am wonder why Sony dev doesn't fix it till now
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
ReadReadz said:
Sony: Simplely, this is not bugs.
Click to expand...
Click to collapse
For Sony lot of stuff is not BUG
Ambor, you forgot to add somc_seekbar_thumb_selector_dark file, when i've tried to do 'Volume control Bug' it misses this file when building
edi194 said:
Ambor, you forgot to add somc_seekbar_thumb_selector_dark file, when i've tried to do 'Volume control Bug' it misses this file when building
Click to expand...
Click to collapse
You need add this:
@android:drawable/somc_seekbar_thumb_selector_dark
Red mean that file is in framework-res.apk
Ok, sorry for mistake. Everything is working on C6603 with stock 5.1 ^^
Cool guide
Nice Tut!
But I have some requests for further modding/fixing bugs:
Is it possible to remove the (for me annoying) status bar theme color tint that is present in apps like chrome?
Thanks in Advance!!
anyone else tried dis tut??? nav bar still changes wen editing quicksettings & in album!
whalesplaho said:
anyone else tried dis tut??? nav bar still changes wen editing quicksettings & in album!
Click to expand...
Click to collapse
For Z2 try my
http://forum.xda-developers.com/cro...od-theme-accent-systemui-navi-button-t3216761
Nice Guide - Thank you!
Ambor said:
For Z2 try my
http://forum.xda-developers.com/cro...od-theme-accent-systemui-navi-button-t3216761
Click to expand...
Click to collapse
am using a modded systemui buddy... please help!
ReadReadz said:
Sony: Simplely, this is not bugs.
Click to expand...
Click to collapse
And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.
whalesplaho said:
am using a modded systemui buddy... please help!
Click to expand...
Click to collapse
Check this step again
8. From SystemUI.apk\res\
Remowe all PNG Files
ic_sysbar_home.png
ic_sysbar_recent.png
ic_sysbar_back.png
ic_sysbar_menu.png
Renmazuo said:
And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.
Click to expand...
Click to collapse
I see that you're an expert on the subject. You say I got a reply from Sony, you do not work for them?
This is one of the absurdities of Sony Theme Engine, which is full of them. Sony piecemeal it improves (Lollipop almost a year)
I will not explain, because I would not understand. How would you like to blurt it out find another topic.
Ambor said:
I see that you're an expert on the subject. You say I got a reply from Sony, you do not work for them?
This is one of the absurdities of Sony Theme Engine, which is full of them. Sony piecemeal it improves (Lollipop almost a year)
I will not explain, because I would not understand. How would you like to blurt it out find another topic.
Click to expand...
Click to collapse
Hello brother
I have tried ur tutorial but not working for me. I have followed all correctly. And only Brightness slider is working as per ur tutorial. And u mean delete pngs from SystemUI/res ? Is it SystemUI/res/drawable-xxhdpi folder ?
Any help. ?
I think something is missing in ur tutorial..
EDIT
===
I have tried ur modded apk also. But still i can't find any difference in album . Only other things changed.. Pls take a look at this..
First one is ur modded apk and second one is un modded pure Z2 apk
Files must delete from all folders
/drawable-hdpi
/drawable-xhdpi
/drawable-xxhdpi
etc.