yashsingh1/xdaforums huggingface dataset:
[Android Themes] nonaldenaro:
No, I don't have "tw_status_bar_expanded.xml". But I have a "tw_quick_setting_button.xml":

<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/btn_divider" android:background="@drawable/quick_setting_button_divider_bg" android:layout_width="@dimen/quick_setting_button_divider_width" android:layout_height="@dimen/quick_setting_button_height" />
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
<ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_image_height" android:layout_marginTop="@dimen/quick_setting_button_margin_top" />
<TextView android:textSize="@dimen/quick_setting_button_text_size" android:textColor="@color/quick_setting_btn_text_color" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_text_height" android:layout_marginTop="@dimen/quick_setting_button_text_top" android:includeFontPadding="false" android:lineSpacingExtra="@dimen/quick_setting_button_text_line_gap_size" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="@dimen/quick_setting_button_status_padding_left" android:paddingTop="@dimen/quick_setting_button_status_padding_top" android:paddingRight="@dimen/quick_setting_button_status_padding_right" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_status_height" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
[Android Themes] Spannaa:
That's the individual toggle layout.

If you edit that, you may still have the space where the toggles would have been.

Possibly worth a try though...

Now you see what a trial-and-error world theming is!
[Android Themes] nonaldenaro:
You're right ;)

What if I add "android:visibility="gone" in the "flip_settings.xml" posted before?

<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/close_handle_underlap"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.phone.QuickSettingsScrollView android:layout_width="wrap_content" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:id="@id/quick_settings_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:animateLayoutChanges="true" android:columnCount="@integer/quick_settings_num_columns" />
</com.android.systemui.statusbar.phone.QuickSettingsScrollView>
</HorizontalScrollView>

:fingers-crossed:
[Android Themes] Spannaa:
Give it a try - you can always revert back ;)
[Android Themes] bobfrantic:
Just wondering if anyone knows of a good tutorial to center clock and other information in the KitKat lockscreen. I know the Keyguard.apk is needed to be edited but all my attempts result in multiple fc of systemui and other apps LOL... clock and stuff on left side is stupid imho. Galaxy S5 I9505 is my phone. Hope someone has a good link. thanks in advance :)
[Android Themes] nonaldenaro:
Maybe it's not what you are looking for, but if is just to move the clock in the status bar, GravityBox has an option for this (plus many others). You save headaches in decompile/edit/compile over and over again :D

Remember: If you choose Gravitibox, you need to install "Xposed Installer" first.
[Android Themes] bobfrantic:
Already have center clock in status bar thanks to [MENTION=4315551]Ticklefish[/MENTION] and was done without Xposed. I want to move the stuff on the lockscreen.
[Android Themes] Ticklefish:
Should be simple enough. Can you share your decompiled apk and a screenshot please?

Have you tried decompiling and recompiling without any changes, just to check that this apk

can

be modded?
[Android Themes] bobfrantic:
Here is the decompiled Keyguard.zip Included in this is a txt file with some information on what I did so far. Thanks for offering to come to the rescue, yet again LOL.
[Android Themes] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] it made no difference but at least nothing FC'ed lol.
[Android Themes] Ticklefish:
Hmm..is this definitely the xml that controls what you're seeing?
[Android Themes] bobfrantic:
I am pretty sure it is because of this post :D
[Android Themes] Sami Kabir:
[MENTION=4315551]Ticklefish[/MENTION], can you please help me out here. Its about the background color that you get when you highlight something..

(In framework-res.apk) I've edited both highlighted_text_holo_dark and highlighted_text_holo_light to #fbbbbbbb (in colors.xml) and I've also edited textColorHighlight to #c3bbbbbb (in styles.xml).. And although this works in all other apps (like Messaging, Notes, WhatsApp, etc.), when I highlight a link in my Browser's URL bar, I get #ffb8b8b8 color instead..

Any idea on how I can change this to either #c3bbbbbb or #fbbbbbbb? I'm pretty sure that this can be found somewhere in framework-res.apk but can you please tell me where in framework-res.apk I can find it? :o
[Android Themes] lacoursiere18:
Most likely in the app than my friend..
[Android Themes] Ticklefish:
That's puzzling. In that case, the next thing I'd do is make sure that XML is the one I want. And the easiest way to do that is to make a simple change that I know will work.

