Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rahulv2492 opened this issue Dec 3, 2018 · 10 comments

Comments

@Rahulv2492
Copy link

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

@shammus1
Copy link

shammus1 commented Jan 23, 2019

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

@zdragnic
Copy link

zdragnic commented Feb 1, 2019

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

@irfancs
Copy link

irfancs commented Sep 25, 2019

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

@KimTH94
Copy link

KimTH94 commented Oct 30, 2019

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

@divyanshuArora
Copy link

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

@leowu4ever
Copy link

leowu4ever commented Dec 24, 2019

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

@leowu4ever
Copy link

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!

@laurentiusandre
Copy link

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
Copy link

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
Copy link

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

this does not work. What to do then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants