Hey guys,
I've been playing around with the SystemUI apk and I can't seem to find where it defines how the notification toggles first display. I wish it would start left aligned instead of in the center so I don't have to wait that second for the bar to stop scrolling to the left. I'm hoping to avoid flashing another SystemUI as I've made some changes to mine that I'd like to not have to figure out again!
So far all I can find is how to change the height of the bar and remove the text, nothing about centering it.
I suppose another option if anyone has done it is remove unwanted toggles to make it short enough that it doesn't scroll. Has anyone done this?
After what seemed like hours of changing numbers to see what happened I managed to find /res/values-port/integers.xml
Changing
Code:
<integer name="config_QuickSettingButtonCount">5</integer>
TO
Code:
<integer name="config_QuickSettingButtonCount">9</integer>
Put all toggles 9 at the top without scrolling. It's a step at least...
Sigh... it was so simple to remove single items... I was looking way deeper than I had to.
/res/values-hdpi/arrays.xml
Contains all 9 toggles... Remove the lines of ones you don't want, change the file in the above post to match the number of settings in the list (if you want)
bradyonly said:
After what seemed like hours of changing numbers to see what happened I managed to find /res/values-port/integers.xml
Changing
Code:
<integer name="config_QuickSettingButtonCount">5</integer>
TO
Code:
<integer name="config_QuickSettingButtonCount">9</integer>
Put all toggles 9 at the top without scrolling. It's a step at least...
Click to expand...
Click to collapse
i cant find /res/values-port/integers.xml on CM9 rom, im assuming its under systemui apk. can you tell me the exact location of the integer.xml file
CM9 doesn't use the same toggles. Its also, not sammisized
Sent from my SGH-I747M using xda app-developers app
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Edit /res/layout/tw_taskbar_extended.xml
And look for this block of code ( It should be line 5, maybe 6 )
Code:
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal"
android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
And change the gravity on the QuickSettingPanel to android:gravity="left" or android:gravity="left|center" to still give it the bounce.
Related
I have been working through the night and all weekend so far to learn how to make my own theme based off of CM6 Nightly builds, but I need some help. I made some changes but can't find where these might be found.
I somehow made a change so that now the time and all notifications that appear at the top are in black letters. This also goes the same for the notifications that appear in the pull down menu. Anyone know what icon would be causing this? See pics below.
Also when I turn on the GPS and wifi, the gps and wifi icons doesn't appear at the top. Anyone know what icons I should be looking for?
{
"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"
}
Forgot to add: I give full credit to all those who came up with the Red themes that I pulled bits and pieces from. I used many sources that I can't remember their names now, but if they want me to specifically name them, let me know and I will.
Dude if you are working in from CM6 (an AOSP build) then the taskbar is white with black letters. Thats how it is by default. You just made the statusbar black, so now it doesn't show up very well (correct me if I am wrong).
Anyway, I believe there is an option in CM6 settings to change the color of text on the statusbar. Or, you can go into framework-res.apk/res/layout/statusbar.xml and change the hex code for the <TextView> elements.
Also, all the statusbar icons are in framework-res.apk/res/drawable-hdmi.
phinnaeus said:
Dude if you are working in from CM6 (an AOSP build) then the taskbar is white with black letters. Thats how it is by default. You just made the statusbar black, so now it doesn't show up very well (correct me if I am wrong).
Anyway, I believe there is an option in CM6 settings to change the color of text on the statusbar. Or, you can go into framework-res.apk/res/layout/statusbar.xml and change the hex code for the <TextView> elements.
Also, all the statusbar icons are in framework-res.apk/res/drawable-hdmi.
Click to expand...
Click to collapse
this is what I needed to know. Thanks
unknown_owner said:
this is what I needed to know. Thanks
Click to expand...
Click to collapse
Any help with the two icons: Gps and wifi not appearing in status bar?
Can someone give me a link or a framework-res.apk to a 2.2 stock theme for HDPI devices?
Like this:
{
"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"
}
+1
I've made it but didn't know how to have notification + clock black text.
+1 I like theme "stock" of android!
someone managed to modify sources.jar ? (black text)
Here's one for an X10 that you could pull apart
http://www.4shared.com/file/fKigopxT/framework-res.html
Vaiofr said:
+1 I like theme "stock" of android!
someone managed to modify sources.jar ? (black text)
Click to expand...
Click to collapse
I can modify sources.jar but don't know which string.
Several times i've tried to do it...my only result was a stock theme but without black text and clock (that remains white).
@HTCDevil
I have the same problem, I tried to change the color but no results
Developers can we help?
Would comparing the two files in this post help shed any light ?
http://forum.xda-developers.com/showpost.php?p=10538233&postcount=1
FlanFlinger said:
Would comparing the two files in this post help shed any light ?
http://forum.xda-developers.com/showpost.php?p=10538233&postcount=1
Click to expand...
Click to collapse
Thanks, but it's only for deleting clock, not for modifying its colours.
I have modified some xml but i think colours want to be changed using a hex editor.
Anyway it's difficult to find the right string with hex.
Many users have done that but didn't answer at this.
I contacted AOSPish's OP asking him about which xml we have to modify...but he did that project time ago...so he didn't remember.
I'm available for cooperation. See you guys
It is not in the xml file but sources.jar!
A change with smali and backsmali with SDK no ?
HTCDevil said:
Thanks, but it's only for deleting clock, not for modifying its colours.
I have modified some xml but i think colours want to be changed using a hex editor.
Anyway it's difficult to find the right string with hex.
Click to expand...
Click to collapse
I thought there might be a change in the xml lurking somewhere that wasn't so obvious.
In theory there should only be a change from the hex for white and black.
I'm sure somewhere in an older theme someone had changed the clock colour, I'll have a search about as it's probably buried in amongst a gazzillion posts somewhere
looking for that awesome light brown buuf dock for the launcherpro that is found on the adw buuf theme, any help?
I'll post it soon.
charliehustl415 said:
looking for that awesome light brown buuf dock for the launcherpro that is found on the adw buuf theme, any help?
Click to expand...
Click to collapse
I'm the developer Fractal Systems.
I am currently updating ADW.BuuF.Theme to include a lot of enhancements.
One of those is to include docks.
The dock you are referring to is generated from code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#DD63594A"
android:endColor="#00000000"
android:angle="90"/>
<padding android:left="4dp"
android:top="1dp"
android:right="4dp"
android:bottom="1dp" />
<corners android:bottomRightRadius="1dp" android:bottomLeftRadius="1dp"
android:topLeftRadius="7dp" android:topRightRadius="7dp"/>
</shape>
I have created actual drawables, but I'm hoping there is a way to display the xml drawable in the dock picker. It hasn't worked for me yet, and I've been unable to replicate the dock I made with the code above.
I'll post it when I get it, even if I have to make it an actual .png graphic resource. I'll need to figure this out first if I want to do that...Still hoping I can use the xml drawables to somehow display them in the dock picker gallery.
everythingisround said:
I'm the developer Fractal Systems.
I am currently updating ADW.BuuF.Theme to include a lot of enhancements.
One of those is to include docks.
The dock you are referring to is generated from code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#DD63594A"
android:endColor="#00000000"
android:angle="90"/>
<padding android:left="4dp"
android:top="1dp"
android:right="4dp"
android:bottom="1dp" />
<corners android:bottomRightRadius="1dp" android:bottomLeftRadius="1dp"
android:topLeftRadius="7dp" android:topRightRadius="7dp"/>
</shape>
I have created actual drawables, but I'm hoping there is a way to display the xml drawable in the dock picker. It hasn't worked for me yet, and I've been unable to replicate the dock I made with the code above.
I'll post it when I get it, even if I have to make it an actual .png graphic resource. I'll need to figure this out first if I want to do that...Still hoping I can use the xml drawables to somehow display them in the dock picker gallery.
Click to expand...
Click to collapse
a png file would be so awesome!
Here it is!
I finally figured out how to change that code into an image file:
http://stackoverflow.com/questions/8519967/suggestions-for-creating-an-img-from-android-xml-drawable
Now, drumroll please...
Download Link: http://fractalsystems.org/images/dock_originalxml.png
{
"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"
}
Also, an FYI, ADW.BuuF.Theme was removed from Android Market...I still have no idea why!
Check out this thread for more info:
http://forum.xda-developers.com/showthread.php?t=1393037
I was looking around the xmls in systemui.apk (it's the only thing I know to do well )
and I saw that in the file \res\layout-sw600dp\status_bar.xml
which obviously is for the tablet view cause starts with
Code:
<com.android.systemui.statusbar.tablet.TabletStatusBarView
has the lines for the softkeys
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
firstly I removed the "systemui:glowBackground="@drawable/ic_sysbar_highlight""
and I thought to put these lines into \res\layout\status_bar.xml to see what happens to phone view. I was expecting a SystemUI FC but no! It worked and I got a view like this.
{
"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"
}
home key works fine, back key works in some apps, not all but sometimes it worked everywhere. As a kill button, it worked everywhere(some roms has an option to kill apps with pressing for some time the back key)
SO, if anyone can work on this, as an idea and make it work flawlessly, it would be great.
In addition, it would be also great if we had the statusbar at the bottom, not the top.
I'm not a dev, I just play with xmls, so I can't make it work the right way. You can try it and see how it works.
would be perfect to stay like this (but with all the default applications):
yeap, something like that but with stock density and all apps acting normally.
I'd use it. Would like a search key with the bottom nav buttons, ideally.
something like combining the status bar and the nav bar would be excellent. So much wasted space on the screen with a bar on top and bottom :/
Its gonna be one of the most eye candy MOD till date . Wish u luck with ur idea and hopefully respected DEV will look into it //
+1 for the idea ... hope you guys can get it to work
well, devs tend to not reply to noobs, although I understand why (the would have to do this all day)
on my way home i was thinking the same thing!
i also remembered that there was a mod for SGS2
that puts the SystemUI on the bottom
i will take a look if i can find it!
I might look into getting the tablet mode for the nav bar/status bar without the increased dpi.
I'll share my results with you guys
Sent from my Galaxy Nexus using xda premium
take a look at this mod for cm9
http://forum.xda-developers.com/showthread.php?t=1531222
you can make the systemui go to the bottem
if you edit the framework-res.apk you can make the navbar go away
or someone has to port it to aokp
then put the buttons in it en its good to go
hmmm really interisting idea. I like it.
we have work to do tonight
i found out that
the nav bar can be disabled
by decompiling the framework-res.apk
open /res/values/bools.xml en set config_showNavigationBar False
i think the position-code of the systemui statusbar is in
/res/layout/status_bar_tracking.xml
i want to try this out myself but when i compile the systemui and push it back to my device
it just chrashes..
or is there a special way of compiling the systemui?
i already tried putting in de original resource.arc
en tried signing it
blackdub370 said:
would be perfect to stay like this (but with all the default applications):
Click to expand...
Click to collapse
same for me...it would be perfect..
[Solved] [Q] how to remove the "%" from the battery percentage in the the status bar
I've been trying to figure out how to remove the "%" from the battery percentage in the the status bar on TW 4.3. Ive looked through the SystemUI res/values/strings trying to find out how but haven't figured it out. Does anyone know if this is the right place to look or how I should go about it? The screenshot shows both the percentage and the battery icon from Dandroid. The idea I have is to change the icon so its just the bar and the end user can turn the percentage on or off in the settings.
{
"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"
}
Anyone?
For stock u go to settings, my device, display, and theres a box to check if u want the % display. Uncheck it if its unavailable
Sent from my SPH-L710 using xda app-developers app
I don't think that is what he is asking. I think he wants to remove the actual % symbol. I have never looked for that before but now I'm curious as well.
Metalfan78 is right. What I'm interested in doing is remove the number from the cm battery icon so its just the bar. Then turn on the battery percentage in settings but without the "%" symbol so in the end it still looks like the cm battery icon. Later on I'd like to create the option in settings to hide the battery icon as well.
I'd like to have the icon optional too. Right now I just remove the battery xml's in SystemUI/drawable.
Well I like having it there for me. My eventual goal is to make it optional. Just like the percentage.
That would be a nice mod. Rompnit's battery mod is nice, too many options for me though, lol.
Deleted
A BIG thank you to @rompnit for helping me figure this out! In the SystemUI.apk go to res/values/strings and find
Code:
<string name="status_bar_settings_battery_meter_format">%d%%</string>
Remove the two "%" symbols near the end so that the code looks like the following
Code:
<string name="status_bar_settings_battery_meter_format">%d</string>
Recompile and that should do it. :highfive:
That's sweet!