In other words, change the text to green!

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_single_clock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/kg_singleclock_margin_left" android:layout_marginTop="@dimen/kg_singleclock_margin_top"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="bottom" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="@dimen/kg_singleclock_height">
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="#ff00ff00" android:gravity="bottom" android:id="@id/keyguard_single_clock_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="20.0dip" android:textColor="#ff00ff00" android:id="@id/keyguard_single_clock_ampm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8.0dip" android:layout_marginBottom="5.0dip">
<TextView android:textSize="@dimen/kg_widget_common_date_text_size" android:textColor="#ff00ff00" android:id="@id/keyguard_single_clock_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="20.0dip" android:shadowColor="#cc000000" style="@style/keyguard_text_shadow" />
<include layout="@layout/sec_alarm" />
</LinearLayout>
<include layout="@layout/sec_owner_info" />
</LinearLayout>

Try this code out. If there's no noticeable change, then that's not the XML file we want.

Either that or you're doing something wrong in your recompiling process...

I agree. The first place to look is inside the browser apk. Even if the colour you want to change isn't there, the code might tell you which colour you want to change in your framework-res.apk.
[Android Themes] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] the colour didn't change. so now I am totally stumped because for the note lockscreen link I posted, to center clock from right is in that xml. hmmmmm

this is the tutorial I am talking about.
[Android Themes] lacoursiere18:
Are you deleting your build folder before recompile?
[Android Themes] bobfrantic:
Yes I do usually. Was one of things I did on this particular thing.
[Android Themes] lacoursiere18:
Doesn't make sense if you are for sure that is the text that needs to be changed.. Did you decompile and check that layout again?
[Android Themes] bobfrantic:
yes, I decompiled, checked the changes, they were still there, I even changed the color again and nothing on lockscreen changed. I have cleared cache even after putting the keyguard.apk into the folder. totally stumped I am :confused: Life was so much simpler in JB...
[Android Themes] Ticklefish:
Gingerbread was even simpler...lol

Can you share a screenshot of your lockscreen please?

-------------------------------

Sent Via Tapatalk

-----------------------------
[Android Themes] lacoursiere18:
If it's not in that layout might have to dig a little deeper..
[Android Themes] Vivek_Neel:
May be in the framework-res.apk

I use to control lockscreen clocks through framework-res.apk in JB
[Android Themes] bobfrantic:
Yep in JB it was in the framework-res but not in KitKat. Have explored that for anything to do with lock screen and keyguard. Found not a thing

Have been digging all over the keyguard.apk for anything I can see to do with the clock. Even went into the sec_contextual_clock.xml and no change. What puzzles me cause the charging notification is centered. I found that in keyguard_message_area.xml but when I have tried to center things in sec_single_clock.xml as well as change color of clock, nothing changes in my lock screen. wtf?? Ticklefish here attached is a screen shot of my lock screen starring my lovable beagle Missie :D

and the reason I am exploring the keyguard.apk and making changes to sec_single_clock.xml is because of a tutorial for centering clock from Note 4 for Note 3 here.

Gotta say I am touched by y'all getting curious about this. I am not new to modding btw, did a lot of it for my S Advance on JB. So I can say I do know what I am doing to a point except for actual coding from scratch in xml's or in the smali's.... but can follow tutorials very well and find stuff. [MENTION=4315551]Ticklefish[/MENTION] has been a big help with modding of KitKat as he helped me center the clock on my statusbar which was much easier in JB. Luckily I already have grey hair or I would be sporting a new colour now LOL....

If anyone wants to see the decompiled keyguard.apk it is on mediafire to download here.

I am totally stumped and frustrated that no matter what I change, nothing changes in the lock screen. sigh :rolleyes:
[Android Themes] lacoursiere18:
I'm not sure this is possible in xml..might be in the smali on Sammy that is..
[Android Themes] bobfrantic:
yup that is what I am afraid of... maybe a change in SecKeyguardClock.smali. Still though why can it be changed in an xml for the note but not s4 kitkat I wonder...
[Android Themes] Ticklefish:
Y'know, I'd be tempted not to center the clock at all. At least not with that picture. You've got a nice slope going up to the right which helps to show off the clock on the left side. If the clock is centered, it could throw the picture off-balance.

But that's the artist in me. The coder in me says the hell with that...let's mod this thing!!

