negusoft / holoaccent

Android library to customize the Holo theme with a custom accent color

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Studio - Layout preview problem

SebastianEngel opened this issue · comments

For a fragment layout that contains a ListView, the layout preview in Android Studio doesn't render anything and tells me:

Failed to find style 'listViewStyle' in current theme
(29 similar errors not shown)
Failed to convert ?textColorHighlight into a ColorStateList
(12 similar errors not shown)

I'm not sure if the problem is based in holoaccent or in Android Studio. But before using the library the preview rendered fine. If I switch back my theme to inherit from "android:Theme.Holo.Light", preview rendering is fine again.

Any idea?

In general, HoloAccent doesn't deal very good with layout preview. The reason is that HoloAccent uses a lot of tricks to be able to define the accent color at runtime. I recommend you select a native Holo theme when working with the layout tool.