Haven’t had time to read the entire thread, but I’ll try to address this question quickly. Yeah, it does :) It’s BgTweaks.res that takes an ID.
Nick On Friday, December 5, 2014 8:13:49 PM UTC, pfn wrote: > > I imagine BgTweaks.color takes an argb, not a resource ID > > On Fri Dec 05 2014 at 8:14:01 AM Benny Thompson <ben.d....@gmail.com > <javascript:>> wrote: > >> I feel like your'e on to something with the styles because I am applying >> this to the listview: >> w[ListView] <~ matchParent <~ ListTweaks.noDivider <~ >> *BgTweaks.color(R.color.red)* >> >> On Friday, December 5, 2014 10:10:39 AM UTC-6, pfn wrote: >> >>> One thing to note is that nothing has been applied specifically to your >>> list or drawer. Toolbar not showing styling is a different issue. I don't >>> know about that. >>> >>> On Fri Dec 05 2014 at 7:33:56 AM Benny Thompson <ben.d....@gmail.com> >>> wrote: >>> >>>> When I run a v21 device, minor details change like a progress bar have >>>> a red color, but the drawer and toolbar look the same.. >>>> >>>> My base values/styles.xml: >>>> >>>> <?xml version="1.0" encoding="utf-8"?> >>>> <resources> >>>> <!-- Base application theme. --> >>>> <style name="AppTheme" parent="Theme.AppCompat.Light"> >>>> <item name="windowActionBar">false</item> >>>> <item name="android:windowNoTitle">true</item> >>>> <item name="colorPrimary">#ff0000</item> >>>> <item name="android:colorPrimary">#ff0000</item> >>>> <item name="colorPrimaryDark">#ff0000</item> >>>> <item name="colorAccent">@color/light_green</item> >>>> </style> >>>> >>>> <style name="ToolbarCustomIconColor" parent="AppTheme"> >>>> <!-- android:textColorSecondary is used for coloring the >>>> navigation drawer icon and up arrow. --> >>>> <item name="android:textColorSecondary">#FFFFFFFF</item> >>>> </style> >>>> </resources> >>>> >>>> >>>> values-21/styles.xml >>>> >>>> <?xml version="1.0" encoding="utf-8"?> >>>> <resources> >>>> <!-- Base application theme. --> >>>> <style name="AppTheme" parent="Theme.AppCompat.Light"> >>>> >>>> <item name="windowActionBar">false</item> >>>> <item name="android:windowNoTitle">true</item> >>>> >>>> <item name="colorPrimary">@color/dark_green</item> >>>> <item name="android:colorPrimary">@color/dark_green</item> >>>> <item name="colorPrimaryDark">@color/dark_green</item> >>>> >>>> <item name="colorAccent">@color/light_green</item> >>>> </style> >>>> >>>> <style name="ToolbarCustomIconColor" parent="AppTheme"> >>>> <!-- android:textColorSecondary is used for coloring the >>>> navigation drawer icon and up arrow. --> >>>> <item name="android:textColorSecondary">#FFFFFFFF</item> >>>> </style> >>>> </resources> >>>> >>>> >>>> >>>> >>>> On Friday, December 5, 2014 9:26:35 AM UTC-6, pfn wrote: >>>> >>>>> What version are you on, which file did you edit. If you're on 21 and >>>>> only configured the base version, or vice versa, your styling will not >>>>> appear. Details are important >>>>> >>>>> On Fri, Dec 5, 2014, 7:22 AM Benny Thompson <ben.d....@gmail.com> >>>>> wrote: >>>>> >>>>>> >>>>>> <https://lh6.googleusercontent.com/-ENq3g1-xNDc/VIHNr_TNJfI/AAAAAAAAAHM/AseIVynQFR0/s1600/Screen%2BShot%2B2014-12-05%2Bat%2B9.22.02%2BAM.png> >>>>>> >>>>>> >>>>>> On Friday, December 5, 2014 9:15:20 AM UTC-6, pfn wrote: >>>>>>> >>>>>>> Only guess then is that your styles.xml is in the wrong place >>>>>>> >>>>>>> On Fri, Dec 5, 2014, 7:07 AM Benny Thompson <ben.d....@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Forgot to include the manifest: >>>>>>>> >>>>>>>> <manifest xmlns:android="http://schemas.android.com/apk/res/android >>>>>>>> " >>>>>>>> package="com.test" >>>>>>>> android:versionCode="0" >>>>>>>> android:versionName="0.1"> >>>>>>>> >>>>>>>> <uses-permission android:name="android.permission.INTERNET"/> >>>>>>>> <uses-permission android:name="android.permissi >>>>>>>> on.ACCESS_NETWORK_STATE"/> >>>>>>>> >>>>>>>> <uses-sdk >>>>>>>> android:minSdkVersion="9" >>>>>>>> android:targetSdkVersion="21"/> >>>>>>>> >>>>>>>> <application >>>>>>>> android:name=".common.MyApp" >>>>>>>> android:label="Macroid Starter" >>>>>>>> android:icon="@drawable/android:star_big_on" >>>>>>>> android:theme="@style/AppTheme"> >>>>>>>> <activity >>>>>>>> android:label="Macroid Starter" >>>>>>>> android:name=".account.LoginActivity" >>>>>>>> android:theme="@style/AppTheme"> >>>>>>>> <intent-filter> >>>>>>>> <action android:name="android.intent.action.MAIN"/> >>>>>>>> <category android:name="android.intent.c >>>>>>>> ategory.LAUNCHER"/> >>>>>>>> </intent-filter> >>>>>>>> </activity> >>>>>>>> >>>>>>>> <activity android:name=".MainActivity" >>>>>>>> android:label="Timesheet" >>>>>>>> android:theme="@style/AppTheme"/> >>>>>>>> >>>>>>>> </application> >>>>>>>> </manifest> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Friday, December 5, 2014 8:29:23 AM UTC-6, pfn wrote: >>>>>>>> >>>>>>>>> Looks like you didn't apply the theme >>>>>>>>> >>>>>>>>> On Fri, Dec 5, 2014, 12:11 AM Benny Thompson <ben.d....@gmail.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>> I have configured a very basic theme for an app using AppCompat >>>>>>>>>> v7. No matter what I try, my theme is not applied, the colors are >>>>>>>>>> off, and >>>>>>>>>> my ListView is semi-transparent (see screenshot). Any ideas what >>>>>>>>>> I'm doing >>>>>>>>>> or is this a bug in resource generation? >>>>>>>>>> >>>>>>>>>> I'm using Macroid, here is my layout: >>>>>>>>>> >>>>>>>>>> override def onCreate(savedInstanceState: Bundle) = { >>>>>>>>>> super.onCreate(savedInstanceState) >>>>>>>>>> >>>>>>>>>> val items = getResources.getStringArray(R. >>>>>>>>>> array.list_items).map(MenuItem) >>>>>>>>>> var toolbar = slot[Toolbar] >>>>>>>>>> >>>>>>>>>> val view = l[VerticalLinearLayout]( >>>>>>>>>> w[Toolbar] <~ matchWidth <~ wire(toolbar) <~ Tweak[Toolbar] >>>>>>>>>> { t => >>>>>>>>>> t.setPopupTheme(R.style.AppTheme) >>>>>>>>>> setSupportActionBar(t) >>>>>>>>>> getSupportActionBar.setDisplayHomeAsUpEnabled(true) >>>>>>>>>> getSupportActionBar.setHomeButtonEnabled(true) >>>>>>>>>> }, >>>>>>>>>> l[DrawerLayout]( >>>>>>>>>> f[WorkOrderFragment].framed(Id.something, Tag.elss) <~ >>>>>>>>>> matchParent, >>>>>>>>>> w[ListView] <~ matchParent <~ ListTweaks.noDivider <~ >>>>>>>>>> BgTweaks.color(R.color.red) <~ userListable.listAdapterTweak( >>>>>>>>>> items) >>>>>>>>>> <~ Tweak[ListView] { lv => >>>>>>>>>> val p = new DrawerLayout.LayoutParams(240 dp, >>>>>>>>>> LayoutParams.MATCH_PARENT, GravityCompat.START) >>>>>>>>>> lv.setLayoutParams(p) >>>>>>>>>> lv.setAlpha(1) >>>>>>>>>> } >>>>>>>>>> ) <~ matchParent <~ Tweak[DrawerLayout] { d => >>>>>>>>>> d.setDrawerShadow(R.drawable.drawer_shadow, >>>>>>>>>> GravityCompat.START) >>>>>>>>>> >>>>>>>>>> actionBarDrawerToggle = new ActionBarDrawerToggle( >>>>>>>>>> MainActivity.this, d, toolbar.get, R.string.app_name, >>>>>>>>>> R.string.app_name) >>>>>>>>>> d.setDrawerListener(actionBarDrawerToggle) >>>>>>>>>> } >>>>>>>>>> ) <~ matchParent >>>>>>>>>> >>>>>>>>>> setContentView(getUi(view)) >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Here's my styles.xml: >>>>>>>>>> >>>>>>>>>> <?xml version="1.0" encoding="utf-8"?> >>>>>>>>>> <resources> >>>>>>>>>> <!-- Base application theme. --> >>>>>>>>>> <style name="AppTheme" parent="Theme.AppCompat.Light"> >>>>>>>>>> <item name="windowActionBar">false</item> >>>>>>>>>> <item name="android:windowNoTitle">true</item> >>>>>>>>>> <item name="colorPrimary">#ff0000</item> >>>>>>>>>> <item name="android:colorPrimary">#ff0000</item> >>>>>>>>>> <item name="colorPrimaryDark">#ff0000</item> >>>>>>>>>> <item name="colorAccent">@color/light_green</item> >>>>>>>>>> </style> >>>>>>>>>> >>>>>>>>>> <style name="ToolbarCustomIconColor" parent="AppTheme"> >>>>>>>>>> <!-- android:textColorSecondary is used for coloring the >>>>>>>>>> navigation drawer icon and up arrow. --> >>>>>>>>>> <item name="android:textColorSecondary">#FFFFFFFF</item> >>>>>>>>>> </style> >>>>>>>>>> </resources> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> And here's what it looks like: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> <https://lh3.googleusercontent.com/-5AzUEW4eo8g/VIFoonSv1rI/AAAAAAAAAG8/Gh42VASWq1c/s1600/Screen%2BShot%2B2014-12-05%2Bat%2B2.10.58%2BAM.png> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> 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. >>>>>>>> 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. >>>>>> 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. >>>> 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.