Coder Social home page Coder Social logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Thanks for the report.

Can you elaborate further on how you are creating the Activity and 
SVGImageView?  Are you using an XML layout, or creating the layout in code?

Original comment by [email protected] on 24 Mar 2014 at 11:07

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Hi,

I'm creating it in code. As part of a soft keyboard provider I'm
programmatically creating a layout,  instantiating and adding a
SVGImageview and passing the layout back to the host.

So in that sense not really a traditional activity

Original comment by [email protected] on 25 Mar 2014 at 2:00

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
In that case, wouldn't you be using the SVGImageView(Context context) 
constructor?  That one doesn't call init() so you shouldn't strike the issue 
with R.styleable.SVGImageView.

Original comment by [email protected] on 25 Mar 2014 at 2:03

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Hmm ok got it... I'll do that instead.

Original comment by [email protected] on 25 Mar 2014 at 2:37

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
I forgot to say, the other constructors are there for when Android instantiates 
the View from a layout file.  Thus you shouldn't need to use them.

Does the above solve your problem?  If so, I'll close the bug.

Original comment by [email protected] on 25 Mar 2014 at 2:43

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Yes thanks for the help!

Original comment by [email protected] on 25 Mar 2014 at 2:48

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
You're welcome.

Marking this bug "Invalid".

Original comment by [email protected] on 25 Mar 2014 at 2:50

  • Changed state: Invalid

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
I am getting this exact problem when using SVGImageView in and XML layout. I 
checked out your code and imported it into my project as an Android library. 

Original comment by [email protected] on 24 Oct 2014 at 4:00

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Oh, and this is with version 1.2.1 on Android 4.2.2

Original comment by [email protected] on 24 Oct 2014 at 4:11

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
Have you marked the AndroidSVG project you created as a library?

Propertires->Android, then check/tick "Is Library"

Original comment by [email protected] on 24 Oct 2014 at 4:21

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 2, 2024
I posted the solution to my problem in 
http://code.google.com/p/androidsvg/issues/detail?id=34

Original comment by [email protected] on 26 Oct 2014 at 7:15

from androidsvg.

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.