Giter Site home page Giter Site logo

Comments (25)

daimajia avatar daimajia commented on June 30, 2024

Hey, guy.
Are you using Gradle? I tested just now, it works well.

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

Hi,
Yes. I am using Gradle.
I also had this problem with v.1.1 and I thought may be v.1.2 fixed it, but same error.
I also have some other libraries which are working fine, and I have problem only with this one. :|

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

It's weird, can you sync successfully?

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

Yes, Android Studio Syncs successfully with no problem.
I tried it on two different projects, both ended "force close" by same error.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Could you paste your code and layout xml here?
I guess it's not the library error..

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

Here it is:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.ghaleh.minifc.activities.Drawer1">
...
    <com.daimajia.numberprogressbar.NumberProgressBar
    android:id="@+id/powerbar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="20dp"
    style="@style/NumberProgressBar_Default"
    app:max = "100"
    app:progress = "80"/>
...
</LinearLayout>

and I have nothing related to "powerbar" id in my code.
for more info "Drawer1" extends Fragment and that is all.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Hey,
did you download the jar version and put it into the libs folder?

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

I have an idea. You can make a test project.

  • Git clone this project
  • try to run it in Gradle.
  • Check if it works.

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

I tried:

compile 'com.daimajia.numberprogressbar:library:1.2@aar'

and after facing error I downloaded libs folder added in my "libraries" folder and add this line to setting.gradle:

include ':libraries:android_ago'
include ':libraries:paper_style'
include ':libraries:number_progressbar'

and finally added this line to build.gradle:

...
compile project(':libraries:number_progressbar')

but I got same error.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

I want to remotely help you to solve this problem, shall we?

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

using TeamViewer share your desk.

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

Thank you! Thats nice of you.
Just let me download TeamViewer.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Share we start?

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

OK,
Thanks again
ID: 235 918 013
Pass: 7191

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Password invalid...

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

You can try to run the first empty project in simulator... check if it works

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Hey, a new quick way:

https://github.com/daimajia/NumberProgressBar/blob/master/library%2Fsrc%2Fmain%2Fjava%2Fcom%2Fdaimajia%2Fnumberprogressbar%2FNumberProgressBar.java#L167

change

this(context, attrs, R.attr.numberProgressBarStyle);

to

this(context, attrs, null);

please have a try.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Sorry that I removed the project from lib folder.
You may need git it again and modify it.

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

Not a problem.
I'll check it now. and let you know.

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Mistake.

should be 0 instead of null.

this(context, attrs, 0);

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

You are a genius! :)
Actually I used

this(context, attrs, 0);

and it worked :)

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

oh, great!

from numberprogressbar.

daimajia avatar daimajia commented on June 30, 2024

Ok, i'll do some other changes, before publish new version.

enjoy it.

from numberprogressbar.

Reza-Rg avatar Reza-Rg commented on June 30, 2024

That was great. I really appreciate you for helping me.
Thats kind of you.
Thanks again.

from numberprogressbar.

github11221 avatar github11221 commented on June 30, 2024

android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.daimajia.numberprogressbar.NumberProgressBar

from numberprogressbar.

Related Issues (20)

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.