I'm trying to add a style from an app... Swype... into the style.xml of my theme... I cannot for the life of me get it to compile correctly...
Does anyone know how to include a style from another app into a themes style.xml?
I've called the style in the com_nuance_swype_input.xml
" <item name="style/Swype">@style/com_nuance_swype_input_Swype</item>
<item name="style/Swype.Classic">@style/com_nuance_swype_input_Swype.Classic</item>
"
...and I've added the styles into the style.xml but it just won't work...
<style name="com_nuance_swype_input_Swype">
(there is nothing in this style in the original APK but I figured it would have to be in here as it is the parent)
</style>
<style name="com_nuance_swype_input_Swype.Classic" parent="@style/com_nuance_swype_input_Swype">
<item name="candidateComponent">#ffffa200</item>
etc...
</style>
All I get is this error: Error: No resource found that matches the given name:
Suggestions? I've attached my files...
http://forum.xda-developers.com/showthread.php?t=2051577
Related
Was wondering where the png or the xml file is to change it to black like gingerbread when u press the menu button. Or even slightly black transparent. Where in the framework res is it located? Thanks!
Its in the gb theme. Its a .9.png that needs to be edited in the framework. Then you have to replace all the icons that show up in that menu with lighter icons our colorfull ones. You also need to edit a couple xmls to show the text right
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
mysteryemotionz said:
Its in the gb theme. Its a .9.png that needs to be edited in the framework. Then you have to replace all the icons that show up in that menu with lighter icons our colorfull ones. You also need to edit a couple xmls to show the text right
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
Click to expand...
Click to collapse
Mystery, seeing as you're a theme dev, you'd probably know the answer better than I would, could someone just extract some of the images from one theme and replace them in another theme to get the look they want? (Sorry to derail the thread.)
Thanks for the quick reply. What's. The .9png file name. And xml located for the text?
063_XOBX said:
Mystery, seeing as you're a theme dev, you'd probably know the answer better than I would, could someone just extract some of the images from one theme and replace them in another theme to get the look they want? (Sorry to derail the thread.)
Click to expand...
Click to collapse
You are correct but the xml edits are gonna have to be done in a decompiled apk. You can't decompile a custom framework and the recompile it. You have to start with a stock framework. Your best bet is to ask your theme dev if this is something he's willing to do
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
hugo87 said:
Thanks for the quick reply. What's. The .9png file name. And xml located for the text?
Click to expand...
Click to collapse
I'm not sure of .9 off of the top of my head I would have to look at my files. All I can tell you is its in framework-res.apk/res/drawable-hpi.
As far as the xml goes I would have to check my notes that the dev of the gb theme have me.
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
all credit goes to amosher13
here is the xmls i edited to deal with dark menu images. make sure you link me to wherever you post this bad boy:
Set menu text to white
In /res/values/style.xml change the following:
Code:
style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
</style>
TO:
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
</style>
--------------------------------------------------
and (for the "more" menu lists)
Code:
style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
<style>
TO
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge</item>
<style>
---------------------------------------------------
Fix menu button dividers
Also in /res/values/style.xml:
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_bright</item>
<item name="verticalDivider">@drawable/divider_vertical_bright</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
TO
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_dark</item>
<item name="verticalDivider">@drawable/divider_vertical_dark</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
---------------------------------------------------
Change secondary text in settings from blue to whatever
In /res/color/zzz_tw_secondary_text_sub.xml change the colors in the following two lines to ffffffff (for white):
Code:
<item android:state_window_focused="false" android:color="#ffffffff" />
<item android:color="#ffffffff" />
---------------------------------------------------
change notification text on pulldown
There are three text color settings in
/res/layout/status_bar_latest_event_content.xml.
Change all three of them. ff000000 is black.[/QUOTE]
the menu is popup_top_bright.9.png and popup_bottom_medium.9.png i believe
Freakin sweet!!! Mystery you are the man! Realy appreciate it. Thanks!
hugo87 said:
Freakin sweet!!! Mystery you are the man! Realy appreciate it. Thanks!
Click to expand...
Click to collapse
Don't forget to thank asmopher13 got the xml edits. I just copied and posted what he gave me
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
Will do man thanks again man!
MysteryEmotionz said:
all credit goes to amosher13
here is the xmls i edited to deal with dark menu images. make sure you link me to wherever you post this bad boy:
Set menu text to white
In /res/values/style.xml change the following:
Code:
style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
</style>
TO:
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
</style>
--------------------------------------------------
and (for the "more" menu lists)
Code:
style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
<style>
TO
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge</item>
<style>
---------------------------------------------------
Fix menu button dividers
Also in /res/values/style.xml:
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_bright</item>
<item name="verticalDivider">@drawable/divider_vertical_bright</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
TO
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_dark</item>
<item name="verticalDivider">@drawable/divider_vertical_dark</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
---------------------------------------------------
Change secondary text in settings from blue to whatever
In /res/color/zzz_tw_secondary_text_sub.xml change the colors in the following two lines to ffffffff (for white):
Code:
<item android:state_window_focused="false" android:color="#ffffffff" />
<item android:color="#ffffffff" />
---------------------------------------------------
change notification text on pulldown
There are three text color settings in
/res/layout/status_bar_latest_event_content.xml.
Change all three of them. ff000000 is black.
Click to expand...
Click to collapse
[/QUOTE]
hello mystery, do you mind taking a look at my screenshots?, your advice will be highly appreciated.
hello mystery, do you mind taking a look at my screenshots?, your advice will be highly appreciated.[/QUOTE]
This is something i haven't done or looked into. From what I have seen I believe the widget picker text is controlled in styles.xml. The compressed calender image looks like a .9.png error. The input text I haven't seen at all and I'm getting a feeling that would be controlled from app 2 app
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
hello mystery, do you mind taking a look at my screenshots?, your advice will be highly appreciated.
Click to expand...
Click to collapse
This is something i haven't done or looked into. From what I have seen I believe the widget picker text is controlled in styles.xml. The compressed calender image looks like a .9.png error. The input text I haven't seen at all and I'm getting a feeling that would be controlled from app 2 app
Sent from my SPH-D700 using Tapatalk[/QUOTE]
Firstly, thank you for your reply..
1)In moto milestone,(CM6 to be specific) the styles.xml is not available in framework-re.apk/res/color. I had attached the content of res/color folder below for your viewing.
2)".9.png error" thank you so much for clarifying this..now i know where to go..
p/s: this only happens in landscape. in potrait, it is perfect.;
Let me know if you still need help with the text color,,,Its the Primary_text_Light.xml,thats the only one that need to be changed.
Sent from my MyFrankenstein E=Bee13² ROM using XDAP App...
THANKS ecooce, i am trying it out now..wwill update soon
here the orginal content of Primary_text_light.xml
<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/bright_foreground_light_disabled" />
<item android:state_window_focused="false" android:color="@color/bright_foreground_light" />
<item android:state_pressed="true" android:color="@color/bright_foreground_light" />
<item android:state_selected="true" android:color="@color/bright_foreground_light" />
<item android:color="@color/bright_foreground_light" />
</selector>
and heres the modified version
<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/bright_foreground_light_disabled" />
<item android:state_window_focused="false" android:color="@color/bright_foreground_light" />
<item android:state_pressed="true" android:color="@color/bright_foreground_light" />
<item android:state_selected="true" android:color="@color/bright_foreground_light" />
<item android:color="@color/bright_foreground_dark" />
</selector>
THANK YOU SOOO MUCH TO ecoocemystery emotions!! im as happy as (god knows what!!) thank you to so so much!!
vesparados150 said:
This is something i haven't done or looked into. From what I have seen I believe the widget picker text is controlled in styles.xml. The compressed calender image looks like a .9.png error. The input text I haven't seen at all and I'm getting a feeling that would be controlled from app 2 app
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Firstly, thank you for your reply..
1)In moto milestone,(CM6 to be specific) the styles.xml is not available in framework-re.apk/res/color. I had attached the content of res/color folder below for your viewing.
2)".9.png error" thank you so much for clarifying this..now i know where to go..
p/s: this only happens in landscape. in potrait, it is perfect.;[/QUOTE]
1)Styles.xml should be in framework-res.apk/res/values
(this is where it is on my phone. Idk if cm6 Is any different)
2)those ticker buttons are .9s and something went wrong. Your gonna have to redo that ticker button
Sent from my SPH-D700 using Tapatalk
Im editing the default.xml from within the MNS folder to complete the setup for my scene, but one thing I cant seem to get is the clock type for the Beam Clock (black with the hazy white hands)
now for example the social clock is like this
<item name="package_name">com.htc.clock3dwidget</item>
<item name="widget_name">com.htc.clock3dwidget.socialclock.SocialClockWidgetView</item>
<item name="provider_name">com.htc.clock3dwidget.ClockWidgetProvider</item>
<item name="screen">3</item>
<item name="cell_x">0</item>
<item name="cell_y">0</item>
<item name="span_x">4</item>
<item name="span_y">2</item>
The highlighted values tell us it's the social clock
and the span y value is 2 because it only takes up 2 vertical spaces of the four on the screen
the larger analog clocks take up 3, so that span y value will change to 3 (clearly)
but does anyone know what the widget name value will change to or know how to find out (htc resource notes or something)?
(Note: I've already tired .beamclock.BeamClockWidgetView and it doesnt work)
Or does anyone know the file name and location of the scene thats been edited by the user already to the way they like it (so I can pull my existing one and get the values from there?)
[A] After Decompiling the apk, I found out that its labled ClockBeam
so the total value would be
com.htc.clock3dwidget.ClockBeam
and thats it
As the title suggests we're going to see how to solve the problems at compile time with regard to systemUi.apk JB 4.2.2
Who tried to do any modification to the systemUi Jelly bean version 4.2.2 you will surely find them cope with the rock the error in compilation.
Well ... I do and that's why I started to rebuild the apk since mom Samsung had "forgotten" to declare some styles so that at compile time obviously did get errors .. .
Required to do the modding version of Android 4.2.2:
SDK updated
JDK updated
APKTOOL updated
Well, at this point we can decompile the SystemUi.apk.
move on to SystemUi. apk \ res \ values \ styles.xml open it and add this
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="RecentsStyle" parent="@*android:style/Theme.Holo.Wallpaper.NoTitleBar">
<item name="android:windowAnimationStyle">@style/Animation.RecentsActivity</item>
</style>
<style name="Animation.RecentsActivity" parent="@*android:style/Animation.Activity">
<item name="android:activityOpenEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:activityOpenExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:taskOpenEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:taskOpenExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:taskToFrontEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:taskToFrontExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:wallpaperOpenEnterAnimation">@anim/recents_launch_from_launcher_enter</item>
<item name="android:wallpaperOpenExitAnimation">@anim/recents_launch_from_launcher_exit</item>
<item name="android:wallpaperIntraOpenEnterAnimation">@anim/wallpaper_recents_launch_from_launcher_enter</item>
<item name="android:wallpaperIntraOpenExitAnimation">@anim/wallpaper_recents_launch_from_launcher_exit</item>
</style>
[COLOR="Red"]<style name="SystemBarNotificationText">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">#ff999999</item>
</style>
<style name="SystemBarPanelSettingsRow">
<item name="android:orientation">horizontal</item>
<item name="android:background">?android:listChoiceBackgroundIndicator</item>
<item name="android:paddingRight">16.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">64.0dip</item>
</style>
<style name="SystemBarPanelSettingsIcon">
<item name="android:layout_width">64.0dip</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:scaleType">center</item>
</style>
<style name="SystemBarPanelSettingsContents">
<item name="android:textSize">18.0sp</item>
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:layout_gravity">left|center</item>
<item name="android:layout_width">0.0dip</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1.0</item>
</style>
<style name="SystemBarPanelSettingsPanelSeparator">
<item name="android:background">@*android:drawable/divider_horizontal_dark</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">1.0dip</item>
<item name="android:layout_marginRight">0.0dip</item>
</style>[/COLOR]
<style name="TextAppearance.StatusBar.IntruderAlert" parent="@*android:style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.SystemPanel" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff808080</item>
</style>
<style name="TextAppearance.StatusBar.TextButton" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Date" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded" parent="@*android:style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Network" parent="@style/TextAppearance.StatusBar.Expanded.Date">
<item name="android:textColor">#ff999999</item>
<item name="android:textAllCaps">false</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" parent="@style/TextAppearance.StatusBar.Expanded.Network" />
<style name="TextAppearance" />
<style name="TextAppearance.QuickSettings" parent="@style/TextAppearance" />
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:ellipsize">marquee</item>
<item name="android:paddingLeft">6.0dip</item>
<item name="android:paddingRight">6.0dip</item>
<item name="android:paddingBottom">2.0dip</item>
<item name="android:fadingEdge">horizontal</item>
<item name="android:singleLine">true</item>
<item name="android:drawablePadding">12.0dip</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="TextAppearance.QuickSettings.Clock" parent="@style/TextAppearance.QuickSettings.TileView">
<item name="android:textSize">20.0dip</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.QuickSettings.Date" parent="@style/TextAppearance.QuickSettings.TileView">
<item name="android:textSize">14.0dip</item>
</style>
<style name="TextAppearance.QuickSettings.Alarm" parent="@style/TextAppearance.QuickSettings.TileView">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">#ff3a3b39</item>
</style>
<style name="BaseBrightnessDialogContainer">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">15.0dip</item>
<item name="android:layout_marginBottom">15.0dip</item>
</style>
<style name="BrightnessDialogContainer" parent="@style/BaseBrightnessDialogContainer" />
<style name="Animation" />
<style name="Animation.ShirtPocketPanel" parent="@style/Animation">
<item name="android:windowEnterAnimation">@*android:anim/grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@*android:anim/shrink_fade_out_from_bottom</item>
</style>
<style name="Animation.RecentPanel" parent="@style/Animation">
<item name="android:windowEnterAnimation">@*android:anim/grow_fade_in_from_bottom</item>
<item name="android:windowExitAnimation">@*android:anim/shrink_fade_out_from_bottom</item>
</style>
<style name="Animation.StatusBar" parent="@style/Animation" />
<style name="Animation.StatusBar.IntruderAlert" parent="@style/Animation.StatusBar">
<item name="android:windowEnterAnimation">@anim/priority_alert_enter</item>
<item name="android:windowExitAnimation">@anim/priority_alert_exit</item>
</style>
<style name="TextAppearance.StatusBar.PhoneTicker" parent="@*android:style/TextAppearance.StatusBar.Ticker">
<item name="android:textSize">14.0dip</item>
</style>
<style name="ClingButton">
<item name="android:textStyle">bold</item>
<item name="android:background">@drawable/cling_button_bg</item>
<item name="android:paddingLeft">35.0dip</item>
<item name="android:paddingTop">10.0dip</item>
<item name="android:paddingRight">35.0dip</item>
<item name="android:paddingBottom">15.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="ClingTitleText">
<item name="android:textSize">23.0sp</item>
<item name="android:textColor">#ff49c0ec</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginBottom">5.0dip</item>
<item name="android:shadowColor">#ff000000</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
</style>
<style name="ClingText">
<item name="android:textSize">15.0sp</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:shadowColor">#ff000000</item>
<item name="android:shadowDy">2.0</item>
<item name="android:shadowRadius">2.0</item>
<item name="android:lineSpacingMultiplier">1.1</item>
</style>
<style name="TutorialPopupStyle">
<item name="android:textSize">18.0dip</item>
<item name="android:textColor">#ff000000</item>
<item name="android:background">@drawable/help_popup_picker_bg_w_01</item>
<item name="android:paddingLeft">@dimen/smart_alert_popup_text_padding</item>
<item name="android:paddingTop">10.0dip</item>
<item name="android:paddingRight">@dimen/smart_alert_popup_text_padding</item>
<item name="android:paddingBottom">15.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="Animation_MiniAppsEditPanel">
<item name="android:windowEnterAnimation">@anim/mini_apps_edit_panel_show_anim</item>
<item name="android:windowExitAnimation">@anim/mini_apps_edit_panel_hide_anim</item>
</style>
<style name="TextAppearance_EditPanelTitle">
<item name="android:textSize">20.0dip</item>
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance_SaveAndCancelButton">
<item name="android:textSize">20.0dip</item>
</style>
<style name="TextAppearance_EditButton">
<item name="android:textSize">18.0dip</item>
</style>
<style name="TextAppearance_PreviewLabel">
<item name="android:textSize">16.0dip</item>
</style>
<item type="style" name="APKTOOL_DUMMY_001e">false</item>
<item type="style" name="APKTOOL_DUMMY_001f">false</item>
<item type="style" name="APKTOOL_DUMMY_0020">false</item>
<item type="style" name="APKTOOL_DUMMY_0021">false</item>
<item type="style" name="APKTOOL_DUMMY_0022">false</item>
<item type="style" name="APKTOOL_DUMMY_0023">false</item>
<item type="style" name="APKTOOL_DUMMY_0024">false</item>
<item type="style" name="APKTOOL_DUMMY_0025">false</item>
</resources>
Save and you have solved your problems Now you can make all the changes you want and compile without getting any kind of error (unless you do not commit )
Thanks you! I will try and feedback later
Sent from my GT-I9300 using xda premium
---------- Post added at 09:26 AM ---------- Previous post was at 09:08 AM ----------
OMG ! i have succeeded fully to compile systemUI.apk on 4.2.2 .
Big thanks to you
Works perfectly for me, thank you !!!
thank you...the best barikke
Thanks, i was almost ready to breake the damm PC because of this
Thanks for this one! Really helpfull!
Will this change the quick toggles to "press to toggle" and "press and hold for setting" ??
I am trying to decompile my SystemUI.apk to get transparent status bar. I get the folder if systemui but I get errors in cmd saying couldnt decompile some unknown codes or sth.
Is that still okay
Sent from my GT-I9300 using xda premium
It works. Thanks for the trick.
thats all work. thank you
Mate I want to Change the date and Day Style in Notification Drawer
I want It to be one below another...
What Code should I write for that ??
Hi Everyone,
since i was playing a lot with all these to set them up perfectly (well, as much as i could) and to find different settings and connections, styles what not, i though i share some of my findings. the more i'll fix up in my own stlye, the more i'll add to this post.
i'm not going to write down how to decompile or recompile your apk's, that's something you figure out on your own, i'm just trying to give you some support here.
feel free to donate and/or press the thanks button if you find anything useful here. please bear in mind, i worked hard to figures all these out.
it's also possible that i'm not going to complete this tut.
if you have questions, shoot, i might be able to help but there's no guarantee for that.
have fun!
Changing the switch:
in framework-res.apk\res\values\styles.xml, change both holo and holo.light Switch CompoundButton
===================================================================================
General:
track is the background of the switch, thumb is the switch itself (that you slide over). TextOn & TextOff are the
strings displayed in both states of the switch. padding is pedding
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_dark</item>
<item name="switchMinWidth">96.0dip</item>
<item name="switchPadding">8.0dip</item>
<item name="thumbTextPadding">8.0dip</item>
</style>
======================================================================================================
chaning the track (background):
from res\drawable\ open switch_track_holo_dark and ~_light.xml's
to have a different background for when the switch is in different states, add:
Code:
<item android:state_checked="true" android:drawable="@drawable/switch_bg_on_holo_light" />
- for the switch on
Code:
<item android:state_checked="false" android:drawable="@drawable/switch_bg_on_holo_light" />
- for the switch off
Code:
<item android:drawable="@drawable/switch_bg_holo_light" />
- this is the default background, so if you specify only
off or on states, the rest will be the default.
======================================================================================================
changing width of switch:
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_dark</item>
<item name="switchMinWidth">56.0dip</item> [B][COLOR="Red"]<-- this is the overall width of the switch[/COLOR][/B]
<item name="switchPadding">8.0dip</item> [COLOR="red"][B]<-- with this[/B][/COLOR]
<item name="thumbTextPadding">8.0dip</item> [COLOR="red"][B]<-- and this, you can change the width of the switch thumb[/B][/COLOR]
</style>
======================================================================================================
Switch text:
Code:
<style name="Widget.CompoundButton.Switch" parent="@style/Widget.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
</style>
======================================================================================================
change color of these to make the text disappear (transparent) or change color:
Code:
<style name="TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">@color/secondary_text_holo_dark</item>
</style>
<style name="TextAppearance.Holo.Light.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">@color/primary_text_holo_dark</item>
</style>
======================================================================================================
Changing the defaults of Settings to white (holo light):
it's really easy, you just have to change every holo style to holo.light and add the font color of your desire to the different styles in res\values\styles.xml
change every parent "class" that starts with @*android:style/Holo to @*android:style/Holo.Light and, eg:
Code:
parent="@*android:style/Holo.SegmentedButton"
becomes
Code:
parent="@*android:style/Holo.[COLOR="Red"]Light[/COLOR].SegmentedButton"
then add the following line to every style element:
Code:
<item name="android:textColor">#ff545454</item>
except to these styles:
<style name="Transparent">, <style name="setup_wizard_button">, <style name="CryptKeeperBlankTheme"> - here i didn't change holo to holo.light neither (may be worthy to try though), <style name="TextAppearance.Switch"...>, <style name="KeyguardAppWidgetItem">.
where #ff545454 is the hex color code of the color you want to use as the font color. ff at the beginning is android specific, it tells the opacity of the color you select, so in the above case, the original hex color is #545454 (which is gray) but to have a 100% solid color, we need to add ff to the beginning of the hex color code, so it turns into #ff545454. easy peasy
you might have to change all drawables or some of them from _light to _dark, or recolor them in Settings.apk or fw-apk.
you also need to change
Code:
<item name="android:actionBarStyle">@*android:style/Widget.Holo.ActionBar.Solid</item>
to
Code:
<item name="android:actionBarStyle">@*android:style/Widget.Holo.Light.ActionBar.Solid</item>
==========================================================================================================
Changing category header color:
in fw-res.apk\res\values\styles.xml change:
Code:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
<item name="textSize">14.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">#ffbb0303</item>[COLOR="Red"] <--- change this color to whatever you want[/COLOR]
<item name="gravity">center_vertical</item>
<item name="background">@drawable/dark_header_dither</item>
<item name="layout_width">fill_parent</item>
<item name="layout_height">wrap_content</item>
<item name="paddingStart">8.0dip</item>
</style>
===========================================================================================================================================
theming GoogleDeskClock and having issues with the stopwatch icon (same icon used in status bar when stopwatch is running as for the selected (activated) tab. to fix it, follow this:
Create a black (or whatever color you used) copy of the stopwatch activated icon (ic_tab_stopwatch_activated), name it as ic_tab_stopwatch_activated_b.png in the same folder and change the code in res\drawable\stopwatch_tab.xml the following lines from ic_tab_stopwatch_activated to ic_tab_stopwatch_activated_b:
Code:
<item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
<item android:state_selected="true" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
reserved 3
Can't w8 to see how the tutorial is
Thanks! Was very useful for me.
Sent from my Nexus 4 using Tapatalk
Icarus1391 said:
Thanks! Was very useful for me.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
no probs. if you did change something, you can throw up a screenie of it, just so we can see
holo.light settings framework S4 i9505 on 4.4.2 kitkat xxufnb8
i want to make holo light changes to whole secsettings na framework on S4 i9505 running on 4.4.2 german B8 stock odexed rom
at your guide Changing the switch:
in framework-res.apk\res\values\styles.xml, change both holo and holo.light Switch CompoundButton
i dont have the string <style name="Widget.Holo.CompoundButton.Switch"
instead i have <style name="Widget.CompoundButton" parent="@style/Widget">
<item name="textAppearance">?textAppearance</item>
<item name="textColor">?textColorPrimaryDisableOnly</item>
<item name="gravity">start|center</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
maybe the guide is nexus related but you didnt writed in the details, i would apreciate i you can guide me according to touchwiz xmls
i have pressed thanks button already
Look for switch, mate, that's what u want to change
Sent from the outer space, delivered by an android using a 4th gen nexus
Hi mate, I would like to completely get rid of the on/off switch
and replace it with another button on Android L style....
How can I do?
Can I make it transparent in this way to make it disappear?
Code:
<style name="TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">[B]#00000000[/B]</item>
</style>
<style name="TextAppearance.Holo.Light.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">[B]#00000000[/B]</item>
</style>
Tnx in advance!
Add this code to your styles.xml in res>values (API 21+ only)
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light">
<!-- This controls status bar color -->
<item name="android:colorPrimaryDark">#B86E00</item>
<item name="android:colorAccent">#FF9800</item>
</style>
</resources>
Add the color you want the status bar to display in place of #B86E00.
Keep in mind that status bar looks better if it is a bit darker than your app theme.