Re: [android-developers] Re: On using themes?!

2011-02-07 Thread Alessio Grumiro
So, is it impossible to solve it directly in xml? _ Alessio Grumiro http://www.agmobilesolutions.com 2010/9/22 Mariano Kamp > As it wasn't possible to submit a new post to the existing/old conversation > using the web interface I am copying the message here with Danilo's > permiss

Re: [android-developers] Re: On using themes?!

2010-09-23 Thread Dianne Hackborn
Type 2 is an attribute reference, as per TypedValue, so you have not put a color in that resource. If you want to use styles/themes, use Context.obtainStyledAttributes or related methods which takes care of mapping attribute references through the current theme. I'd suggest looking at the source

Re: [android-developers] Re: On using themes?!

2010-09-22 Thread Agus
try using this On Wed, Sep 22, 2010 at 9:26 AM, Mariano Kamp wrote: > As it wasn't possible to submit a new post to the existing/old conversation > using the web interface I am copying the message here with Danilo's > permission: > Hi Mariano. > > Did you manage to work using themes from drawabl

Re: [android-developers] Re: On using themes?!

2010-09-22 Thread Mariano Kamp
As it wasn't possible to submit a new post to the existing/old conversation using the web interface I am copying the message here with Danilo's permission: Hi Mariano. Did you manage to work using themes from drawables xml? I have same problem and there is no any reference but this thread and the

Re: [android-developers] Re: On using themes?!

2010-05-11 Thread Mariano Kamp
Hi Dianne. Thanks very much, almost there. I understand the procedure, it would do what I want, but I run into an exception: D/NewsRobDefaultExceptionHandler( 1839): Caused by: java.lang.UnsupportedOperationException: Can't convert to color: type=0x2 D/NewsRobDefaultExceptionHandler( 1839): at a

Re: [android-developers] Re: On using themes?!

2010-05-10 Thread Dianne Hackborn
You need to define an attribute for your value: Then make a custom theme that supplies a value for it: #ff808080 And now you can reference that value from other XML: http://schemas.android.com/apk/res/android"; android:shape="rectangle"

[android-developers] Re: On using themes?!

2010-05-10 Thread Mariano Kamp
Hmmh, also no answer to this question on themes. Maybe the answer cannot be given with two lines? So let me explain what I would expect step by step and you stop me were I deviate from the Golden Path? I'll try yes/no questions. In the simplest terms I would expect that in every place I can specif