GithubHelp home page GithubHelp logo

materialdesignicons's Issues

ArrayIndexOutOfBoundsException Android 5.0

Hi, thanks for a great library, it has been really useful for me.
just wanted to let you know that i am having problem with zzz_tag_multiple
i get this exception everytime. Its on a LG g3 android 5.0, seams to work fine on android 6.0 thou

ACRA caught a ArrayIndexOutOfBoundsException for "app"
10-07 15:56:30.549 E/ACRA    (32026): java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
10-07 15:56:30.549 E/ACRA    (32026):   at android.util.PathParser$PathDataNode.addCommand(PathParser.java:340)
10-07 15:56:30.549 E/ACRA    (32026):   at android.util.PathParser$PathDataNode.nodesToPath(PathParser.java:260)
10-07 15:56:30.549 E/ACRA    (32026):   at android.graphics.drawable.VectorDrawable$VPath.toPath(VectorDrawable.java:1265)
10-07 15:56:30.549 E/ACRA    (32026):   at android.graphics.drawable.VectorDrawable$VPathRenderer.drawPath(VectorDrawable.java:950)
10-07 15:56:30.549 E/ACRA    (32026):   at android.graphics.drawable.VectorDrawable$VPathRenderer.drawGroupTree(VectorDrawable.java:931)
10-07 15:56:30.549 E/ACRA    (32026):   at android.graphics.drawable.VectorDrawable$VPathRenderer.draw(VectorDrawable.java:938)
10-07 15:56:30.549 E/ACRA    (32026):   at android.graphics.drawable.VectorDrawable$VectorDrawableState.updateCachedBitmap(VectorDrawable.java:705)
10-07 15:56:30.549 E/ACRA    (32026):   at android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:280)
10-07 15:56:30.549 E/ACRA    (32026):   at android.widget.ImageView.onDraw(ImageView.java:1148)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:15148)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14082)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14077)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.widget.ListView.drawChild(ListView.java:3396)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.widget.AbsListView.dispatchDraw(AbsListView.java:2637)
10-07 15:56:30.549 E/ACRA    (32026):   at android.widget.ListView.dispatchDraw(ListView.java:3391)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:15151)
10-07 15:56:30.549 E/ACRA    (32026):   at android.widget.AbsListView.draw(AbsListView.java:4310)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14082)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14077)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14077)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:15151)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14082)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14077)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14077)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:14872)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.drawChild(ViewGroup.java:3404)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3198)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.draw(View.java:15151)
10-07 15:56:30.549 E/ACRA    (32026):   at android.widget.FrameLayout.draw(FrameLayout.java:592)
10-07 15:56:30.549 E/ACRA    (32026):   at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2657)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.updateDisplayListIfDirty(View.java:14082)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.View.getDisplayList(View.java:14105)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:266)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:272)
10-07 15:56:30.549 E/ACRA    (32026):   at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:311)

ResourcesNotFoundException

hi @MrBIMC

i am using zzz_camera_switch drawable in my code and test it will working perfectly in my phone but whenever i try to test in my tablet that time it will generate ResourcesNotFoundException i don't know why this is happening can u please help me to solve this issue..?

My error log like..

06-17 12:46:23.292: E/AndroidRuntime(15651): FATAL EXCEPTION: main 06-17 12:46:23.292: E/AndroidRuntime(15651): Process: jp.co.cyberagent.android.gpuimage.sample, PID: 15651 06-17 12:46:23.292: E/AndroidRuntime(15651): java.lang.RuntimeException: Unable to start activity ComponentInfo{jp.co.cyberagent.android.gpuimage.sample/com.example.main.ActivityCamera}: android.content.res.Resources$NotFoundException: File res/drawable/zzz_camera_switch.xml from drawable resource ID #0x7f0200dc 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2247) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.ActivityThread.access$800(ActivityThread.java:139) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.os.Handler.dispatchMessage(Handler.java:102) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.os.Looper.loop(Looper.java:136) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.ActivityThread.main(ActivityThread.java:5028) 06-17 12:46:23.292: E/AndroidRuntime(15651): at java.lang.reflect.Method.invokeNative(Native Method) 06-17 12:46:23.292: E/AndroidRuntime(15651): at java.lang.reflect.Method.invoke(Method.java:515) 06-17 12:46:23.292: E/AndroidRuntime(15651): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) 06-17 12:46:23.292: E/AndroidRuntime(15651): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) 06-17 12:46:23.292: E/AndroidRuntime(15651): at dalvik.system.NativeStart.main(Native Method) 06-17 12:46:23.292: E/AndroidRuntime(15651): Caused by: android.content.res.ResourcesNotFoundException: File res/drawable/zzz_camera_switch.xml from drawable resource ID #0x7f0200dc 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.content.res.Resources.loadDrawable(Resources.java:2149) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:393) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.content.res.Resources.loadDrawable(Resources.java:2072) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.content.res.Resources.getDrawable(Resources.java:710) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:321) 06-17 12:46:23.292: E/AndroidRuntime(15651): at com.example.main.ActivityCamera.onCreate(ActivityCamera.java:1147) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.Activity.performCreate(Activity.java:5241) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162) 06-17 12:46:23.292: E/AndroidRuntime(15651): ... 11 more 06-17 12:46:23.292: E/AndroidRuntime(15651): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #2: invalid drawable tag vector 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:935) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:879) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.content.res.Resources.createFromXml(Resources.java:2525) 06-17 12:46:23.292: E/AndroidRuntime(15651): at android.content.res.Resources.loadDrawable(Resources.java:2145) 06-17 12:46:23.292: E/AndroidRuntime(15651): ... 19 more 06-17 12:46:25.064: E/ActivityThread(960): Failed to find provider info for com.miui.networkassistant.provider 06-17 12:46:25.182: E/octvm_drv(1708): common drv: platform_autosave_handle -> not implemented : E/(): Device disconnected

Thanks

Tint drawable in xml

Can I tint the drawable to the color I want in the layout files? Because I want to keep unnecessary java code away and would consider to put most layout attributes in layout files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.