{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/app-theme-engine/issues/46","labels_url":"https://api.github.com/repos/afollestad/app-theme-engine/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/app-theme-engine/issues/46/comments","events_url":"https://api.github.com/repos/afollestad/app-theme-engine/issues/46/events","html_url":"https://github.com/afollestad/app-theme-engine/issues/46","id":125134560,"number":46,"title":"Crash when using ATESwitchPreference","user":{"login":"jlelse","id":8822316,"avatar_url":"https://avatars.githubusercontent.com/u/8822316?v=3","gravatar_id":"","url":"https://api.github.com/users/jlelse","html_url":"https://github.com/jlelse","followers_url":"https://api.github.com/users/jlelse/followers","following_url":"https://api.github.com/users/jlelse/following{/other_user}","gists_url":"https://api.github.com/users/jlelse/gists{/gist_id}","starred_url":"https://api.github.com/users/jlelse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlelse/subscriptions","organizations_url":"https://api.github.com/users/jlelse/orgs","repos_url":"https://api.github.com/users/jlelse/repos","events_url":"https://api.github.com/users/jlelse/events{/privacy}","received_events_url":"https://api.github.com/users/jlelse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afollestad/app-theme-engine/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-06T08:36:38Z","updated_at":"2016-01-06T22:57:06Z","closed_at":null,"body":"```gradle\r\nandroid.view.InflateException: Binary XML file line #2: Error inflating class com.afollestad.appthemeengine.views.ATESwitch\r\n                                                                  at android.view.LayoutInflater.createView(LayoutInflater.java:633)\r\n                                                                  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)\r\n                                                                  at android.view.LayoutInflater.inflate(LayoutInflater.java:482)\r\n                                                                  at android.view.LayoutInflater.inflate(LayoutInflater.java:414)\r\n                                                                  at android.view.LayoutInflater.inflate(LayoutInflater.java:365)\r\n                                                                  at android.preference.Preference.onCreateView(Preference.java:516)\r\n                                                                  at android.preference.Preference.getView(Preference.java:487)\r\n                                                                  at android.preference.PreferenceGroupAdapter.getView(PreferenceGroupAdapter.java:246)\r\n                                                                  at android.widget.AbsListView.obtainView(AbsListView.java:2347)\r\n                                                                  at android.widget.ListView.measureHeightOfChildren(ListView.java:1270)\r\n                                                                  at android.widget.ListView.onMeasure(ListView.java:1182)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)\r\n                                                                  at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)\r\n                                                                  at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)\r\n                                                                  at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1083)\r\n                                                                  at android.widget.LinearLayout.onMeasure(LinearLayout.java:615)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)\r\n                                                                  at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.support.design.widget.CoordinatorLayout.onMeasureChild(CoordinatorLayout.java:610)\r\n                                                                  at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:677)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:940)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)\r\n                                                                  at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)\r\n                                                                  at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)\r\n                                                                  at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)\r\n                                                                  at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)\r\n                                                                  at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5537)\r\n                                                                  at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)\r\n                                                                  at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2615)\r\n                                                                  at android.view.View.measure(View.java:17565)\r\n                                                                  at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2045)\r\n                                                                  at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1196)\r\n                                                                  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1409)\r\n                                                                  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1084)\r\n                                                                  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5990)\r\n                                                              \tat android.view.Choreographe\r\n```\r\nI always get this Exception and I think I did everything like the sample.\r\nI also check the key etc."},"comment":{"url":"https://api.github.com/repos/afollestad/app-theme-engine/issues/comments/169488871","html_url":"https://github.com/afollestad/app-theme-engine/issues/46#issuecomment-169488871","issue_url":"https://api.github.com/repos/afollestad/app-theme-engine/issues/46","id":169488871,"user":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T22:57:06Z","updated_at":"2016-01-06T22:57:06Z","body":"Unfortunately the log isn't enough to know what the cause is"}}