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
Related
If somebody has ahnung like me status-cash in systmui can produce
has already tried
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView androidrientation="vertical" android:background="@drawable/stat_sys_signal_2_fully" android:focusable="true" android:descendantFocusability="afterDescendants"
<com.android.systemui.statusbar.TickerView android:id="@id/ticker_2" androidaddingTop="2.0dip" androidaddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:textColor="#ffffffff" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:textColor="#ffffffff" android:id="@id/status_bar_call_ongoing_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
Agree, however, always meldung status-cash not functioned
To me simply does not like black
Thanks for help my problem
Bro, I can't understand a word you said.
Are you German? If so, goto google.com/translate and retype everything in GERMAN and then translate it to ENGLISH. So then we can help you
aerobahn said:
Bro, I can't understand a word you said.
Click to expand...
Click to collapse
when i read the post, i felt like i was on acid...
phlippo said:
when i read the post, i felt like i was on acid...
Click to expand...
Click to collapse
Same here lol ..
I don't know what you want , try to speak english
i almost got it...
i think he wants to know how to get (read out or produce) the status (status-cache) of the system bar.
and from his script, or what it is, the only thing he gets is that status-cache isnt working.
but dont ask me what that means (hell, reading that was fun)
EDIT: anyway, i think this is the wrong forum to post this...
phlippo said:
when i read the post, i felt like i was on acid...
Click to expand...
Click to collapse
He he same her ..
How do I get the status bar in the systemui
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>
Yow Guys, Im kimkimkim09. Today Im Going to Teach you how to add Five Tabs On SystemUI.I Did This Mod on an AOSP statusbar. This can be implemented om GB Devices.The smali files were owned by my master PineappleOwl.So, big credits and thousand thanks for his permission.
Alright,Here We Go:
- First DOWNLOAD the zip file I Linked Below
LINK: http://upfile.mobi/597884
-Then EXTRACT that zip file I provided/linked above.
-Then, DECOMPILE your very own SystemUI.
-After that, MERGE the files that the zip file contains to your SystemUI.
NOTE: Here will be the noob-friendly guide of merging the files that my zip file contains.
-Put the "pineapple" folder to smali/com/pineapple
-Put these files inside your systemUI's layout folder
*kimmy_tab2.xml
*kimmy_tab3.xml
*kimmy_tab4.xml
*kimmy_tab5.xml
NOTE:This files were inside my zip
-Put these file into your systemui's drawable folder.These is the directory "systemui_src/res/drawable"
*tab_indicator.xml
NOTE:This file were inside my zip also.
-Put these png files inside your systemUI's drawable-ldpi , drawable-mdpi etc. folders.
*tab1.png
*tab2.png
*tab3.png
*tab4.png
*tab5.png
*tab_normal.png
*tab_pressed.png
NOTE:This pngs were also inside my zip.
-Open up your status_bar_expanded.xml and add this code.
Code:
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true">
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="55.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
<include layout="@layout/kimtot" />
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
</FrameLayout>
NOTE:The Kimtot layout were the first layout.I separated it from status_bar_expanded.xml to make it neat.But You can directly code your first layout there in the place of the kimtot layout.
-Add this to ids.xml
Code:
<item type"id" name="tabbutton">false</item>
-Recompile Your Work.
-Then Decompile It Again for the smali part.
-Open Up TabButton.smali and search for this value :
0x7f0202f1
And change it with the value of tab_indicator in your public.xml
NOTE:There are several 0x7f0202f1 inside this smali. Be sure to change it ALL with the value of tab_indicator in your public.xml
Then search this value:
0x7f0202fd
And change it with the value of tab1 in your public.xml
-Search these value also:
0x7f0202ff
And change it with the value of tab2 in your public.xml
-Search this also:
0x7f020301
And change it with the value of tab3 in your public.xml
-Search this value:
0x7f020320
And change it with the value of tab4 in your public.xml
-Search this value:
0x7f0202fe
And change it with the value of tab5 in your public.xml
-This will be the last part of the guide. Open up TabsContent.smali and search
0x7f0c00ef
And change it with the value if tabbutton in your public.xml
Recompile It And Sign It. Then Push!!
Thats all guys. This is my first guude here so sorry for the informality.
Press the thanks button guys, I cant accept donations coz I dont have credit card or anything.
Special Thanks to Master PineappleOwl For allowing me to make this guide.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
uhh where is the expanded code sir ?
Mranggapo said:
uhh where is the expanded code sir ?
Click to expand...
Click to collapse
Oh sorry about that. Im on the mobile app. Ill fix it. Please wait im going to change clothes.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Mranggapo said:
uhh where is the expanded code sir ?
Click to expand...
Click to collapse
Fixed It
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
kimkimkim09 said:
Fixed It
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Click to expand...
Click to collapse
Wrap your code sir, so people doesnt confused
Mranggapo said:
Wrap your code sir, so people doesnt confused
Click to expand...
Click to collapse
Done. Heres a screeny guys.
kimkimkim09 said:
Done. Heres a screeny guys.
Click to expand...
Click to collapse
how about putting it in the bottom of status bar expanded?
jasper~ said:
how about putting it in the bottom of status bar expanded?
Click to expand...
Click to collapse
Putting the tab buttons at the bottom?
kimkimkim09 said:
Putting the tab buttons at the bottom?
Click to expand...
Click to collapse
Yeah. Is it possible?
jasper~ said:
Yeah. Is it possible?
Click to expand...
Click to collapse
Yeah its possible I think.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
kimkimkim09 said:
Yeah its possible I think.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Click to expand...
Click to collapse
How do I put the toggles in other tab? For Example, in second tab.
jasper~ said:
How do I put the toggles in other tab? For Example, in second tab.
Click to expand...
Click to collapse
Place its code on kimmy_tab2.xml
kimkimkim09 said:
Place its code on kimmy_tab2.xml
Click to expand...
Click to collapse
From what code it started and end ?
jasper~ said:
From what code it started and end ?
Click to expand...
Click to collapse
Just cut the code if toggles from where you put it at the present and paste it in the other layouts.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
kimkimkim09 said:
Yow Guys, Im kimkimkim09. Today Im Going to Teach you how to add Five Tabs On SystemUI.I Did This Mod on an AOSP statusbar. This can be implemented om GB Devices.The smali files were owned by my master PineappleOwl.So, big credits and thousand thanks for his permission.
Alright,Here We Go:
- First DOWNLOAD the zip file I Linked Below
LINK: http://upfile.mobi/597884
-Then EXTRACT that zip file I provided/linked above.
-Then, DECOMPILE your very own SystemUI.
-After that, MERGE the files that the zip file contains to your SystemUI.
NOTE: Here will be the noob-friendly guide of merging the files that my zip file contains.
-Put the "pineapple" folder to smali/com/pineapple
-Put these files inside your systemUI's layout folder
*kimmy_tab2.xml
*kimmy_tab3.xml
*kimmy_tab4.xml
*kimmy_tab5.xml
NOTE:This files were inside my zip
-Put these file into your systemui's drawable folder.These is the directory "systemui_src/res/drawable"
*tab_indicator.xml
NOTE:This file were inside my zip also.
-Put these png files inside your systemUI's drawable-ldpi , drawable-mdpi etc. folders.
*tab1.png
*tab2.png
*tab3.png
*tab4.png
*tab5.png
*tab_normal.png
*tab_pressed.png
NOTE:This pngs were also inside my zip.
-Open up your status_bar_expanded.xml and add this code.
Code:
<LinearLayout android:layout_gravity="bottom" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip" android:weightSum="1.0" android:layout_alignParentBottom="true">
<com.pineapple.TabUI.TabButton android:gravity="center" android:layout_gravity="center" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="55.0dip" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="55.0dip">
<include layout="@layout/kimtot" />
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab2" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab4" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="55.0dip" android:overScrollMode="never">
<include layout="@layout/kimmy_tab5" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
</FrameLayout>
NOTE:The Kimtot layout were the first layout.I separated it from status_bar_expanded.xml to make it neat.But You can directly code your first layout there in the place of the kimtot layout.
-Add this to ids.xml
Code:
<item type"id" name="tabbutton">false</item>
-Recompile Your Work.
-Then Decompile It Again for the smali part.
-Open Up TabButton.smali and search for this value :
0x7f0202f1
And change it with the value of tab_indicator in your public.xml
NOTE:There are several 0x7f0202f1 inside this smali. Be sure to change it ALL with the value of tab_indicator in your public.xml
Then search this value:
0x7f0202fd
And change it with the value of tab1 in your public.xml
-Search these value also:
0x7f0202ff
And change it with the value of tab2 in your public.xml
-Search this also:
0x7f020301
And change it with the value of tab3 in your public.xml
-Search this value:
0x7f020320
And change it with the value of tab4 in your public.xml
-Search this value:
0x7f0202fe
And change it with the value of tab5 in your public.xml
-This will be the last part of the guide. Open up TabsContent.smali and search
0x7f0c00ef
And change it with the value if tabbutton in your public.xml
Recompile It And Sign It. Then Push!!
Thats all guys. This is my first guude here so sorry for the informality.
Press the thanks button guys, I cant accept donations coz I dont have credit card or anything.
Special Thanks to Master PineappleOwl For allowing me to make this guide.
"Having A Kind Heart In A Cruel World is courage, Not Weakness"
Press The Thanks Button If I Ever Helped You!
Click to expand...
Click to collapse
where is the kimtot layout ?
carlo_autor said:
where is the kimtot layout ?
Click to expand...
Click to collapse
You can replace that with your own layout that will gonna be the first tab. And next time, please do not qoute the whole post. Thanks!
is there any way...or xpose module to remove Sim Label number from signals..in status bar?
i am using xperia m dual...with 4.3 stock rom..rooted..unlocked bootloader.
Pls suggest if any method available?
it's in your systemui
open your systemui.apk, go to res/drawable-hdpi
search your sim label png file, replace it with a transparent png
sorry i don't know exactly what the filename is, coz i don't have a dual
but i think you can figure it yourself
goodluck
actually this method just hide label....it still there and takes space in statusbar....i want to disable label icon.
Amirphp said:
actually this method just hide label....it still there and takes space in statusbar....i want to disable label icon.
Click to expand...
Click to collapse
how about this?
Thanks for reply...but it's changing whole theme...mixture of aosp and Sony ui...looking wired...
There is an xpose I found that remove label in aosp...name as MOtoG.
but that xpose not supported in xperia m dual...
Amirphp said:
is there any way...or xpose module to remove Sim Label number from signals..in status bar?
i am using xperia m dual...with 4.3 stock rom..rooted..unlocked bootloader.
Pls suggest if any method available?
Click to expand...
Click to collapse
Decompile systemui.apk
Go to SystemUI.apk\res\layout folder
open msim_signal_cluster_view.xml
Find
Code:
<ImageView android:layout_gravity="center_vertical" android:id="@id/mobile_slot_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" />
Add this
Code:
android:visibility="gone"
So that new line look like this
Code:
<ImageView android:layout_gravity="center_vertical" android:id="@id/mobile_slot_1" [COLOR="red"]android:visibility="gone"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" />
Do same for @id/mobile_slot_2
Hit thanks if it works
Anmol0022 said:
Decompile systemui.apk
Go to SystemUI.apk\res\layout folder
open msim_signal_cluster_view.xml
Find
Code:
<ImageView android:layout_gravity="center_vertical" android:id="@id/mobile_slot_1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" />
Add this
Code:
android:visibility="gone"
So that new line look like this
Code:
<ImageView android:layout_gravity="center_vertical" android:id="@id/mobile_slot_1" [COLOR="red"]android:visibility="gone"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" />
Do same for @id/mobile_slot_2
Hit thanks if it works
Click to expand...
Click to collapse
Did u test it yourself?
Amirphp said:
Did u test it yourself?
Click to expand...
Click to collapse
Ofcourse ya i also don't like that Sim icon so find the best way myself
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..