{"action":"created","issue":{"url":"https://api.github.com/repos/eluleci/FlatUI/issues/24","repository_url":"https://api.github.com/repos/eluleci/FlatUI","labels_url":"https://api.github.com/repos/eluleci/FlatUI/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/eluleci/FlatUI/issues/24/comments","events_url":"https://api.github.com/repos/eluleci/FlatUI/issues/24/events","html_url":"https://github.com/eluleci/FlatUI/issues/24","id":37917647,"number":24,"title":"Inflate exception for Seekbar on Android L ","user":{"login":"robisaks","id":87010,"avatar_url":"https://avatars.githubusercontent.com/u/87010?v=3","gravatar_id":"","url":"https://api.github.com/users/robisaks","html_url":"https://github.com/robisaks","followers_url":"https://api.github.com/users/robisaks/followers","following_url":"https://api.github.com/users/robisaks/following{/other_user}","gists_url":"https://api.github.com/users/robisaks/gists{/gist_id}","starred_url":"https://api.github.com/users/robisaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robisaks/subscriptions","organizations_url":"https://api.github.com/users/robisaks/orgs","repos_url":"https://api.github.com/users/robisaks/repos","events_url":"https://api.github.com/users/robisaks/events{/privacy}","received_events_url":"https://api.github.com/users/robisaks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2014-07-15T19:32:21Z","updated_at":"2016-11-24T03:45:07Z","closed_at":"2014-12-18T19:45:41Z","body":"Appears to be an incorrect cast\n\n```\nCaused by: java.lang.ClassCastException: android.graphics.drawable.StateListDrawable cannot be cast to android.graphics.drawable.LayerDrawable\n```\n\nhttps://github.com/eluleci/FlatUI/blob/master/library/src/main/java/com/cengalabs/flatui/views/FlatSeekBar.java#L83\n\n``` xml\n<com.cengalabs.flatui.views.FlatSeekBar\n                    flatui:theme=\"@array/snow\"\n                    android:id=\"@+id/font_size\"\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"wrap_content\"\n                    android:max=\"40\"\n                    />\n```\n\n```\n07-15 14:20:49.762  15298-15298/com.snap E/AndroidRuntime﹕ FATAL EXCEPTION: main\n    Process: com.snap, PID: 15298\n    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.snap/com.snap.DragAndDrop}: android.view.InflateException: Binary XML file line #179: Error inflating class com.cengalabs.flatui.views.FlatSeekBar\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2255)\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2317)\n            at android.app.ActivityThread.access$800(ActivityThread.java:143)\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)\n            at android.os.Handler.dispatchMessage(Handler.java:102)\n            at android.os.Looper.loop(Looper.java:135)\n            at android.app.ActivityThread.main(ActivityThread.java:5070)\n            at java.lang.reflect.Method.invoke(Native Method)\n            at java.lang.reflect.Method.invoke(Method.java:372)\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)\n     Caused by: android.view.InflateException: Binary XML file line #179: Error inflating class com.cengalabs.flatui.views.FlatSeekBar\n            at android.view.LayoutInflater.createView(LayoutInflater.java:629)\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:739)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:500)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:410)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:361)\n            at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:350)\n            at android.app.Activity.setContentView(Activity.java:2122)\n            at com.snap.DragAndDrop.onCreate(DragAndDrop.java:112)\n            at android.app.Activity.performCreate(Activity.java:5720)\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102)\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2317)\n            at android.app.ActivityThread.access$800(ActivityThread.java:143)\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)\n            at android.os.Handler.dispatchMessage(Handler.java:102)\n            at android.os.Looper.loop(Looper.java:135)\n            at android.app.ActivityThread.main(ActivityThread.java:5070)\n            at java.lang.reflect.Method.invoke(Native Method)\n            at java.lang.reflect.Method.invoke(Method.java:372)\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)\n     Caused by: java.lang.reflect.InvocationTargetException\n            at java.lang.reflect.Constructor.newInstance(Native Method)\n            at java.lang.reflect.Constructor.newInstance(Constructor.java:288)\n            at android.view.LayoutInflater.createView(LayoutInflater.java:603)\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:739)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:500)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:410)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:361)\n            at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:350)\n            at android.app.Activity.setContentView(Activity.java:2122)\n            at com.snap.DragAndDrop.onCreate(DragAndDrop.java:112)\n            at android.app.Activity.performCreate(Activity.java:5720)\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102)\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2317)\n            at android.app.ActivityThread.access$800(ActivityThread.java:143)\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)\n            at android.os.Handler.dispatchMessage(Handler.java:102)\n            at android.os.Looper.loop(Looper.java:135)\n            at android.app.ActivityThread.main(ActivityThread.java:5070)\n            at java.lang.reflect.Method.invoke(Native Method)\n            at java.lang.reflect.Method.invoke(Method.java:372)\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)\n     Caused by: java.lang.ClassCastException: android.graphics.drawable.StateListDrawable cannot be cast to android.graphics.drawable.LayerDrawable\n            at com.cengalabs.flatui.views.FlatSeekBar.init(FlatSeekBar.java:83)\n            at com.cengalabs.flatui.views.FlatSeekBar.<init>(FlatSeekBar.java:31)\n            at java.lang.reflect.Constructor.newInstance(Native Method)\n            at java.lang.reflect.Constructor.newInstance(Constructor.java:288)\n            at android.view.LayoutInflater.createView(LayoutInflater.java:603)\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:739)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:805)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:500)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:410)\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:361)\n            at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:350)\n            at android.app.Activity.setContentView(Activity.java:2122)\n            at com.snap.DragAndDrop.onCreate(DragAndDrop.java:112)\n            at android.app.Activity.performCreate(Activity.java:5720)\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1102)\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2317)\n            at android.app.ActivityThread.access$800(ActivityThread.java:143)\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)\n            at android.os.Handler.dispatchMessage(Handler.java:102)\n            at android.os.Looper.loop(Looper.java:135)\n            at android.app.ActivityThread.main(ActivityThread.java:5070)\n            at java.lang.reflect.Method.invoke(Native Method)\n            at java.lang.reflect.Method.invoke(Method.java:372)\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)\n```\n"},"comment":{"url":"https://api.github.com/repos/eluleci/FlatUI/issues/comments/262683929","html_url":"https://github.com/eluleci/FlatUI/issues/24#issuecomment-262683929","issue_url":"https://api.github.com/repos/eluleci/FlatUI/issues/24","id":262683929,"user":{"login":"chenxinxun","id":3939557,"avatar_url":"https://avatars.githubusercontent.com/u/3939557?v=3","gravatar_id":"","url":"https://api.github.com/users/chenxinxun","html_url":"https://github.com/chenxinxun","followers_url":"https://api.github.com/users/chenxinxun/followers","following_url":"https://api.github.com/users/chenxinxun/following{/other_user}","gists_url":"https://api.github.com/users/chenxinxun/gists{/gist_id}","starred_url":"https://api.github.com/users/chenxinxun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenxinxun/subscriptions","organizations_url":"https://api.github.com/users/chenxinxun/orgs","repos_url":"https://api.github.com/users/chenxinxun/repos","events_url":"https://api.github.com/users/chenxinxun/events{/privacy}","received_events_url":"https://api.github.com/users/chenxinxun/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T03:45:07Z","updated_at":"2016-11-24T03:45:07Z","body":"The same issue on sony z3 android 5.0.2"}}
{"actor":{"display_login":"chenxinxun"}}