[DEPRECATED] Action bar implementation which uses the native action bar on Android 4.0+ and a custom implementation on pre-4.0 through a single API and theme.
I'm tried working with ActionBarSherlok in my android project with maven. I have cloned samples from repository but when run exemples I have same errors. Can anybody help me? My exception is:
E/AndroidRuntime( 6976): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.mobilemind.oscontrol/br.com.mobilemind.oscontrol.MainActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class
E/AndroidRuntime( 6976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1751)
E/AndroidRuntime( 6976): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1767)
E/AndroidRuntime( 6976): at android.app.ActivityThread.access$1500(ActivityThread.java:122)
E/AndroidRuntime( 6976): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1005)
E/AndroidRuntime( 6976): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6976): at android.os.Looper.loop(Looper.java:132)
E/AndroidRuntime( 6976): at android.app.ActivityThread.main(ActivityThread.java:4028)
E/AndroidRuntime( 6976): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6976): at java.lang.reflect.Method.invoke(Method.java:491)
E/AndroidRuntime( 6976): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
E/AndroidRuntime( 6976): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
E/AndroidRuntime( 6976): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 6976): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class
E/AndroidRuntime( 6976): at android.view.LayoutInflater.createView(LayoutInflater.java:596)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:671)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.rInflate(LayoutInflater.java:724)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.inflate(LayoutInflater.java:391)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.inflate(LayoutInflater.java:347)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1010)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:902)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:836)
E/AndroidRuntime( 6976): at com.actionbarsherlock.app.SherlockListActivity.setContentView(SherlockListActivity.java:229)
E/AndroidRuntime( 6976): at android.app.ListActivity.ensureList(ListActivity.java:312)
E/AndroidRuntime( 6976): at android.app.ListActivity.getListView(ListActivity.java:297)
E/AndroidRuntime( 6976): at br.com.mobilemind.oscontrol.MainActivity.onCreate(MainActivity.java:78)
E/AndroidRuntime( 6976): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
E/AndroidRuntime( 6976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1715)
E/AndroidRuntime( 6976): ... 11 more
E/AndroidRuntime( 6976): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 6976): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 6976): at java.lang.reflect.Constructor.newInstance(Constructor.java:416)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.createView(LayoutInflater.java:576)
E/AndroidRuntime( 6976): ... 26 more
E/AndroidRuntime( 6976): Caused by: java.lang.NumberFormatException: Invalid int: "@2131099676"
E/AndroidRuntime( 6976): at java.lang.Integer.invalidInt(Integer.java:129)
E/AndroidRuntime( 6976): at java.lang.Integer.parse(Integer.java:366)
E/AndroidRuntime( 6976): at java.lang.Integer.parseInt(Integer.java:357)
E/AndroidRuntime( 6976): at com.android.internal.util.XmlUtils.convertValueToInt(XmlUtils.java:123)
E/AndroidRuntime( 6976): at android.content.res.TypedArray.getInt(TypedArray.java:254)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.widget.ActionBarView.(ActionBarView.java:178)
E/AndroidRuntime( 6976): ... 29 more
Hi,
I'm tried working with ActionBarSherlok in my android project with maven. I have cloned samples from repository but when run exemples I have same errors. Can anybody help me? My exception is:
E/AndroidRuntime( 6976): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.mobilemind.oscontrol/br.com.mobilemind.oscontrol.MainActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class
E/AndroidRuntime( 6976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1751)
E/AndroidRuntime( 6976): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1767)
E/AndroidRuntime( 6976): at android.app.ActivityThread.access$1500(ActivityThread.java:122)
E/AndroidRuntime( 6976): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1005)
E/AndroidRuntime( 6976): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6976): at android.os.Looper.loop(Looper.java:132)
E/AndroidRuntime( 6976): at android.app.ActivityThread.main(ActivityThread.java:4028)
E/AndroidRuntime( 6976): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6976): at java.lang.reflect.Method.invoke(Method.java:491)
E/AndroidRuntime( 6976): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
E/AndroidRuntime( 6976): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
E/AndroidRuntime( 6976): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 6976): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class
E/AndroidRuntime( 6976): at android.view.LayoutInflater.createView(LayoutInflater.java:596)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:671)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.rInflate(LayoutInflater.java:724)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.rInflate(LayoutInflater.java:727)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.inflate(LayoutInflater.java:479)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.inflate(LayoutInflater.java:391)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.inflate(LayoutInflater.java:347)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1010)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:902)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:836)
E/AndroidRuntime( 6976): at com.actionbarsherlock.app.SherlockListActivity.setContentView(SherlockListActivity.java:229)
E/AndroidRuntime( 6976): at android.app.ListActivity.ensureList(ListActivity.java:312)
E/AndroidRuntime( 6976): at android.app.ListActivity.getListView(ListActivity.java:297)
E/AndroidRuntime( 6976): at br.com.mobilemind.oscontrol.MainActivity.onCreate(MainActivity.java:78)
E/AndroidRuntime( 6976): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
E/AndroidRuntime( 6976): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1715)
E/AndroidRuntime( 6976): ... 11 more
E/AndroidRuntime( 6976): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 6976): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 6976): at java.lang.reflect.Constructor.newInstance(Constructor.java:416)
E/AndroidRuntime( 6976): at android.view.LayoutInflater.createView(LayoutInflater.java:576)
E/AndroidRuntime( 6976): ... 26 more
E/AndroidRuntime( 6976): Caused by: java.lang.NumberFormatException: Invalid int: "@2131099676"
E/AndroidRuntime( 6976): at java.lang.Integer.invalidInt(Integer.java:129)
E/AndroidRuntime( 6976): at java.lang.Integer.parse(Integer.java:366)
E/AndroidRuntime( 6976): at java.lang.Integer.parseInt(Integer.java:357)
E/AndroidRuntime( 6976): at com.android.internal.util.XmlUtils.convertValueToInt(XmlUtils.java:123)
E/AndroidRuntime( 6976): at android.content.res.TypedArray.getInt(TypedArray.java:254)
E/AndroidRuntime( 6976): at com.actionbarsherlock.internal.widget.ActionBarView.(ActionBarView.java:178)
E/AndroidRuntime( 6976): ... 29 more