tibolte / elasticdownload Goto Github PK
View Code? Open in Web Editor NEWWe are not Gif makers, We are developers
We are not Gif makers, We are developers
hi .
i use your library as you told in doc
but i get this error
Caused by: android.view.InflateException: Binary XML file line #47: Error inflating class is.arontibo.library.ElasticDownloadView
this is my logcat
sorry for dirty logcat
02-04 18:26:49.925 31153-31153/? I/art: Not late-enabling -Xcheck:jni (already on)
02-04 18:26:49.925 31153-31153/? I/art: Late-enabling JIT
02-04 18:26:49.928 31153-31153/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000
02-04 18:26:49.969 31153-31153/? I/MultiDex: VM with version 2.1.0 has multidex support
02-04 18:26:49.969 31153-31153/? I/MultiDex: install
02-04 18:26:49.969 31153-31153/? I/MultiDex: VM has multidex support, MultiDex support library is disabled.
02-04 18:26:50.045 31153-31178/ir.ayalma.tablighat I/GMPM: App measurement is starting up
02-04 18:26:50.047 31153-31178/ir.ayalma.tablighat E/GMPM: getGoogleAppId failed with status: 10
02-04 18:26:50.047 31153-31178/ir.ayalma.tablighat E/GMPM: Uploading is not possible. App measurement disabled
02-04 18:26:50.059 31153-31183/ir.ayalma.tablighat D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
02-04 18:26:50.153 31153-31166/ir.ayalma.tablighat I/art: Background sticky concurrent mark sweep GC freed 9895(544KB) AllocSpace objects, 4(80KB) LOS objects, 56% free, 1672KB/3MB, paused 13.662ms total 78.052ms
02-04 18:26:50.157 31153-31183/ir.ayalma.tablighat I/OpenGLRenderer: Initialized EGL, version 1.4
02-04 18:26:50.250 31153-31183/ir.ayalma.tablighat W/EGL_emulation: eglSurfaceAttrib not implemented
02-04 18:26:50.250 31153-31183/ir.ayalma.tablighat W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabcabd00, error=EGL_SUCCESS
02-04 18:26:51.676 31153-31153/ir.ayalma.tablighat D/skia: --- SkImageDecoder::Factory returned null
02-04 18:26:51.713 31153-31153/ir.ayalma.tablighat D/ImageCache: memchache size is :32 mb
02-04 18:26:51.718 31153-31153/ir.ayalma.tablighat D/skia: --- SkImageDecoder::Factory returned null
02-04 18:26:51.720 31153-31153/ir.ayalma.tablighat W/art: Before Android 4.1, method void carbon.widget.RecyclerView.ensureBottomGlow() would have incorrectly overridden the package-private method in android.support.v7.widget.RecyclerView
02-04 18:26:51.720 31153-31153/ir.ayalma.tablighat W/art: Before Android 4.1, method void carbon.widget.RecyclerView.ensureLeftGlow() would have incorrectly overridden the package-private method in android.support.v7.widget.RecyclerView
02-04 18:26:51.720 31153-31153/ir.ayalma.tablighat W/art: Before Android 4.1, method void carbon.widget.RecyclerView.ensureRightGlow() would have incorrectly overridden the package-private method in android.support.v7.widget.RecyclerView
02-04 18:26:51.720 31153-31153/ir.ayalma.tablighat W/art: Before Android 4.1, method void carbon.widget.RecyclerView.ensureTopGlow() would have incorrectly overridden the package-private method in android.support.v7.widget.RecyclerView
02-04 18:26:51.720 31153-31153/ir.ayalma.tablighat W/art: Before Android 4.1, method void carbon.widget.RecyclerView.invalidateGlows() would have incorrectly overridden the package-private method in android.support.v7.widget.RecyclerView
02-04 18:26:51.731 31153-31153/ir.ayalma.tablighat W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8087470
02-04 18:26:51.777 31153-31183/ir.ayalma.tablighat W/EGL_emulation: eglSurfaceAttrib not implemented
02-04 18:26:51.777 31153-31183/ir.ayalma.tablighat W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabcabd80, error=EGL_SUCCESS
02-04 18:26:51.809 31153-31183/ir.ayalma.tablighat W/EGL_emulation: eglSurfaceAttrib not implemented
02-04 18:26:51.809 31153-31183/ir.ayalma.tablighat W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabcabea0, error=EGL_SUCCESS
02-04 18:26:51.846 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.849 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.850 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.852 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.852 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.857 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.859 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:51.861 31153-31153/ir.ayalma.tablighat D/isrtl: is rtltrue
02-04 18:26:52.021 31153-31183/ir.ayalma.tablighat E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab5847d0
02-04 18:26:53.378 31153-31183/ir.ayalma.tablighat E/Surface: getSlotFromBufferLocked: unknown buffer: 0xb3f971d0
02-04 18:26:53.383 31153-31153/ir.ayalma.tablighat W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
02-04 18:26:59.988 31153-31153/ir.ayalma.tablighat W/ImageView: Unable to find resource: 2130837573
android.content.res.Resources$NotFoundException: File res/drawable-v21/avd_start.xml from drawable resource ID #0x7f020045
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2640)
at android.content.res.Resources.loadDrawable(Resources.java:2540)
at android.content.res.Resources.getDrawable(Resources.java:806)
at android.content.Context.getDrawable(Context.java:458)
at android.widget.ImageView.resolveUri(ImageView.java:811)
at android.widget.ImageView.setImageResource(ImageView.java:418)
at is.arontibo.library.IntroView.init(IntroView.java:53)
at is.arontibo.library.IntroView.<init>(IntroView.java:33)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-anydpi-v21/vd_start.xml from drawable resource ID #0x7f0200c3
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2640)
at android.content.res.Resources.loadDrawable(Resources.java:2540)
at android.content.res.Resources.getDrawable(Resources.java:806)
at android.graphics.drawable.AnimatedVectorDrawable.inflate(AnimatedVectorDrawable.java:317)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1215)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1124)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2630)
at android.content.res.Resources.loadDrawable(Resources.java:2540)
at android.content.res.Resources.getDrawable(Resources.java:806)
at android.content.Context.getDrawable(Context.java:458)
at android.widget.ImageView.resolveUri(ImageView.java:811)
at android.widget.ImageView.setImageResource(ImageView.java:418)
at is.arontibo.library.IntroView.init(IntroView.java:53)
at is.arontibo.library.IntroView.<init>(IntroView.java:33)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #2<vector> tag requires viewportWidth > 0
at android.graphics.drawable.VectorDrawable.updateStateFromTypedArray(VectorDrawable.java:606)
at android.graphics.drawable.VectorDrawable.inflate(VectorDrawable.java:567)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1215)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1124)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2630)
at android.content.res.Resources.loadDrawable(Resources.java:2540)
at android.content.res.Resources.getDrawable(Resources.java:806)
at android.graphics.drawable.AnimatedVectorDrawable.inflate(AnimatedVectorDrawable.java:317)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1215)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1124)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2630)
at android.content.res.Resources.loadDrawable(Resources.java:2540)
at android.content.res.Resources.getDrawable(Resources.java:806)
at android.content.Context.getDrawable(Context.java:458)
at android.widget.ImageView.resolveUri(ImageView.java:811)
at android.widget.ImageView.setImageResource(ImageView.java:418)
at is.arontibo.library.IntroView.init(IntroView.java:53)
at is.arontibo.library.IntroView.<init>(IntroView.java:33)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-04 18:26:59.988 31153-31153/ir.ayalma.tablighat D/AndroidRuntime: Shutting down VM
02-04 18:26:59.988 31153-31153/ir.ayalma.tablighat E/AndroidRuntime: FATAL EXCEPTION: main
Process: ir.ayalma.tablighat, PID: 31153
android.view.InflateException: Binary XML file line #47: Binary XML file line #47: Error inflating class is.arontibo.library.ElasticDownloadView
at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.view.InflateException: Binary XML file line #47: Error inflating class is.arontibo.library.ElasticDownloadView
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class is.arontibo.library.IntroView
at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class is.arontibo.library.IntroView
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.invalidateSelf()' on a null object reference
at is.arontibo.library.IntroView.init(IntroView.java:56)
at is.arontibo.library.IntroView.<init>(IntroView.java:33)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at is.arontibo.library.ElasticDownloadView.<init>(ElasticDownloadView.java:37)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at ayalma.ir.tablighat.UI.Telegram.DwnloadsFragment.onCreateView(DwnloadsFragment.java:91)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
mElasticDownloadView.startIntro(); keeps giving nullpointerexception
my steps are
but at run time it gives nullpointer exception
Great work. How can i get the overall size to change to 'match parent' my RelativeLayout?
how can i add some text on the view if required
Freedom to change the colors of Download Icon and surrounding color will be good.
If possible add option to change the color of text in box. (onSucess onFailure and percentage colors).
Thank you @Tibolte
I see that the merge for latest code went in 2 months ago, but there is still no updated build (currently on 1.04). I would prefer to not to have to fork this to get the most current build as my app goes live on Friday. Any chance you could update a release and increment the counter to 1.05 so the newest code can be used?
Thanks!
PGMac
Hello, I've appreciate your work, I applied some changes to your project, and i publish my own version, I saw that he no longer works at his library, this could include a reference to my in its readme? I would appreciate it very much, thank you for your attention!
Here is the link: https://github.com/michelelacorte/ElasticProgressBar
Thanks,
Best regards.
As stated above
Hi
I am trying to build the ElasticDocwnload. I am getting the following error:
FAILURE: Build failed with an exception.
Where:
Script 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' line: 48
What went wrong:
A problem occurred configuring project ':elasticdownload'.
No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Please suggest if I am missing something.
hi, is it possible to change the background orange color of this view to another color? Or just removed that orange color and show the progress bar?
Thanks.
I've an issue, when I try to add library the give me an error:
Binary XML file line #26: Error inflating class is.arontibo.library.ElasticDownloadView
Caused by: java.lang.ClassNotFoundException: Didn't find class "is.arontibo.library.ElasticDownloadView"
Suppressed: java.lang.ClassNotFoundException: is.arontibo.library.ElasticDownloadView
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
someone know why this error happens?
How do you remove it? I just want the line (progress bar ) and the tag moving on it, spanning just the required width not half of my screen with HUGE orange background.
Drawable added getAlpha
method in API level19.
add applyTheme
in API 21,how can I implement those method in lower version,say min API 12 ?
i want to add image instead of buble from drawable
<is.arontibo.library.ElasticDownloadView
android:id="@+id/elastic_download_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FFFFFF"
android:layout_below="@+id/logo_layout"
android:layout_centerInParent="true" />
doesn't do anything !
How about making it 8?
Please ;)
i followed your example.
i works fine. But if we come back to the activity. Its not showing download button by default
I mean we have two activities. we went from 1st to 2nd and in 2nd activity we have your view. First time when we open 2nd activity from 1st, it works fine. But Once we start some download (failed or downloaded) and then when i go back to 1st and come back again to second instead of showing download its showing 3rd image.
Solution:-
Just add method like elasticdownloader.showDownloadButton() which shows download button.
Please also try to add methods to change the colors of download button
First time i opened
Went back to first activity an came back to 2nd i shows the image below instead of download button
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.