I'm having a look at your decompiled apk right now. In the meantime, what do you use to actually unlock the device? Are you using a pattern lock, password, something else?
[Android Themes] bobfrantic:
to unlock I use the swipe method with the light effect. but one thing I thought of is on the lock screen if you pull down a certain part it gives you an option to edit things like the message, but nothing else. if message is turn off, then you can resize the clock is all... wonder if that gets in the way of things.
[Android Themes] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] bad news, nothing changed after trying all. Think I just going to live with the crazy position of the clock and stuff. I know you did a lot of investigation and that is appreciated very much. I'll keep checking for ways though. One interesting thing happened I should mention. I used a keyguard.apk from a theme of S5 stuff but when I restarted, systemui FC'ed over and over. Had to go to twrp file explorer to remove the offending file and recover the working one. SO maybe there is something in the systemui. just a thought.... Thanks though for what you have done...
[Android Themes] Ticklefish:
No problem.

I've got another option for you. Have you thought about disabling the statusbar clock when your device is locked?

That way, the lockscreen clock won't stand out so much.. ;)
[Android Themes] bobfrantic:
That might be an idea. It was disbled in JB but other stuff remained. There are too many clocks lol...

Sent from my GT-I9505
[Android Themes] Ezzam_Itachi:
Man .. Your guide is the best !! Thanks !! ^_^;) but .. How to move the wifi icon to the right of the signal icon ?? :confused:
[Android Themes] Ticklefish:
Have a look here: http://xdaforums.com/showthread.php?p=56663096

Have a look at signal_cluster_view.xml

-----------------------------------------

SENT FROM TAPATALK

---------------------------------------
[Android Themes] bobfrantic:
So would require a smali edit for that. Which apk and which smali as the one your mentioned in the thread is not in my systemui. got me curious now lol...
[Android Themes] Ticklefish:
It would be whichever apk contains your status bar clock. If that's not in your SystemUI.apk, it might be in your framework-res.apk or twframework-res.apk.

It'll be whichever apk has your status_bar.xml.

-----------------------------------------

SENT FROM TAPATALK

---------------------------------------
[Android Themes] Ezzam_Itachi:
Thanks again !! :D:D
[Android Themes] zik-zak:
Nice thread. How to give blurry bg to notification panel like in ios
[Android Themes] Ticklefish:
Looking nice! :good:

Have a look at this Xposed module by The Master, [MENTION=3989065]serajr[/MENTION]: http://xdaforums.com/xposed/modules/xposed-blurred-ui-v1-0-16-07-2014-t2818273

---------- Post added at 11:03 AM ---------- Previous post was at 10:33 AM ----------

This is the clock line from my status_bar.xml, in SystemUI.apk:

<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff00ff00" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />

So the smali that controls the clock is "SystemUI.apk/smali/com/android/systemui/statusbar/policy/Clock.smali".

The real challenge is working out where in the smali to put the mod. That I don't know. I'm still quite a noob with smali so consider that a challenge I'm setting for you. ;)

Let us know how you get on!
[Android Themes] bobfrantic:
LOL thanks for the info. How am I getting on? uh er um lost in the smali. May have to send message to or find Goldie's smali thread to start making some sense of it all. With a tutorial I can work through a smali for example to mod the secmms, with a tutorial like jovy23's thread but trying to figure out what is what and why is well... not easy to say the least.... :D
[Android Themes] jerlou21:
having problem decompiling..

I followed every step and i always have this error.

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: ?/apktool/framework/1.apk

I: Loaded.

I: Regular manifest package...

I: Decoding file-resources...

W: Cant find 9patch chunk in file: "drawable-hdpi/notification_header_bg.9.png". Renaming it to *.png.

W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff

W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_close_off.9.png". Renaming it to *.png.

W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff

W: Cant find 9patch chunk in file: "drawable/toolbar_panel_switch_btn_nor.9.png". Renaming it to *.png.

W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff

W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff

W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_close_on.9.png". Renaming it to *.png.

