{"action":"closed","issue":{"url":"https://api.github.com/repos/rey5137/material/issues/91","labels_url":"https://api.github.com/repos/rey5137/material/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/rey5137/material/issues/91/comments","events_url":"https://api.github.com/repos/rey5137/material/issues/91/events","html_url":"https://github.com/rey5137/material/issues/91","id":74853608,"number":91,"title":"java.lang.NullPointerException , if Progressview add android:visibility=\"gone\"","user":{"login":"abiang","id":9924409,"avatar_url":"https://avatars.githubusercontent.com/u/9924409?v=3","gravatar_id":"","url":"https://api.github.com/users/abiang","html_url":"https://github.com/abiang","followers_url":"https://api.github.com/users/abiang/followers","following_url":"https://api.github.com/users/abiang/following{/other_user}","gists_url":"https://api.github.com/users/abiang/gists{/gist_id}","starred_url":"https://api.github.com/users/abiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abiang/subscriptions","organizations_url":"https://api.github.com/users/abiang/orgs","repos_url":"https://api.github.com/users/abiang/repos","events_url":"https://api.github.com/users/abiang/events{/privacy}","received_events_url":"https://api.github.com/users/abiang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-10T06:58:07Z","updated_at":"2015-05-20T06:55:35Z","closed_at":"2015-05-20T06:55:35Z","body":"Hi! This library is very nice, Thank you.\r\nMy English is very bad, I hope you know what I say ......\r\n\r\nif i delete the xml (android:visibility=\"gone\" ) , app is work for Normal.\r\n\r\nxml:    android:visibility=\"gone\"\r\n```javascript\r\n\r\n<com.rey.material.widget.ProgressView\r\n            android:id=\"@+id/progress\"\r\n            android:layout_width=\"18dp\"\r\n            android:layout_height=\"18dp\"\r\n            android:visibility=\"gone\"\r\n            app:pv_autostart=\"true\"\r\n            app:pv_circular=\"true\"\r\n            app:pv_progressStyle=\"@style/Material.Drawable.CircularProgress\"\r\n            app:pv_progressMode=\"indeterminate\"/>\r\n```\r\n\r\n\r\n\r\n\r\nlogcat:\r\n```javascript\r\n Caused by: java.lang.NullPointerException\r\n            at com.rey.material.widget.ProgressView.getProgressMode(ProgressView.java:125)\r\n            at com.rey.material.widget.ProgressView.onVisibilityChanged(ProgressView.java:98)\r\n            at android.view.View.dispatchVisibilityChanged(View.java:7499)\r\n            at android.view.View.setFlags(View.java:8501)\r\n            at android.view.View.<init>(View.java:3695)\r\n            at com.rey.material.widget.ProgressView.<init>(ProgressView.java:45)\r\n            at com.rey.material.widget.ProgressView.<init>(ProgressView.java:35)\r\n```\r\nall:\r\n```javascript\r\n05-10 14:16:27.534  27600-27600/tv.littlemuisc.android E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    android.view.InflateException: Binary XML file line #25: Error inflating class com.rey.material.widget.ProgressView\r\n            at android.view.LayoutInflater.createView(LayoutInflater.java:613)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)\r\n            at tv.littlemuisc.android.ui.adapter.HomeTestAdapter.onCreateViewHolder(HomeTestAdapter.java:93)\r\n            at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:4121)\r\n            at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3431)\r\n            at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3340)\r\n            at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1810)\r\n            at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1306)\r\n            at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1269)\r\n            at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1097)\r\n            at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:957)\r\n            at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2797)\r\n            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)\r\n            at android.view.Choreographer.doCallbacks(Choreographer.java:562)\r\n            at android.view.Choreographer.doFrame(Choreographer.java:531)\r\n            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)\r\n            at android.os.Handler.handleCallback(Handler.java:725)\r\n            at android.os.Handler.dispatchMessage(Handler.java:92)\r\n            at android.os.Looper.loop(Looper.java:137)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5083)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:511)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n     Caused by: java.lang.reflect.InvocationTargetException\r\n            at java.lang.reflect.Constructor.constructNative(Native Method)\r\n            at java.lang.reflect.Constructor.newInstance(Constructor.java:417)\r\n            at android.view.LayoutInflater.createView(LayoutInflater.java:587)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)\r\n            at tv.littlemuisc.android.ui.adapter.HomeTestAdapter.onCreateViewHolder(HomeTestAdapter.java:93)\r\n            at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:4121)\r\n            at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3431)\r\n            at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3340)\r\n            at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1810)\r\n            at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1306)\r\n            at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1269)\r\n            at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1097)\r\n            at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:957)\r\n            at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2797)\r\n            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)\r\n            at android.view.Choreographer.doCallbacks(Choreographer.java:562)\r\n            at android.view.Choreographer.doFrame(Choreographer.java:531)\r\n            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)\r\n            at android.os.Handler.handleCallback(Handler.java:725)\r\n            at android.os.Handler.dispatchMessage(Handler.java:92)\r\n            at android.os.Looper.loop(Looper.java:137)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5083)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:511)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n     Caused by: java.lang.NullPointerException\r\n            at com.rey.material.widget.ProgressView.getProgressMode(ProgressView.java:125)\r\n            at com.rey.material.widget.ProgressView.onVisibilityChanged(ProgressView.java:98)\r\n            at android.view.View.dispatchVisibilityChanged(View.java:7499)\r\n            at android.view.View.setFlags(View.java:8501)\r\n            at android.view.View.<init>(View.java:3695)\r\n            at com.rey.material.widget.ProgressView.<init>(ProgressView.java:45)\r\n            at com.rey.material.widget.ProgressView.<init>(ProgressView.java:35)\r\n            at java.lang.reflect.Constructor.constructNative(Native Method)\r\n            at java.lang.reflect.Constructor.newInstance(Constructor.java:417)\r\n            at android.view.LayoutInflater.createView(LayoutInflater.java:587)\r\n            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)\r\n            at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:489)\r\n            at android.view.LayoutInflater.inflate(LayoutInflater.java:396)\r\n            at tv.littlemuisc.android.ui.adapter.HomeTestAdapter.onCreateViewHolder(HomeTestAdapter.java:93)\r\n            at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:4121)\r\n            at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3431)\r\n            at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:3340)\r\n            at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1810)\r\n            at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1306)\r\n            at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1269)\r\n            at android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1097)\r\n            at android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:957)\r\n            at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:2797)\r\n            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)\r\n            at android.view.Choreographer.doCallbacks(Choreographer.java:562)\r\n            at android.view.Choreographer.doFrame(Choreographer.java:531)\r\n            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)\r\n            at android.os.Handler.handleCallback(Handler.java:725)\r\n            at android.os.Handler.dispatchMessage(Handler.java:92)\r\n            at android.os.Looper.loop(Looper.java:137)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5083)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:511)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n\r\n```"}}