oli107 / material-range-bar

Android widget for selecting a range of values.
Apache License 2.0
1.68k stars 370 forks source link

Binary XML file line #157: Error inflating class com.appyvet.materialrangebar.RangeBar #155

Open Rahulv2492 opened 5 years ago

Rahulv2492 commented 5 years ago

I am getting the error mention in title only for Android pie

shammus1 commented 5 years ago

Same issue for me as well on Kitkat (android version)

zdragnic commented 5 years ago

I solved it by using app:mrb_connectingLineColor instead of app:mrb_connectingLineColors

irfancs commented 4 years ago

I solved the issue by taking instead of in the arrays.xml file

KimTH94 commented 4 years ago

i have same problem when i use api 28. Please tell me how to fix

divyanshuArora commented 4 years ago

i am having same problem in api 29 please help to fix this

leowu4ever commented 4 years ago

Using 1.4.4 having the this issue. Anyone had a solution?

leowu4ever commented 4 years ago

The steps I took to solve this issue are as below:

If the above does not solve your issue, just do a careful comparison between your implementation and the examples.

It took me 2 hours to locate the bug since the error message (the title of this issue) didn't help. The log message at the end of logcat window which pointed to rangebar.java file helped me to locate the problematic attributes.

GOOD LUCK!

laurentiusandre commented 3 years ago

In my case the crash is caused by app:mrb_tickColors, I put a regular resource color @color/transparent instead of an array. Took way too long to notice, and it happens only on Android Pie and above. Lollipop - Oreo is fine. Weird but hey at least it can be solved. I put my array like

<string-array name="transparent">
    <item>#00FFFFFF</item>
    <item>#00FFFFFF</item>
</string-array>

inside colors.xml in case anyone is wondering.

shero333 commented 3 years ago

I got the same issue...Do not resolve by applying all of the given suggestions using API level 30. I am stuck for 2 days. Please help me! will be obliged. I have completely followed the instructions on the link https://github.com/oli107/material-range-bar . Waiting for a suitable reply ASAP.

shero333 commented 3 years ago

I solved it by using app:mrb_connectingLineColor instead of app:mrb_connectingLineColors

this does not work. What to do then?