New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
creeve4
Old
(Last edited by creeve4; 11th May 2012 at 06:56 PM.)
#3841  
Senior Member
Thanks Meter 230
Posts: 1,464
Join Date: Jan 2011
Location: Bountiful
Quote:
Originally Posted by il Duce View Post
You can't redirect local ids to framework. @android would pull the id from framework res. Theme chooser needs to be independent, and @id points to the local id within your apk. Keep asking if that doesn't help. It's been a while since I was in a theme chooser, so hopefully memory is right.
Strangely, timepicker.xml is from framework-res, and the ids contained in the layout xml are also contained in framework-res...

Since other applications invoke the timepicker popup dialog, it must pull these ids from whichever application invokes the dialog.

What I am trying to do is change the text color for the id "amPm." Unfortunately, it is specified directly in the layout xml.

Any ideas about how to change text colors - with theme chooser - when they are specified in this manner?
 
il Duce
Old
#3842  
il Duce's Avatar
Recognized Developer / Recognized Themer / Retired Forum Moderator
Thanks Meter 14966
Posts: 16,013
Join Date: Feb 2009
Location: Twin Cities, MN

 
DONATE TO ME
Quote:
Originally Posted by creeve4 View Post
Strangely, timepicker.xml is from framework-res, and the ids contained in the layout xml are also contained in framework-res...

Since other applications invoke the timepicker popup dialog, it must pull these ids from whichever application invokes the dialog.

What I am trying to do is change the text color for the id "amPm." Unfortunately, it is specified directly in the layout xml.

Any ideas about how to change text colors - with theme chooser - when they are specified in this manner?
Anything obvious in values/colors? What you mean it's specified in layout? In the theme chooser? If so post the line that contains it.
 
creeve4
Old
(Last edited by creeve4; 11th May 2012 at 07:26 PM.)
#3843  
Senior Member
Thanks Meter 230
Posts: 1,464
Join Date: Jan 2011
Location: Bountiful
Quote:
Originally Posted by il Duce View Post
Anything obvious in values/colors? What you mean it's specified in layout? In the theme chooser? If so post the line that contains it.
I checked colors.xml first, no.

What i mean by specified in the layout xml is that the color used for the am/pm text is ONLY specified in timpicker.xml (which is in the layout folder within framework-res). timepicker.xml references a global color for the am/pm text, thus there are only two ways I know of to change the color used for am/pm text in the timepicker dialog:

