<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 > <javascript:>> 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.permission.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.category.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 <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.