[MOD][TUTORIAL] 5x5 Rosie workspace & launcher - Hero CDMA Themes and Apps

{
"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"
}
NOTE: After some recent experimentation with another user who is trying to implement this, I came to the realization that in order to change the workspace grid numbers, all that needs to be changed is the cell size. The cellWidth and cellHeight are irrelevant.
TUTORIAL
NOTE: This tutorial uses the Rosie.apk from the latest ZenEXP ROM for it's example. This ROM is for the Hero, which is 320x480. I will take a look at other launchers, just post here which launcher you are using. Also, this will mess up your widget sizes. I plan on posting the widgets I use to this post that will work on a 5x5 workspace grid.
First off, you need to download the awesome APKTOOL by Brut.
http://forum.xda-developers.com/showthread.php?t=640592
Make sure you follow his directions on how to get it up and running and load the frameworks files for your particular ROM (Very important).
Find the launcher APK you want to modify, in this case, we'll be modifying the Rosie.apk from the latest ZenEXP ROM. Run the APKTOOL as follows from a command prompt:
Code:
<path>\apktool d -t <framework file name> Rosie.apk
Browse to <path>\Rosie\res\layout-port and open workspace_screen.xml (note that everything is decoded for you!). Change the following, keeping in mind that this example uses a 320x480 screen resolution:
Code:
launcher:cellWidth="64.0dip" [I](320px / 64px = 5 cells)[/I]
launcher:cellHeight="82.2dip" [I](411px / 82.2px = 5 cells)[/I]
[I](NOTE: 480px - 25px status bar - 44px launcher bar = 411px)[/I]
launcher:longAxisEndPadding="44.0dip" [I](Used to be 55, this will add 11px to the workspace screen)[/I]
launcher:shortAxisCells="5" [I](Make sure this corresponds with your pixels above)[/I]
launcher:longAxisCells="5" [I](Make sure this corresponds with your pixels above)[/I]
Browse to <path>\Rosie\res\values, open dimens.xml and change the following:
Code:
<dimen name="cell_width">64.0dip</dimen>
<dimen name="cell_height">82.2dip</dimen>
[I](Make sure this corresponds to the numbers used previously)[/I]
Browse to <path>\Rosie\res\values-normal, open dimens.xml and change the following:
Code:
<dimen name="workspace_cellWidth">64.0dip</dimen>
<dimen name="workspace_cellHeight">82.2dip</dimen>
<dimen name="workspace_longAxisEndPadding">44.0dip</dimen>
<dimen name="launcher_control_height">44.0dip</dimen>
[I](Make sure this corresponds to the numbers used previously)[/I]
To expand the number of apps in the launcher drawer, change the following in the same file:
<dimen name="launcher_aagv_column_width">64.0px</dimen>
<dimen name="application_boxed_tv_layout_height">82.2px</dimen>
<dimen name="application_boxed_tv_layout_width">64.0px</dimen>
<dimen name="application_shortcut_layout_height">82.2px</dimen>
<dimen name="application_shortcut_layout_width">64.0px</dimen>
NOTE: There are a lot of padding code lines that can be changed to make the icons larger.
Browse to <path>\Rosie\res\values-normal, open integers.xml and change the following:
Code:
<integer name="folder_grid_columns">5</integer>
<integer name="workspace_screen_cl_short_axis_cells">5</integer>
<integer name="workspace_screen_cl_long_axis_cells">5</integer>
<integer name="workspace_shortAxisCells">5</integer>
<integer name="workspace_longAxisCells">5</integer>
<integer name="allprogram_grid_columns">5</integer>
[I](Make sure this corresponds to the numbers used previously)[/I]
Browse to <path>\Rosie\res\values-port, open integers.xml and change the following:
Code:
<integer name="folder_grid_columns">5</integer>
That's it! Open a command prompt and package it back up and make sure you sign the finished apk:
Code:
<path>\apktool build Rosie
I'm going to start digging through the stock launcher and launcher2 to see if the same thing can be done. As mentioned at the top, this will modify your widget sizing. An example of how to change the HTC agenda widget cell size is below:
Run APKTOOL on your chosen widget. Browse to <path>\htccalendarwidgets\smali\com\htc\htccalendarwidgets, open MyWidgetView.smali, search for "spanx" and change the following:
Code:
.method public getSpanX()I
.locals 1
.prologue
.line 140
const/4 v0, 0x5 [I]<------ 5 CELLS WIDE[/I]
return v0
.end method
.method public getSpanY()I
.locals 1
.prologue
.line 144
const/4 v0, 0x5 [I]<------ 5 CELLS TALL[/I]
return v0
.end method
Go here for an update.zip with the modded Rosie.apk file, if you want to mess around with it.
To resize non-HTC widgets, decompile the apk per the instructions above and locate the xml file in <path>\res\xml that contains the following (or something similar):
Code:
<appwidget-provider android:minWidth="320.0dip" android:minHeight="64.0dip"
Edit the dip sizes per your new cell size. The example above is the equivelant of a 4x1 widget. If that doesn't work and your widget is taking up too much space, then lessen the dip sizes until it does work. This is because the xml file is calling for the minWidth and minHeight.
I'd like to thank Brut for the awesome apktool and Britoso for some smali editing.

Very nice.

This looks awesome. Have you seen any problems with the correct program opening or any other issues?

Re: [MOD] 4x5 workspace & 5 column launcher
This looks awesome. Have you seen any problems with the correct program opening or any other issues?
Click to expand...
Click to collapse
No problems at all. I can delete stuff too. I'm going to test it as is tonight. Only issue is some widgets need to be modded a bit.
-------------------------------------
Sent via the XDA Tapatalk App

