oli107 / material-range-bar

Android widget for selecting a range of values.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Rahulv2492 opened this issue · comments

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

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

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

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

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

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

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

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

  • update to 1.4.7 in build file
  • locate the xml files which have rangebar
  • attribute (tickcolor to tickdefaultcolor)
  • attribute (connectinglinecolor to connectinglinecolors), it should be assigned with an array.

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!

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.

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.

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

this does not work. What to do then?