JakeWharton/ActionBarSherlock — Issue #222: actionBarItemBackground; Resource is not a Drawable
Author: astachowiak
Created: 2012-02-07 16:02:48+00:00
State: open

When in the demos one replaces the base activity of SampleList from ListActivity to SherlockListActivity application crashes with the following log:

```
02-07 16:55:40.877: E/AndroidRuntime(7146): FATAL EXCEPTION: main
02-07 16:55:40.877: E/AndroidRuntime(7146): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.actionbarsherlock.sample.demos/com.actionbarsherlock.sample.demos.SampleList}: android.view.InflateException: Binary XML file line #31: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ActivityThread.access$600(ActivityThread.java:123)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.os.Looper.loop(Looper.java:137)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ActivityThread.main(ActivityThread.java:4424)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at java.lang.reflect.Method.invokeNative(Native Method)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at java.lang.reflect.Method.invoke(Method.java:511)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at dalvik.system.NativeStart.main(Native Method)
02-07 16:55:40.877: E/AndroidRuntime(7146): Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.createView(LayoutInflater.java:606)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherlock.ActionBarSherlock.generateLayout(ActionBarSherlock.java:1021)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherlock.ActionBarSherlock.installDecor(ActionBarSherlock.java:854)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherlock.ActionBarSherlock.setContentView(ActionBarSherlock.java:779)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherlock.app.SherlockListActivity.setContentView(SherlockListActivity.java:206)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ListActivity.ensureList(ListActivity.java:312)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ListActivity.setListAdapter(ListActivity.java:263)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherlock.sample.demos.SampleList.onCreate(SampleList.java:50)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.Activity.performCreate(Activity.java:4465)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
02-07 16:55:40.877: E/AndroidRuntime(7146):	... 11 more
02-07 16:55:40.877: E/AndroidRuntime(7146): Caused by: java.lang.reflect.InvocationTargetException
02-07 16:55:40.877: E/AndroidRuntime(7146):	at java.lang.reflect.Constructor.constructNative(Native Method)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.createView(LayoutInflater.java:586)
02-07 16:55:40.877: E/AndroidRuntime(7146):	... 27 more
02-07 16:55:40.877: E/AndroidRuntime(7146): Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView$HomeView
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.createView(LayoutInflater.java:606)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherlock.internal.widget.ActionBarView.(ActionBarView.java:232)
02-07 16:55:40.877: E/AndroidRuntime(7146):	... 30 more
02-07 16:55:40.877: E/AndroidRuntime(7146): Caused by: java.lang.reflect.InvocationTargetException
02-07 16:55:40.877: E/AndroidRuntime(7146):	at java.lang.reflect.Constructor.constructNative(Native Method)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.LayoutInflater.createView(LayoutInflater.java:586)
02-07 16:55:40.877: E/AndroidRuntime(7146):	... 34 more
02-07 16:55:40.877: E/AndroidRuntime(7146): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f01000f a=-1}
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.content.res.Resources.loadDrawable(Resources.java:1899)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.View.(View.java:2785)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.view.ViewGroup.(ViewGroup.java:385)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.widget.FrameLayout.(FrameLayout.java:99)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at android.widget.FrameLayout.(FrameLayout.java:95)
02-07 16:55:40.877: E/AndroidRuntime(7146):	at com.actionbarsherloc
```