this **** is awesome!
it looks alot like the Sense 2.5 for WinMo.

SoCalSpecialist said:
this **** is awesome!
it looks alot like the Sense 2.5 for WinMo.
Click to expand...
Click to collapse
A little MaxManila, huh? I'm trying a 5x6 layout right now. It's gettin' crazy up in here!

That's awesome! I really like it.

signals23 said:
A little MaxManila, huh? I'm trying a 5x6 layout right now. It's gettin' crazy up in here!
Click to expand...
Click to collapse
ahahhaha dope!
bring it..we're all ready for it!

I tried a 5x6 workspace last night, but I think that went a little too far. I think I'll try a 5x5 one next.
I'm still working on a tutorial and will post here when it's done.
BTW, which ROM's and Launchers are people using so I can look at the xml's?

Updated the OP with a Rosie.apk tutorial. Let me know which Launchers you guys are using and I'll take a look at them.

keeping an eye on this one. looks interesting!

signals23 said:
I tried a 5x6 workspace last night, but I think that went a little too far. I think I'll try a 5x5 one next.
I'm still working on a tutorial and will post here when it's done.
BTW, which ROM's and Launchers are people using so I can look at the xml's?
Click to expand...
Click to collapse
I personally love the Helix Launcher... modding that home replacement to go 5x5 would be great!

TheSeanTeam said:
I personally love the Helix Launcher... modding that home replacement to go 5x5 would be great!
Click to expand...
Click to collapse
Looks like he built it off of Launcher2, it should be pretty easy. I'll ask for his permission first.

I love the 4x5 workspace...awesome work! Do you think this can be done in either damagecontrol 2.0.8 or fresh 2.1.2?

jstamm said:
I love the 4x5 workspace...awesome work! Do you think this can be done in either damagecontrol 2.0.8 or fresh 2.1.2?
Click to expand...
Click to collapse
I'll go pull the launchers from both, it should be the same. I'll post if successful.

Damage Control
signals23 said:
I'll go pull the launchers from both, it should be the same. I'll post if successful.
Click to expand...
Click to collapse
I am running the latest DamageControl rom (2.9.01) and most of the items are not where you indicate in your tutorial.
If you could have a look it would be appreciated.

Master K said:
I am running the latest DamageControl rom (2.9.01) and most of the items are not where you indicate in your tutorial.
If you could have a look it would be appreciated.
Click to expand...
Click to collapse
OK. I'll poke around after I get some work done.

signals23 said:
OK. I'll poke around after I get some work done.
Click to expand...
Click to collapse
@Master K
Took a quick look at DC 2.9.01. Looks like they pushed all of the info to the values folders and left the xml's as placeholders. This is really the way it should've been since the dimens.xml and integers.xml files override the layout xml's anyway. Regardless, check out the dimens.xml and integers.xml in the following folders, everything should correspond then:
values-normal
values-normal-port
values-normal-port-mdpi
values-port
Let me know how that goes. I'm not running DC, so I can't test it right now.

signals23 said:
Let me know how that goes. I'm not running DC, so I can't test it right now.
Click to expand...
Click to collapse
Well I thought I did it all correctly but when I pushed over the new Rosie.apk it would not launch. Just a black screen on reboot and then other things FC'ed. So I put back the original Rosie and everything was fine.
If someone with more experience editing inside these APK's gets this to work let me know.
Thanks!

Master K said:
Well I thought I did it all correctly but when I pushed over the new Rosie.apk it would not launch. Just a black screen on reboot and then other things FC'ed. So I put back the original Rosie and everything was fine.
If someone with more experience editing inside these APK's gets this to work let me know.
Thanks!
Click to expand...
Click to collapse
I'll edit it tonight and will post the apk for you to test.
Out of curiosity, did you setup the frameworks in apktool correctly?

Related

[Mod] ADW Launcher/launcher Pro with transparent icon text (label) background

