I’m with Perry, you’ll probably not find a way to set the theme 
programmatically (also see https://github.com/macroid/macroid/issues/30). 
But you should be able to include the toolbar theme in the default activity 
theme and have it working by means of XML magic.

Nick

On Friday, December 5, 2014 10:34:19 PM UTC, pfn wrote:
>
> generally, you should not set theme anywhere manually inside of code. It 
> should be set on the activities as appropriate, and it just works. Manually 
> configuring theme is when you want to override certain defaults.
>
> On Fri Dec 05 2014 at 2:32:43 PM Benny Thompson <ben.d....@gmail.com 
> <javascript:>> wrote:
>
>> In Android examples, it shows setting a "theme" attribute on the Toolbar, 
>> but I don't see a way in Macroid.  Here's what I have:
>>
>>
>>       w[Toolbar] <~ matchWidth <~ wire(toolbar) <~ Tweak[Toolbar] { t =>
>>         t.setPopupTheme(R.style.AppTheme)
>>         setSupportActionBar(t)
>>         getSupportActionBar.setDisplayHomeAsUpEnabled(true)
>>         getSupportActionBar.setHomeButtonEnabled(true)
>>       },
>>
>>
>> On Friday, December 5, 2014 3:49:37 PM UTC-6, pfn wrote:
>>
>>> No idea, but I have had no issues with theming.
>>>
>>> On Fri Dec 05 2014 at 1:45:17 PM Benny Thompson <ben.d....@gmail.com> 
>>> wrote:
>>>
>> That's awesome, thanks guys, that solves the ListView color issue. Any 
>>>> ideas about the theme issues?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "scala-on-android" group.
>>>>
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to scala-on-andro...@googlegroups.com.
>>>
>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "scala-on-android" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to scala-on-andro...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scala-on-android+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to