I: Decoding values */* XMLs...

I: Done.

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010435

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)

at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)

at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)

at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)

at brut.apktool.Main.cmdDecode(Main.java:146)

at brut.apktool.Main.main(Main.java:77)

Any solution sir?
[Android Themes] lacoursiere18:
Looks like you don't have the correct framework installed..

UndefinedResObject: resource spec: 0x01010435
[Android Themes] Ticklefish:
Looks like the apk isn't very well themed either..

W: Cant find 9patch chunk in file: "drawable-hdpi/notification_header_bg.9.png". Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_close_off.9.png". Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
W: Cant find 9patch chunk in file: "drawable/toolbar_panel_switch_btn_nor.9.png". Renaming it to *.png.
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_close_on.9.png". Renaming it to *.png.
[Android Themes] jerlou21:
correct ..

Sir i got the framework from settings/framewor/framework-res.apk from my phone ..

Can you advice me sir of what to do so, i may decompile my systemui?
[Android Themes] Prototype_v9.86:
content not readable...

Xml content is in symbols and unreadable charectors.

I used notpad++ in windows and editix in linux also changed encoding and tried other editors but no luck.

I have extracted apk not decompiled...

Should i have to decompile apk before editing xml. Or extracting apk will work...

I apologize for any mistakes in writing in this language....
[Android Themes] Spannaa:
You need to decompile the apk before you can edit any xml files inside.
[Android Themes] Ticklefish:
Have a look in your system/framework folder for any other apk file with "res" in the name. If you spot any, try installing them before you try decompiling this apk again.
[Android Themes] Aadarsh Gupta:
Thank you very much for this awesome tutorial :good:
[Android Themes] mjraogr:
Modifing I8552 Dual Sim

Hello

This mods works on TW dual sim?

My device is the I8552 (Grand Quattro Win Duos) and on my project rom needs transform the Notification themselves transparent and change top header background colors (expanded) and i was changes:

to modify notification lines rows:

The frameworks-res \values\ drawable.xml color to #00000000 and smali\com\systemui\satusbar\phone\PhoneSmali.samli codes -0x100 to 0x0

Changed to de res\drawable-hdpi\ tw_quickpanel_list_bg color ( the changes compilation returns without effects)

to modify pull down header ( clock and settings button bg)

tw_statusbar_expanded, tw_statusbar_expanded_header.xml and tw_statusbar_expanded_header_dual.xml changed the image [MENTION=3944923]drawab[/MENTION]le/notification_panel_bg to code adroid:background= to "#3f000000" ( 75%) On Pull down expanded background area the changes were effective, but on TW_statusbar header and notification returns no effects too.

Can you help understand where is the error or what is missing?

thanks

MJ

image
[Android Themes] lacoursiere18:
Hey man.. Sorry just shared this with someone else and remembered you wanted the location too.. But for the colors on clock and date and such have you tried looking at these layouts?

sec_contextual_clock.xml

sec_contextual_clock_flight_mode.xml
[Android Themes] mjraogr:
[MENTION=5056266]lacoursiere18[/MENTION]

Are you can help my doubts on #1432 ?

tks

MJ
[Android Themes] bobfrantic:
Nope, and it isn't colour that I am wanting to change lol... just centering the clock and date and stuff on the lockscreen. but maybe in those xml's might be a clue. did you look that tutorial link?
[Android Themes] lacoursiere18:
Yes it might. That is a layout with margins and stuff
[Android Themes] bobfrantic:
I saw in the sec_contextual_clock.xml margin left, so may play with that to see if clock and date and stuff move with an increase in the margin...

and [MENTION=5701299]mjraogr[/MENTION] please don't quote the entire op as it isn't needed just do a quick reply, thanks :)
[Android Themes] mjraogr:
OK escuse me

Erase all quote on #1432.

I'll be waiting some help

Tks

MJ
[Android Themes] carlitobahsoun:
hi ....any help here plz???

hi....if i put my system ui apk here any one can modified for me plz???? i dont know how to make it...not knowledge in apk and modifie it ....just wana remove what i mark in red and keep original date and times in notification tool bar...
[Android Themes] carlitobahsoun:
my system ui

thanks in advance
[Android Themes] Ezzam_Itachi:
Have you tried first ?? I think you just have to decompile it .. Go to Status_bar_expended.xml and search for that clock line .. Add this :-

Android:invisibility

Then recompile ..
[Android Themes] lacoursiere18:
Samsung note 2 but i run a s5 keyguard.apk. send me your apk please.
[Android Themes] bobfrantic:
here is my unedited keyguard. deodexed from my Galaxy S4. I tried an s5 keyguard but it fc'ed all the time.

Keyguard.zip
[Android Themes] lacoursiere18:
Ty ill sre what i can find

Edit: looks like a bad upload. Can't open zip
[Android Themes] bobfrantic:
hmmm odd, I downloaded it and it opened fine. what error did you get? maybe try again maybe. let me know...
[Android Themes] lacoursiere18:
I get this..

It was chrome that was the issue