Note: The adw part has been abandoned because the new ADW launcher supports themes and I have released a ADW theme for this. ADW EX even has a setting for this.
What is this:
I got tired of creating morphs to make the icon-text (label) background transparent (so many versions, painful morphing on froyo), so heres a patched apk.
Launcher Pro: method and download here
Whats changed:
Its the same as the stock except that BubbleTextView.smali has one line commented.
To Install:
1) Backup settings and desktop in ADWsettings
2) uninstall any existing version. (using settings->applications or adb uninstall org.adw.launcher)
3) then push the apk to /system/app/
After installing restore settings and add back your widgets.
Code:
adb remount
adb push org.adw.launcher.apk /system/app/
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
All credit to AnderWeb for this launcher. Official site.
Downloads:
[0.9.0 apk]
smali
Hmm, cool. Did the same for launcher-pro. Any idea wht controls the icon text color ?
Daneshm90 said:
Hmm, cool. Did the same for launcher-pro. Any idea wht controls the icon text color ?
Click to expand...
Click to collapse
havent looked for that yet. the src is here
What is the mod doing? I can't really tell. =X
JCopernicus said:
What is the mod doing? I can't really tell. =X
Click to expand...
Click to collapse
Its removing the black background u normally have behind icon text.
dude, there's an option for this... take a look
deimdos said:
dude, there's an option for this... take a look
Click to expand...
Click to collapse
dude there isnt. This mod removes the background behind icon text, not the image u get when u select/highlight an icon.
deimdos said:
dude, there's an option for this... take a look
Click to expand...
Click to collapse
Umm, no its not... Only the option to hide the text completely, not the background.
Daneshm90 said:
Hmm, cool. Did the same for launcher-pro. Any idea wht controls the icon text color ?
Click to expand...
Click to collapse
I dont think it sets a color hence it gets a default white (could be wrong)
see Line 807 in Launcher.java. method createShortcut()
Code:
View createShortcut(int layoutResId, ViewGroup parent, ApplicationInfo info) {
TextView favorite = (TextView) mInflater.inflate(layoutResId, parent, false);
if (!info.filtered) {
info.icon = Utilities.createIconThumbnail(info.icon, this);
info.filtered = true;
}
favorite.setCompoundDrawablesWithIntrinsicBounds(null, info.icon, null, null);
if(!uiHideLabels)favorite.setText(info.title);
[COLOR="Blue"] //britoso: try adding "if(!uiHideLabels) favorite.setTextColor(ColorStateList.valueOf(0xdddddd));"[/COLOR]
favorite.setTag(info);
favorite.setOnClickListener(this);
return favorite;
}
Daneshm90 said:
Its removing the black background u normally have behind icon text.
Click to expand...
Click to collapse
Ah okay, I don't use labels and I always have a pretty dark background. hehe
britoso said:
I dont think it sets a color hence it gets a default white (could be wrong)
see Line 807 in Launcher.java. method createShortcut()
Code:
View createShortcut(int layoutResId, ViewGroup parent, ApplicationInfo info) {
TextView favorite = (TextView) mInflater.inflate(layoutResId, parent, false);
if (!info.filtered) {
info.icon = Utilities.createIconThumbnail(info.icon, this);
info.filtered = true;
}
favorite.setCompoundDrawablesWithIntrinsicBounds(null, info.icon, null, null);
if(!uiHideLabels)favorite.setText(info.title);
[COLOR="Blue"] //britoso: try adding "if(!uiHideLabels) favorite.setTextColor(ColorStateList.valueOf(0xdddddd));"[/COLOR]
favorite.setTag(info);
favorite.setOnClickListener(this);
return favorite;
}
Click to expand...
Click to collapse
Awesome, it turns out its styles.xml that controls the color. bright_text_dark_focused.xml controls the text color of the icons in the drawer.
Also dont know about adw, but for launcher pro, u can just edit colors.xml to remove the icon text background, dont even have to touch the smali files.
Heres wht it looks like.
Very cool, should send tweet/pm over to wysie, see if he can roll it into the rest of the color modifications
Daneshm90 said:
Awesome, it turns out its styles.xml that controls the color. bright_text_dark_focused.xml controls the text color of the icons in the drawer.
Also dont know about adw, but for launcher pro, u can just edit colors.xml to remove the icon text background, dont even have to touch the smali files.
Heres wht it looks like.
Click to expand...
Click to collapse
It is set in an xml too but it didnt work when I tried it months ago.
JCopernicus said:
Very cool, should send tweet/pm over to wysie, see if he can roll it into the rest of the color modifications
Click to expand...
Click to collapse
Well its launcher dependant, so prolly he'll ignore me
Unless he does it for their stock launcher which is adw.
britoso said:
It is set in an xml too but it didnt work when I tried it months ago.
Click to expand...
Click to collapse
Hmm wierd, i guess its launcher dependant.
Daneshm90 said:
Awesome, it turns out its styles.xml that controls the color. bright_text_dark_focused.xml controls the text color of the icons in the drawer.
Also dont know about adw, but for launcher pro, u can just edit colors.xml to remove the icon text background, dont even have to touch the smali files.
Heres wht it looks like.
Click to expand...
Click to collapse
do mind sharing your edited color.xml(bright_text_dark_focused?) for launcher=pro?
icegad said:
do mind sharing your edited color.xml(bright_text_dark_focused?) for launcher=pro?
Click to expand...
Click to collapse
Sure here try this, its the whole apk, resigned ofcourse so u gotta uninstall ur current version.
Link
Heres the bold version, the desktop icon text are bold.
Link
Daneshm90 said:
Sure here try this, its the whole apk, resigned ofcourse so u gotta uninstall ur current version.
Link
Heres the bold version, the desktop icon text are bold.
Link
Click to expand...
Click to collapse
thx.. work fine...what .xml did you edit exactly ..so i can copy to future launcher pro versions
edit do you have a white bold? for dark wallpapers
Awesome, it turns out its styles.xml that controls the color. bright_text_dark_focused.xml controls the text color of the icons in the drawer.
Colors.xml to remove the icon text background.
To add bold, just add this to styles.xml
<item name="android:textStyle">bold</item>
App bg
I love this launcher

[REQ] Inverse/Black FRF91 App Morphs

