SYSTEMUI.APK
1. ADDING SECONDS TO STATUSBAR
this is old trick, i got it from my friend.
{
"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"
}
Stuff
1. SystemUI.apk
2. Tools to decompile/compile
3. Notepad++ or other
Tuts:
1. decompile systemui.apk
2. open statusbar.xml
3. search
Code:
<com.android.systemui.statusbar.Clock
then, replace with
Code:
<DigitalClock
4. then, you need to resize your text size and replace hex of the text color like this
Code:
android:textSize="14.0dip" android:textStyle="bold" android:textColor="#ffffffff"
or change to whatever you want
5. save and compile
6. push/flash it via CWM
NB: if you have edt tweaks on clock statusbar, you'll loss the edt
FRAMEWORK-RES.APK
Stuff:
1. framework-res.apk
2. tools to compile/decompile
3. notepad++
1. HOW TO CHANGE COLOR OF PROGRESS BAR ON STOCKROM
Tuts:
1. decompile framework-res.apk
2. make a two 9.png with size 18x18 and give name whatever you want. for example
gambaron.9.png (this is for progress bar)
gambaroff.9.png (this is for background of progress bar)
Click to expand...
Click to collapse
3. put the image to inside of folder drawable
4. open progress_horizontal.xml on framework-res/res/drawable
5. search it
Code:
<item android:id="@id/background">
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#ff989898" android:endColor="#ff686868" android:angle="270.0" android:centerColor="#ff686868" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#5053ff53" android:endColor="#80029d02" android:angle="270.0" android:centerColor="#8030a030" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#ff53ff53" android:endColor="#ff029d02" android:angle="270.0" android:centerColor="#ff30a030" />
</shape>
</clip>
</item>
and replace with
Code:
<item android:id="@id/background">
<nine-patch android:src="@drawable/gambaroff" />
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="4.659973dip" />
<gradient android:startColor="#5053ff53" android:endColor="#80029d02" android:angle="270.0" android:centerColor="#8030a030" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<nine-patch android:src="@drawable/gambaron" />
</clip>
</item>
6. save, compile and push/flash it
2. HOW TO CHANGE USB STORAGE STOCKROM WITH TOUCH THE DROID TO CONNECT USB
screenshot:
Tuts:
1. go to layout and open usb_storage_activity.xml
2. replace all inside file to
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center" android:id="@id/main" android:padding="18.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Button android:layout_gravity="center_horizontal" android:id="@id/mount_button" android:background="@drawable/usb_android" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:layout_gravity="center_horizontal" android:id="@id/unmount_button" android:background="@drawable/usb_android_connected" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/icon" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@color/transparent" android:layout_centerHorizontal="true" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">
<TextView android:textSize="24.0sp" android:gravity="center" android:id="@id/banner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_title" android:layout_below="@id/icon" android:layout_centerHorizontal="true" />
<TextView android:textSize="14.0sp" android:gravity="center" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_message" android:layout_below="@id/banner" />
</LinearLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="100.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/progress" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" style="?android:attr/progressBarStyle" />
</RelativeLayout>
</RelativeLayout>
3. save and compile
4. now push or flash it via CWM
3. CHANGE PERCENT OF BATTERY STOCKROM TO 1-100
Tuts:
1. you need to download rhis first https://www.dropbox.com/s/x1nb15u8cxeyorp/Music.rar
2. ekstrak, then move stat_sys_battery.xml and stat_sys_battery_charge.xml of the file that you downloaded earlier to the drawable folder
3. move image from the file that you download to the drawable-ldpi
4. then save and compile
5. flash/push
nice guide
Sent from my GT-S5360 using Tapatalk 2
I lost my phone today, so sorry I was not able to continue this thread again. and all my project also stopped
Related
this is me first posting in xda...
The first opportunity .. I try to share a little trick to modify SystemUI.apk (ICS)
Requirement:
-understand how to decompile and compile using apktool or something
how to MOD????
read carefully the text below
previously downloaded this as a complement:
https://www.dropbox.com/s/xlv0r4cmg6fe2ko/SmaliTB_2.zip
https://www.dropbox.com/s/s2teuqzpz2qtbrl/carrier_logo.png
I use apktool
pull systemUI.apk in the folder system / app and framework-res.apk and SemcGenericUxpRes.apk in system / framework
to u folder apktool
open apktool..
instal framework-res.apk and SemcGenericUxpRes.apk
Code:
apktool if framework-res.apk (enter) and apktool if SemcGenericUXPRes.apk (enter)
again... decompile SystemUI.apk
Code:
apktool d SystemUI.apk
open folder SystemUI/res/layout/Status_bar.xml
Compare this... code to u xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/statusbar_costum_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:gravity="left|center" android:id="@id/carrier_logo_id" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/carrier_logo" android:scaleType="fitCenter" android:adjustViewBounds="true" />
<LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconPartitioner android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.IconPartitioner>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="16.0dip" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:paddingRight="3.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="right" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stat_no_sim" android:background="@drawable/stat_sys_no_sim" android:paddingLeft="2.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:singleLine="true" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="left|center" android:id="@id/name_carrier_id" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/carrier_name_abal" android:singleLine="true" style="@style/StatusBarNotificationText" />
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:visibility="gone" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
next..
open folder SystemUI\smali\com\android\systemui\statusbar\policy
copy and paste
Traffic$1.smali
Traffic$2.smali
Traffic$3.smali
Traffic$SettingsObserver.smali
Traffic.smali
next...
open open ids.xml in folder SystemUI/res/value/ids.xml
add this code
Code:
<item type="id" name="traffic">false</item>
<item type="id" name="carrier_logo_id">false</item>
<item type="id" name="name_carrier_id">false</item>
The above </resources>
like this
Code:
<item type="id" name="traffic">false</item>
<item type="id" name="carrier_logo_id">false</item>
<item type="id" name="name_carrier_id">false</item>
</resources>
next...
open strings.xml in folder SystemUI/res/value/strings.xml
add this code
Code:
<string name="carrier_name_abal">Paboya</string>
text Paboya you can replace up to you
The above </resources>
like this
Code:
<string name="carrier_name_abal">Paboya</string>
</resources>
again...
open styles.xml in folder SystemUI/res/value/styles.xml
add this code
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
The above </resources>
like this
Code:
<style name="TextAppearance.StatusBar.Traffic" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
</resources>
next..
open folder SystemUI\res\drawable-hdpi add carrier_logo.png
finish.......
and recompile...
Code:
apktool b SystemUI
next step...
decompile framework-res.apk and open dimens.xml
find this code:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
change dpi to...:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
next find again this code:
Code:
<dimen name="status_bar_icon_size">25.0dip</dimen>
change dpi to...:
Code:
<dimen name="status_bar_icon_size">30.0dip</dimen>
can you adjust the dip changes
finish.........
recomnpile again...
Code:
apktool b framework-res
done..........
push SystemUI.apk and framework-res.apk
SystemUI.apk to system/app
framework-res.apk to system/framework.
reboot.....
download For ICS:
for who want to try here I am using stock ics 54 if you want to try on the next or previous version ....
I am not responsible if there bootlop
but the possibility systemUI.apk can be used in all the rom.
tested b.10/54/89
https://www.dropbox.com/s/p5ej8hoxz7dw438/flymelikeUI.zip
flash on cwm...
flymelikeUI.zip
wipe cache n dalvic if any problem
download For FXP:
https://www.dropbox.com/s/w8n2lhg51gz76qe/FXPflymelikeUI.zip
flash on cwm...
FXPflymelikeUI.zip
wipe cache n dalvic if any problem
Dowload for JB:
Soon
ss ICS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ss FXP:
may be useful if there is a mistake you can tell me :highfive:
And the result ? Any screenshots ?
dude thats too much....find a way to create a flashable zip...take help from other members..
Sory
sorry was trying to make a thread ... I am a junior member
yes
niku4uster said:
dude thats too much....find a way to create a flashable zip...take help from other members..
Click to expand...
Click to collapse
wait dude
pretty cool thanks
tut can get a little polished though.. no offence
Me said:
pretty cool thanks
tut can get a little polished though.. no offence
Click to expand...
Click to collapse
sorry in advance there is little error
for guidance
More screenshoot
....
Ruliindrapraja said:
More screenshot
♪thx dude
Click to expand...
Click to collapse
:good: AWEWE SOME..LOL
Is there a way to make this work on jb would be amazing if it did
Sent from my LT22i using xda premium
Please port it to cm9 systemui!!
Enviado desde mi Xperia U usando Tapatalk 2
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
aybykut3 said:
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
Click to expand...
Click to collapse
Here you go, made it fast
Edit: Hmm I can't post a link because I don't have 10 posts...
I will send it in PM
Thanks!Very good!5+!!!!!
Android 4.0.4,stok,1.10
Sent from my ST25i using xda premium
Sent from my ST25i using xda premium
CONdemmedNORmal said:
Is there a way to make this work on jb would be amazing if it did
Sent from my LT22i using xda premium
Click to expand...
Click to collapse
Either way ... maybe you can be patient I will make in JB
zie.do2y said:
Either way ... maybe you can be patient I will make in JB
Click to expand...
Click to collapse
Well I was being patient I wasn't exactly going on saying why isn't this for jb or any crap like that I was simply asking if it would be available
Sent from my LT22i using xda premium
aybykut3 said:
Please hepl me! Make a carrier_logo for xperia sola!
Thank U very much!
Click to expand...
Click to collapse
copy thi code:
<ImageView android:gravity="left|center" android:id="@id/carrier_logo_id" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/carrier_logo" android:scaleType="fitCenter" android:adjustViewBounds="true" />
to StatuSbar.xml place it as you wish ...
Enter carrier_logo.png to drawable-hdpi folder
open idS.xml add this code:
<item type="id" name="carrier_logo_id"> false </ item>
recompile ... done
CONdemmedNORmal said:
Well I was being patient I wasn't exactly going on saying why isn't this for jb or any crap like that I was simply asking if it would be available
Sent from my LT22i using xda premium
Click to expand...
Click to collapse
I have not tried to apply it to jb but One friend I have tried and succeeded ... I am still waiting for JB really fix
Hi Guys, I saw that evanlocked have not yet updated his guide
FlyMeOS StatusBar Mod as he is busy with his life. So I have made a guide on it.
Preview:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
ApkTool
NotePad++
SystemUI.apk
framework-res.apk
SystemUI.zip
So let's start..
1. Decompile SystemUI.apk using ApkTool
2. Extract SystemUI.zip and copy the smali files in their respective folders
3. Navigate to SystemUI\res\layout and open status_bar.xml
with NotePad++
4. Compare your status_bar.xml with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:orientation="horizontal" android:id="@id/clock_panel" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.b16h22.statusbar.ClockHolo android:textSize="10.0sp" android:layout_gravity="center_vertical" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.b16h22.statusbar.Day android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_toRightOf="@id/clock" />
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
<LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.android.systemui.statusbar.IconMerger android:gravity="right" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="right" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ff000000" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="7.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Animation.LockScreen" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Animation.LockScreen" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
5. Open SystemUI\res\values\ids.xml and add these ids
Code:
<item type="id" name="clock">false</item>
<item type="id" name="dayView">false</item>
<item type="id" name="dateView">false</item>
<item type="id" name="clock_panel">false</item>
6. Recompile SystemUI and again Decompile it.
7. Open SystemUI\res\values\public.xml
8. Note public ids of these
Code:
<public type="id" name="dayView"
<public type="id" name="dateView"
9. Open SystemUI\smali\com\b16h22\statusbar\Day.smali
Find this code
Code:
const v7, [color="red"]0x7f09002b[/color]
Replace the highlighted text with public id of dayView
10. Open SystemUI\smali\com\b16h22\statusbar\Date.smali
Find these codes
Code:
const v4, [color="red"]0x7f09002c[/color]
Code:
const v7, [color="red"]0x7f09002c[/color]
Replace the highlighted text with public id of dateView
11. Recompile SystemUI.apk
12. Decompile framework-res.apk
13. Open framework-res\res\values\dimens.xml
14. Find this code
Code:
<dimen name="status_bar_height">25.0dip</dimen>
Change it to
Code:
<dimen name="status_bar_height">40.0dip</dimen>
15. Now find this code
Code:
<dimen name="status_bar_icon_size">25.0dip</dimen>
Change it to
Code:
<dimen name="status_bar_icon_size">20.0dip</dimen>
16. Recompile framework-res.apk
17. Push SystemUI.apk to system\app and
framework-res.apk to system\framework and
set proper permissions (rw-r--r--)
Change StatusBar Color
To change statusbar color
Decompile SystemUI
open res/layout/statusbar.xml
find this line
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="[COLOR="Red"]#00000000[/COLOR]"
change the highlighted hex code with your color hex code
Recompile SystemUI
push it to system/app
set proper permissions(rw-r--r--)
Add Day over Date
Preview:
To add day over the date
Decompile SystemUI
open res/layout/statusbar.xml
find this line
Code:
<com.b16h22.statusbar.Day android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Day android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_toRightOf="@id/clock" />
then find this line
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_toRightOf="@id/clock" android:layout_alignParentBottom="true" />
Recompile SystemUI
Push it to system\app
set proper permissions(rw-r--r--)
Remove Date
Preview:
To remove date
Decompile SystemUI
open res/layout/statusbar.xml
find this line
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Date android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="0.0dip" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" />
Recompile SystemUI
Push it to system\app
set proper permissions(rw-r--r--)
24-hour format clock(Thanks to Minions_Army)
Preview:
To use 24-hour format clock
Download 24Hours_Smali.zip
MediaFire Link
DevHost Link
Extract it
Decompile SystemUI
Navigate to smali\b16h22\statusbar\
Copy and Paste the Extracted ClockHolo.smali there
if asked to replace, click yes
Recompile SystemUI
Push it to system\app
set proper permissions(rw-r--r--)
Credits:
MatZ69
Minions_Army
evanlocked
b16h22
great,thats what im waiting for,evan and you done a good job!!!!!thanx bro :good:
Was waiting for this.......
nice guide. gonna try it. btw plz disable smileys in the op.
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
Very difficult to implement on lenox statusbar. It`s coding are all different. Can u help me @op to implement it in Lenox statusbar.
KnightlyNinja said:
Very difficult to implement on lenox statusbar. It`s coding are all different. Can u help me @op to implement it in Lenox statusbar.
Click to expand...
Click to collapse
Ya...Sure!
how to implement this systemUI on Hyperion 8 GM Final without Date at center ?
kevin_tn said:
how to implement this systemUI on Hyperion 8 GM Final without Date at center ?
Click to expand...
Click to collapse
Find this line
Code:
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
change it to
Code:
<com.b16h22.statusbar.Date android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="0.0dip" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" />
MuSaddiq1410 said:
Ya...Sure!
Click to expand...
Click to collapse
Wait i think i got it. Will report after sometime..............
Edit : Finally got it to work on Lenox. haha
KnightlyNinja said:
Wait i think i got it. Will report after sometime..............
Edit : Finally got it to work on Lenox. haha
Click to expand...
Click to collapse
Cool Bro! :good:
Oi op would you created this for hype 8 gm ? I mean flashable or apks one
And another one
Can you share your systemui ? :highfive:
Mranggapo said:
Oi op would you created this for hype 8 gm ? I mean flashable or apks one
Click to expand...
Click to collapse
Sorry Bro, I am busy now. WIll make flashable zips for H8GM, LE v2.1, etc etc later...
MuSaddiq1410 said:
Sorry Bro, I am busy now. WIll make flashable zips for H8GM, LE v2.1, etc etc later...
Click to expand...
Click to collapse
Im waiting bro :good::cyclops:
Mranggapo said:
Im waiting bro :good::cyclops:
Click to expand...
Click to collapse
i tried in H8 GM and it worked.why don't you try it ?
Good!
But i think, @MatZ69 can be in credits too
Sent from my GT-S5830i using xda premium
misha1996 said:
Good!
But i think, @MatZ69 can be in credits too
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Oh Yes, You're right! I totally forgot about him. Will add him in credits asap!
Edit: Done.
kevin_tn said:
i tried in H8 GM and it worked.why don't you try it ?
Click to expand...
Click to collapse
I dont hav apktool beside my brother didnt allow me, would you like to share your systemui ?
@op this mod can be applied on cm7?
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
burak144 said:
@op this mod can be applied on cm7?
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
Click to expand...
Click to collapse
I think this is only for Stock Based Roms...
Sent from my y-Phone
MuSaddiq1410 said:
I think this is only for Stock Based Roms...
Sent from my y-Phone
Click to expand...
Click to collapse
hello sir. how to add the day(ex. Sunday) over the date? thanks for this guide..
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
That's how it looks
It works with Xperia JB Lockscreen on Android 4.0.4 and 4.1.2 (confimed)
This guide is for skilled users.
HERE you may download my lockscreen and use it like template or basis
Lets start
Use apktool version 2 (beta) to prevent error while compilling
1. Decompile your UxpNxtLockScreen.apk
2. Find the file main.xml in res/layout folder and add the lines marked red
Lines those are marked blue you must add only if you dont have RelativeLayout in your main.xml. Its important.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.sonyericsson.lockscreen.generic.LockScreenRootView android:id="@id/somc_blinds_lockscreen_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:directionality="leftToRight"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/background_image" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
[COLOR="red"]<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR="RoyalBlue"]<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/alarm_and_charge" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="8.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:directionality="leftToRight">
<include layout="@layout/top_left_next_alarm" />
<include layout="@layout/charging_status" />
</LinearLayout>
<TextView android:textSize="@dimen/lockscreen_text_size_small" android:textColor="#ffffffff" android:gravity="right|center" android:id="@id/carrier" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8.0dip" android:layout_marginRight="8.0dip" android:maxWidth="@dimen/lockscreen_carrier_text_max_width" android:text="" android:maxLines="3" 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_alignParentTop="true" android:layout_alignParentRight="true" />
<include layout="@layout/w_clock" />
<com.sonymobile.lockscreen.topslider.TopSlider android:id="@id/top_slider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/lockscreen_widget_slider_margin_top" android:layout_alignParentTop="true" android:directionality="none" />
<com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider android:id="@id/horizontal_widget_slider" android:focusable="true" android:focusableInTouchMode="true" android:scrollbars="none" android:fadingEdge="none" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:directionality="none">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/horizontal_widget_slider_layout" android:focusable="true" android:focusableInTouchMode="true" android:clipChildren="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:directionality="none">
<include layout="@layout/music_controls" />
<View android:id="@id/top_slider_placeholder_widget" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
</com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider>
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/camera_start_progress" android:padding="20.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:progressDrawable="@drawable/camera_start_progressbar" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/screenLockMsg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip" 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_alignParentBottom="true" />
<com.sonyericsson.lockscreen.generic.LockScreenNonTouchView android:id="@id/non_touch_view" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:id="@id/hint" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/lockscreen_hint_bottom_margin" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" layout="@layout/unlock_hint" />
[COLOR="RoyalBlue"]</RelativeLayout>[/COLOR]
[COLOR="red"]<LinearLayout android:gravity="center" android:layout_gravity="bottom" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/botbar_height">
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".DialerEntryActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_call_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".activities.SocialPhonebookActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_contact_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".ui.ConversationListActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.conversations" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_conversations_icon" android:scaleType="center" />
</RelativeLayout>
</LinearLayout>
</FrameLayout>[/COLOR]
</com.sonyericsson.lockscreen.generic.LockScreenRootView>
3. Find the file dimens.xml in res/values and add the lines marked red
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="set_button_width">220.0dip</dimen>
<dimen name="lockscreen_widget_slider_margin_top">93.0dip</dimen>
<dimen name="lockscreen_hint_bottom_margin">190.0dip</dimen>
<dimen name="lockscreen_text_size_small">12.0dip</dimen>
<dimen name="lockscreen_text_size_medium">14.0sp</dimen>
<dimen name="lockscreen_text_size_medium_large">16.0dip</dimen>
<dimen name="lockscreen_text_size_large">76.0dip</dimen>
<dimen name="lockscreen_text_padding">0.0dip</dimen>
<dimen name="lockscreen_carrier_text_max_width">168.0dip</dimen>
<dimen name="lockscreen_owner_margin_top">6.0dip</dimen>
[COLOR="Red"]<dimen name="botbar_width_icon_bg">100.0dip</dimen>
<dimen name="botbar_height">80.0dip</dimen>[/COLOR]
</resources>
4. Add icons from archive to res/drawable-hdpi (it depends on your display's resolution, be attentive)
ICONS
5. Unpack archive in smali folder
SMALI
Must be UxpNxtLockScreen\smali\aaa\sk0t\ui\MultyBtn.smali
6. Compile your lockscreen
Thats all
If you want to change shortcuts here is explaining:
Code:
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" [COLOR="SeaGreen"]android:tag[/COLOR]="[B].ui.ConversationListActivity[/B]" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" [COLOR="DarkOrchid"]android:contentDescription[/COLOR]="[B]com.sonyericsson.conversations[/B]" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]botbar_conversations_icon[/COLOR]" android:scaleType="center" />
</RelativeLayout>
android:contentDescription - search in AndroidManifest.xml of your apk (package parameter)
android:tag - search in AndroidManifest.xml (see parameter android:name, be attentive, you need main activity of app)
botbar_conversations_icon - icon of your shortcut
Thanks maks398tim for GUIDE
I just translated it and shared on XDA
If it works for you - please, write about it in this thread
It can be useful
Q&A for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones...
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones.... If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
lokeshsaini94 said:
6. Carrier logo in bottom of status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
Save the file and close it. now open status_bar_tracking.xml with notepad++
search for this line
Code:
<ImageView android:layout_gravity="bottom" android:id="@id/close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
replace above line with this line
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
Save the file and close it.
The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
and The whole status_bar_tracking.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/tracking_background" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Now compile back apk file and push back to system/app.
7. Add settings shortcut in status bar
GO HERE
8. Jelly bean style Date, Time and Day on Status Bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
Replace above line with this line
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save the file and close it.
Download Jelly.zip from attachments of this post
Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
Now compile back apk file and push back to system/app.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
9. Add Recent App shortcut in status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\values\ and open ids.xml with notepad++
Add this line in end of code but before </resources>
Code:
<item type="id" name="recent_app_button">false</item>
Now go to SystemUI.apk\res\layout\ and open statusbar_expanded.xml with notepad++
Search for 'clear' and whole code will be like this or different
Code:
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:paddingRight="6.0dip" android:layout_width="46.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
Add this line above the code mentioned above
Code:
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toRightOf="@id/settings_button" />
Save the file and close it.
Download sourcei.zip from attachments of this post
Extract sourcei.zip and copy RecentAppButton.smali to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
and copy btn_recent_app.9.png to SystemUI.apk\res\drawable-mdpi\(here)
Now compile back apk file and push back to system/app.
10. Jelly Bean 4.2.2 Status bar on Gingerbread.
Screenshots:
Guide:
Go Here
Click to expand...
Click to collapse
Can I know how to add brightness slider in notification bar please? ??
Hello everyone
I'm building an awesome black theme for my note 3 SM-N900 and finished below apps
framework-res
twframework-res
systemUI
calculator
Clock
Multiwindow
and I'm currently in Music player and I'm facing a weired problem here
in my "Sound alive" window I want to modify bottom effect like "Tube amp" , "Virtual 7.1 ch" , . . . button text (other botton will appear when scrolling buttons to the left) to change color when I select them
{
"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"
}
here's the layout xml of these buttons :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout androidrientation="horizontal" android:layout_marginTop="50.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:showDividers="middle"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:id="@id/new_soundalive_effects_none" android:layout_marginLeft="2.0dip" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/none" android:layout_marginLeft="35.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_none" android:src="@drawable/music_soundalive_card_none_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_tube_amp_effect" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/tube_amp_effect" style="@style/SoundAliveEffectTitle" android:layout_marginLeft="25.0dip" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_tube_amp_effect" android:src="@drawable/music_soundalive_card_tubeamp_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_virtual_71_ch" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/virtual_71_ch" android:layout_marginLeft="17.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_virtual_71_ch" android:src="@drawable/music_soundalive_card_virtual71_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_studio" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/studio" android:layout_marginLeft="20.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_studio" android:src="@drawable/music_soundalive_card_studio_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_club" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/club" android:layout_marginLeft="19.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_club" android:src="@drawable/music_soundalive_card_room_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
<RelativeLayout android:id="@id/new_soundalive_effects_concert_hall" android:layout_marginRight="6.0dip" style="@style/SoundAliveEffectLayout">
<LinearLayout androidrientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:text="@string/concert_hall" android:layout_marginLeft="17.0dip" style="@style/SoundAliveEffectTitle" />
</LinearLayout>
<ImageView android:id="@id/new_soundalive_effect_bottomline" style="@style/SoundAliveEffectBottomLine" />
<ImageView android:id="@id/new_soundalive_imageView_concert_hall" android:src="@drawable/music_soundalive_card_hall_off" style="@style/SoundAliveEffectImage" />
</RelativeLayout>
</LinearLayout>
Click to expand...
Click to collapse
and here's the parts of styles.xml file that is referred to in layout file above:
<style name="SoundAliveEffectTitle">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/soundAlive_effect_text_color</item>
<item name="android:ellipsize">marquee</item>
<item name="androidaddingLeft">@dimen/new_soundalive_effect_subtext_paddingLeft</item>
<item name="android:layout_width">@dimen/new_soundalive_effect_subtext_width</item>
<item name="android:focusable">true</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">7.0dip</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sec-roboto-regular</item>
<style name="SoundAliveEffectLayout">
<item name="android:background">@drawable/soundalive_indicator_ripple_material</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">210.0dip</item>
<item name="android:layout_height">88.0dip</item>
<item name="android:layout_marginLeft">3.0dip</item>
<item name="android:layout_marginTop">5.0dip</item>
<item name="android:layout_marginBottom">5.0dip</item>
<style name="SoundAliveEffectBottomLine">
<item name="android:background">@color/sound_alive_card_line_off</item>
<item name="android:layout_width">198.0dip</item>
<item name="android:layout_height">3.0dip</item>
<item name="android:layout_marginBottom">4.0dip</item>
<item name="android:layout_alignParentBottom">true</item>
<item name="android:layout_centerHorizontal">true</item>
<style name="SoundAliveEffectImage">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">12.0dip</item>
<item name="android:layout_alignParentRight">true</item>
<item name="android:layout_marginEnd">12.0dip</item>
Click to expand...
Click to collapse
I also create a xml file in color folder by the name of "soundAlive_effect_text_color" and here's it's contents:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="#ffffffff" />
<item android:color="#ff555555" />
</selector>
Click to expand...
Click to collapse
I also used "state_checked" and "state_checkable" and "state_activated" but nothing work and I couldn't get the color of button I choose to change
but "state_pressed" work fine here
I want the color of selected button text to be white and others be 50% transparent white ( a little darker)
*** buttons nature function is like this:
ether "None" button could be selected or one of the other effect buttons
can anyone help me fix this problem???
anyone????