Related
Got from "Question" to "HowTo" at post #7
and you might read post #10 for more information about keeping the settings-button.
---------------------------------------------------------
hi all themers here at xda!
this is my first post, and honestly ive got to admit that im a bit hessitated to write, cause i believe that if i run into a problem, then another person in the world already have that problem too, and i might be able to find a solution here at xda, or at least at google... but, this time i havent been able to find what im looking for, so hoping some experienced themers/modders here is able to help me out..
ive got an touchwiz based i9300, with omega 9.0 on it. now i want to theme it.. ive tried since yesterday with trying too get the dateview and carrier plus settingsbutton, at the statusbar pulldown menu, too be on the bottom, right above the scrollbar-button-thingy, but beneath the notifications.. ive tried editing the tw_status_bar_expanded.xml , but now gotten to a point where i think thats not the right place, since i cant see the code where it should insert the scrollbar-button-thingy to the menu, so it must be in another place.. ill add a screenshot for better understanding..
hope someone is able to help me out on this one.. thx i advance
EDIT: to point out exactly, ive got it to be at the botton as showed in the screenshot, but its not sticked to the scrollbar-button-thingy as i would like it too do..
Interesting idea. I'd like something like this too if it was doable.
eiraku said:
Interesting idea. I'd like something like this too if it was doable.
Click to expand...
Click to collapse
yea, i thought so too when ive got the idea.. and i know its lazyness, but then i dont have to pulldown the whole statusbar, just too check the date..
if i get it done, ill update this thread with an how to process here, but it seems kinda dark at the end of tunnel right now...
GOT IT WORKING!
but now its underlying the notificationsrow.. just have to see if i can get that fixed, and then im going to write a HowTo in here for others to use
If you get it working, share the xml? Would help folks like us who know nuts about XML editing, but can jiggle stuff around with villainthemes.
Hopefully it works with my modded framework and systemui.
eiraku said:
If you get it working, share the xml? Would help folks like us who know nuts about XML editing, but can jiggle stuff around with villainthemes.
Hopefully it works with my modded framework and systemui.
Click to expand...
Click to collapse
first of, im not good at xml either, but trying to understand to it and yea of course i will upload it.. well, at least ill tell how i did it, in that way it can be done in any modded rom, i guess.. but for now, i just have to get it working proberly.. ill be in touch
HowTo
its working now, as it should!
the only downside is that the quick-access-settings-button dont work, as its got grouped with the tracking scrollbar-button-thingy... but, i hardly never used it anyway, sooo.. here is a short howto on how i made this work..
step 1:
decompile SystemUI.apk, and jump into this folder:
[decompiled-SystemUI.apk]\res\layout
Click to expand...
Click to collapse
step 2:
open tw_status_bar_expanded-xml (ill use notepad++ wich is neat for this process)
search the section that looks like this:
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height">
<ImageView android:id="@id/settings_launch_button" android:background="@drawable/tw_quickpanel_icon_settings_bg" android:focusable="true" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="fill_parent" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quick_panel_plnm_setting_dv" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" androidaddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" androidaddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
</RelativeLayout>
Click to expand...
Click to collapse
and copy it..
step 4:
while its copied too the clipboard, open up tw_status_bar_tracking.xml
then paste the copied content, into between the two lines that starts like this:
<com.android.systemui.statusbar.phone.CloseDragHandle ...........
Click to expand...
Click to collapse
and this:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" ...................
Click to expand...
Click to collapse
so it looks like this:
<FrameLayout android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.phone.CloseDragHandle androidrientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height">
<ImageView android:id="@id/settings_launch_button" android:background="@drawable/tw_quickpanel_icon_settings_bg" android:focusable="true" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="fill_parent" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quick_panel_plnm_setting_dv" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DateView android:textSize="@dimen/status_bar_expanded_date_text_size" android:textColor="#ff1589d7" android:id="@id/date" androidaddingRight="12.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/settings_launch_button" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.phone.CarrierLabel android:textSize="@dimen/status_bar_expanded_plmn_text_size" android:textColor="#ffd7d7d7" android:ellipsize="marquee" androidaddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/date" android:layout_alignParentLeft="true" android:layout_centerVertical="true" />
</RelativeLayout>
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tw_status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
Click to expand...
Click to collapse
step 5:
now youll have too remove the settings-button, as it dosent work anyway..
soo, the first two lines at the tw_status_bar_tracking.xml, after
<RelativeLayout
Click to expand...
Click to collapse
add at the end of each line before the "/>" this code:
android:visibility="gone"
Click to expand...
Click to collapse
now delete two pieces of code at the lines for date and carrier, by deleting:
android:layout_toLeftOf="@id/settings_launch_button"
Click to expand...
Click to collapse
at the date line.. and replace it with this:
android:layout_alignParentRight="true"
Click to expand...
Click to collapse
at the carrier line, delete this:
android:layout_toLeftOf="@id/date"
Click to expand...
Click to collapse
step 6:
now its working, but we need to remove the old date and carrier from the top of the dropdown menu..
so, with tw_status_bar_expanded.xml open, add this code:
android:visibility="gone"
Click to expand...
Click to collapse
at the end of
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height">
Click to expand...
Click to collapse
so it looks like this:
<RelativeLayout android:background="@drawable/tw_quick_panel_plnm_bg" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_plmn_height" android:visibility="gone">
Click to expand...
Click to collapse
step 7:
save the two xml files, recompile, and use 7zip to extract both files from the recompiled apk, and insert those to the decompiled apk, maintaining the folder path.
now its ready for being copied over to the phone, by using adb, sdcard or whatever the way you prefer.. and then overwrite the existing SystemUI.apk at
/system/app/
Click to expand...
Click to collapse
folder..
-------------
you can even change the part of codes inside tw_status_bar_tracking.xml, that says:
androidaddingRight="12.0dip"
Click to expand...
Click to collapse
and
androidaddingLeft="11.0dip"
Click to expand...
Click to collapse
too any other integer of your likes (those codes will determine how far from the edge of the screen it should be placed)
you can also even add:
android:visibility="gone"
Click to expand...
Click to collapse
at the end of the carrier-code-line, to make it dissappear.. and add this:
android:layout_centerInParent="true"
Click to expand...
Click to collapse
instead of this:
android:layout_alignParentRight="true"
Click to expand...
Click to collapse
Click to expand...
Click to collapse
and set the:
androidaddingRight="12.0dip"
Click to expand...
Click to collapse
to be 0 (NULL), at the dateview-code-line. that way youll get the date centered..
there is the ability too remove the original tracking-scrollbar-button-thingy, just by adding:
android:visibility="gone"
Click to expand...
Click to collapse
at the end of the line
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tw_status_bar_close_on" android:scaleType="fitXY" />
Click to expand...
Click to collapse
thats right beneath:
</RelativeLayout>
Click to expand...
Click to collapse
and above:
</com.android.systemui.statusbar.phone.CloseDragHandle>
Click to expand...
Click to collapse
and of course, dont forget too change the fonts
-------------
dont just copy the codes from this thread, as it might not be exactly correct nor usefull for your phone..
this is my first howto here at xda, and im hoping it will come usefull for some.. and if you liked this, give me a thanks..
that was my 2cents
cheers
EDIT: the screenshot attached, shows how it looks like when holding the finger on the statusbar.. easy way of checking the date..
EDIT2: two more screenshots added, showin how it can look like if removing the original tracking bar, removing carrier, and centering date..
But I like the quick access settings button.
Great work nonetheless!
eiraku said:
But I like the quick access settings button.
Great work nonetheless!
Click to expand...
Click to collapse
haha.. yea ok.. then dont do this
well, i always press the menu-button at the homescreen, and from there i choose settings..
my first mod, that what it seems, no one has done before me... so think it became alright hehe
but if anyone gets the quick-access-settings-button too work with this mod, then please let me know.. knowledge is great
got a little update.. for those who still want the quick-access-settings-button, its possible too just make the date dissappear in the original dateview, carrier plus settings-button - bar, and just change the background in tracking.xml, and add the date-code-line..
for better understanding, ive added a screenshot of how it can look like.. its actually just a matter of trial-and-error till it hits your likes..
Now that ^^ is sexy.
I'm gonna run out of thanks for you soon bud. Awesome work.
eiraku said:
Now that ^^ is sexy.
I'm gonna run out of thanks for you soon bud. Awesome work.
Click to expand...
Click to collapse
thx mate!
glad you like it.. and because you do, ill attach the edited xml files so its easier for you to see what ive did, tw_status_bar_expanded.xml and tw_status_bar_tracking.xml, as it looks like in the last screenshot..
the background on the tracking.xml dont have to be replaced by the original dateview and carrier-background, i just did that because it was the fastest way of getting a nicer background for the date.. you could just edit the original tracking background, so it would be two different images, wich equals a nicer theme (perhaps...)
btw, the xml files are edited in the omega 9.0 rom, so you might just copy+paste the modified code, just too be sure nothing screws it up
cheers
EDIT: if you make any theme(s) with this method, i would really like too see it.. so if you would send me a screenshot or two, if youre planning to use it, that would be cool
Does anyone knows how to or the best way to remove the clock from the status bar? I'm using the XXDMC3 stock rooted rom, thanks in advance!
Paid version of Simplistic Framework
slick4mitch said:
Does anyone knows how to or the best way to remove the clock from the status bar? I'm using the XXDMC3 stock rooted rom, thanks in advance!
Click to expand...
Click to collapse
Decompile SystemUI.apk
Open res/layout/status_bar.xml
Change the following line
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
To
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Recompile SystemUI and push it back to your phone
muena90 said:
Decompile SystemUI.apk
Open res/layout/status_bar.xml
Change the following line
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
To
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Recompile SystemUI and push it back to your phone
Click to expand...
Click to collapse
Thanks for this, I appreciate it!
McLaren__F1 said:
Paid version of Simplistic Framework
Click to expand...
Click to collapse
There's only a paid Simplistic Control app and you need the simplistic framework installed for it to work, I'm running DMC3 stock rooted rom and I don't think that framework works with it, enlight me otherwise, thanks!
slick4mitch said:
There's only a paid Simplistic Control app and you need the simplistic framework installed for it to work, I'm running DMC3 stock rooted rom and I don't think that framework works with it, enlight me otherwise, thanks!
Click to expand...
Click to collapse
I'm using a mc3 based rom with simplistic framework and works fine
Sent from my GT-N7100 using xda premium
McLaren__F1 said:
I'm using a mc3 based rom with simplistic framework and works fine
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Yeah and I think your ROM has simplistic preinstalled. Otherwise it won't work.
In Phoenix AROMA it has the option to install or not install it.
Brightness Slider Guide
For CM11 See My Guide - Here
I have re-written the guide by @evanlocked with his permission as some people had trouble following his guide so I'll try to make it simple to follow steps
Full credit goes to him for the original guide and steps - All I have done is present it and re-write it in a different way to make it more understandable and iv also added steps for different layouts depending on what rom you are using
The original thread can be found
http://forum.xda-developers.com/showthread.php?t=2152370
1 - Download the attachment and unzip the folder
2 - Decompile your SystemUI.apk with apktool
3 - Open the downloaded attachment and copy the files within to the following locations to your decompiled SystemUI folder
Note if you dont have the folder for the smali eg lidroid just create it
smali\com\lidroid\systemui\quickpanel
BrightnessSlider$BrightnessSettingsObserver.smali
BrightnessSlider.smali
smali\com\android\systemui\statusbar
SlideBrightness$1.smali
SlideBrightness$2.smali
SlideBrightness.smali
smali\com\android\systemui\statusbar\quickpanel
BrightnessSettingsView$1.smali
BrightnessSettingsView$AutomaticObserver.smali
BrightnessSettingsView$BrightnessObserver.smali
res\drawable
brightness_seekbar.xml
res\layout
qp_brightness.xml
quickpanel_brightness_settings.xml
res\drawable-ldpi (or -mdpi and so on depending on your phone res)
brightness_bg.png
ic_brightness.png
quickpanel_brightness_icon.png
4 - Open res/values/strings.xml with notepad++
above </resources> place the following
Code:
<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />
5 - Open res/values/ids.xml with notepad++
above </resources> place the following (note cm9 dont add <item type="id" name="brightness">false</item> as its already defined)
Code:
<item type="id" name="title">false</item>
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>
6 - Open res/layout/status_bar_expanded.xml
This step will vary depending on rom so I will give a few examples
Example 1 - Stock Gingerbread (deodexed)
Under
Code:
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip">
Place
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
Example 2 - CM7
If you have a header you can place it under it like this (note your header name maybe different from StatusBarJellyHeaderView)
Under
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
Place
Code:
<include layout="@layout/qp_brightness" />
Or if you dont have a header or you dont want it within the header you can place it under the power widget
Under
Code:
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Place
Code:
<include layout="@layout/qp_brightness" />
Example 3 - CM9
Above
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
Place
Code:
<LinearLayout android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
7 - This step is optional and is for the icon next to the brightness slider
open res/layout/qp_brightness.xml
Look at
Code:
<ImageView android:paddingLeft="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_brightness" />
This is the line for the image - change it how you like if you want to
note - to change the icon just replace ic_brightness.png that you placed in res/drawable-ldpi (or mdpi and so on) with one of your choice but make sure the filename remains ic_brightness.png
8 - Recompile and sign - if you are using cm7/9 sign the apk with a platform key using zip signer (playstore)
9 - Put in a flashable zip and flash in cwm with system mounted
credits
evanlocked
Will follow this one
EDIT:
thanks @marcussmith2626
workin perfectly
no force close or what
SystemUI FC'd on my phone..
Mind you, I am using a Sony Xperia Z running 4.3 and this thread is meant for GB and is in a Samsung forum so I could just be bringing it upon myself...lol
Ticklefish said:
SystemUI FC'd on my phone..
Mind you, I am using a Sony Xperia Z running 4.3 and this thread is meant for GB and is in a Samsung forum so I could just be bringing it upon myself...lol
Click to expand...
Click to collapse
I dont have a phone running 4.3 to test it on - iv tested on stock gb aosp gb cm7 and cm9
I do know it works on non samsung phones as someone else asked me about a bug in the brightness returning to a set level on restart but it turns out it was a bug to do with how his phone manages brightness
I dont know if the smali works on 4.3 but im sure if you had cm11 you have a brightness slider anyway if you enable in cyanogenmod settings and then swipe across the statusbar although it may not be a visable slider
it maybe just a case you need to arrange the layout for including qp_brightness in a different way to stop the force closing but Im not able to test this
you can try putting it where it is in the cm9 layout if your status_bar_expanded looks similar or just find somewhere else to place it
feel free to upload an unmodified systemui.apk and your framework-res and I will do it and you can see if it works but since iv not done it on a 4.3 phone Im not sure if it will work
marcussmith2626 said:
I dont have a phone running 4.3 to test it on - iv tested on stock gb aosp gb cm7 and cm9
I do know it works on non samsung phones as someone else asked me about a bug in the brightness returning to a set level on restart but it turns out it was a bug to do with how his phone manages brightness
I dont know if the smali works on 4.3 but im sure if you had cm11 you have a brightness slider anyway if you enable in cyanogenmod settings and then swipe across the statusbar although it may not be a visable slider
it maybe just a case you need to arrange the layout for including qp_brightness in a different way to stop the force closing but Im not able to test this
you can try putting it where it is in the cm9 layout if your status_bar_expanded looks similar or just find somewhere else to place it
feel free to upload an unmodified systemui.apk and your framework-res and I will do it and you can see if it works but since iv not done it on a 4.3 phone Im not sure if it will work
Click to expand...
Click to collapse
Oh, I've got a brightness bar already. I've pinched one from statusbargreper but it's not the best. I was hoping to use this one so that the brightness changes instantly (with the statusbargreper smali, the brightness changes when you take your finger off the screen).
I'm uploading my framework-res.apk, stock SystemUI.apk and also the SystemUI.apk I made with this mod. Just in case..
https://www.mediafire.com/?hq98l4epd1qhs23
Ticklefish said:
Oh, I've got a brightness bar already. I've pinched one from statusbargreper but it's not the best. I was hoping to use this one so that the brightness changes instantly (with the statusbargreper smali, the brightness changes when you take your finger off the screen).
I'm uploading my framework-res.apk, stock SystemUI.apk and also the SystemUI.apk I made with this mod. Just in case..
https://www.mediafire.com/?hq98l4epd1qhs23
Click to expand...
Click to collapse
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
marcussmith2626 said:
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
Click to expand...
Click to collapse
Thanks, I'll have to check them out tomorrow.
Sent from my C6603 using Tapatalk
Easy to follow.Thanx
Sent from my GT-S5360 using Tapatalk 2
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
GSculerlor said:
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
See san122 guide
GSculerlor said:
How to fix this layout problem ?
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
the png on left is already explained in step 7
the colour of the slider itself is to do with your framework-res in progress_horizontal.xml
the slider icon on the bar is also to do with your framework but I dont know what png it is - I think its a .9.png somewhere - you will have to look through as the names may vary with rom
Mranggapo said:
See san122 guide
Click to expand...
Click to collapse
Thanks for an excellent guide!
marcussmith2626 said:
iv done some test SystemUI.apk for you
in each one all iv done is move the layout of qp_brightness around so hopefully one of the layouts wont cause a force close
let me know if any work and I can add it to the guide
just rename the apks SystemUI.apk and flash them with a flashable zip - im sure you know already
http://d-h.st/Rdw
Click to expand...
Click to collapse
FC's on all four, I'm afraid. I don't think this is a layout issue, it's probably a smali/4.3 thing. Which is a bugger.
Ticklefish said:
FC's on all four, I'm afraid. I don't think this is a layout issue, it's probably a smali/4.3 thing. Which is a bugger.
Click to expand...
Click to collapse
yeah it may well be - if I ever get a 4.3/4.4 device in the future I can look at it properly
Not that it's got anything with your topic to do, but I thought I'd might ask anyway.
I followed this guide to create another clear button:
http://forum.xda-developers.com/showthread.php?t=1953934
Which works good, but I would like the clear button to be aligned to the right on the row.
Is there any possibilities to that?
richard.elgh said:
Not that it's got anything with your topic to do, but I thought I'd might ask anyway.
I followed this guide to create another clear button:
http://forum.xda-developers.com/showthread.php?t=1953934
Which works good, but I would like the clear button to be aligned to the right on the row.
Is there any possibilities to that?
Click to expand...
Click to collapse
Iv used that mod in my status bar - you can try changing the gravity of the linear layout
here is link to my status bar if you want to compare
http://forum.xda-developers.com/showthread.php?p=49468255
marcussmith2626 said:
Iv used that mod in my status bar - you can try changing the gravity of the linear layout
here is link to my status bar if you want to compare
http://forum.xda-developers.com/showthread.php?p=49468255
Click to expand...
Click to collapse
It wasn't as easy as this though: android:gravity="right"
richard.elgh said:
It wasn't as easy as this though: android:gravity="right"
Click to expand...
Click to collapse
that will only work if its in its own layout else everything in that layout will go to the right
you could also try to increase its padding on one side which might shift it over
Code:
android:paddingLeft="8.0dip"
and I think theres also a next to command which will put it next to a certain @ID
for example
Code:
android:layout_toRightOf="@id/date"
which will put it to the right hand side of the date
you will just have to play around with the layout to get it how you want
marcussmith2626 said:
that will only work if its in its own layout else everything in that layout will go to the right
you could also try to increase its padding on one side which might shift it over
Code:
android:paddingLeft="8.0dip"
and I think theres also a next to command which will put it next to a certain @ID
for example
Code:
android:layout_toRightOf="@id/date"
which will put it to the right hand side of the date
you will just have to play around with the layout to get it how you want
Click to expand...
Click to collapse
This is my command:
<TextView android:textColor="@android:color/transparent" android:layout_gravity="center_vertical"" android:id="@id/clear_all_button" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
Just decreasing the paddingRight didn't make a change, but I can try changing the paddingLeft tomorrow.
Thanks.
richard.elgh said:
This is my command:
<TextView android:textColor="@android:color/transparent" android:layout_gravity="center_vertical"" android:id="@id/clear_all_button" androidaddingLeft="15.0dip" androidaddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
Just decreasing the paddingRight didn't make a change, but I can try changing the paddingLeft tomorrow.
Thanks.
Click to expand...
Click to collapse
this is my layout for comparison - you can see what it looks like in the screenshot of the status bar thread I gave in last post or in my signature
Code:
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="StatusBar.ClearButton" />
<include layout="@layout/qp_brightness" />
</LinearLayout>
</LinearLayout>
Customizable remodified CM lock music controls + Information
Updated (Read):
Fullscreen AlbumArt
Moving trackname if it is long (credits to sir El Uyuz [email protected], Bhevz Cailao
@fb and lenar [email protected])
Bugs:if you find one, feel free to report
NOTE: Tested on Gingerbread version DXLF baseband. Still not sure if will work on other version, you can give it a try but i dont have the responsibility on bricking/damaging your phone :
ScreenShot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What you need
- Basic xml techniques
- Decompile recompile skills
- android.policy.jar
- framework-res.apk
- SystemUI.apk
Steps:
Click to expand...
Click to collapse
1.) Decompile android.policy.jar.
2.) Download MusicInfo.zip in attachment and extract it to smali folder.
3.) Decompile framework-res.apk.
4.) open res/layout/zzz_keyguard_screen_clockwidget.xml below:
Code:
<view android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
add this line:
Click to expand...
Click to collapse
Code:
[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.AlbumArt android:layout_width="100.0dip" android:layout_height="100.0dip" android:scaleType="fitCenter" />
<com.tenten.trackname android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_horizontal" android:background="#00000000" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<com.tenten.MusicControl android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.prev android:layout_marginRight="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.play android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.next android:layout_marginLeft="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.tenten.MusicControl>
</LinearLayout>[/COLOR]
It will be like this:
Click to expand...
Click to collapse
Code:
<view android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.AlbumArt android:layout_width="100.0dip" android:layout_height="100.0dip" android:scaleType="fitCenter" />
<com.tenten.trackname android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="10.0px" android:paddingRight="10.0px" android:singleLine="true" />
<com.tenten.MusicControl android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.prev android:layout_marginRight="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.play android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.next android:layout_marginLeft="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.tenten.MusicControl>
</LinearLayout>[/COLOR]
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="25.0dip">
<ImageView android:id="@id/zzz_hour01" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_hour02" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_colon01" android:layout_width="17.0dip" android:layout_height="25.0dip" android:src="@drawable/zzz_unlock_clock_colon" />
<ImageView android:id="@id/zzz_minute01" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_minute02" android:layout_width="17.0dip" android:layout_height="25.0dip" />
</LinearLayout>
<LinearLayout android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="0.0dip" android:layout_height="0.0dip">
<TextView android:textSize="0.0dip" android:typeface="sans" android:textColor="#ffffffff" android:id="@id/zzz_ampm" android:layout_width="0.0dip" android:layout_height="0.0dip" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
</LinearLayout>
<TextView android:textSize="20.0sp" android:typeface="sans" android:textColor="#ffffffff" android:id="@id/zzz_date_month" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
</view>
5.) Add a png in res/drawable folder and name it: default_music_logo.
6.) Recompile framework-res.apk and decompile it again.
7.) Go to res/values/public.xml and find this line:
Code:
<public type="drawable" name="default_music_logo" id="[COLOR="Red"]ImportantID[/COLOR]" />
8.) Remember the important ID. Go back again to your android.policy.jar and open smali/com/tenten/AlbumArt.smali.
9.) Find this line:
Code:
const v2, 0x1080411
10.) Replace 0x1080411 with your ImportantID BUT remove the 0 next to x. (Example: 0x01234567 to 0x1234567)
Code:
const v2, [COLOR="red"]ImportantID[/COLOR]
11.) Recompile framework-res.apk and android.policy.jar.
12.) Decompile SystemUI.apk.
13.) Download UI_MusicInfo.zip in attachment and extract it to smali folder.
14.) Go to res/layout/status_bar.xml and below:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
add this line:
Click to expand...
Click to collapse
Code:
[COLOR="red"]<com.tenten.MusicHelper android:layout_width="0.0dip" android:layout_height="0.0dip" />[/COLOR]
It will be like this:
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.LenoxStatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="red"]<com.tenten.MusicHelper android:layout_width="0.0dip" android:layout_height="0.0dip" />[/COLOR]
15.) Recompile SystemUI.apk.
16.) Finally, zip your recompiled android.policy.jar, framework-res.apk, SystemUI.apk and flash it.
17.) download and Install CustomizableParts.apk in attachment to control the informations
18.) If it works, jump. If no, tell me
Fullscreen AlbumArt in Lockscreens (KITKAT MODE ON)
Click to expand...
Click to collapse
Description: Fullscreen Album art in lockscreen like kitkat, all lockscreens are affected except circle lock. (It has no main layout :crying Sorry but no screenshot, you can imagine it by the title itself. (But actually, Im lazy. xD )
NOTE: This will work on lockscreens that has mainlayout and its main parent must be relativelayout.
1.) Open all of these layouts on framework-res/res/layout:
keyguard_screen_password_portrait.xml
keyguard_screen_tab_unlock.xml
keyguard_screen_unlock_portrait.xml
2.) then do this in the three layout that you have opened:
PUT THIS:
Click to expand...
Click to collapse
Code:
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/patternlockscreenwallpaper_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
NOTE: In keyguard_screen_tab_unlock.xml, it must be below xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
3.) Save them and close, Then open zzz_keyguard_screen_lockscreenwallpaper.xml
4.) Then again:
PUT THIS:
Click to expand...
Click to collapse
Code:
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
<ImageView android:id="@id/lockscreenwallpaper_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" />
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/lockscreenwallpaper_root" android:background="#80000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/lockscreenwallpaper_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" />
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
</RelativeLayout>
5.) Save again all then recompile your framework-res
6.) Flash to obtain kitkat mode.
PS: Need help? Go to 2nd post.
Java Source: https://github.com/tentenponce/Music_Info_on_Lockscreen
CREDITS[email protected]
CyanogenMod
AOSP
StackOverflow.com
Lenox Devs
Potato Inc
[email protected] for inspiring me on his music lock controls
FAQs / Help
FAQs
EDIT: Sorry for the wrong info, please read the first Q and A again. thank you
Q: Why music controls not working?
A: There's something you need to modify on MusicUtils.smali, according to sir @PineappleOwl, for a while, use the lenox music that has been attach my sir @GSculerlor around here, just look for it
EDIT: Download MusicUtils.zip on attachment and extract it on your Music.apk/smali folder.
Q: My album art is not updating/changing/not the same with my music album art?
A: It is because the data from your old music, (maybe u use other player). Clear the data of your old music and stock music then check it again (Credits, Mark[email protected])
Q: No AlbumArt when my phone is plug into Computer?
A: Yes, to avoid force close/hotboot.
Q: F*ck! My phone reboots when I unplug it from the Computer.
A: Wait for your sd card to be scanned then unplug it. Patience is <3
Q: Some alien options on CustomizableParts, how to use it?
A: Follow my other guides.
NOTE
Changing Song will be a bit laggy because it is updating.
You can Put it on other layouts of lockscreen (Pattern lock, Pin, etc.)
awesome dude
will try
Reserve
hai i mohammad Azim
everything implemented. but still Lockscreen music control not works.
ROM - JELLYFUSION
FRIMWARE - DDMF4
DEVICE - GALAXY Y DUOS
Ten, its working on me hehe I used stock
kartik verma said:
everything implemented. but still Lockscreen music control not works.
ROM - JELLYFUSION
FRIMWARE - DDMF4
DEVICE - GALAXY Y DUOS
Click to expand...
Click to collapse
It's on default, try to run music then go to lockscreen. See if it's there.
Sir @tentenponce, What Music app work with this guide ?
GSculerlor said:
Sir @tentenponce, What Music app work with this guide ?
Click to expand...
Click to collapse
Default one will do
Report : CM Parts not work on me :crying:
SS after i press pause button :
GSculerlor said:
Sir @tentenponce, What Music app work with this guide ?
Click to expand...
Click to collapse
I only tried default music, but you can try on other and you can tell me so i can tell others credits goes to you ofcourse
GSculerlor said:
Report : CM Parts not work on me :crying:
SS after i press pause button :
View attachment 2750570
Click to expand...
Click to collapse
Ill update the thread, i saw that also, in lockscreen, Cm Style is a bug. Please avoid using that for now sir. Catching intents in lockscreen is complicated, that's why I can't also catch the trackname on lockscreen. </3 By the way, thanks for reporting :good:
Wow, awesome sir. Thanks
tentenponce said:
It's on default, try to run music then go to lockscreen. See if it's there.
Click to expand...
Click to collapse
Sir, m use it on Google play music. so i think is is the problem.
sorry to say.
but its a worst feature.
And never works on stock music player as well this feature also not working on another music play (Google play Music)
plssss.. Fix it and this feature is gud and i also want in my rom.
Device - Galaxy Y Duos
Frimware - GINGERBREAD.DDMF4
kartik verma said:
sorry to say.
but its a worst feature.
And never works on stock music player as well this feature also not working on another music play (Google play Music)
plssss.. Fix it and this feature is gud and i also want in my rom.
Device - Galaxy Y Duos
Frimware - GINGERBREAD.DDMF4
Click to expand...
Click to collapse
It complete work on default music player. Bug just on CM style
Sent from my GT-S5360 using XDA Free mobile app
GSculerlor said:
It complete work on default music player. Bug just on CM style
Sent from my GT-S5360 using XDA Free mobile app
Click to expand...
Click to collapse
can u add this mod in my framework apk and policy.jar
Sir @tentenponce, i follow your instruction very carefully and i got random reboot XD
And i position in on top, how to move it to bottom ?
What is xml like galaxy s2/glass lock ?
TIA
Mranggapo said:
Sir @tentenponce, i follow your instruction very carefully and i got random reboot XD
And i position in on top, how to move it to bottom ?
What is xml like galaxy s2/glass lock ?
TIA
Click to expand...
Click to collapse
take whole xml code of music control and **** it below.
like if i have clock and date and above music control. cut the code and paste below the clock code
done.
Mranggapo said:
Sir @tentenponce, i follow your instruction very carefully and i got random reboot XD
And i position in on top, how to move it to bottom ?
What is xml like galaxy s2/glass lock ?
TIA
Click to expand...
Click to collapse
Dont use CM Style, it's a bug. Ill try to fix it. install the apk and choose default or minimal.
Hey guys I know a lot of people are missing center clock for oreo. So I found a substratum theme called dark infusion which allows u to change location. I'm not really comfortable flashing other mods so I can't say if they work or not. But I have seen a few. I'm just verifying that this theme (paid) does work as u can see below. If anyone else wants to share other working mods pz do. I wanna thank @NepoRood for this find as he showed me.
There's a Substratum module called "Clock Tweaks for O" that will center the clock and also allow you to change the font and size.
Found another which I'm sure a lot of u know about but gravity box for Oreo works great on los 15.1 and crdroid. Not so good on benzo. For some reason I was having lag issues on stock also. But for those who don't you can move clock and there's a ton of other options. Make sure you install beta 2 of xposed the first one is buggy. Then search gravity or search Oreo under downloads section. Look for gravity box (o) and install activate and restart it has as many if not more customizations as any custom ROMs have fun
joeeboogz said:
Found another which I'm sure a lot of u know about but gravity box for Oreo works great on los 15.1 and crdroid. Not so good on benzo. For some reason I was having lag issues on stock also. But for those who don't you can move clock and there's a ton of other options. Make sure you install beta 2 of xposed the first one is buggy. Then search gravity or search Oreo under downloads section. Look for gravity box (o) and install activate and restart it has as many if not more customizations as any custom ROMs have fun
Click to expand...
Click to collapse
I'm running stock 8.1, magisk, with Gravity Box [O] and center clock is up and running
Gravity box as magisk module? Without xposed?
Please share link. Inside magisk there is no such module.
Send from D6603 with Tapatalk
makes2068 said:
Gravity box as magisk module? Without xposed?
Please share link. Inside magisk there is no such module.
Click to expand...
Click to collapse
I think he means xposed magisk version
For those that don't want to stock up on third party apps, a center clock is a fairly simple mod.
Tulsadiver said:
For those that don't want to stock up on third party apps, a center clock is a fairly simple mod.
Click to expand...
Click to collapse
Go on.....
dbama1 said:
Go on.....
Click to expand...
Click to collapse
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Tulsadiver said:
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Click to expand...
Click to collapse
You are the man! Thank you for sharing and for your work. :good:
Thanks
Tulsadiver said:
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Click to expand...
Click to collapse
dunno why, but I can't scan that qr code
tiro_uspsss said:
dunno why, but I can't scan that qr code
Click to expand...
Click to collapse
You have to copy- paste.
Tulsadiver said:
Decompile your SystemUIGoogle.apk. Remove the entire code for the clock from your status_bar.xml located in the res/layout folder.
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />"
Just below the following code
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Put this code
<include layout="@layout/mycenterclock" />
Throw the attached mycenterclock.xml into your res/layout folder and recompile.
Alternately you could put this code in place of the layout I attached.
Code:
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
Click to expand...
Click to collapse
Dear Sir, can you please tell me where to find the "SystemGoogleUI.apk" , thank you in advance.
suey86 said:
Dear Sir, can you please tell me where to find the "SystemGoogleUI.apk" , thank you in advance.
Click to expand...
Click to collapse
system/product/priv-app/SystemUIGoogle
Tulsadiver said:
system/product/priv-app/SystemUIGoogle
Click to expand...
Click to collapse
still can't found the folder, FYI Im using Masik x 5.2, thank you very much for ur respond
suey86 said:
still can't found the folder, FYI Im using Masik x 5.2, thank you very much for ur respond
Click to expand...
Click to collapse
Sorry, that was for Q. Pie is just system/priv-app/SystemUIGoogle but a custom rom is going to be just SystemUI, not SystemUIGoogle.
Tulsadiver said:
Sorry, that was for Q. Pie is just system/priv-app/SystemUIGoogle but a custom rom is going to be just SystemUI, not SystemUIGoogle.
Click to expand...
Click to collapse
one more question Sir if i may,, what app u are using for decompile it ?
suey86 said:
one more question Sir if i may,, what app u are using for decompile it ?
Click to expand...
Click to collapse
Ticklemyandroid
Tulsadiver said:
Ticklemyandroid
Click to expand...
Click to collapse
thank you so much Sir..