Some apps seem like they're better off with black backgrounds and white text, like the stock SMS app, GMail, Voice, Talk, etc. Is this easily done or am I asking for a lot?
+1
I would love to see this happen as well!
I have no idea what I'm doing, but I figure I might as well try. Starting messing with framework-res.apk, these look like all of the images that are displayed on the bottom menu. Would totally love some pointers on turning this into a functioning morph; Wiki is down
Anyone care to help me take [REQ] to [WIP]?
Here are some screenshots of what I'm trying/want to see done. We've got AMOLED screens, and black looks good damn it. Google gussied the whole interface up with a whole bunch of black text on a white background; white text on a black background, on an AMOLED screen = contrast+++, readability +++, and it looks good.
Attached are more mockups, I have a LOT of free time, all I need are some pointers.
{
"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"
}
Some Pointers
sheik124 , A few things ive learned in the past few days with countless experiments on my roms/framework.apk is this.
1. messing with the framework while its still in the rom wont pass verification when flashing.
2. pictures can change in color (some size) but the names MUST remain the same
3. Pick and choose from roms you like FIRST then after you get the hand of overwriting and figuring out which png file does what and which drawable folder to use then play with your own ideas.
4. FONT COLOR IS A BIATCH to find and to change....thank got for CM6 with built in settings just for that hex file headache!!!!!!!
5. ANDROID COMMANDER IS A LIFE SAVER!!!!!!! JUST FIND THE FRAMEWORK OF THE ORIGINAL ROM IN SYSTEM FRAMEWORK AND PUSH YOUR MODDED (VERY OWN THEMED) VERSION AND FIGURE OUT WHETHER YOUR A FAN OR NOT.
6. You can change EVERYTHING from notification icons to focus colors of tabs or even the entire notification......if you have any questions or hints for me.... PM ME ill even take requests if you send me your rom...or just the original framework...its a new hobby!!!!!!!
Thanks for the pointers. I'm working on MCR R21, and plan on applying my changes as a morph so I don't have to worry about any issues resigning/pushing apks.
I already figured I had to keep the file names the same, I tried making a sample morph with just the menu icons I already shopped and it worked, I can't figure out how to change the background menu color + menu text...
Sent from my Nexus One using XDA App
Its menu_backround.9 and menu_backround_fill_parent_width.9 in the drawable-hdpi folder. As for the Font color....FIGURING OUT THAT is a Headache but the Menu_item.xml is the file.......There are long drawn out threads and info on editiing those....kinda tricky........hope it helps. Oh and to test it out......just change them to a bright color....and push the framework.....AFTER YOU PUT YOUR CURRENT FRAMEWORK IN A SAFE PLACE OFCOURSE
drexman8244 said:
Its menu_backround.9 and menu_backround_fill_parent_width.9 in the drawable-hdpi folder. As for the Font color....FIGURING OUT THAT is a Headache but the Menu_item.xml is the file.......There are long drawn out threads and info on editiing those....kinda tricky........hope it helps. Oh and to test it out......just change them to a bright color....and push the framework.....AFTER YOU PUT YOUR CURRENT FRAMEWORK IN A SAFE PLACE OFCOURSE
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8" ?>
- <!-- /* //device/apps/common/assets/res/any/layout/menu_item.xml
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
- <MenuItemView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:focusable="true">
<TextView android:id="@+id/index" android:paddingLeft="0dip" android:paddingTop="1dip" android:paddingRight="8dip" android:paddingBottom="0dip" android:layout_width="17dip" android:layout_height="wrap_content" android:includeFontPadding="false" />
<ImageView android:id="@+id/check" android:paddingLeft="3dip" android:paddingTop="3dip" android:paddingRight="3dip" android:paddingBottom="0dip" android:src="@drawable/menuitem_checkbox" android:scaleType="fitCenter" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:id="@+id/title" android:paddingLeft="0dip" android:paddingTop="1dip" android:paddingRight="0dip" android:paddingBottom="2dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:includeFontPadding="false" />
<TextView android:id="@+id/shortcut" android:paddingLeft="8dip" android:paddingTop="0dip" android:paddingRight="0dip" android:paddingBottom="0dip" android:layout_width="20dip" android:layout_height="wrap_content" android:gravity="center_horizontal" android:includeFontPadding="true" />
</MenuItemView>
That's menu_item.xml from the 2.2 source right there, doesn't look like it codes for any text colors
this is a great idea. i would LOVE to inverse the color from white to black of gmail, messaging, gtalk, ALL apps that have white, change to black. gonna watch this thread
Well, I've been messing with files for two days now and no luck. This was the best I could do:
Got the background 9 patch files right...couldn't figure out how to change the text. Those two unchanged icons are from LauncherPro - didn't want to tear the apk apart to change those images unless everything else worked.
No luck with Mms.apk either. I tried using apktool so I could edit all the xml files I needed to, but what happens to res/values after recompiling it? I figured it became part of classes.dex, but clearly something I changed didn't take right...
Oh well. Now to figure out how to revert everything to stock...
Mind sharing your modded menu setting files?
I'd love a zip of the backgrounds and icons if you care to share
Even though text cannot be changed atm, I reckon it looks nice. Also, I'm used to where the settings are placed so I think I can live without text.
Really f ing annoying that a lot of apps bring their own setting icons to the table, but alas, nothing to do about that. I normally just mod the ones I use the most..
-e
Eddiemc said:
Mind sharing your modded menu setting files?
I'd love a zip of the backgrounds and icons if you care to share
Even though text cannot be changed atm, I reckon it looks nice. Also, I'm used to where the settings are placed so I think I can live without text.
Really f ing annoying that a lot of apps bring their own setting icons to the table, but alas, nothing to do about that. I normally just mod the ones I use the most..
-e
Click to expand...
Click to collapse
Just so I don't end up making a file of the wrong stuff, you want the icons and the black menu BG, right? The green highlight is from installing a Desire notification bar
EDIT: Also (not pictured), menu popups with text items only have black text on BG (unless highlighted), totally illegible. You sure you want a morph of this?
sheik124 said:
Just so I don't end up making a file of the wrong stuff, you want the icons and the black menu BG, right? The green highlight is from installing a Desire notification bar
EDIT: Also (not pictured), menu popups with text items only have black text on BG (unless highlighted), totally illegible. You sure you want a morph of this?
Click to expand...
Click to collapse
Yea, don't need the highlights, only the menu background 9 patch files and icons
Doing a bit of cherrypickin' from different roms/morphs to create a nice interface for my own phone, and I'd like to give this a stab
thanks mate
-E
Here you go boss, enjoy. I also included an .ava file; if you want to make any other ic_menu icons look the same in Photoshop (from Mms.apk, for example) then just go to Image->Adjustments->Variations, and load the .ava file. Don't make any changes to the selections and it'll bring it to the same shade of gray.
In other news, what I need to change seems to be in themes.xml (dug through the stock framework source for any references to "menu_background") and it's clear why my change is *not* working.
res\values\themes.xml
Code:
<!-- Panel attributes -->
<item name="panelBackground">@android:drawable/menu_background</item>
<item name="panelFullBackground">@android:drawable/menu_background_fill_parent_width</item>
<item name="panelColorBackground">#fff</item>
<item name="panelColorForeground">?android:attr/textColorPrimaryInverse</item>
<item name="panelTextAppearance">?android:attr/textAppearanceInverse</item>
See there? The panel background is still defined as white, so Android's inverse colors automatically give us black text. The only problem is I don't know what to do with a changed themes.xml; the values folder doesn't even exist in the compiled apk and I'll admit I know very little about Android's inner workings. Apktool seems to be making a mess out of things with 2.2
Wow, kewl
Thanks a lot mate, big props.
I'm stumped when it comes to the xml changes for the white text, I have looked at it but it's hard..
found a good guide though:
www.jbthemes.com/AndroidThemeingGuide/The Ultimate Android Themeing Guide.pdf
There's another guy doing the dirty/clean themes that seems to be looking at it too, so I'm counting on one of you to sort it out
Regardless, thanks again.
-E
Here, sassyness77 has this in his to do list. Perhaps you two could combine forces?
http://forum.xda-developers.com/showthread.php?t=656388
Eddiemc said:
Wow, kewl
Thanks a lot mate, big props.
I'm stumped when it comes to the xml changes for the white text, I have looked at it but it's hard..
found a good guide though:
www.jbthemes.com/AndroidThemeingGuide/The Ultimate Android Themeing Guide.pdf
There's another guy doing the dirty/clean themes that seems to be looking at it too, so I'm counting on one of you to sort it out
Regardless, thanks again.
-E
Here, sassyness77 has this in his to do list. Perhaps you two could combine forces?
http://forum.xda-developers.com/showthread.php?t=656388
Click to expand...
Click to collapse
I sent him a PM, we'll see.
I do have to say I feel incredibly stupid knowing full well that somebody knows how to do this. CM6 RC1 screenshot of Mms.apk (ignore the themed look, that's a Galaxy S theme...):
It's possible!!! If I knew how I'd definitely waste my time doing it for, well, lots of other apps.
CM5.08 had black SMS too.
Alright I hope somebody out there can help us on this one! I'm stuck at the same EXACT spot but haven't taken a good look at the menu.xml yet....
I wonder who made the changes to the mms.apk for cm 508-6? If we found them maybe they could help us on this.
http://www.engadget.com/photos/google-nexus-s-hands-on/#3644044
Google finally did it on their own (at least for the settings icons).

[HTC Sense] DIY Theming Projects

I started this project to get an appreciation for all the work that goes into a theme. Mission accomplished.
I decided that this thread would be better suited for themers who are looking to make their themes more complete but don't have the time to go searching through decompiled apks looking for values. I hope this helps. Need me to be more specific, just post and I'll update the thread as I can.
Thanks to:
Myn -- Letting me contribute to his project, and ending my ROM flashing addiction.
JsChiSurf -- Continuing to answer my questions, this guy does absolutely amazing work.
Rujeluss22 -- Pointing me in the right direction when I first started
Manup456 -- The man whose theme I've loved since I first saw it and made me want to theme.
GIMPSTA -- Author of HTC_IME_Mod online kitchen, thank you for showing me what I was missing.
HtcDialer -- for clarity, when I speak of the dialer I am talking about the keypad that you see when you open the phone application. In order to completely change the look and feel of the keypad you must make changes to (3) different apk's: HtcDialer.apk, Phone.apk, and com.htc.resources.apk.
HtcDialer.apk filepath: /res/values/styles.xml and the incall screen dialer keypad is in Phone.apk filepath: /res/values-hdpi/styles.xml.
Inside the xml you are looking for (3) blocks of code.
Code:
<style name="text_style_dialer_button_number">
<style name="text_style_dialer_button_alphabet">
<style name="text_style_dialer_button_zero_number">
In these blocks of code you will be looking for lines like:
Code:
<item name="android:textColor">#ff00cc00</item>
<item name="android:shadowColor">#00000000</item>
(Note: if you are editing a completely stock dialer it may have @color[some stuff] instead of #[AARRGGBB] )
This should help you get a grasp of where all the icons are located.
{
"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"
}
Some more pictures of Warm 2.2 dialer:
HTC_IME -- This is by far the more difficult of the two projects that I have taken on. I have always loved the HTC_IME_mod and now hopefully you themers out there can do your magic on the original apk.
Some pictures:
The PNG editing in this application was by far the easiest part. All of the icons for this are in drawable-hdpi. All of the keys that we are concerned with are saphire_somename.
I had originally thought that the colors would be controlled by /res/values/styles.xml. This is not the case. Thanks to GIMPSTA, all you need to edit is:
HTC_IME/com/htc/android/htcime/ezsip/KeyboardView.smali
HTC_IME/com/htc/android/htcime/ezsip/Port20KeySIPView.smali
look for: Primary Color -->
Code:
const/high16 v6, -0x100
replace with: const v6, 0xAARRGGBB
Alt Color -->
Code:
const v6, -0x888889
replace with: const v6, 0xAARRGGBB
Tertiary Color -->
Code:
const/4 v6, -0x1
Make sure to comment out any line that is invoking a shadow layer.
So
Code:
invoke-virtual {v10, v6, v7, v8, v9}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V
would become
Code:
#invoke-virtual {v10, v6, v7, v8, v9}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V
If you have any questions feel free to PM me. I hope this helps you themers out there with your todo lists.
Up next:
MMS.apk
Htc_Contacts
[Reserved for HTC_IME]
Thx - I succesfully edited the dialer and htcframework - do you know which values i need to edit for the incall screen dialer? Maybe values are only different since I`m on DHD - but they should be basically the same.
My best gues are these entries:
<style name="TextAppearance.DialerLine1" parent="@android:style/TextAppearance.Widget.Button">
<item name="android:textSize">32.0sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/dialer_button_text</item>
</style>
<style name="TextAppearance.DialerLine2" parent="@android:style/TextAppearance.Widget.Button">
<item name="android:textSize">18.0sp</item>
<item name="android:textColor">@color/dialer_button_text</item>
Edit - unfortunatly HTC changed a lot with the latest Sense version, so this does not work on DHD...
he_stheone64 said:
Edit - unfortunatly HTC changed a lot with the latest Sense version, so this does not work on DHD...
Click to expand...
Click to collapse
Values for HtcDialer.apk for DHD are located in /values-hdpi/styles.xml
-CMYLXGO
DJZager said:
[Reserved for HTC_IME]
Click to expand...
Click to collapse
Could u provide line numbers for the applicable lines of code in smali to designate exactly where u mean? ...at least for Stock APKs?
PS. I dont mean the ". Line #", but the actual line # the given code can be found.
I'm looking at KeyboardView.smali ....and sh*t is it daunting! Don't see "const/high16 ,v6 -0x100" (plaese don't tell me they change Luke m10's, lol!
Edit: well atleast I finally remembered that Linux provides a search option ...making things a bit easier, lol
K, I just used my search function to check every instance of;
"const/high16"
to find;
"const/high16 v6, -0x100"
...and i assure u it does not exist in either 'KeyboardView.smali' or 'Port20KeySIPView.smali' in my copy of HTC_IME.apk. Neither does 'const ,v6'. The closest I've found was;
"const/high16 v0, 0x100".
It is a 'Trace' version tho. Could that be it?
.....I'm running Sense 3.0 with SynergyROM on my ThunderBolt.
CleveRuse said:
K, I just used my search function to check every instance of;
"const/high16"
to find;
"const/high16 v6, -0x100"
...and i assure u it does not exist in either 'KeyboardView.smali' or 'Port20KeySIPView.smali' in my copy of HTC_IME.apk. Neither does 'const ,v6'. The closest I've found was;
"const/high16 v0, 0x100".
It is a 'Trace' version tho. Could that be it?
.....I'm running Sense 3.0 with SynergyROM on my ThunderBolt.
Click to expand...
Click to collapse
That's exactly why.
tommytomatoe said:
That's exactly why.
Click to expand...
Click to collapse
LOL ....Thnx
tommytomatoe said:
That's exactly why.
Click to expand...
Click to collapse
...wait, so then how am I supposed to know wut I'm doing, LOL? It's all gibberish in there!
Sent from my ADR6400L using XDA App
Could you post what lines do the overscroll please? I'm do tiered of green
Sent from my PC36100 using XDA App

[theme] (Kratos) Black JobManager + Settings ++

Just a black version jobmanager.apk (Taskmanager).
{
"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"
}
The HELP section remains white.
BACKUP your current jobmanager.apk before proseeding!
Flash via recovery OR extract jobmanager.apk from zip and overwrite to /system/app/ ++ set owner and permissions.
Download
------
Should have done this earlier, sorry mate.
sohrab1985 finished up the submenu's in the manage application section -post18-
-----
Also upped a modified service.jar which removes the USB Debugging message in the quickpannel..
Download
Enjoy
biopsin said:
Just a black version jobmanager.apk (Taskmanager).
The HELP section remains white.
OBS! BACKUP your current jobmanager.apk before proseeding!
Flash via recovery OR extract jobmanager.apk from zip and overwrite to /system/app/ ++ set owner and permissions.
Enjoy
Click to expand...
Click to collapse
Good job, mate.
I have a question, have tried changing the color of "Mange Application" part in the "Settings" to black?
I see what u mean... no joy ..cant find the parent.
biopsin said:
I see what u mean... no joy ..cant find the parent.
Click to expand...
Click to collapse
I know where it is, its the same one for Battery Usage, but there is just one problem. I'll tell you later, I have a class now.
Nice, lets crack this nutt
Noticed Nexus S have a black version of Manage applications/battery use/Running services/Mem usage
..so guess im on a Rom hunt for now
In Settings/res/value/style.xml change:
<style name="NoTitleWhiteStyle" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:listViewStyle">@android:style/Widget.ListView.White</item>
to
<style name="NoTitleWhiteStyle" parent="@android:style/Theme.Black">
<item name="android:listViewStyle">@android:style/Widget.ListView</item>
You can see the problem in the pictures.
sohrab1985 said:
You can see the problem in the pictures.
Click to expand...
Click to collapse
Yes I see, the text is all shadow, but how did the white appear in "Running" tab, You ex already edited the running_processes_item.xml.xml?
EDIT: the 3 to color android:textColor="#ffffffff"
fixes Running tab
manage_applications_item.xml
EDIT : the 2 to color android:textColor="#ffffffff"
fixes the size in the remaning tabs
But the App label is no where to be found..might be in settingsprovider??
Great work man! not much left to edit
Want to take a swing at this?
Like the way MIUI has the bottom QuickSettings. i manage to move the music&call since it was easy, but the rest is above my head for now.
biopsin said:
Yes I see, the text is all shadow, but how did the white appear in "Running" tab, You ex already edited the running_processes_item.xml.xml?
EDIT: the 3 to color android:textColor="#ffffffff"
fixes Running tab
manage_applications_item.xml
EDIT : the 2 to color android:textColor="#ffffffff"
fixes the size in the remaning tabs
But the App label is no where to be found..might be in settingsprovider??
Great work man! not much left to edit
Want to take a swing at this?
Like the way MIUI has the bottom QuickSettings. i manage to move the music&call since it was easy, but the rest is above my head for now.
Click to expand...
Click to collapse
Good job with colors.
I will look into into it to find the app lables color.
As the bottom quickpanel I have no idea
I just know how to make those bars (sliders) thiner.
The lables color is in the framework, in value/colors.xml, but if you change the color from there it changes oher black colors insome other parts, too. So I need to find the source. of them which is in layout and change the color one by one until I find the right one.
biopsin said:
Yes I see, the text is all shadow, but how did the white appear in "Running" tab, You ex already edited the running_processes_item.xml.xml?
EDIT: the 3 to color android:textColor="#ffffffff"
fixes Running tab
manage_applications_item.xml
EDIT : the 2 to color android:textColor="#ffffffff"
fixes the size in the remaning tabs
But the App label is no where to be found..might be in settingsprovider??
Great work man! not much left to edit
Want to take a swing at this?
Like the way MIUI has the bottom QuickSettings. i manage to move the music&call since it was easy, but the rest is above my head for now.
Click to expand...
Click to collapse
wow nice one. you mind sharing how u move those quick toggle to the bottom? what does "the rest" refer to?
kay_kiat88 said:
"the rest" refer to?
Click to expand...
Click to collapse
the actual quicksettings im illutrating i want to move
This is what i manage so far..
sohrab1985 said:
The lables color is in the framework, in value/colors.xml, but if you change the color from there it changes oher black colors insome other parts, too. So I need to find the source. of them which is in layout and change the color one by one until I find the right one.
Click to expand...
Click to collapse
Yes the rabbit hole goes deep, shouldn' have taken that blue pill, to late wææ..
If you want the eaze point me with things to check out while u have classes
biopsin said:
Yes the rabbit hole goes deep, shouldn' have taken that blue pill, to late wææ..
If you want the eaze point me with things to check out while u have classes
Click to expand...
Click to collapse
Thanks mate.
We can't change the color to white, because it changes colors of some other parts, too. They have same value. You can see it in picture 1 and 2.
The best thing we can do is those two last pictures.
I'm looking for the colors of the "Running" tab, because it's white and different than other tab. At least we can make all the tabs the same.
I understand its defined by the framework. Change a global setting it spreads down the lane.
so the manage_application_item gets served a color from the colors.xml but where is this defined in the layout? does it mean that black is already defined for the @id/app_name in the framework? this will be difficult to override without redoing earlier changes, which ends in yet a new design, brilliant! its a good discovery maybe a right one as well haha
keep cookin ;
oh the blue subtext looked cooler than white.
biopsin said:
I understand its defined by the framework. Change a global setting it spreads down the lane.
so the manage_application_item gets served a color from the colors.xml but where is this defined in the layout? does it mean that black is already defined for the @id/app_name in the framework? this will be difficult to override without redoing earlier changes, which ends in yet a new design, brilliant! its a good discovery maybe a right one as well haha
keep cookin ;
Click to expand...
Click to collapse
Sorry I made a mistake, it's not in the layout, it's in "framework-res.apk/res/color/primary_text_light.xml" and "framework-res.apk/res/color/secondary_text_light.xml"
BTW, there is another problem. Changing the color of the Running tab changes other colors, including the clock on the satatus bar and other fonts on satus bar like Media Scanning and even the clock on the lock screen.
but the white text in the first picture Running tab you only change the main theme to black, and the white text was there correct?
biopsin said:
but the white text in the first picture Running tab you only change the main theme to black, and the white text was there correct?
Click to expand...
Click to collapse
Yes, It's white but the other tabs are gray and because of that I wanted to change the color to gray like the other tabs but it changes some other thigns.
The right value for Running tab is in framework-res.apk\res\color\primary_text_dark.xml.
I think this is the best think we can make considering those problems that we talked about.
I've attached both framework-res.apk and Settings.apk, if you want to try it.
sohrab1985 said:
I think this is the best think we can make considering those problems that we talked about.
Click to expand...
Click to collapse
Well if worst case cenario is white txt in Power Menu im happy to test.
biopsin said:
Well if worst case cenario is white txt in Power Menu im happy to test.
Click to expand...
Click to collapse
Don't worry, the power menu isn't white. it's dark gray.

[GUIDE][MOD][JB/CM10.1]Faster & Smoother Notification Panel

{
"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"
}
Faster & Smoother Notification Panel​
Features:
If you're experiencing slowness, laggy status bar, this MOD can cure that. This MOD changes some values that makes your status bar A LOT faster and fluid.
For even more customization, you can set your own values for desired result. See Post #2​
Installation:
1. Download the zip file
2. Reboot to recovery
3. Flash the zip file
4. Reboot
​
Downloads:
Download
​
Customization​
1. Decompile SystemUI.apk
2. Navigate to res/values/dimens.xml
Following are the values which affect the status bar:
Code:
<dimen name="self_expand_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="self_collapse_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="fling_expand_min_velocity">14000.0dip</dimen>
<dimen name="fling_collapse_min_velocity">1400.0dip</dimen>
<dimen name="fling_gesture_max_x_velocity">2000.0dip</dimen>
<dimen name="fling_gesture_max_output_velocity">9000.0dip</dimen>
<dimen name="fling_gesture_min_dist">20.0dip</dimen>
<item type="dimen" name="collapse_min_display_fraction">10.000002%</item>
<item type="dimen" name="expand_min_display_fraction">50.0%</item>
<dimen name="expand_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
<dimen name="collapse_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
3. Edit the ones in red
4. All of them can change the speed and fluidity of the status bar. But the ones in red affect the most
To know how each value affects the smoothness, see This Post
Applicable to any JB10.1 Custom Rom?
The flashable zip is for CM10.1. But you can use the info on Post #2 for using it on other ROM's
I mean the ported roms here are based on CM10.1. Will it work? Thanks. Gonna try though w/ or w/out ur reply. Thanks.
Yeah I know, but this is SystemUI of CM10.1 . So i would recommend doing the MOD yourself if you're on some other ROM. It will work, but other ROM's have modded SystemUI, so you may loose that.
TopDroid said:
Customization​
1. Decompile SystemUI.apk
2. Navigate to res/values/dimens.xml
Following are the values which affect the status bar:
Code:
<dimen name="self_expand_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="self_collapse_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="fling_expand_min_velocity">14000.0dip</dimen>
<dimen name="fling_collapse_min_velocity">1400.0dip</dimen>
<dimen name="fling_gesture_max_x_velocity">2000.0dip</dimen>
<dimen name="fling_gesture_max_output_velocity">9000.0dip</dimen>
<dimen name="fling_gesture_min_dist">20.0dip</dimen>
<item type="dimen" name="collapse_min_display_fraction">10.000002%</item>
<item type="dimen" name="expand_min_display_fraction">50.0%</item>
<dimen name="expand_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
<dimen name="collapse_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
3. Edit the ones in red
4. All of them can change the speed and fluidity of the status bar. But the ones in red affect the most
Click to expand...
Click to collapse
can you tell ex values to increase or teach how to increase ?
what max values on the six first lines we can apply ?
Request...!!
Hey sorry for bumping this old thread. But I have a request related to it.
Hey Topdroid can u please mod my uploaded systemui of cm10.2??
Thanks in advance
vishal24387 said:
Hey sorry for bumping this old thread. But I have a request related to it.
Hey Topdroid can u please mod my uploaded systemui of cm10.2??
Thanks in advance
Click to expand...
Click to collapse
Here you go.
[/COLOR]
TopDroid said:
Here you go.
Click to expand...
Click to collapse
Hey really thanx I tried ur file. But I am experiencing a wiered problem. If I want to pull notification bar then I have to pull it down upto half of the screen. In the same way if I want pull it upward then then I have to slide my fingure upto half of screen. Otherwise notification bar will not come downward or upward.
In original cm10.2 build just a slight slide on screen notification bar comes down or goes upward easily.
vishal24387 said:
Hey really thanx I tried ur file. But I am experiencing a wiered problem. If I want to pull notification bar then I have to pull it down upto half of the screen. In the same way if I want pull it upward then then I have slide my fingure in upward direction upto half of screen.
In original cm10.2 build just a slight slide on screen notification bar comes down or goes upward.
---------- Post added at 06:29 PM ---------- Previous post was at 06:25 PM ----------
Hey really thanx I tried ur file. But I am experiencing a wiered problem. If I want to pull notification bar then I have to pull it down upto half of the screen. In the same way if I want pull it upward then then I have to slide my fingure upto half of screen. Otherwise notification bar will not come downward or upward.
In original cm10.2 build just a slight slide on screen notification bar comes down or goes upward easily.
Click to expand...
Click to collapse
You'll have to change some values for that. Currently I'm not using my Galaxy SL so cannot try it. Please refer to the second post and try.
TopDroid said:
You'll have to change some values for that. Currently I'm not using my Galaxy SL so cannot try it. Please refer to the second post and try.
Click to expand...
Click to collapse
Oh...ok I'll do it. But problem is that the file which I uploaded dont have this file /res/values/dimens.xml
I tried to search it. But thete is no such file exist.
Also can u tell me which values affect smoothness in what way??
TopDroid said:
You'll have to change some values for that. Currently I'm not using my Galaxy SL so cannot try it. Please refer to the second post and try.
Click to expand...
Click to collapse
I am also facing the same issue which kind of value ... I mean give us some idea I will change and try it ,... :highfive:
vishal24387 said:
Oh...ok I'll do it. But problem is that the file which I uploaded dont have this file /res/values/dimens.xml
I tried to search it. But thete is no such file exist.
Also can u tell me which values affect smoothness in what way??
Click to expand...
Click to collapse
You must have unzipped the apk or something. You will have to decompile SystemUI.apk and then edit the file.
sgatechwork said:
I am also facing the same issue which kind of value ... I mean give us some idea I will change and try it ,... :highfive:
Click to expand...
Click to collapse
Sure, I will tell you what each line does.
"self_expand_velocity" : It is the initial velocity of the shade when expanding on its own. This means the speed of the shade to expand when you flick to expand.
"self_collapse_velocity" : It is the initial velocity of the shade when collapsing on its own. This means the speed of the shade to collapse when you flick to collapse.
"fling_expand_min_velocity" : It is the minimum final velocity of gestures interpreted as expand requests.
"fling_collapse_min_velocity" : It is the minimum final velocity of gestures interpreted as collapse requests.
"fling_gesture_max_x_velocity" : It is the cap on contribution of x dimension of gesture to overall velocity.
"fling_gesture_min_dist" : It is the minimum fraction of the display a gesture must travel, at any velocity, to qualify as a collapse request.
"expand_min_display_fraction" : It is the minimum fraction of the display a gesture must travel to qualify as an expand request.
"expand_accel" : It is the initial acceleration of an expand animation after fling.
"collapse_accel" : It is the initial acceleration of an collapse animation after fling

Categories

Resources