1. edit the global color reference (this is undesirable because it will affect every other place this color is used).
2. edit the reference in timepicker.xml (this is preferred, but I can't figure out how to get this working with theme chooser themes).

Here is the line in timepicker.xml (note: I changed the color reference to "white" it used to be something like primary_lite_.....):
Code:
<Button android:textColor="@android:color/white" android:id="@id/amPm" android:paddingLeft="20.0dip" android:paddingRight="20.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="43.0dip" style="?android:attr/textAppearanceLarge" />
 
il Duce
Old
#3844  
il Duce's Avatar
Recognized Developer / Recognized Themer / Retired Forum Moderator
Thanks Meter 14966
Posts: 16,013
Join Date: Feb 2009
Location: Twin Cities, MN

 
DONATE TO ME
Quote:
Originally Posted by creeve4 View Post
I checked colors.xml first, no.

What i mean by specified in the layout xml is that the color used for the am/pm text is ONLY specified in timpicker.xml (which is in the layout folder within framework-res). timepicker.xml references a global color for the am/pm text, thus there are only two ways I know of to change the color used for am/pm text in the timepicker dialog:

1. edit the global color reference (this is undesirable because it will affect every other place this color is used).
2. edit the reference in timepicker.xml (this is preferred, but I can't figure out how to get this working with theme chooser themes).

Here is the line in timepicker.xml (note: I changed the color reference to "white" it used to be something like primary_lite_.....):
Code:
<Button android:textColor="@android:color/white" android:id="@id/amPm" android:paddingLeft="20.0dip" android:paddingRight="20.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="43.0dip" style="?android:attr/textAppearanceLarge" />
Got it. Add a custom hex color (white is ffffffff) into theme chooser colors.xml. Then where it has the color reference replace it with "@color/custom" which localizes it into your apk
 
G.Newton
Old
#3845  
G.Newton's Avatar
Senior Member
Thanks Meter 154
Posts: 347
Join Date: Jan 2012
Location: Texas
I've installed the AOSP ICS status bar on a Sense 3.6 ROM. It looks good, and almost completely works.

My issue is with the 4g icons. I took a look at the SystemUI.apk and the 4g icons are in there. My question is how do I get the SystemUI to make the correct call to display these icons?

I know the HTC SystemUI makes the correct calls to these images, so would taking a look at an HTC one help?

From what I can tell about ICS AOSP status bars, it doesn't display signal specifically for 4G, but rather it only has the blue (active) and grey (inactive) 4g icon where the 3g icon used to be.
Phone: Toroplus (Sprint Galaxy Nexus LTE)
ROM: CM 10.1 nightly
Baseband: GA02

Retired: Samsung Moment, HTC Evo 3D, Samsung Epic 4g Touch Galaxy SII

Who say's Sprint's LTE is slow?
 
creeve4
Old
(Last edited by creeve4; 11th May 2012 at 11:23 PM.)
#3846  
Senior Member
Thanks Meter 230
Posts: 1,464
Join Date: Jan 2011
Location: Bountiful
Quote:
Originally Posted by il Duce View Post
Got it. Add a custom hex color (white is ffffffff) into theme chooser colors.xml. Then where it has the color reference replace it with "@color/custom" which localizes it into your apk
I got that part. What I am having issues with is that when I include timepicker.xml in the theme, all apps that use the time picker force close when I attempt to set a time or date. I think the ids are not mapping correctly, but I'm not sure how to get it working.

---------- Post added at 03:55 PM ---------- Previous post was at 03:06 PM ----------

New question:

Where can I find the color for the secondary text on the power menu (e.g. Sound is On, Airplane mode is Off, etc)?
I have searched and searched, but can't find the reference.

I need to make the dark gray text lighter:
 
il Duce
Old
#3847  
il Duce's Avatar
Recognized Developer / Recognized Themer / Retired Forum Moderator
Thanks Meter 14966
Posts: 16,013
Join Date: Feb 2009
Location: Twin Cities, MN

 
DONATE TO ME
Quote:
Originally Posted by creeve4 View Post
I got that part. What I am having issues with is that when I include timepicker.xml in the theme, all apps that use the time picker force close when I attempt to set a time or date. I think the ids are not mapping correctly, but I'm not sure how to get it working.

---------- Post added at 03:55 PM ---------- Previous post was at 03:06 PM ----------

New question:

Where can I find the color for the secondary text on the power menu (e.g. Sound is On, Airplane mode is Off, etc)?
I have searched and searched, but can't find the reference.

I need to make the dark gray text lighter:
could you post the FC log? as for the second thing I have no idea. But maybe you can find the strings end delete them? The second line is dumb anyway since the icons change when you change from the menu.
 
karmaa420
Old
#3848  
karmaa420's Avatar
Member
Thanks Meter 3
Posts: 63
Join Date: Jul 2010
1st sorry if someone has posted this here and i over looked it, but i have been looking for a mod that will group my widget list. i had one on my samsung vibrant but cant remember the dev. or app name. i just like my items grouped nice and clean any help would be great
 
il Duce
Old
#3849  
il Duce's Avatar
Recognized Developer / Recognized Themer / Retired Forum Moderator
Thanks Meter 14966
Posts: 16,013
Join Date: Feb 2009
Location: Twin Cities, MN

 
DONATE TO ME
Quote:
Originally Posted by karmaa420 View Post
1st sorry if someone has posted this here and i over looked it, but i have been looking for a mod that will group my widget list. i had one on my samsung vibrant but cant remember the dev. or app name. i just like my items grouped nice and clean any help would be great
I know the mod existed on xda, try searching?
 
karmaa420
Old
#3850  
karmaa420's Avatar
Member
Thanks Meter 3
Posts: 63
Join Date: Jul 2010
have been with no luck so i gave a post a shot ....

Tags
#noobthemers, badseed owns your mom!, fern likes your mom, help thread, knowledge is power!, learn nao d3rp, read read read!!! then ask!, sup duce, this is where bad seeds grow!